Finalize changes for 2.0.dfsg1-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.0.
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.0'
427 PACKAGE_STRING='shibboleth 2.0'
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_FLAG_[]DX_CURRENT_FEATURE DX_PERL ac_pt_DX_PERL DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_doc_TRUE DX_COND_doc_FALSE DX_FLAG_dot DX_FLAG_[]DX_CURRENT_FEATURE DX_DOT ac_pt_DX_DOT DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_dot_TRUE DX_COND_dot_FALSE DX_FLAG_man DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_man_TRUE DX_COND_man_FALSE DX_FLAG_rtf DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_rtf_TRUE DX_COND_rtf_FALSE DX_FLAG_xml DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_xml_TRUE DX_COND_xml_FALSE DX_FLAG_chm DX_FLAG_[]DX_CURRENT_FEATURE DX_HHC ac_pt_DX_HHC DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_chm_TRUE DX_COND_chm_FALSE DX_FLAG_chi DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_chi_TRUE DX_COND_chi_FALSE DX_FLAG_html DX_FLAG_[]DX_CURRENT_FEATURE DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_html_TRUE DX_COND_html_FALSE DX_FLAG_ps DX_FLAG_[]DX_CURRENT_FEATURE DX_LATEX ac_pt_DX_LATEX DX_FLAG_[]DX_CURRENT_FEATURE DX_MAKEINDEX ac_pt_DX_MAKEINDEX DX_FLAG_[]DX_CURRENT_FEATURE DX_DVIPS ac_pt_DX_DVIPS DX_FLAG_[]DX_CURRENT_FEATURE DX_EGREP ac_pt_DX_EGREP DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_ps_TRUE DX_COND_ps_FALSE DX_FLAG_pdf DX_FLAG_[]DX_CURRENT_FEATURE DX_PDFLATEX ac_pt_DX_PDFLATEX DX_FLAG_[]DX_CURRENT_FEATURE DX_FLAG_[]DX_CURRENT_FEATURE DX_FLAG_[]DX_CURRENT_FEATURE 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 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.0 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.0:";;
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-apxs=FILE        Specifies where to find the Apache 1.3 apxs script.
1078   --with-apxs2=FILE       Specifies where to find the Apache 2.0 apxs script.
1079   --with-apr=PATH         where apr-config is installed
1080   --with-apxs22=FILE      Specifies where to find the Apache 2.2 apxs script.
1081   --with-apr1=PATH        where apr-1-config is installed
1082   --with-odbc=PATH        directory where odbc is installed
1083
1084 Some influential environment variables:
1085   DOXYGEN_PAPER_SIZE
1086               a4wide (default), a4, letter, legal or executive
1087   CC          C compiler command
1088   CFLAGS      C compiler flags
1089   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1090               nonstandard directory <lib dir>
1091   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1092               headers in a nonstandard directory <include dir>
1093   CXX         C++ compiler command
1094   CXXFLAGS    C++ compiler flags
1095   CPP         C preprocessor
1096   CXXCPP      C++ preprocessor
1097   F77         Fortran 77 compiler command
1098   FFLAGS      Fortran 77 compiler flags
1099
1100 Use these variables to override the choices made by `configure' or to help
1101 it to find libraries and programs with nonstandard names/locations.
1102
1103 Report bugs to <shibboleth-users@internet2.edu>.
1104 _ACEOF
1105 fi
1106
1107 if test "$ac_init_help" = "recursive"; then
1108   # If there are subdirs, report their specific --help.
1109   ac_popdir=`pwd`
1110   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1111     test -d $ac_dir || continue
1112     ac_builddir=.
1113
1114 if test "$ac_dir" != .; then
1115   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1116   # A "../" for each directory in $ac_dir_suffix.
1117   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1118 else
1119   ac_dir_suffix= ac_top_builddir=
1120 fi
1121
1122 case $srcdir in
1123   .)  # No --srcdir option.  We are building in place.
1124     ac_srcdir=.
1125     if test -z "$ac_top_builddir"; then
1126        ac_top_srcdir=.
1127     else
1128        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1129     fi ;;
1130   [\\/]* | ?:[\\/]* )  # Absolute path.
1131     ac_srcdir=$srcdir$ac_dir_suffix;
1132     ac_top_srcdir=$srcdir ;;
1133   *) # Relative path.
1134     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1135     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1136 esac
1137
1138 # Do not use `cd foo && pwd` to compute absolute paths, because
1139 # the directories may not exist.
1140 case `pwd` in
1141 .) ac_abs_builddir="$ac_dir";;
1142 *)
1143   case "$ac_dir" in
1144   .) ac_abs_builddir=`pwd`;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1146   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1147   esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1151 *)
1152   case ${ac_top_builddir}. in
1153   .) ac_abs_top_builddir=$ac_abs_builddir;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1155   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1156   esac;;
1157 esac
1158 case $ac_abs_builddir in
1159 .) ac_abs_srcdir=$ac_srcdir;;
1160 *)
1161   case $ac_srcdir in
1162   .) ac_abs_srcdir=$ac_abs_builddir;;
1163   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1164   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1165   esac;;
1166 esac
1167 case $ac_abs_builddir in
1168 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1169 *)
1170   case $ac_top_srcdir in
1171   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1172   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1173   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1174   esac;;
1175 esac
1176
1177     cd $ac_dir
1178     # Check for guested configure; otherwise get Cygnus style configure.
1179     if test -f $ac_srcdir/configure.gnu; then
1180       echo
1181       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1182     elif test -f $ac_srcdir/configure; then
1183       echo
1184       $SHELL $ac_srcdir/configure  --help=recursive
1185     elif test -f $ac_srcdir/configure.ac ||
1186            test -f $ac_srcdir/configure.in; then
1187       echo
1188       $ac_configure --help
1189     else
1190       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1191     fi
1192     cd $ac_popdir
1193   done
1194 fi
1195
1196 test -n "$ac_init_help" && exit 0
1197 if $ac_init_version; then
1198   cat <<\_ACEOF
1199 shibboleth configure 2.0
1200 generated by GNU Autoconf 2.59
1201
1202 Copyright (C) 2003 Free Software Foundation, Inc.
1203 This configure script is free software; the Free Software Foundation
1204 gives unlimited permission to copy, distribute and modify it.
1205 _ACEOF
1206   exit 0
1207 fi
1208 exec 5>config.log
1209 cat >&5 <<_ACEOF
1210 This file contains any messages produced by compilers while
1211 running configure, to aid debugging if configure makes a mistake.
1212
1213 It was created by shibboleth $as_me 2.0, which was
1214 generated by GNU Autoconf 2.59.  Invocation command line was
1215
1216   $ $0 $@
1217
1218 _ACEOF
1219 {
1220 cat <<_ASUNAME
1221 ## --------- ##
1222 ## Platform. ##
1223 ## --------- ##
1224
1225 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1226 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1227 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1228 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1229 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1230
1231 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1232 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1233
1234 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1235 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1236 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1237 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1238 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1239 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1240 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1241
1242 _ASUNAME
1243
1244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1245 for as_dir in $PATH
1246 do
1247   IFS=$as_save_IFS
1248   test -z "$as_dir" && as_dir=.
1249   echo "PATH: $as_dir"
1250 done
1251
1252 } >&5
1253
1254 cat >&5 <<_ACEOF
1255
1256
1257 ## ----------- ##
1258 ## Core tests. ##
1259 ## ----------- ##
1260
1261 _ACEOF
1262
1263
1264 # Keep a trace of the command line.
1265 # Strip out --no-create and --no-recursion so they do not pile up.
1266 # Strip out --silent because we don't want to record it for future runs.
1267 # Also quote any args containing shell meta-characters.
1268 # Make two passes to allow for proper duplicate-argument suppression.
1269 ac_configure_args=
1270 ac_configure_args0=
1271 ac_configure_args1=
1272 ac_sep=
1273 ac_must_keep_next=false
1274 for ac_pass in 1 2
1275 do
1276   for ac_arg
1277   do
1278     case $ac_arg in
1279     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1280     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281     | -silent | --silent | --silen | --sile | --sil)
1282       continue ;;
1283     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1285     esac
1286     case $ac_pass in
1287     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1288     2)
1289       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1290       if test $ac_must_keep_next = true; then
1291         ac_must_keep_next=false # Got value, back to normal.
1292       else
1293         case $ac_arg in
1294           *=* | --config-cache | -C | -disable-* | --disable-* \
1295           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1296           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1297           | -with-* | --with-* | -without-* | --without-* | --x)
1298             case "$ac_configure_args0 " in
1299               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1300             esac
1301             ;;
1302           -* ) ac_must_keep_next=true ;;
1303         esac
1304       fi
1305       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1306       # Get rid of the leading space.
1307       ac_sep=" "
1308       ;;
1309     esac
1310   done
1311 done
1312 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1313 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1314
1315 # When interrupted or exit'd, cleanup temporary files, and complete
1316 # config.log.  We remove comments because anyway the quotes in there
1317 # would cause problems or look ugly.
1318 # WARNING: Be sure not to use single quotes in there, as some shells,
1319 # such as our DU 5.0 friend, will then `close' the trap.
1320 trap 'exit_status=$?
1321   # Save into config.log some information that might help in debugging.
1322   {
1323     echo
1324
1325     cat <<\_ASBOX
1326 ## ---------------- ##
1327 ## Cache variables. ##
1328 ## ---------------- ##
1329 _ASBOX
1330     echo
1331     # The following way of writing the cache mishandles newlines in values,
1332 {
1333   (set) 2>&1 |
1334     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1335     *ac_space=\ *)
1336       sed -n \
1337         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1338           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1339       ;;
1340     *)
1341       sed -n \
1342         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1343       ;;
1344     esac;
1345 }
1346     echo
1347
1348     cat <<\_ASBOX
1349 ## ----------------- ##
1350 ## Output variables. ##
1351 ## ----------------- ##
1352 _ASBOX
1353     echo
1354     for ac_var in $ac_subst_vars
1355     do
1356       eval ac_val=$`echo $ac_var`
1357       echo "$ac_var='"'"'$ac_val'"'"'"
1358     done | sort
1359     echo
1360
1361     if test -n "$ac_subst_files"; then
1362       cat <<\_ASBOX
1363 ## ------------- ##
1364 ## Output files. ##
1365 ## ------------- ##
1366 _ASBOX
1367       echo
1368       for ac_var in $ac_subst_files
1369       do
1370         eval ac_val=$`echo $ac_var`
1371         echo "$ac_var='"'"'$ac_val'"'"'"
1372       done | sort
1373       echo
1374     fi
1375
1376     if test -s confdefs.h; then
1377       cat <<\_ASBOX
1378 ## ----------- ##
1379 ## confdefs.h. ##
1380 ## ----------- ##
1381 _ASBOX
1382       echo
1383       sed "/^$/d" confdefs.h | sort
1384       echo
1385     fi
1386     test "$ac_signal" != 0 &&
1387       echo "$as_me: caught signal $ac_signal"
1388     echo "$as_me: exit $exit_status"
1389   } >&5
1390   rm -f core *.core &&
1391   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1392     exit $exit_status
1393      ' 0
1394 for ac_signal in 1 2 13 15; do
1395   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1396 done
1397 ac_signal=0
1398
1399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1400 rm -rf conftest* confdefs.h
1401 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1402 echo >confdefs.h
1403
1404 # Predefined preprocessor variables.
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_NAME "$PACKAGE_NAME"
1408 _ACEOF
1409
1410
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1413 _ACEOF
1414
1415
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1418 _ACEOF
1419
1420
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_STRING "$PACKAGE_STRING"
1423 _ACEOF
1424
1425
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1428 _ACEOF
1429
1430
1431 # Let the site file select an alternate cache file if it wants to.
1432 # Prefer explicitly selected file to automatically selected ones.
1433 if test -z "$CONFIG_SITE"; then
1434   if test "x$prefix" != xNONE; then
1435     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1436   else
1437     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1438   fi
1439 fi
1440 for ac_site_file in $CONFIG_SITE; do
1441   if test -r "$ac_site_file"; then
1442     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1443 echo "$as_me: loading site script $ac_site_file" >&6;}
1444     sed 's/^/| /' "$ac_site_file" >&5
1445     . "$ac_site_file"
1446   fi
1447 done
1448
1449 if test -r "$cache_file"; then
1450   # Some versions of bash will fail to source /dev/null (special
1451   # files actually), so we avoid doing that.
1452   if test -f "$cache_file"; then
1453     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1454 echo "$as_me: loading cache $cache_file" >&6;}
1455     case $cache_file in
1456       [\\/]* | ?:[\\/]* ) . $cache_file;;
1457       *)                      . ./$cache_file;;
1458     esac
1459   fi
1460 else
1461   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1462 echo "$as_me: creating cache $cache_file" >&6;}
1463   >$cache_file
1464 fi
1465
1466 # Check that the precious variables saved in the cache have kept the same
1467 # value.
1468 ac_cache_corrupted=false
1469 for ac_var in `(set) 2>&1 |
1470                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1471   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1472   eval ac_new_set=\$ac_env_${ac_var}_set
1473   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1474   eval ac_new_val="\$ac_env_${ac_var}_value"
1475   case $ac_old_set,$ac_new_set in
1476     set,)
1477       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1478 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1479       ac_cache_corrupted=: ;;
1480     ,set)
1481       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1482 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1483       ac_cache_corrupted=: ;;
1484     ,);;
1485     *)
1486       if test "x$ac_old_val" != "x$ac_new_val"; then
1487         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1488 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1489         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1490 echo "$as_me:   former value:  $ac_old_val" >&2;}
1491         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1492 echo "$as_me:   current value: $ac_new_val" >&2;}
1493         ac_cache_corrupted=:
1494       fi;;
1495   esac
1496   # Pass precious variables to config.status.
1497   if test "$ac_new_set" = set; then
1498     case $ac_new_val in
1499     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1500       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1501     *) ac_arg=$ac_var=$ac_new_val ;;
1502     esac
1503     case " $ac_configure_args " in
1504       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1505       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1506     esac
1507   fi
1508 done
1509 if $ac_cache_corrupted; then
1510   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1511 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1512   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1513 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1514    { (exit 1); exit 1; }; }
1515 fi
1516
1517 ac_ext=c
1518 ac_cpp='$CPP $CPPFLAGS'
1519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1522
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           ac_config_headers="$ac_config_headers config.h"
1550
1551 am__api_version="1.9"
1552 ac_aux_dir=
1553 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1554   if test -f $ac_dir/install-sh; then
1555     ac_aux_dir=$ac_dir
1556     ac_install_sh="$ac_aux_dir/install-sh -c"
1557     break
1558   elif test -f $ac_dir/install.sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install.sh -c"
1561     break
1562   elif test -f $ac_dir/shtool; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/shtool install -c"
1565     break
1566   fi
1567 done
1568 if test -z "$ac_aux_dir"; then
1569   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1570 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1571    { (exit 1); exit 1; }; }
1572 fi
1573 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1574 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1575 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1576
1577 # Find a good install program.  We prefer a C program (faster),
1578 # so one script is as good as another.  But avoid the broken or
1579 # incompatible versions:
1580 # SysV /etc/install, /usr/sbin/install
1581 # SunOS /usr/etc/install
1582 # IRIX /sbin/install
1583 # AIX /bin/install
1584 # AmigaOS /C/install, which installs bootblocks on floppy discs
1585 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1588 # OS/2's system install, which has a completely different semantic
1589 # ./install, which can be erroneously created by make from ./install.sh.
1590 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1591 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1592 if test -z "$INSTALL"; then
1593 if test "${ac_cv_path_install+set}" = set; then
1594   echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 for as_dir in $PATH
1598 do
1599   IFS=$as_save_IFS
1600   test -z "$as_dir" && as_dir=.
1601   # Account for people who put trailing slashes in PATH elements.
1602 case $as_dir/ in
1603   ./ | .// | /cC/* | \
1604   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1605   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1606   /usr/ucb/* ) ;;
1607   *)
1608     # OSF1 and SCO ODT 3.0 have their own names for install.
1609     # Don't use installbsd from OSF since it installs stuff as root
1610     # by default.
1611     for ac_prog in ginstall scoinst install; do
1612       for ac_exec_ext in '' $ac_executable_extensions; do
1613         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1614           if test $ac_prog = install &&
1615             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1616             # AIX install.  It has an incompatible calling convention.
1617             :
1618           elif test $ac_prog = install &&
1619             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1620             # program-specific install script used by HP pwplus--don't use.
1621             :
1622           else
1623             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1624             break 3
1625           fi
1626         fi
1627       done
1628     done
1629     ;;
1630 esac
1631 done
1632
1633
1634 fi
1635   if test "${ac_cv_path_install+set}" = set; then
1636     INSTALL=$ac_cv_path_install
1637   else
1638     # As a last resort, use the slow shell script.  We don't cache a
1639     # path for INSTALL within a source directory, because that will
1640     # break other packages using the cache if that directory is
1641     # removed, or if the path is relative.
1642     INSTALL=$ac_install_sh
1643   fi
1644 fi
1645 echo "$as_me:$LINENO: result: $INSTALL" >&5
1646 echo "${ECHO_T}$INSTALL" >&6
1647
1648 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1649 # It thinks the first close brace ends the variable substitution.
1650 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1651
1652 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1653
1654 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1655
1656 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1657 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1658 # Just in case
1659 sleep 1
1660 echo timestamp > conftest.file
1661 # Do `set' in a subshell so we don't clobber the current shell's
1662 # arguments.  Must try -L first in case configure is actually a
1663 # symlink; some systems play weird games with the mod time of symlinks
1664 # (eg FreeBSD returns the mod time of the symlink's containing
1665 # directory).
1666 if (
1667    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1668    if test "$*" = "X"; then
1669       # -L didn't work.
1670       set X `ls -t $srcdir/configure conftest.file`
1671    fi
1672    rm -f conftest.file
1673    if test "$*" != "X $srcdir/configure conftest.file" \
1674       && test "$*" != "X conftest.file $srcdir/configure"; then
1675
1676       # If neither matched, then we have a broken ls.  This can happen
1677       # if, for instance, CONFIG_SHELL is bash and it inherits a
1678       # broken ls alias from the environment.  This has actually
1679       # happened.  Such a system could not be considered "sane".
1680       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1681 alias in your environment" >&5
1682 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1683 alias in your environment" >&2;}
1684    { (exit 1); exit 1; }; }
1685    fi
1686
1687    test "$2" = conftest.file
1688    )
1689 then
1690    # Ok.
1691    :
1692 else
1693    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1694 Check your system clock" >&5
1695 echo "$as_me: error: newly created file is older than distributed files!
1696 Check your system clock" >&2;}
1697    { (exit 1); exit 1; }; }
1698 fi
1699 echo "$as_me:$LINENO: result: yes" >&5
1700 echo "${ECHO_T}yes" >&6
1701 test "$program_prefix" != NONE &&
1702   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1703 # Use a double $ so make ignores it.
1704 test "$program_suffix" != NONE &&
1705   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1706 # Double any \ or $.  echo might interpret backslashes.
1707 # By default was `s,x,x', remove it if useless.
1708 cat <<\_ACEOF >conftest.sed
1709 s/[\\$]/&&/g;s/;s,x,x,$//
1710 _ACEOF
1711 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1712 rm conftest.sed
1713
1714 # expand $ac_aux_dir to an absolute path
1715 am_aux_dir=`cd $ac_aux_dir && pwd`
1716
1717 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1718 # Use eval to expand $SHELL
1719 if eval "$MISSING --run true"; then
1720   am_missing_run="$MISSING --run "
1721 else
1722   am_missing_run=
1723   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1724 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1725 fi
1726
1727 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1728   # We used to keeping the `.' as first argument, in order to
1729   # allow $(mkdir_p) to be used without argument.  As in
1730   #   $(mkdir_p) $(somedir)
1731   # where $(somedir) is conditionally defined.  However this is wrong
1732   # for two reasons:
1733   #  1. if the package is installed by a user who cannot write `.'
1734   #     make install will fail,
1735   #  2. the above comment should most certainly read
1736   #     $(mkdir_p) $(DESTDIR)$(somedir)
1737   #     so it does not work when $(somedir) is undefined and
1738   #     $(DESTDIR) is not.
1739   #  To support the latter case, we have to write
1740   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1741   #  so the `.' trick is pointless.
1742   mkdir_p='mkdir -p --'
1743 else
1744   # On NextStep and OpenStep, the `mkdir' command does not
1745   # recognize any option.  It will interpret all options as
1746   # directories to create, and then abort because `.' already
1747   # exists.
1748   for d in ./-p ./--version;
1749   do
1750     test -d $d && rmdir $d
1751   done
1752   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1753   if test -f "$ac_aux_dir/mkinstalldirs"; then
1754     mkdir_p='$(mkinstalldirs)'
1755   else
1756     mkdir_p='$(install_sh) -d'
1757   fi
1758 fi
1759
1760 for ac_prog in gawk mawk nawk awk
1761 do
1762   # Extract the first word of "$ac_prog", so it can be a program name with args.
1763 set dummy $ac_prog; ac_word=$2
1764 echo "$as_me:$LINENO: checking for $ac_word" >&5
1765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766 if test "${ac_cv_prog_AWK+set}" = set; then
1767   echo $ECHO_N "(cached) $ECHO_C" >&6
1768 else
1769   if test -n "$AWK"; then
1770   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1771 else
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1774 do
1775   IFS=$as_save_IFS
1776   test -z "$as_dir" && as_dir=.
1777   for ac_exec_ext in '' $ac_executable_extensions; do
1778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779     ac_cv_prog_AWK="$ac_prog"
1780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781     break 2
1782   fi
1783 done
1784 done
1785
1786 fi
1787 fi
1788 AWK=$ac_cv_prog_AWK
1789 if test -n "$AWK"; then
1790   echo "$as_me:$LINENO: result: $AWK" >&5
1791 echo "${ECHO_T}$AWK" >&6
1792 else
1793   echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1795 fi
1796
1797   test -n "$AWK" && break
1798 done
1799
1800 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1801 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1802 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1803 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1804   echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806   cat >conftest.make <<\_ACEOF
1807 all:
1808         @echo 'ac_maketemp="$(MAKE)"'
1809 _ACEOF
1810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1811 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1812 if test -n "$ac_maketemp"; then
1813   eval ac_cv_prog_make_${ac_make}_set=yes
1814 else
1815   eval ac_cv_prog_make_${ac_make}_set=no
1816 fi
1817 rm -f conftest.make
1818 fi
1819 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1820   echo "$as_me:$LINENO: result: yes" >&5
1821 echo "${ECHO_T}yes" >&6
1822   SET_MAKE=
1823 else
1824   echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1826   SET_MAKE="MAKE=${MAKE-make}"
1827 fi
1828
1829 rm -rf .tst 2>/dev/null
1830 mkdir .tst 2>/dev/null
1831 if test -d .tst; then
1832   am__leading_dot=.
1833 else
1834   am__leading_dot=_
1835 fi
1836 rmdir .tst 2>/dev/null
1837
1838 # test to see if srcdir already configured
1839 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1840    test -f $srcdir/config.status; then
1841   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1842 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1843    { (exit 1); exit 1; }; }
1844 fi
1845
1846 # test whether we have cygpath
1847 if test -z "$CYGPATH_W"; then
1848   if (cygpath --version) >/dev/null 2>/dev/null; then
1849     CYGPATH_W='cygpath -w'
1850   else
1851     CYGPATH_W=echo
1852   fi
1853 fi
1854
1855
1856 # Define the identity of the package.
1857  PACKAGE=shibboleth
1858  VERSION=2.0
1859
1860
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE "$PACKAGE"
1863 _ACEOF
1864
1865
1866 cat >>confdefs.h <<_ACEOF
1867 #define VERSION "$VERSION"
1868 _ACEOF
1869
1870 # Some tools Automake needs.
1871
1872 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1873
1874
1875 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1876
1877
1878 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1879
1880
1881 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1882
1883
1884 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1885
1886 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1887
1888 # Installed binaries are usually stripped using `strip' when the user
1889 # run `make install-strip'.  However `strip' might not be the right
1890 # tool to use in cross-compilation environments, therefore Automake
1891 # will honor the `STRIP' environment variable to overrule this program.
1892 if test "$cross_compiling" != no; then
1893   if test -n "$ac_tool_prefix"; then
1894   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1895 set dummy ${ac_tool_prefix}strip; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_STRIP+set}" = set; then
1899   echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901   if test -n "$STRIP"; then
1902   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907   IFS=$as_save_IFS
1908   test -z "$as_dir" && as_dir=.
1909   for ac_exec_ext in '' $ac_executable_extensions; do
1910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913     break 2
1914   fi
1915 done
1916 done
1917
1918 fi
1919 fi
1920 STRIP=$ac_cv_prog_STRIP
1921 if test -n "$STRIP"; then
1922   echo "$as_me:$LINENO: result: $STRIP" >&5
1923 echo "${ECHO_T}$STRIP" >&6
1924 else
1925   echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1927 fi
1928
1929 fi
1930 if test -z "$ac_cv_prog_STRIP"; then
1931   ac_ct_STRIP=$STRIP
1932   # Extract the first word of "strip", so it can be a program name with args.
1933 set dummy strip; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1937   echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939   if test -n "$ac_ct_STRIP"; then
1940   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1941 else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945   IFS=$as_save_IFS
1946   test -z "$as_dir" && as_dir=.
1947   for ac_exec_ext in '' $ac_executable_extensions; do
1948   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949     ac_cv_prog_ac_ct_STRIP="strip"
1950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951     break 2
1952   fi
1953 done
1954 done
1955
1956   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1957 fi
1958 fi
1959 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1960 if test -n "$ac_ct_STRIP"; then
1961   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1962 echo "${ECHO_T}$ac_ct_STRIP" >&6
1963 else
1964   echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1966 fi
1967
1968   STRIP=$ac_ct_STRIP
1969 else
1970   STRIP="$ac_cv_prog_STRIP"
1971 fi
1972
1973 fi
1974 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1975
1976 # We need awk for the "check" target.  The system "awk" is bad on
1977 # some platforms.
1978 # Always define AMTAR for backward compatibility.
1979
1980 AMTAR=${AMTAR-"${am_missing_run}tar"}
1981
1982 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1983
1984
1985
1986
1987
1988
1989 # This file is part of Autoconf.                       -*- Autoconf -*-
1990
1991 # Copyright (C) 2004 Oren Ben-Kiki
1992 # This file is distributed under the same terms as the Autoconf macro files.
1993
1994 # Generate automatic documentation using Doxygen. Works in concert with the
1995 # aminclude.m4 file and a compatible doxygen configuration file. Defines the
1996 # following public macros:
1997 #
1998 # DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
1999 # Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
2000 # 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
2001 # for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
2002 # 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
2003 # variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
2004 # paper size.
2005 #
2006 # By default, HTML, PDF and PS documentation is generated as this seems to be
2007 # the most popular and portable combination. MAN pages created by Doxygen are
2008 # usually problematic, though by picking an appropriate subset and doing some
2009 # massaging they might be better than nothing. CHM and RTF are specific for MS
2010 # (note that you can't generate both HTML and CHM at the same time). The XML is
2011 # rather useless unless you apply specialized post-processing to it.
2012 #
2013 # The macro mainly controls the default state of the feature. The use can
2014 # override the default by specifying --enable or --disable. The macros ensure
2015 # that contradictory flags are not given (e.g., --enable-doxygen-html and
2016 # --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
2017 # Finally, each feature will be automatically disabled (with a warning) if the
2018 # required programs are missing.
2019 #
2020 # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
2021 # the following parameters: a one-word name for the project for use as a
2022 # filename base etc., an optional configuration file name (the default is
2023 # 'Doxyfile', the same as Doxygen's default), and an optional output directory
2024 # name (the default is 'doxygen-doc').
2025
2026 ## ----------##
2027 ## Defaults. ##
2028 ## ----------##
2029
2030 DX_ENV=""
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042 ## --------------- ##
2043 ## Private macros. ##
2044 ## --------------- ##
2045
2046 # DX_ENV_APPEND(VARIABLE, VALUE)
2047 # ------------------------------
2048 # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
2049
2050
2051 # DX_DIRNAME_EXPR
2052 # ---------------
2053 # Expand into a shell expression prints the directory part of a path.
2054
2055
2056 # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
2057 # -------------------------------------
2058 # Expands according to the M4 (static) status of the feature.
2059
2060
2061 # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
2062 # ----------------------------------
2063 # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
2064
2065
2066 # DX_TEST_FEATURE(FEATURE)
2067 # ------------------------
2068 # Expand to a shell expression testing whether the feature is active.
2069
2070
2071 # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
2072 # -------------------------------------------------
2073 # Verify that a required features has the right state before trying to turn on
2074 # the DX_CURRENT_FEATURE.
2075
2076
2077 # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
2078 # ----------------------------------------------------------
2079 # Turn off the DX_CURRENT_FEATURE if the required feature is off.
2080
2081
2082 # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
2083 #                CHECK_DEPEND, CLEAR_DEPEND,
2084 #                REQUIRE, DO-IF-ON, DO-IF-OFF)
2085 # --------------------------------------------
2086 # Parse the command-line option controlling a feature. CHECK_DEPEND is called
2087 # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
2088 # otherwise CLEAR_DEPEND is called to turn off the default state if a required
2089 # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
2090 # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
2091 # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
2092
2093
2094 ## -------------- ##
2095 ## Public macros. ##
2096 ## -------------- ##
2097
2098 # DX_XXX_FEATURE(DEFAULT_STATE)
2099 # -----------------------------
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111 # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
2112 # ---------------------------------------------------------
2113 # PROJECT also serves as the base name for the documentation files.
2114 # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
2115
2116
2117 ##### http://autoconf-archive.cryp.to/acx_pthread.html
2118 #
2119 # SYNOPSIS
2120 #
2121 #   ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
2122 #
2123 # DESCRIPTION
2124 #
2125 #   This macro figures out how to build C programs using POSIX threads.
2126 #   It sets the PTHREAD_LIBS output variable to the threads library and
2127 #   linker flags, and the PTHREAD_CFLAGS output variable to any special
2128 #   C compiler flags that are needed. (The user can also force certain
2129 #   compiler flags/libs to be tested by setting these environment
2130 #   variables.)
2131 #
2132 #   Also sets PTHREAD_CC to any special C compiler that is needed for
2133 #   multi-threaded programs (defaults to the value of CC otherwise).
2134 #   (This is necessary on AIX to use the special cc_r compiler alias.)
2135 #
2136 #   NOTE: You are assumed to not only compile your program with these
2137 #   flags, but also link it with them as well. e.g. you should link
2138 #   with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
2139 #   $LIBS
2140 #
2141 #   If you are only building threads programs, you may wish to use
2142 #   these variables in your default LIBS, CFLAGS, and CC:
2143 #
2144 #          LIBS="$PTHREAD_LIBS $LIBS"
2145 #          CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2146 #          CC="$PTHREAD_CC"
2147 #
2148 #   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
2149 #   constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
2150 #   that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
2151 #
2152 #   ACTION-IF-FOUND is a list of shell commands to run if a threads
2153 #   library is found, and ACTION-IF-NOT-FOUND is a list of commands to
2154 #   run it if it is not found. If ACTION-IF-FOUND is not specified, the
2155 #   default action will define HAVE_PTHREAD.
2156 #
2157 #   Please let the authors know if this macro fails on any platform, or
2158 #   if you have any other suggestions or comments. This macro was based
2159 #   on work by SGJ on autoconf scripts for FFTW (http://www.fftw.org/)
2160 #   (with help from M. Frigo), as well as ac_pthread and hb_pthread
2161 #   macros posted by Alejandro Forero Cuervo to the autoconf macro
2162 #   repository. We are also grateful for the helpful feedback of
2163 #   numerous users.
2164 #
2165 # LAST MODIFICATION
2166 #
2167 #   2006-05-29
2168 #
2169 # COPYLEFT
2170 #
2171 #   Copyright (c) 2006 Steven G. Johnson <stevenj@alum.mit.edu>
2172 #
2173 #   This program is free software; you can redistribute it and/or
2174 #   modify it under the terms of the GNU General Public License as
2175 #   published by the Free Software Foundation; either version 2 of the
2176 #   License, or (at your option) any later version.
2177 #
2178 #   This program is distributed in the hope that it will be useful, but
2179 #   WITHOUT ANY WARRANTY; without even the implied warranty of
2180 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2181 #   General Public License for more details.
2182 #
2183 #   You should have received a copy of the GNU General Public License
2184 #   along with this program; if not, write to the Free Software
2185 #   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2186 #   02111-1307, USA.
2187 #
2188 #   As a special exception, the respective Autoconf Macro's copyright
2189 #   owner gives unlimited permission to copy, distribute and modify the
2190 #   configure scripts that are the output of Autoconf when processing
2191 #   the Macro. You need not follow the terms of the GNU General Public
2192 #   License when using or distributing such scripts, even though
2193 #   portions of the text of the Macro appear in them. The GNU General
2194 #   Public License (GPL) does govern all other use of the material that
2195 #   constitutes the Autoconf Macro.
2196 #
2197 #   This special exception to the GPL applies to versions of the
2198 #   Autoconf Macro released by the Autoconf Macro Archive. When you
2199 #   make and distribute a modified version of the Autoconf Macro, you
2200 #   may extend this special exception to the GPL to apply to your
2201 #   modified version as well.
2202
2203
2204
2205 # Docygen features
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216 # Files:
2217 DX_PROJECT=shibboleth
2218
2219 DX_CONFIG=doxygen.cfg
2220
2221 DX_DOCDIR=doc/api
2222
2223
2224 # Environment variables used inside doxygen.cfg:
2225 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
2226
2227 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
2228
2229 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
2230
2231 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
2232
2233
2234 # Doxygen itself:
2235
2236
2237
2238     # Check whether --enable-doxygen-doc or --disable-doxygen-doc was given.
2239 if test "${enable_doxygen_doc+set}" = set; then
2240   enableval="$enable_doxygen_doc"
2241
2242 case "$enableval" in
2243 #(
2244 y|Y|yes|Yes|YES)
2245     DX_FLAG_doc=1
2246
2247
2248 ;; #(
2249 n|N|no|No|NO)
2250     DX_FLAG_doc=0
2251
2252 ;; #(
2253 *)
2254     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-doc" >&5
2255 echo "$as_me: error: invalid value '$enableval' given to doxygen-doc" >&2;}
2256    { (exit 1); exit 1; }; }
2257 ;;
2258 esac
2259
2260 else
2261
2262 DX_FLAG_doc=1
2263
2264
2265
2266 fi;
2267 if test "$DX_FLAG_doc" = 1; then
2268
2269 if test -n "$ac_tool_prefix"; then
2270   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
2271 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
2272 echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2274 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   case $DX_DOXYGEN in
2278   [\\/]* | ?:[\\/]*)
2279   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
2280   ;;
2281   *)
2282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2284 do
2285   IFS=$as_save_IFS
2286   test -z "$as_dir" && as_dir=.
2287   for ac_exec_ext in '' $ac_executable_extensions; do
2288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291     break 2
2292   fi
2293 done
2294 done
2295
2296   ;;
2297 esac
2298 fi
2299 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
2300
2301 if test -n "$DX_DOXYGEN"; then
2302   echo "$as_me:$LINENO: result: $DX_DOXYGEN" >&5
2303 echo "${ECHO_T}$DX_DOXYGEN" >&6
2304 else
2305   echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6
2307 fi
2308
2309 fi
2310 if test -z "$ac_cv_path_DX_DOXYGEN"; then
2311   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
2312   # Extract the first word of "doxygen", so it can be a program name with args.
2313 set dummy doxygen; ac_word=$2
2314 echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2316 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then
2317   echo $ECHO_N "(cached) $ECHO_C" >&6
2318 else
2319   case $ac_pt_DX_DOXYGEN in
2320   [\\/]* | ?:[\\/]*)
2321   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
2322   ;;
2323   *)
2324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2326 do
2327   IFS=$as_save_IFS
2328   test -z "$as_dir" && as_dir=.
2329   for ac_exec_ext in '' $ac_executable_extensions; do
2330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2331     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333     break 2
2334   fi
2335 done
2336 done
2337
2338   ;;
2339 esac
2340 fi
2341 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
2342
2343 if test -n "$ac_pt_DX_DOXYGEN"; then
2344   echo "$as_me:$LINENO: result: $ac_pt_DX_DOXYGEN" >&5
2345 echo "${ECHO_T}$ac_pt_DX_DOXYGEN" >&6
2346 else
2347   echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2349 fi
2350
2351   DX_DOXYGEN=$ac_pt_DX_DOXYGEN
2352 else
2353   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
2354 fi
2355
2356 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
2357     { echo "$as_me:$LINENO: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
2358 echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
2359     DX_FLAG_doc=0
2360
2361 fi
2362
2363
2364 if test -n "$ac_tool_prefix"; then
2365   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
2366 set dummy ${ac_tool_prefix}perl; ac_word=$2
2367 echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369 if test "${ac_cv_path_DX_PERL+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   case $DX_PERL in
2373   [\\/]* | ?:[\\/]*)
2374   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
2375   ;;
2376   *)
2377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380   IFS=$as_save_IFS
2381   test -z "$as_dir" && as_dir=.
2382   for ac_exec_ext in '' $ac_executable_extensions; do
2383   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2384     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386     break 2
2387   fi
2388 done
2389 done
2390
2391   ;;
2392 esac
2393 fi
2394 DX_PERL=$ac_cv_path_DX_PERL
2395
2396 if test -n "$DX_PERL"; then
2397   echo "$as_me:$LINENO: result: $DX_PERL" >&5
2398 echo "${ECHO_T}$DX_PERL" >&6
2399 else
2400   echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2402 fi
2403
2404 fi
2405 if test -z "$ac_cv_path_DX_PERL"; then
2406   ac_pt_DX_PERL=$DX_PERL
2407   # Extract the first word of "perl", so it can be a program name with args.
2408 set dummy perl; ac_word=$2
2409 echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2411 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then
2412   echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414   case $ac_pt_DX_PERL in
2415   [\\/]* | ?:[\\/]*)
2416   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
2417   ;;
2418   *)
2419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422   IFS=$as_save_IFS
2423   test -z "$as_dir" && as_dir=.
2424   for ac_exec_ext in '' $ac_executable_extensions; do
2425   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428     break 2
2429   fi
2430 done
2431 done
2432
2433   ;;
2434 esac
2435 fi
2436 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
2437
2438 if test -n "$ac_pt_DX_PERL"; then
2439   echo "$as_me:$LINENO: result: $ac_pt_DX_PERL" >&5
2440 echo "${ECHO_T}$ac_pt_DX_PERL" >&6
2441 else
2442   echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6
2444 fi
2445
2446   DX_PERL=$ac_pt_DX_PERL
2447 else
2448   DX_PERL="$ac_cv_path_DX_PERL"
2449 fi
2450
2451 if test "$DX_FLAG_doc$DX_PERL" = 1; then
2452     { echo "$as_me:$LINENO: WARNING: perl not found - will not generate any doxygen documentation" >&5
2453 echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
2454     DX_FLAG_doc=0
2455
2456 fi
2457
2458     :
2459 fi
2460 if test "$DX_FLAG_doc" = 1; then
2461
2462
2463 if :; then
2464   DX_COND_doc_TRUE=
2465   DX_COND_doc_FALSE='#'
2466 else
2467   DX_COND_doc_TRUE='#'
2468   DX_COND_doc_FALSE=
2469 fi
2470
2471     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
2472
2473     :
2474 else
2475
2476
2477 if false; then
2478   DX_COND_doc_TRUE=
2479   DX_COND_doc_FALSE='#'
2480 else
2481   DX_COND_doc_TRUE='#'
2482   DX_COND_doc_FALSE=
2483 fi
2484
2485
2486     :
2487 fi
2488
2489
2490 # Dot for graphics:
2491
2492
2493
2494     # Check whether --enable-doxygen-dot or --disable-doxygen-dot was given.
2495 if test "${enable_doxygen_dot+set}" = set; then
2496   enableval="$enable_doxygen_dot"
2497
2498 case "$enableval" in
2499 #(
2500 y|Y|yes|Yes|YES)
2501     DX_FLAG_dot=1
2502
2503
2504 test "$DX_FLAG_doc" = "1" \
2505 || { { echo "$as_me:$LINENO: error: doxygen-dot requires doxygen-dot" >&5
2506 echo "$as_me: error: doxygen-dot requires doxygen-dot" >&2;}
2507    { (exit 1); exit 1; }; }
2508
2509 ;; #(
2510 n|N|no|No|NO)
2511     DX_FLAG_dot=0
2512
2513 ;; #(
2514 *)
2515     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-dot" >&5
2516 echo "$as_me: error: invalid value '$enableval' given to doxygen-dot" >&2;}
2517    { (exit 1); exit 1; }; }
2518 ;;
2519 esac
2520
2521 else
2522
2523 DX_FLAG_dot=1
2524
2525
2526 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
2527
2528
2529
2530 fi;
2531 if test "$DX_FLAG_dot" = 1; then
2532
2533 if test -n "$ac_tool_prefix"; then
2534   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
2535 set dummy ${ac_tool_prefix}dot; ac_word=$2
2536 echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2538 if test "${ac_cv_path_DX_DOT+set}" = set; then
2539   echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541   case $DX_DOT in
2542   [\\/]* | ?:[\\/]*)
2543   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
2544   ;;
2545   *)
2546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549   IFS=$as_save_IFS
2550   test -z "$as_dir" && as_dir=.
2551   for ac_exec_ext in '' $ac_executable_extensions; do
2552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555     break 2
2556   fi
2557 done
2558 done
2559
2560   ;;
2561 esac
2562 fi
2563 DX_DOT=$ac_cv_path_DX_DOT
2564
2565 if test -n "$DX_DOT"; then
2566   echo "$as_me:$LINENO: result: $DX_DOT" >&5
2567 echo "${ECHO_T}$DX_DOT" >&6
2568 else
2569   echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6
2571 fi
2572
2573 fi
2574 if test -z "$ac_cv_path_DX_DOT"; then
2575   ac_pt_DX_DOT=$DX_DOT
2576   # Extract the first word of "dot", so it can be a program name with args.
2577 set dummy dot; ac_word=$2
2578 echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2580 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then
2581   echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583   case $ac_pt_DX_DOT in
2584   [\\/]* | ?:[\\/]*)
2585   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
2586   ;;
2587   *)
2588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591   IFS=$as_save_IFS
2592   test -z "$as_dir" && as_dir=.
2593   for ac_exec_ext in '' $ac_executable_extensions; do
2594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597     break 2
2598   fi
2599 done
2600 done
2601
2602   ;;
2603 esac
2604 fi
2605 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
2606
2607 if test -n "$ac_pt_DX_DOT"; then
2608   echo "$as_me:$LINENO: result: $ac_pt_DX_DOT" >&5
2609 echo "${ECHO_T}$ac_pt_DX_DOT" >&6
2610 else
2611   echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2613 fi
2614
2615   DX_DOT=$ac_pt_DX_DOT
2616 else
2617   DX_DOT="$ac_cv_path_DX_DOT"
2618 fi
2619
2620 if test "$DX_FLAG_dot$DX_DOT" = 1; then
2621     { echo "$as_me:$LINENO: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
2622 echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
2623     DX_FLAG_dot=0
2624
2625 fi
2626
2627     :
2628 fi
2629 if test "$DX_FLAG_dot" = 1; then
2630
2631
2632 if :; then
2633   DX_COND_dot_TRUE=
2634   DX_COND_dot_FALSE='#'
2635 else
2636   DX_COND_dot_TRUE='#'
2637   DX_COND_dot_FALSE=
2638 fi
2639
2640     DX_ENV="$DX_ENV HAVE_DOT='YES'"
2641
2642              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
2643
2644     :
2645 else
2646
2647
2648 if false; then
2649   DX_COND_dot_TRUE=
2650   DX_COND_dot_FALSE='#'
2651 else
2652   DX_COND_dot_TRUE='#'
2653   DX_COND_dot_FALSE=
2654 fi
2655
2656     DX_ENV="$DX_ENV HAVE_DOT='NO'"
2657
2658     :
2659 fi
2660
2661
2662 # Man pages generation:
2663
2664
2665
2666     # Check whether --enable-doxygen-man or --disable-doxygen-man was given.
2667 if test "${enable_doxygen_man+set}" = set; then
2668   enableval="$enable_doxygen_man"
2669
2670 case "$enableval" in
2671 #(
2672 y|Y|yes|Yes|YES)
2673     DX_FLAG_man=1
2674
2675
2676 test "$DX_FLAG_doc" = "1" \
2677 || { { echo "$as_me:$LINENO: error: doxygen-man requires doxygen-man" >&5
2678 echo "$as_me: error: doxygen-man requires doxygen-man" >&2;}
2679    { (exit 1); exit 1; }; }
2680
2681 ;; #(
2682 n|N|no|No|NO)
2683     DX_FLAG_man=0
2684
2685 ;; #(
2686 *)
2687     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-man" >&5
2688 echo "$as_me: error: invalid value '$enableval' given to doxygen-man" >&2;}
2689    { (exit 1); exit 1; }; }
2690 ;;
2691 esac
2692
2693 else
2694
2695 DX_FLAG_man=0
2696
2697
2698 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
2699
2700
2701
2702 fi;
2703 if test "$DX_FLAG_man" = 1; then
2704
2705     :
2706 fi
2707 if test "$DX_FLAG_man" = 1; then
2708
2709
2710 if :; then
2711   DX_COND_man_TRUE=
2712   DX_COND_man_FALSE='#'
2713 else
2714   DX_COND_man_TRUE='#'
2715   DX_COND_man_FALSE=
2716 fi
2717
2718     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
2719
2720     :
2721 else
2722
2723
2724 if false; then
2725   DX_COND_man_TRUE=
2726   DX_COND_man_FALSE='#'
2727 else
2728   DX_COND_man_TRUE='#'
2729   DX_COND_man_FALSE=
2730 fi
2731
2732     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
2733
2734     :
2735 fi
2736
2737
2738 # RTF file generation:
2739
2740
2741
2742     # Check whether --enable-doxygen-rtf or --disable-doxygen-rtf was given.
2743 if test "${enable_doxygen_rtf+set}" = set; then
2744   enableval="$enable_doxygen_rtf"
2745
2746 case "$enableval" in
2747 #(
2748 y|Y|yes|Yes|YES)
2749     DX_FLAG_rtf=1
2750
2751
2752 test "$DX_FLAG_doc" = "1" \
2753 || { { echo "$as_me:$LINENO: error: doxygen-rtf requires doxygen-rtf" >&5
2754 echo "$as_me: error: doxygen-rtf requires doxygen-rtf" >&2;}
2755    { (exit 1); exit 1; }; }
2756
2757 ;; #(
2758 n|N|no|No|NO)
2759     DX_FLAG_rtf=0
2760
2761 ;; #(
2762 *)
2763     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-rtf" >&5
2764 echo "$as_me: error: invalid value '$enableval' given to doxygen-rtf" >&2;}
2765    { (exit 1); exit 1; }; }
2766 ;;
2767 esac
2768
2769 else
2770
2771 DX_FLAG_rtf=0
2772
2773
2774 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
2775
2776
2777
2778 fi;
2779 if test "$DX_FLAG_rtf" = 1; then
2780
2781     :
2782 fi
2783 if test "$DX_FLAG_rtf" = 1; then
2784
2785
2786 if :; then
2787   DX_COND_rtf_TRUE=
2788   DX_COND_rtf_FALSE='#'
2789 else
2790   DX_COND_rtf_TRUE='#'
2791   DX_COND_rtf_FALSE=
2792 fi
2793
2794     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
2795
2796     :
2797 else
2798
2799
2800 if false; then
2801   DX_COND_rtf_TRUE=
2802   DX_COND_rtf_FALSE='#'
2803 else
2804   DX_COND_rtf_TRUE='#'
2805   DX_COND_rtf_FALSE=
2806 fi
2807
2808     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
2809
2810     :
2811 fi
2812
2813
2814 # XML file generation:
2815
2816
2817
2818     # Check whether --enable-doxygen-xml or --disable-doxygen-xml was given.
2819 if test "${enable_doxygen_xml+set}" = set; then
2820   enableval="$enable_doxygen_xml"
2821
2822 case "$enableval" in
2823 #(
2824 y|Y|yes|Yes|YES)
2825     DX_FLAG_xml=1
2826
2827
2828 test "$DX_FLAG_doc" = "1" \
2829 || { { echo "$as_me:$LINENO: error: doxygen-xml requires doxygen-xml" >&5
2830 echo "$as_me: error: doxygen-xml requires doxygen-xml" >&2;}
2831    { (exit 1); exit 1; }; }
2832
2833 ;; #(
2834 n|N|no|No|NO)
2835     DX_FLAG_xml=0
2836
2837 ;; #(
2838 *)
2839     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-xml" >&5
2840 echo "$as_me: error: invalid value '$enableval' given to doxygen-xml" >&2;}
2841    { (exit 1); exit 1; }; }
2842 ;;
2843 esac
2844
2845 else
2846
2847 DX_FLAG_xml=0
2848
2849
2850 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
2851
2852
2853
2854 fi;
2855 if test "$DX_FLAG_xml" = 1; then
2856
2857     :
2858 fi
2859 if test "$DX_FLAG_xml" = 1; then
2860
2861
2862 if :; then
2863   DX_COND_xml_TRUE=
2864   DX_COND_xml_FALSE='#'
2865 else
2866   DX_COND_xml_TRUE='#'
2867   DX_COND_xml_FALSE=
2868 fi
2869
2870     DX_ENV="$DX_ENV GENERATE_XML='YES'"
2871
2872     :
2873 else
2874
2875
2876 if false; then
2877   DX_COND_xml_TRUE=
2878   DX_COND_xml_FALSE='#'
2879 else
2880   DX_COND_xml_TRUE='#'
2881   DX_COND_xml_FALSE=
2882 fi
2883
2884     DX_ENV="$DX_ENV GENERATE_XML='NO'"
2885
2886     :
2887 fi
2888
2889
2890 # (Compressed) HTML help generation:
2891
2892
2893
2894     # Check whether --enable-doxygen-chm or --disable-doxygen-chm was given.
2895 if test "${enable_doxygen_chm+set}" = set; then
2896   enableval="$enable_doxygen_chm"
2897
2898 case "$enableval" in
2899 #(
2900 y|Y|yes|Yes|YES)
2901     DX_FLAG_chm=1
2902
2903
2904 test "$DX_FLAG_doc" = "1" \
2905 || { { echo "$as_me:$LINENO: error: doxygen-chm requires doxygen-chm" >&5
2906 echo "$as_me: error: doxygen-chm requires doxygen-chm" >&2;}
2907    { (exit 1); exit 1; }; }
2908
2909 ;; #(
2910 n|N|no|No|NO)
2911     DX_FLAG_chm=0
2912
2913 ;; #(
2914 *)
2915     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chm" >&5
2916 echo "$as_me: error: invalid value '$enableval' given to doxygen-chm" >&2;}
2917    { (exit 1); exit 1; }; }
2918 ;;
2919 esac
2920
2921 else
2922
2923 DX_FLAG_chm=0
2924
2925
2926 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
2927
2928
2929
2930 fi;
2931 if test "$DX_FLAG_chm" = 1; then
2932
2933 if test -n "$ac_tool_prefix"; then
2934   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}hhc; ac_word=$2
2936 echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938 if test "${ac_cv_path_DX_HHC+set}" = set; then
2939   echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941   case $DX_HHC in
2942   [\\/]* | ?:[\\/]*)
2943   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
2944   ;;
2945   *)
2946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949   IFS=$as_save_IFS
2950   test -z "$as_dir" && as_dir=.
2951   for ac_exec_ext in '' $ac_executable_extensions; do
2952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955     break 2
2956   fi
2957 done
2958 done
2959
2960   ;;
2961 esac
2962 fi
2963 DX_HHC=$ac_cv_path_DX_HHC
2964
2965 if test -n "$DX_HHC"; then
2966   echo "$as_me:$LINENO: result: $DX_HHC" >&5
2967 echo "${ECHO_T}$DX_HHC" >&6
2968 else
2969   echo "$as_me:$LINENO: result: no" >&5
2970 echo "${ECHO_T}no" >&6
2971 fi
2972
2973 fi
2974 if test -z "$ac_cv_path_DX_HHC"; then
2975   ac_pt_DX_HHC=$DX_HHC
2976   # Extract the first word of "hhc", so it can be a program name with args.
2977 set dummy hhc; ac_word=$2
2978 echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2980 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then
2981   echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983   case $ac_pt_DX_HHC in
2984   [\\/]* | ?:[\\/]*)
2985   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
2986   ;;
2987   *)
2988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991   IFS=$as_save_IFS
2992   test -z "$as_dir" && as_dir=.
2993   for ac_exec_ext in '' $ac_executable_extensions; do
2994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997     break 2
2998   fi
2999 done
3000 done
3001
3002   ;;
3003 esac
3004 fi
3005 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
3006
3007 if test -n "$ac_pt_DX_HHC"; then
3008   echo "$as_me:$LINENO: result: $ac_pt_DX_HHC" >&5
3009 echo "${ECHO_T}$ac_pt_DX_HHC" >&6
3010 else
3011   echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6
3013 fi
3014
3015   DX_HHC=$ac_pt_DX_HHC
3016 else
3017   DX_HHC="$ac_cv_path_DX_HHC"
3018 fi
3019
3020 if test "$DX_FLAG_chm$DX_HHC" = 1; then
3021     { echo "$as_me:$LINENO: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
3022 echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
3023     DX_FLAG_chm=0
3024
3025 fi
3026
3027     :
3028 fi
3029 if test "$DX_FLAG_chm" = 1; then
3030
3031
3032 if :; then
3033   DX_COND_chm_TRUE=
3034   DX_COND_chm_FALSE='#'
3035 else
3036   DX_COND_chm_TRUE='#'
3037   DX_COND_chm_FALSE=
3038 fi
3039
3040     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
3041
3042              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3043
3044              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
3045
3046     :
3047 else
3048
3049
3050 if false; then
3051   DX_COND_chm_TRUE=
3052   DX_COND_chm_FALSE='#'
3053 else
3054   DX_COND_chm_TRUE='#'
3055   DX_COND_chm_FALSE=
3056 fi
3057
3058     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
3059
3060     :
3061 fi
3062
3063
3064 # Seperate CHI file generation.
3065
3066
3067
3068     # Check whether --enable-doxygen-chi or --disable-doxygen-chi was given.
3069 if test "${enable_doxygen_chi+set}" = set; then
3070   enableval="$enable_doxygen_chi"
3071
3072 case "$enableval" in
3073 #(
3074 y|Y|yes|Yes|YES)
3075     DX_FLAG_chi=1
3076
3077
3078 test "$DX_FLAG_chm" = "1" \
3079 || { { echo "$as_me:$LINENO: error: doxygen-chi requires doxygen-chi" >&5
3080 echo "$as_me: error: doxygen-chi requires doxygen-chi" >&2;}
3081    { (exit 1); exit 1; }; }
3082
3083 ;; #(
3084 n|N|no|No|NO)
3085     DX_FLAG_chi=0
3086
3087 ;; #(
3088 *)
3089     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chi" >&5
3090 echo "$as_me: error: invalid value '$enableval' given to doxygen-chi" >&2;}
3091    { (exit 1); exit 1; }; }
3092 ;;
3093 esac
3094
3095 else
3096
3097 DX_FLAG_chi=0
3098
3099
3100 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
3101
3102
3103
3104 fi;
3105 if test "$DX_FLAG_chi" = 1; then
3106
3107     :
3108 fi
3109 if test "$DX_FLAG_chi" = 1; then
3110
3111
3112 if :; then
3113   DX_COND_chi_TRUE=
3114   DX_COND_chi_FALSE='#'
3115 else
3116   DX_COND_chi_TRUE='#'
3117   DX_COND_chi_FALSE=
3118 fi
3119
3120     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
3121
3122     :
3123 else
3124
3125
3126 if false; then
3127   DX_COND_chi_TRUE=
3128   DX_COND_chi_FALSE='#'
3129 else
3130   DX_COND_chi_TRUE='#'
3131   DX_COND_chi_FALSE=
3132 fi
3133
3134     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
3135
3136     :
3137 fi
3138
3139
3140 # Plain HTML pages generation:
3141
3142
3143
3144     # Check whether --enable-doxygen-html or --disable-doxygen-html was given.
3145 if test "${enable_doxygen_html+set}" = set; then
3146   enableval="$enable_doxygen_html"
3147
3148 case "$enableval" in
3149 #(
3150 y|Y|yes|Yes|YES)
3151     DX_FLAG_html=1
3152
3153
3154 test "$DX_FLAG_doc" = "1" \
3155 || { { echo "$as_me:$LINENO: error: doxygen-html requires doxygen-html" >&5
3156 echo "$as_me: error: doxygen-html requires doxygen-html" >&2;}
3157    { (exit 1); exit 1; }; }
3158
3159 test "$DX_FLAG_chm" = "0" \
3160 || { { echo "$as_me:$LINENO: error: doxygen-html contradicts doxygen-html" >&5
3161 echo "$as_me: error: doxygen-html contradicts doxygen-html" >&2;}
3162    { (exit 1); exit 1; }; }
3163
3164 ;; #(
3165 n|N|no|No|NO)
3166     DX_FLAG_html=0
3167
3168 ;; #(
3169 *)
3170     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-html" >&5
3171 echo "$as_me: error: invalid value '$enableval' given to doxygen-html" >&2;}
3172    { (exit 1); exit 1; }; }
3173 ;;
3174 esac
3175
3176 else
3177
3178 DX_FLAG_html=1
3179
3180
3181 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
3182
3183
3184 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
3185
3186
3187
3188 fi;
3189 if test "$DX_FLAG_html" = 1; then
3190
3191     :
3192 fi
3193 if test "$DX_FLAG_html" = 1; then
3194
3195
3196 if :; then
3197   DX_COND_html_TRUE=
3198   DX_COND_html_FALSE='#'
3199 else
3200   DX_COND_html_TRUE='#'
3201   DX_COND_html_FALSE=
3202 fi
3203
3204     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3205
3206     :
3207 else
3208
3209
3210 if false; then
3211   DX_COND_html_TRUE=
3212   DX_COND_html_FALSE='#'
3213 else
3214   DX_COND_html_TRUE='#'
3215   DX_COND_html_FALSE=
3216 fi
3217
3218     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
3219
3220     :
3221 fi
3222
3223
3224 # PostScript file generation:
3225
3226
3227
3228     # Check whether --enable-doxygen-ps or --disable-doxygen-ps was given.
3229 if test "${enable_doxygen_ps+set}" = set; then
3230   enableval="$enable_doxygen_ps"
3231
3232 case "$enableval" in
3233 #(
3234 y|Y|yes|Yes|YES)
3235     DX_FLAG_ps=1
3236
3237
3238 test "$DX_FLAG_doc" = "1" \
3239 || { { echo "$as_me:$LINENO: error: doxygen-ps requires doxygen-ps" >&5
3240 echo "$as_me: error: doxygen-ps requires doxygen-ps" >&2;}
3241    { (exit 1); exit 1; }; }
3242
3243 ;; #(
3244 n|N|no|No|NO)
3245     DX_FLAG_ps=0
3246
3247 ;; #(
3248 *)
3249     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-ps" >&5
3250 echo "$as_me: error: invalid value '$enableval' given to doxygen-ps" >&2;}
3251    { (exit 1); exit 1; }; }
3252 ;;
3253 esac
3254
3255 else
3256
3257 DX_FLAG_ps=0
3258
3259
3260 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
3261
3262
3263
3264 fi;
3265 if test "$DX_FLAG_ps" = 1; then
3266
3267 if test -n "$ac_tool_prefix"; then
3268   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
3269 set dummy ${ac_tool_prefix}latex; ac_word=$2
3270 echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272 if test "${ac_cv_path_DX_LATEX+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275   case $DX_LATEX in
3276   [\\/]* | ?:[\\/]*)
3277   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
3278   ;;
3279   *)
3280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283   IFS=$as_save_IFS
3284   test -z "$as_dir" && as_dir=.
3285   for ac_exec_ext in '' $ac_executable_extensions; do
3286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289     break 2
3290   fi
3291 done
3292 done
3293
3294   ;;
3295 esac
3296 fi
3297 DX_LATEX=$ac_cv_path_DX_LATEX
3298
3299 if test -n "$DX_LATEX"; then
3300   echo "$as_me:$LINENO: result: $DX_LATEX" >&5
3301 echo "${ECHO_T}$DX_LATEX" >&6
3302 else
3303   echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6
3305 fi
3306
3307 fi
3308 if test -z "$ac_cv_path_DX_LATEX"; then
3309   ac_pt_DX_LATEX=$DX_LATEX
3310   # Extract the first word of "latex", so it can be a program name with args.
3311 set dummy latex; ac_word=$2
3312 echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3314 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then
3315   echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317   case $ac_pt_DX_LATEX in
3318   [\\/]* | ?:[\\/]*)
3319   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
3320   ;;
3321   *)
3322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325   IFS=$as_save_IFS
3326   test -z "$as_dir" && as_dir=.
3327   for ac_exec_ext in '' $ac_executable_extensions; do
3328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331     break 2
3332   fi
3333 done
3334 done
3335
3336   ;;
3337 esac
3338 fi
3339 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
3340
3341 if test -n "$ac_pt_DX_LATEX"; then
3342   echo "$as_me:$LINENO: result: $ac_pt_DX_LATEX" >&5
3343 echo "${ECHO_T}$ac_pt_DX_LATEX" >&6
3344 else
3345   echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3347 fi
3348
3349   DX_LATEX=$ac_pt_DX_LATEX
3350 else
3351   DX_LATEX="$ac_cv_path_DX_LATEX"
3352 fi
3353
3354 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
3355     { echo "$as_me:$LINENO: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
3356 echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
3357     DX_FLAG_ps=0
3358
3359 fi
3360
3361
3362 if test -n "$ac_tool_prefix"; then
3363   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3364 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3365 echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370   case $DX_MAKEINDEX in
3371   [\\/]* | ?:[\\/]*)
3372   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3373   ;;
3374   *)
3375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378   IFS=$as_save_IFS
3379   test -z "$as_dir" && as_dir=.
3380   for ac_exec_ext in '' $ac_executable_extensions; do
3381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384     break 2
3385   fi
3386 done
3387 done
3388
3389   ;;
3390 esac
3391 fi
3392 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3393
3394 if test -n "$DX_MAKEINDEX"; then
3395   echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3396 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3397 else
3398   echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6
3400 fi
3401
3402 fi
3403 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3404   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3405   # Extract the first word of "makeindex", so it can be a program name with args.
3406 set dummy makeindex; ac_word=$2
3407 echo "$as_me:$LINENO: checking for $ac_word" >&5
3408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3409 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3410   echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412   case $ac_pt_DX_MAKEINDEX in
3413   [\\/]* | ?:[\\/]*)
3414   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3415   ;;
3416   *)
3417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420   IFS=$as_save_IFS
3421   test -z "$as_dir" && as_dir=.
3422   for ac_exec_ext in '' $ac_executable_extensions; do
3423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426     break 2
3427   fi
3428 done
3429 done
3430
3431   ;;
3432 esac
3433 fi
3434 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3435
3436 if test -n "$ac_pt_DX_MAKEINDEX"; then
3437   echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3438 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3439 else
3440   echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3442 fi
3443
3444   DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3445 else
3446   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3447 fi
3448
3449 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
3450     { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
3451 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
3452     DX_FLAG_ps=0
3453
3454 fi
3455
3456
3457 if test -n "$ac_tool_prefix"; then
3458   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}dvips; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_DX_DVIPS+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   case $DX_DVIPS in
3466   [\\/]* | ?:[\\/]*)
3467   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
3468   ;;
3469   *)
3470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483
3484   ;;
3485 esac
3486 fi
3487 DX_DVIPS=$ac_cv_path_DX_DVIPS
3488
3489 if test -n "$DX_DVIPS"; then
3490   echo "$as_me:$LINENO: result: $DX_DVIPS" >&5
3491 echo "${ECHO_T}$DX_DVIPS" >&6
3492 else
3493   echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3495 fi
3496
3497 fi
3498 if test -z "$ac_cv_path_DX_DVIPS"; then
3499   ac_pt_DX_DVIPS=$DX_DVIPS
3500   # Extract the first word of "dvips", so it can be a program name with args.
3501 set dummy dvips; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then
3505   echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507   case $ac_pt_DX_DVIPS in
3508   [\\/]* | ?:[\\/]*)
3509   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
3510   ;;
3511   *)
3512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517   for ac_exec_ext in '' $ac_executable_extensions; do
3518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521     break 2
3522   fi
3523 done
3524 done
3525
3526   ;;
3527 esac
3528 fi
3529 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
3530
3531 if test -n "$ac_pt_DX_DVIPS"; then
3532   echo "$as_me:$LINENO: result: $ac_pt_DX_DVIPS" >&5
3533 echo "${ECHO_T}$ac_pt_DX_DVIPS" >&6
3534 else
3535   echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6
3537 fi
3538
3539   DX_DVIPS=$ac_pt_DX_DVIPS
3540 else
3541   DX_DVIPS="$ac_cv_path_DX_DVIPS"
3542 fi
3543
3544 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
3545     { echo "$as_me:$LINENO: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
3546 echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
3547     DX_FLAG_ps=0
3548
3549 fi
3550
3551
3552 if test -n "$ac_tool_prefix"; then
3553   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3554 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3555 echo "$as_me:$LINENO: checking for $ac_word" >&5
3556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3558   echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560   case $DX_EGREP in
3561   [\\/]* | ?:[\\/]*)
3562   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3563   ;;
3564   *)
3565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568   IFS=$as_save_IFS
3569   test -z "$as_dir" && as_dir=.
3570   for ac_exec_ext in '' $ac_executable_extensions; do
3571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3574     break 2
3575   fi
3576 done
3577 done
3578
3579   ;;
3580 esac
3581 fi
3582 DX_EGREP=$ac_cv_path_DX_EGREP
3583
3584 if test -n "$DX_EGREP"; then
3585   echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3586 echo "${ECHO_T}$DX_EGREP" >&6
3587 else
3588   echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3590 fi
3591
3592 fi
3593 if test -z "$ac_cv_path_DX_EGREP"; then
3594   ac_pt_DX_EGREP=$DX_EGREP
3595   # Extract the first word of "egrep", so it can be a program name with args.
3596 set dummy egrep; ac_word=$2
3597 echo "$as_me:$LINENO: checking for $ac_word" >&5
3598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3599 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3600   echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602   case $ac_pt_DX_EGREP in
3603   [\\/]* | ?:[\\/]*)
3604   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3605   ;;
3606   *)
3607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3609 do
3610   IFS=$as_save_IFS
3611   test -z "$as_dir" && as_dir=.
3612   for ac_exec_ext in '' $ac_executable_extensions; do
3613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616     break 2
3617   fi
3618 done
3619 done
3620
3621   ;;
3622 esac
3623 fi
3624 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3625
3626 if test -n "$ac_pt_DX_EGREP"; then
3627   echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3628 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3629 else
3630   echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6
3632 fi
3633
3634   DX_EGREP=$ac_pt_DX_EGREP
3635 else
3636   DX_EGREP="$ac_cv_path_DX_EGREP"
3637 fi
3638
3639 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
3640     { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
3641 echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
3642     DX_FLAG_ps=0
3643
3644 fi
3645
3646     :
3647 fi
3648 if test "$DX_FLAG_ps" = 1; then
3649
3650
3651 if :; then
3652   DX_COND_ps_TRUE=
3653   DX_COND_ps_FALSE='#'
3654 else
3655   DX_COND_ps_TRUE='#'
3656   DX_COND_ps_FALSE=
3657 fi
3658
3659
3660     :
3661 else
3662
3663
3664 if false; then
3665   DX_COND_ps_TRUE=
3666   DX_COND_ps_FALSE='#'
3667 else
3668   DX_COND_ps_TRUE='#'
3669   DX_COND_ps_FALSE=
3670 fi
3671
3672
3673     :
3674 fi
3675
3676
3677 # PDF file generation:
3678
3679
3680
3681     # Check whether --enable-doxygen-pdf or --disable-doxygen-pdf was given.
3682 if test "${enable_doxygen_pdf+set}" = set; then
3683   enableval="$enable_doxygen_pdf"
3684
3685 case "$enableval" in
3686 #(
3687 y|Y|yes|Yes|YES)
3688     DX_FLAG_pdf=1
3689
3690
3691 test "$DX_FLAG_doc" = "1" \
3692 || { { echo "$as_me:$LINENO: error: doxygen-pdf requires doxygen-pdf" >&5
3693 echo "$as_me: error: doxygen-pdf requires doxygen-pdf" >&2;}
3694    { (exit 1); exit 1; }; }
3695
3696 ;; #(
3697 n|N|no|No|NO)
3698     DX_FLAG_pdf=0
3699
3700 ;; #(
3701 *)
3702     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-pdf" >&5
3703 echo "$as_me: error: invalid value '$enableval' given to doxygen-pdf" >&2;}
3704    { (exit 1); exit 1; }; }
3705 ;;
3706 esac
3707
3708 else
3709
3710 DX_FLAG_pdf=0
3711
3712
3713 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
3714
3715
3716
3717 fi;
3718 if test "$DX_FLAG_pdf" = 1; then
3719
3720 if test -n "$ac_tool_prefix"; then
3721   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
3722 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
3723 echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then
3726   echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728   case $DX_PDFLATEX in
3729   [\\/]* | ?:[\\/]*)
3730   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
3731   ;;
3732   *)
3733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736   IFS=$as_save_IFS
3737   test -z "$as_dir" && as_dir=.
3738   for ac_exec_ext in '' $ac_executable_extensions; do
3739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3742     break 2
3743   fi
3744 done
3745 done
3746
3747   ;;
3748 esac
3749 fi
3750 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
3751
3752 if test -n "$DX_PDFLATEX"; then
3753   echo "$as_me:$LINENO: result: $DX_PDFLATEX" >&5
3754 echo "${ECHO_T}$DX_PDFLATEX" >&6
3755 else
3756   echo "$as_me:$LINENO: result: no" >&5
3757 echo "${ECHO_T}no" >&6
3758 fi
3759
3760 fi
3761 if test -z "$ac_cv_path_DX_PDFLATEX"; then
3762   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
3763   # Extract the first word of "pdflatex", so it can be a program name with args.
3764 set dummy pdflatex; ac_word=$2
3765 echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then
3768   echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770   case $ac_pt_DX_PDFLATEX in
3771   [\\/]* | ?:[\\/]*)
3772   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
3773   ;;
3774   *)
3775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH
3777 do
3778   IFS=$as_save_IFS
3779   test -z "$as_dir" && as_dir=.
3780   for ac_exec_ext in '' $ac_executable_extensions; do
3781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3784     break 2
3785   fi
3786 done
3787 done
3788
3789   ;;
3790 esac
3791 fi
3792 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
3793
3794 if test -n "$ac_pt_DX_PDFLATEX"; then
3795   echo "$as_me:$LINENO: result: $ac_pt_DX_PDFLATEX" >&5
3796 echo "${ECHO_T}$ac_pt_DX_PDFLATEX" >&6
3797 else
3798   echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6
3800 fi
3801
3802   DX_PDFLATEX=$ac_pt_DX_PDFLATEX
3803 else
3804   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
3805 fi
3806
3807 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
3808     { echo "$as_me:$LINENO: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
3809 echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
3810     DX_FLAG_pdf=0
3811
3812 fi
3813
3814
3815 if test -n "$ac_tool_prefix"; then
3816   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3817 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3818 echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3820 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3821   echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823   case $DX_MAKEINDEX in
3824   [\\/]* | ?:[\\/]*)
3825   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3826   ;;
3827   *)
3828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831   IFS=$as_save_IFS
3832   test -z "$as_dir" && as_dir=.
3833   for ac_exec_ext in '' $ac_executable_extensions; do
3834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837     break 2
3838   fi
3839 done
3840 done
3841
3842   ;;
3843 esac
3844 fi
3845 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3846
3847 if test -n "$DX_MAKEINDEX"; then
3848   echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3849 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3850 else
3851   echo "$as_me:$LINENO: result: no" >&5
3852 echo "${ECHO_T}no" >&6
3853 fi
3854
3855 fi
3856 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3857   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3858   # Extract the first word of "makeindex", so it can be a program name with args.
3859 set dummy makeindex; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865   case $ac_pt_DX_MAKEINDEX in
3866   [\\/]* | ?:[\\/]*)
3867   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3868   ;;
3869   *)
3870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873   IFS=$as_save_IFS
3874   test -z "$as_dir" && as_dir=.
3875   for ac_exec_ext in '' $ac_executable_extensions; do
3876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879     break 2
3880   fi
3881 done
3882 done
3883
3884   ;;
3885 esac
3886 fi
3887 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3888
3889 if test -n "$ac_pt_DX_MAKEINDEX"; then
3890   echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3891 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3892 else
3893   echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3895 fi
3896
3897   DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3898 else
3899   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3900 fi
3901
3902 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
3903     { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
3904 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
3905     DX_FLAG_pdf=0
3906
3907 fi
3908
3909
3910 if test -n "$ac_tool_prefix"; then
3911   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3913 echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   case $DX_EGREP in
3919   [\\/]* | ?:[\\/]*)
3920   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3921   ;;
3922   *)
3923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926   IFS=$as_save_IFS
3927   test -z "$as_dir" && as_dir=.
3928   for ac_exec_ext in '' $ac_executable_extensions; do
3929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932     break 2
3933   fi
3934 done
3935 done
3936
3937   ;;
3938 esac
3939 fi
3940 DX_EGREP=$ac_cv_path_DX_EGREP
3941
3942 if test -n "$DX_EGREP"; then
3943   echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3944 echo "${ECHO_T}$DX_EGREP" >&6
3945 else
3946   echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3948 fi
3949
3950 fi
3951 if test -z "$ac_cv_path_DX_EGREP"; then
3952   ac_pt_DX_EGREP=$DX_EGREP
3953   # Extract the first word of "egrep", so it can be a program name with args.
3954 set dummy egrep; ac_word=$2
3955 echo "$as_me:$LINENO: checking for $ac_word" >&5
3956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   case $ac_pt_DX_EGREP in
3961   [\\/]* | ?:[\\/]*)
3962   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3963   ;;
3964   *)
3965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968   IFS=$as_save_IFS
3969   test -z "$as_dir" && as_dir=.
3970   for ac_exec_ext in '' $ac_executable_extensions; do
3971   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3974     break 2
3975   fi
3976 done
3977 done
3978
3979   ;;
3980 esac
3981 fi
3982 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3983
3984 if test -n "$ac_pt_DX_EGREP"; then
3985   echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3986 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3987 else
3988   echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3990 fi
3991
3992   DX_EGREP=$ac_pt_DX_EGREP
3993 else
3994   DX_EGREP="$ac_cv_path_DX_EGREP"
3995 fi
3996
3997 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
3998     { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
3999 echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
4000     DX_FLAG_pdf=0
4001
4002 fi
4003
4004     :
4005 fi
4006 if test "$DX_FLAG_pdf" = 1; then
4007
4008
4009 if :; then
4010   DX_COND_pdf_TRUE=
4011   DX_COND_pdf_FALSE='#'
4012 else
4013   DX_COND_pdf_TRUE='#'
4014   DX_COND_pdf_FALSE=
4015 fi
4016
4017
4018     :
4019 else
4020
4021
4022 if false; then
4023   DX_COND_pdf_TRUE=
4024   DX_COND_pdf_FALSE='#'
4025 else
4026   DX_COND_pdf_TRUE='#'
4027   DX_COND_pdf_FALSE=
4028 fi
4029
4030
4031     :
4032 fi
4033
4034
4035 # LaTeX generation for PS and/or PDF:
4036 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
4037
4038
4039 if :; then
4040   DX_COND_latex_TRUE=
4041   DX_COND_latex_FALSE='#'
4042 else
4043   DX_COND_latex_TRUE='#'
4044   DX_COND_latex_FALSE=
4045 fi
4046
4047     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
4048
4049 else
4050
4051
4052 if false; then
4053   DX_COND_latex_TRUE=
4054   DX_COND_latex_FALSE='#'
4055 else
4056   DX_COND_latex_TRUE='#'
4057   DX_COND_latex_FALSE=
4058 fi
4059
4060     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
4061
4062 fi
4063
4064 # Paper size for PS and/or PDF:
4065
4066 case "$DOXYGEN_PAPER_SIZE" in
4067 #(
4068 "")
4069     DOXYGEN_PAPER_SIZE=""
4070
4071 ;; #(
4072 a4wide|a4|letter|legal|executive)
4073     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
4074
4075 ;; #(
4076 *)
4077     { { echo "$as_me:$LINENO: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&5
4078 echo "$as_me: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&2;}
4079    { (exit 1); exit 1; }; }
4080 ;;
4081 esac
4082
4083 #For debugging:
4084 #echo DX_FLAG_doc=$DX_FLAG_doc
4085 #echo DX_FLAG_dot=$DX_FLAG_dot
4086 #echo DX_FLAG_man=$DX_FLAG_man
4087 #echo DX_FLAG_html=$DX_FLAG_html
4088 #echo DX_FLAG_chm=$DX_FLAG_chm
4089 #echo DX_FLAG_chi=$DX_FLAG_chi
4090 #echo DX_FLAG_rtf=$DX_FLAG_rtf
4091 #echo DX_FLAG_xml=$DX_FLAG_xml
4092 #echo DX_FLAG_pdf=$DX_FLAG_pdf
4093 #echo DX_FLAG_ps=$DX_FLAG_ps
4094 #echo DX_ENV=$DX_ENV
4095
4096 DX_INCLUDE=
4097
4098 # Check whether --enable-debug or --disable-debug was given.
4099 if test "${enable_debug+set}" = set; then
4100   enableval="$enable_debug"
4101   enable_debug=$enableval
4102 else
4103   enable_debug=no
4104 fi;
4105
4106 if test "$enable_debug" = "yes" ; then
4107     GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
4108     GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
4109 else
4110     GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
4111     GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
4112 fi
4113
4114 ac_ext=c
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 if test -n "$ac_tool_prefix"; then
4120   for ac_prog in gcc gcc3 cc
4121   do
4122     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_prog_CC+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   if test -n "$CC"; then
4130   ac_cv_prog_CC="$CC" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137   for ac_exec_ext in '' $ac_executable_extensions; do
4138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141     break 2
4142   fi
4143 done
4144 done
4145
4146 fi
4147 fi
4148 CC=$ac_cv_prog_CC
4149 if test -n "$CC"; then
4150   echo "$as_me:$LINENO: result: $CC" >&5
4151 echo "${ECHO_T}$CC" >&6
4152 else
4153   echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6
4155 fi
4156
4157     test -n "$CC" && break
4158   done
4159 fi
4160 if test -z "$CC"; then
4161   ac_ct_CC=$CC
4162   for ac_prog in gcc gcc3 cc
4163 do
4164   # Extract the first word of "$ac_prog", so it can be a program name with args.
4165 set dummy $ac_prog; ac_word=$2
4166 echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   if test -n "$ac_ct_CC"; then
4172   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4176 do
4177   IFS=$as_save_IFS
4178   test -z "$as_dir" && as_dir=.
4179   for ac_exec_ext in '' $ac_executable_extensions; do
4180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181     ac_cv_prog_ac_ct_CC="$ac_prog"
4182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183     break 2
4184   fi
4185 done
4186 done
4187
4188 fi
4189 fi
4190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4191 if test -n "$ac_ct_CC"; then
4192   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4193 echo "${ECHO_T}$ac_ct_CC" >&6
4194 else
4195   echo "$as_me:$LINENO: result: no" >&5
4196 echo "${ECHO_T}no" >&6
4197 fi
4198
4199   test -n "$ac_ct_CC" && break
4200 done
4201
4202   CC=$ac_ct_CC
4203 fi
4204
4205
4206 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4207 See \`config.log' for more details." >&5
4208 echo "$as_me: error: no acceptable C compiler found in \$PATH
4209 See \`config.log' for more details." >&2;}
4210    { (exit 1); exit 1; }; }
4211
4212 # Provide some information about the compiler.
4213 echo "$as_me:$LINENO:" \
4214      "checking for C compiler version" >&5
4215 ac_compiler=`set X $ac_compile; echo $2`
4216 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4217   (eval $ac_compiler --version </dev/null >&5) 2>&5
4218   ac_status=$?
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); }
4221 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4222   (eval $ac_compiler -v </dev/null >&5) 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); }
4226 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4227   (eval $ac_compiler -V </dev/null >&5) 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }
4231
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h.  */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h.  */
4238
4239 int
4240 main ()
4241 {
4242
4243   ;
4244   return 0;
4245 }
4246 _ACEOF
4247 ac_clean_files_save=$ac_clean_files
4248 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4249 # Try to create an executable without -o first, disregard a.out.
4250 # It will help us diagnose broken compilers, and finding out an intuition
4251 # of exeext.
4252 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4253 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4254 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4255 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4256   (eval $ac_link_default) 2>&5
4257   ac_status=$?
4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259   (exit $ac_status); }; then
4260   # Find the output, starting from the most likely.  This scheme is
4261 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4262 # resort.
4263
4264 # Be careful to initialize this variable, since it used to be cached.
4265 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4266 ac_cv_exeext=
4267 # b.out is created by i960 compilers.
4268 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4269 do
4270   test -f "$ac_file" || continue
4271   case $ac_file in
4272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4273         ;;
4274     conftest.$ac_ext )
4275         # This is the source file.
4276         ;;
4277     [ab].out )
4278         # We found the default executable, but exeext='' is most
4279         # certainly right.
4280         break;;
4281     *.* )
4282         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4283         # FIXME: I believe we export ac_cv_exeext for Libtool,
4284         # but it would be cool to find out if it's true.  Does anybody
4285         # maintain Libtool? --akim.
4286         export ac_cv_exeext
4287         break;;
4288     * )
4289         break;;
4290   esac
4291 done
4292 else
4293   echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4295
4296 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4297 See \`config.log' for more details." >&5
4298 echo "$as_me: error: C compiler cannot create executables
4299 See \`config.log' for more details." >&2;}
4300    { (exit 77); exit 77; }; }
4301 fi
4302
4303 ac_exeext=$ac_cv_exeext
4304 echo "$as_me:$LINENO: result: $ac_file" >&5
4305 echo "${ECHO_T}$ac_file" >&6
4306
4307 # Check the compiler produces executables we can run.  If not, either
4308 # the compiler is broken, or we cross compile.
4309 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4310 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4311 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4312 # If not cross compiling, check that we can run a simple program.
4313 if test "$cross_compiling" != yes; then
4314   if { ac_try='./$ac_file'
4315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316   (eval $ac_try) 2>&5
4317   ac_status=$?
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); }; }; then
4320     cross_compiling=no
4321   else
4322     if test "$cross_compiling" = maybe; then
4323         cross_compiling=yes
4324     else
4325         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4326 If you meant to cross compile, use \`--host'.
4327 See \`config.log' for more details." >&5
4328 echo "$as_me: error: cannot run C compiled programs.
4329 If you meant to cross compile, use \`--host'.
4330 See \`config.log' for more details." >&2;}
4331    { (exit 1); exit 1; }; }
4332     fi
4333   fi
4334 fi
4335 echo "$as_me:$LINENO: result: yes" >&5
4336 echo "${ECHO_T}yes" >&6
4337
4338 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4339 ac_clean_files=$ac_clean_files_save
4340 # Check the compiler produces executables we can run.  If not, either
4341 # the compiler is broken, or we cross compile.
4342 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4343 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4344 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4345 echo "${ECHO_T}$cross_compiling" >&6
4346
4347 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4348 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4350   (eval $ac_link) 2>&5
4351   ac_status=$?
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); }; then
4354   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4355 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4356 # work properly (i.e., refer to `conftest.exe'), while it won't with
4357 # `rm'.
4358 for ac_file in conftest.exe conftest conftest.*; do
4359   test -f "$ac_file" || continue
4360   case $ac_file in
4361     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4362     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4363           export ac_cv_exeext
4364           break;;
4365     * ) break;;
4366   esac
4367 done
4368 else
4369   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4370 See \`config.log' for more details." >&5
4371 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4372 See \`config.log' for more details." >&2;}
4373    { (exit 1); exit 1; }; }
4374 fi
4375
4376 rm -f conftest$ac_cv_exeext
4377 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4378 echo "${ECHO_T}$ac_cv_exeext" >&6
4379
4380 rm -f conftest.$ac_ext
4381 EXEEXT=$ac_cv_exeext
4382 ac_exeext=$EXEEXT
4383 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4384 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4385 if test "${ac_cv_objext+set}" = set; then
4386   echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388   cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h.  */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h.  */
4394
4395 int
4396 main ()
4397 {
4398
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 rm -f conftest.o conftest.obj
4404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405   (eval $ac_compile) 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); }; then
4409   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4410   case $ac_file in
4411     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4412     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4413        break;;
4414   esac
4415 done
4416 else
4417   echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4421 See \`config.log' for more details." >&5
4422 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4423 See \`config.log' for more details." >&2;}
4424    { (exit 1); exit 1; }; }
4425 fi
4426
4427 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4428 fi
4429 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4430 echo "${ECHO_T}$ac_cv_objext" >&6
4431 OBJEXT=$ac_cv_objext
4432 ac_objext=$OBJEXT
4433 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4434 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4435 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438   cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h.  */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h.  */
4444
4445 int
4446 main ()
4447 {
4448 #ifndef __GNUC__
4449        choke me
4450 #endif
4451
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 rm -f conftest.$ac_objext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458   (eval $ac_compile) 2>conftest.er1
4459   ac_status=$?
4460   grep -v '^ *+' conftest.er1 >conftest.err
4461   rm -f conftest.er1
4462   cat conftest.err >&5
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); } &&
4465          { ac_try='test -z "$ac_c_werror_flag"
4466                          || test ! -s conftest.err'
4467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468   (eval $ac_try) 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; } &&
4472          { ac_try='test -s conftest.$ac_objext'
4473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474   (eval $ac_try) 2>&5
4475   ac_status=$?
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); }; }; then
4478   ac_compiler_gnu=yes
4479 else
4480   echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4482
4483 ac_compiler_gnu=no
4484 fi
4485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4486 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4487
4488 fi
4489 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4490 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4491 GCC=`test $ac_compiler_gnu = yes && echo yes`
4492 ac_test_CFLAGS=${CFLAGS+set}
4493 ac_save_CFLAGS=$CFLAGS
4494 CFLAGS="-g"
4495 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4496 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4497 if test "${ac_cv_prog_cc_g+set}" = set; then
4498   echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500   cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h.  */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h.  */
4506
4507 int
4508 main ()
4509 {
4510
4511   ;
4512   return 0;
4513 }
4514 _ACEOF
4515 rm -f conftest.$ac_objext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517   (eval $ac_compile) 2>conftest.er1
4518   ac_status=$?
4519   grep -v '^ *+' conftest.er1 >conftest.err
4520   rm -f conftest.er1
4521   cat conftest.err >&5
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); } &&
4524          { ac_try='test -z "$ac_c_werror_flag"
4525                          || test ! -s conftest.err'
4526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527   (eval $ac_try) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); }; } &&
4531          { ac_try='test -s conftest.$ac_objext'
4532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533   (eval $ac_try) 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); }; }; then
4537   ac_cv_prog_cc_g=yes
4538 else
4539   echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 ac_cv_prog_cc_g=no
4543 fi
4544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4545 fi
4546 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4547 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4548 if test "$ac_test_CFLAGS" = set; then
4549   CFLAGS=$ac_save_CFLAGS
4550 elif test $ac_cv_prog_cc_g = yes; then
4551   if test "$GCC" = yes; then
4552     CFLAGS="-g -O2"
4553   else
4554     CFLAGS="-g"
4555   fi
4556 else
4557   if test "$GCC" = yes; then
4558     CFLAGS="-O2"
4559   else
4560     CFLAGS=
4561   fi
4562 fi
4563 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4564 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4565 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4566   echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568   ac_cv_prog_cc_stdc=no
4569 ac_save_CC=$CC
4570 cat >conftest.$ac_ext <<_ACEOF
4571 /* confdefs.h.  */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h.  */
4576 #include <stdarg.h>
4577 #include <stdio.h>
4578 #include <sys/types.h>
4579 #include <sys/stat.h>
4580 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4581 struct buf { int x; };
4582 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4583 static char *e (p, i)
4584      char **p;
4585      int i;
4586 {
4587   return p[i];
4588 }
4589 static char *f (char * (*g) (char **, int), char **p, ...)
4590 {
4591   char *s;
4592   va_list v;
4593   va_start (v,p);
4594   s = g (p, va_arg (v,int));
4595   va_end (v);
4596   return s;
4597 }
4598
4599 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4600    function prototypes and stuff, but not '\xHH' hex character constants.
4601    These don't provoke an error unfortunately, instead are silently treated
4602    as 'x'.  The following induces an error, until -std1 is added to get
4603    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4604    array size at least.  It's necessary to write '\x00'==0 to get something
4605    that's true only with -std1.  */
4606 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4607
4608 int test (int i, double x);
4609 struct s1 {int (*f) (int a);};
4610 struct s2 {int (*f) (double a);};
4611 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4612 int argc;
4613 char **argv;
4614 int
4615 main ()
4616 {
4617 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4618   ;
4619   return 0;
4620 }
4621 _ACEOF
4622 # Don't try gcc -ansi; that turns off useful extensions and
4623 # breaks some systems' header files.
4624 # AIX                   -qlanglvl=ansi
4625 # Ultrix and OSF/1      -std1
4626 # HP-UX 10.20 and later -Ae
4627 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4628 # SVR4                  -Xc -D__EXTENSIONS__
4629 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4630 do
4631   CC="$ac_save_CC $ac_arg"
4632   rm -f conftest.$ac_objext
4633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4634   (eval $ac_compile) 2>conftest.er1
4635   ac_status=$?
4636   grep -v '^ *+' conftest.er1 >conftest.err
4637   rm -f conftest.er1
4638   cat conftest.err >&5
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); } &&
4641          { ac_try='test -z "$ac_c_werror_flag"
4642                          || test ! -s conftest.err'
4643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644   (eval $ac_try) 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); }; } &&
4648          { ac_try='test -s conftest.$ac_objext'
4649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650   (eval $ac_try) 2>&5
4651   ac_status=$?
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); }; }; then
4654   ac_cv_prog_cc_stdc=$ac_arg
4655 break
4656 else
4657   echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4659
4660 fi
4661 rm -f conftest.err conftest.$ac_objext
4662 done
4663 rm -f conftest.$ac_ext conftest.$ac_objext
4664 CC=$ac_save_CC
4665
4666 fi
4667
4668 case "x$ac_cv_prog_cc_stdc" in
4669   x|xno)
4670     echo "$as_me:$LINENO: result: none needed" >&5
4671 echo "${ECHO_T}none needed" >&6 ;;
4672   *)
4673     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4674 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4675     CC="$CC $ac_cv_prog_cc_stdc" ;;
4676 esac
4677
4678 # Some people use a C++ compiler to compile C.  Since we use `exit',
4679 # in C++ we need to declare it.  In case someone uses the same compiler
4680 # for both compiling C and C++ we need to have the C++ compiler decide
4681 # the declaration of exit, since it's the most demanding environment.
4682 cat >conftest.$ac_ext <<_ACEOF
4683 #ifndef __cplusplus
4684   choke me
4685 #endif
4686 _ACEOF
4687 rm -f conftest.$ac_objext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689   (eval $ac_compile) 2>conftest.er1
4690   ac_status=$?
4691   grep -v '^ *+' conftest.er1 >conftest.err
4692   rm -f conftest.er1
4693   cat conftest.err >&5
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); } &&
4696          { ac_try='test -z "$ac_c_werror_flag"
4697                          || test ! -s conftest.err'
4698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699   (eval $ac_try) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); }; } &&
4703          { ac_try='test -s conftest.$ac_objext'
4704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; }; then
4709   for ac_declaration in \
4710    '' \
4711    'extern "C" void std::exit (int) throw (); using std::exit;' \
4712    'extern "C" void std::exit (int); using std::exit;' \
4713    'extern "C" void exit (int) throw ();' \
4714    'extern "C" void exit (int);' \
4715    'void exit (int);'
4716 do
4717   cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h.  */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h.  */
4723 $ac_declaration
4724 #include <stdlib.h>
4725 int
4726 main ()
4727 {
4728 exit (42);
4729   ;
4730   return 0;
4731 }
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735   (eval $ac_compile) 2>conftest.er1
4736   ac_status=$?
4737   grep -v '^ *+' conftest.er1 >conftest.err
4738   rm -f conftest.er1
4739   cat conftest.err >&5
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); } &&
4742          { ac_try='test -z "$ac_c_werror_flag"
4743                          || test ! -s conftest.err'
4744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745   (eval $ac_try) 2>&5
4746   ac_status=$?
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); }; } &&
4749          { ac_try='test -s conftest.$ac_objext'
4750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751   (eval $ac_try) 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); }; }; then
4755   :
4756 else
4757   echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 continue
4761 fi
4762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4763   cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h.  */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h.  */
4769 $ac_declaration
4770 int
4771 main ()
4772 {
4773 exit (42);
4774   ;
4775   return 0;
4776 }
4777 _ACEOF
4778 rm -f conftest.$ac_objext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4780   (eval $ac_compile) 2>conftest.er1
4781   ac_status=$?
4782   grep -v '^ *+' conftest.er1 >conftest.err
4783   rm -f conftest.er1
4784   cat conftest.err >&5
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); } &&
4787          { ac_try='test -z "$ac_c_werror_flag"
4788                          || test ! -s conftest.err'
4789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790   (eval $ac_try) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; } &&
4794          { ac_try='test -s conftest.$ac_objext'
4795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796   (eval $ac_try) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; }; then
4800   break
4801 else
4802   echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4804
4805 fi
4806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4807 done
4808 rm -f conftest*
4809 if test -n "$ac_declaration"; then
4810   echo '#ifdef __cplusplus' >>confdefs.h
4811   echo $ac_declaration      >>confdefs.h
4812   echo '#endif'             >>confdefs.h
4813 fi
4814
4815 else
4816   echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4818
4819 fi
4820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821 ac_ext=c
4822 ac_cpp='$CPP $CPPFLAGS'
4823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826 DEPDIR="${am__leading_dot}deps"
4827
4828           ac_config_commands="$ac_config_commands depfiles"
4829
4830
4831 am_make=${MAKE-make}
4832 cat > confinc << 'END'
4833 am__doit:
4834         @echo done
4835 .PHONY: am__doit
4836 END
4837 # If we don't find an include directive, just comment out the code.
4838 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4839 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4840 am__include="#"
4841 am__quote=
4842 _am_result=none
4843 # First try GNU make style include.
4844 echo "include confinc" > confmf
4845 # We grep out `Entering directory' and `Leaving directory'
4846 # messages which can occur if `w' ends up in MAKEFLAGS.
4847 # In particular we don't look at `^make:' because GNU make might
4848 # be invoked under some other name (usually "gmake"), in which
4849 # case it prints its new name instead of `make'.
4850 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4851    am__include=include
4852    am__quote=
4853    _am_result=GNU
4854 fi
4855 # Now try BSD make style include.
4856 if test "$am__include" = "#"; then
4857    echo '.include "confinc"' > confmf
4858    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4859       am__include=.include
4860       am__quote="\""
4861       _am_result=BSD
4862    fi
4863 fi
4864
4865
4866 echo "$as_me:$LINENO: result: $_am_result" >&5
4867 echo "${ECHO_T}$_am_result" >&6
4868 rm -f confinc confmf
4869
4870 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4871 if test "${enable_dependency_tracking+set}" = set; then
4872   enableval="$enable_dependency_tracking"
4873
4874 fi;
4875 if test "x$enable_dependency_tracking" != xno; then
4876   am_depcomp="$ac_aux_dir/depcomp"
4877   AMDEPBACKSLASH='\'
4878 fi
4879
4880
4881 if test "x$enable_dependency_tracking" != xno; then
4882   AMDEP_TRUE=
4883   AMDEP_FALSE='#'
4884 else
4885   AMDEP_TRUE='#'
4886   AMDEP_FALSE=
4887 fi
4888
4889
4890
4891
4892 depcc="$CC"   am_compiler_list=
4893
4894 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4895 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4896 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4897   echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4900   # We make a subdir and do the tests there.  Otherwise we can end up
4901   # making bogus files that we don't know about and never remove.  For
4902   # instance it was reported that on HP-UX the gcc test will end up
4903   # making a dummy file named `D' -- because `-MD' means `put the output
4904   # in D'.
4905   mkdir conftest.dir
4906   # Copy depcomp to subdir because otherwise we won't find it if we're
4907   # using a relative directory.
4908   cp "$am_depcomp" conftest.dir
4909   cd conftest.dir
4910   # We will build objects and dependencies in a subdirectory because
4911   # it helps to detect inapplicable dependency modes.  For instance
4912   # both Tru64's cc and ICC support -MD to output dependencies as a
4913   # side effect of compilation, but ICC will put the dependencies in
4914   # the current directory while Tru64 will put them in the object
4915   # directory.
4916   mkdir sub
4917
4918   am_cv_CC_dependencies_compiler_type=none
4919   if test "$am_compiler_list" = ""; then
4920      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4921   fi
4922   for depmode in $am_compiler_list; do
4923     # Setup a source with many dependencies, because some compilers
4924     # like to wrap large dependency lists on column 80 (with \), and
4925     # we should not choose a depcomp mode which is confused by this.
4926     #
4927     # We need to recreate these files for each test, as the compiler may
4928     # overwrite some of them when testing with obscure command lines.
4929     # This happens at least with the AIX C compiler.
4930     : > sub/conftest.c
4931     for i in 1 2 3 4 5 6; do
4932       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4933       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4934       # Solaris 8's {/usr,}/bin/sh.
4935       touch sub/conftst$i.h
4936     done
4937     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4938
4939     case $depmode in
4940     nosideeffect)
4941       # after this tag, mechanisms are not by side-effect, so they'll
4942       # only be used when explicitly requested
4943       if test "x$enable_dependency_tracking" = xyes; then
4944         continue
4945       else
4946         break
4947       fi
4948       ;;
4949     none) break ;;
4950     esac
4951     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4952     # mode.  It turns out that the SunPro C++ compiler does not properly
4953     # handle `-M -o', and we need to detect this.
4954     if depmode=$depmode \
4955        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4956        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4957        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4958          >/dev/null 2>conftest.err &&
4959        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4960        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4961        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4962       # icc doesn't choke on unknown options, it will just issue warnings
4963       # or remarks (even with -Werror).  So we grep stderr for any message
4964       # that says an option was ignored or not supported.
4965       # When given -MP, icc 7.0 and 7.1 complain thusly:
4966       #   icc: Command line warning: ignoring option '-M'; no argument required
4967       # The diagnosis changed in icc 8.0:
4968       #   icc: Command line remark: option '-MP' not supported
4969       if (grep 'ignoring option' conftest.err ||
4970           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4971         am_cv_CC_dependencies_compiler_type=$depmode
4972         break
4973       fi
4974     fi
4975   done
4976
4977   cd ..
4978   rm -rf conftest.dir
4979 else
4980   am_cv_CC_dependencies_compiler_type=none
4981 fi
4982
4983 fi
4984 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4985 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4986 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4987
4988
4989
4990 if
4991   test "x$enable_dependency_tracking" != xno \
4992   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4993   am__fastdepCC_TRUE=
4994   am__fastdepCC_FALSE='#'
4995 else
4996   am__fastdepCC_TRUE='#'
4997   am__fastdepCC_FALSE=
4998 fi
4999
5000
5001 ac_ext=cc
5002 ac_cpp='$CXXCPP $CPPFLAGS'
5003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5006 if test -n "$ac_tool_prefix"; then
5007   for ac_prog in $CCC g++ g++3 c++ CC
5008   do
5009     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_prog_CXX+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   if test -n "$CXX"; then
5017   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022   IFS=$as_save_IFS
5023   test -z "$as_dir" && as_dir=.
5024   for ac_exec_ext in '' $ac_executable_extensions; do
5025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028     break 2
5029   fi
5030 done
5031 done
5032
5033 fi
5034 fi
5035 CXX=$ac_cv_prog_CXX
5036 if test -n "$CXX"; then
5037   echo "$as_me:$LINENO: result: $CXX" >&5
5038 echo "${ECHO_T}$CXX" >&6
5039 else
5040   echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6
5042 fi
5043
5044     test -n "$CXX" && break
5045   done
5046 fi
5047 if test -z "$CXX"; then
5048   ac_ct_CXX=$CXX
5049   for ac_prog in $CCC g++ g++3 c++ CC
5050 do
5051   # Extract the first word of "$ac_prog", so it can be a program name with args.
5052 set dummy $ac_prog; ac_word=$2
5053 echo "$as_me:$LINENO: checking for $ac_word" >&5
5054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5055 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5056   echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058   if test -n "$ac_ct_CXX"; then
5059   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5063 do
5064   IFS=$as_save_IFS
5065   test -z "$as_dir" && as_dir=.
5066   for ac_exec_ext in '' $ac_executable_extensions; do
5067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068     ac_cv_prog_ac_ct_CXX="$ac_prog"
5069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070     break 2
5071   fi
5072 done
5073 done
5074
5075 fi
5076 fi
5077 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5078 if test -n "$ac_ct_CXX"; then
5079   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5080 echo "${ECHO_T}$ac_ct_CXX" >&6
5081 else
5082   echo "$as_me:$LINENO: result: no" >&5
5083 echo "${ECHO_T}no" >&6
5084 fi
5085
5086   test -n "$ac_ct_CXX" && break
5087 done
5088 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5089
5090   CXX=$ac_ct_CXX
5091 fi
5092
5093
5094 # Provide some information about the compiler.
5095 echo "$as_me:$LINENO:" \
5096      "checking for C++ compiler version" >&5
5097 ac_compiler=`set X $ac_compile; echo $2`
5098 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5099   (eval $ac_compiler --version </dev/null >&5) 2>&5
5100   ac_status=$?
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); }
5103 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5104   (eval $ac_compiler -v </dev/null >&5) 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); }
5108 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5109   (eval $ac_compiler -V </dev/null >&5) 2>&5
5110   ac_status=$?
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); }
5113
5114 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5115 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5116 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5117   echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119   cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h.  */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h.  */
5125
5126 int
5127 main ()
5128 {
5129 #ifndef __GNUC__
5130        choke me
5131 #endif
5132
5133   ;
5134   return 0;
5135 }
5136 _ACEOF
5137 rm -f conftest.$ac_objext
5138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5139   (eval $ac_compile) 2>conftest.er1
5140   ac_status=$?
5141   grep -v '^ *+' conftest.er1 >conftest.err
5142   rm -f conftest.er1
5143   cat conftest.err >&5
5144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145   (exit $ac_status); } &&
5146          { ac_try='test -z "$ac_cxx_werror_flag"
5147                          || test ! -s conftest.err'
5148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149   (eval $ac_try) 2>&5
5150   ac_status=$?
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); }; } &&
5153          { ac_try='test -s conftest.$ac_objext'
5154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155   (eval $ac_try) 2>&5
5156   ac_status=$?
5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158   (exit $ac_status); }; }; then
5159   ac_compiler_gnu=yes
5160 else
5161   echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5163
5164 ac_compiler_gnu=no
5165 fi
5166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5167 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5168
5169 fi
5170 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5171 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5172 GXX=`test $ac_compiler_gnu = yes && echo yes`
5173 ac_test_CXXFLAGS=${CXXFLAGS+set}
5174 ac_save_CXXFLAGS=$CXXFLAGS
5175 CXXFLAGS="-g"
5176 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5177 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5178 if test "${ac_cv_prog_cxx_g+set}" = set; then
5179   echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181   cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h.  */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h.  */
5187
5188 int
5189 main ()
5190 {
5191
5192   ;
5193   return 0;
5194 }
5195 _ACEOF
5196 rm -f conftest.$ac_objext
5197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198   (eval $ac_compile) 2>conftest.er1
5199   ac_status=$?
5200   grep -v '^ *+' conftest.er1 >conftest.err
5201   rm -f conftest.er1
5202   cat conftest.err >&5
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); } &&
5205          { ac_try='test -z "$ac_cxx_werror_flag"
5206                          || test ! -s conftest.err'
5207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208   (eval $ac_try) 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); }; } &&
5212          { ac_try='test -s conftest.$ac_objext'
5213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214   (eval $ac_try) 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }; }; then
5218   ac_cv_prog_cxx_g=yes
5219 else
5220   echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223 ac_cv_prog_cxx_g=no
5224 fi
5225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5226 fi
5227 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5228 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5229 if test "$ac_test_CXXFLAGS" = set; then
5230   CXXFLAGS=$ac_save_CXXFLAGS
5231 elif test $ac_cv_prog_cxx_g = yes; then
5232   if test "$GXX" = yes; then
5233     CXXFLAGS="-g -O2"
5234   else
5235     CXXFLAGS="-g"
5236   fi
5237 else
5238   if test "$GXX" = yes; then
5239     CXXFLAGS="-O2"
5240   else
5241     CXXFLAGS=
5242   fi
5243 fi
5244 for ac_declaration in \
5245    '' \
5246    'extern "C" void std::exit (int) throw (); using std::exit;' \
5247    'extern "C" void std::exit (int); using std::exit;' \
5248    'extern "C" void exit (int) throw ();' \
5249    'extern "C" void exit (int);' \
5250    'void exit (int);'
5251 do
5252   cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h.  */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h.  */
5258 $ac_declaration
5259 #include <stdlib.h>
5260 int
5261 main ()
5262 {
5263 exit (42);
5264   ;
5265   return 0;
5266 }
5267 _ACEOF
5268 rm -f conftest.$ac_objext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270   (eval $ac_compile) 2>conftest.er1
5271   ac_status=$?
5272   grep -v '^ *+' conftest.er1 >conftest.err
5273   rm -f conftest.er1
5274   cat conftest.err >&5
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); } &&
5277          { ac_try='test -z "$ac_cxx_werror_flag"
5278                          || test ! -s conftest.err'
5279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280   (eval $ac_try) 2>&5
5281   ac_status=$?
5282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283   (exit $ac_status); }; } &&
5284          { ac_try='test -s conftest.$ac_objext'
5285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286   (eval $ac_try) 2>&5
5287   ac_status=$?
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); }; }; then
5290   :
5291 else
5292   echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295 continue
5296 fi
5297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5298   cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h.  */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h.  */
5304 $ac_declaration
5305 int
5306 main ()
5307 {
5308 exit (42);
5309   ;
5310   return 0;
5311 }
5312 _ACEOF
5313 rm -f conftest.$ac_objext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5315   (eval $ac_compile) 2>conftest.er1
5316   ac_status=$?
5317   grep -v '^ *+' conftest.er1 >conftest.err
5318   rm -f conftest.er1
5319   cat conftest.err >&5
5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321   (exit $ac_status); } &&
5322          { ac_try='test -z "$ac_cxx_werror_flag"
5323                          || test ! -s conftest.err'
5324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325   (eval $ac_try) 2>&5
5326   ac_status=$?
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); }; } &&
5329          { ac_try='test -s conftest.$ac_objext'
5330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331   (eval $ac_try) 2>&5
5332   ac_status=$?
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); }; }; then
5335   break
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340 fi
5341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5342 done
5343 rm -f conftest*
5344 if test -n "$ac_declaration"; then
5345   echo '#ifdef __cplusplus' >>confdefs.h
5346   echo $ac_declaration      >>confdefs.h
5347   echo '#endif'             >>confdefs.h
5348 fi
5349
5350 ac_ext=c
5351 ac_cpp='$CPP $CPPFLAGS'
5352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355
5356 depcc="$CXX"  am_compiler_list=
5357
5358 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5359 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5360 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5361   echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5364   # We make a subdir and do the tests there.  Otherwise we can end up
5365   # making bogus files that we don't know about and never remove.  For
5366   # instance it was reported that on HP-UX the gcc test will end up
5367   # making a dummy file named `D' -- because `-MD' means `put the output
5368   # in D'.
5369   mkdir conftest.dir
5370   # Copy depcomp to subdir because otherwise we won't find it if we're
5371   # using a relative directory.
5372   cp "$am_depcomp" conftest.dir
5373   cd conftest.dir
5374   # We will build objects and dependencies in a subdirectory because
5375   # it helps to detect inapplicable dependency modes.  For instance
5376   # both Tru64's cc and ICC support -MD to output dependencies as a
5377   # side effect of compilation, but ICC will put the dependencies in
5378   # the current directory while Tru64 will put them in the object
5379   # directory.
5380   mkdir sub
5381
5382   am_cv_CXX_dependencies_compiler_type=none
5383   if test "$am_compiler_list" = ""; then
5384      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5385   fi
5386   for depmode in $am_compiler_list; do
5387     # Setup a source with many dependencies, because some compilers
5388     # like to wrap large dependency lists on column 80 (with \), and
5389     # we should not choose a depcomp mode which is confused by this.
5390     #
5391     # We need to recreate these files for each test, as the compiler may
5392     # overwrite some of them when testing with obscure command lines.
5393     # This happens at least with the AIX C compiler.
5394     : > sub/conftest.c
5395     for i in 1 2 3 4 5 6; do
5396       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5397       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5398       # Solaris 8's {/usr,}/bin/sh.
5399       touch sub/conftst$i.h
5400     done
5401     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5402
5403     case $depmode in
5404     nosideeffect)
5405       # after this tag, mechanisms are not by side-effect, so they'll
5406       # only be used when explicitly requested
5407       if test "x$enable_dependency_tracking" = xyes; then
5408         continue
5409       else
5410         break
5411       fi
5412       ;;
5413     none) break ;;
5414     esac
5415     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5416     # mode.  It turns out that the SunPro C++ compiler does not properly
5417     # handle `-M -o', and we need to detect this.
5418     if depmode=$depmode \
5419        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5420        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5421        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5422          >/dev/null 2>conftest.err &&
5423        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5424        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5425        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5426       # icc doesn't choke on unknown options, it will just issue warnings
5427       # or remarks (even with -Werror).  So we grep stderr for any message
5428       # that says an option was ignored or not supported.
5429       # When given -MP, icc 7.0 and 7.1 complain thusly:
5430       #   icc: Command line warning: ignoring option '-M'; no argument required
5431       # The diagnosis changed in icc 8.0:
5432       #   icc: Command line remark: option '-MP' not supported
5433       if (grep 'ignoring option' conftest.err ||
5434           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5435         am_cv_CXX_dependencies_compiler_type=$depmode
5436         break
5437       fi
5438     fi
5439   done
5440
5441   cd ..
5442   rm -rf conftest.dir
5443 else
5444   am_cv_CXX_dependencies_compiler_type=none
5445 fi
5446
5447 fi
5448 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5449 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5450 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5451
5452
5453
5454 if
5455   test "x$enable_dependency_tracking" != xno \
5456   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5457   am__fastdepCXX_TRUE=
5458   am__fastdepCXX_FALSE='#'
5459 else
5460   am__fastdepCXX_TRUE='#'
5461   am__fastdepCXX_FALSE=
5462 fi
5463
5464
5465 # Make sure we can run config.sub.
5466 $ac_config_sub sun4 >/dev/null 2>&1 ||
5467   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5468 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5469    { (exit 1); exit 1; }; }
5470
5471 echo "$as_me:$LINENO: checking build system type" >&5
5472 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5473 if test "${ac_cv_build+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   ac_cv_build_alias=$build_alias
5477 test -z "$ac_cv_build_alias" &&
5478   ac_cv_build_alias=`$ac_config_guess`
5479 test -z "$ac_cv_build_alias" &&
5480   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5481 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5482    { (exit 1); exit 1; }; }
5483 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5484   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5485 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5486    { (exit 1); exit 1; }; }
5487
5488 fi
5489 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5490 echo "${ECHO_T}$ac_cv_build" >&6
5491 build=$ac_cv_build
5492 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5493 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5494 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5495
5496
5497 echo "$as_me:$LINENO: checking host system type" >&5
5498 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5499 if test "${ac_cv_host+set}" = set; then
5500   echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502   ac_cv_host_alias=$host_alias
5503 test -z "$ac_cv_host_alias" &&
5504   ac_cv_host_alias=$ac_cv_build_alias
5505 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5506   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5507 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5508    { (exit 1); exit 1; }; }
5509
5510 fi
5511 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5512 echo "${ECHO_T}$ac_cv_host" >&6
5513 host=$ac_cv_host
5514 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5515 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5516 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5517
5518
5519
5520 if test "$GCC" = "yes" ; then
5521 #    AC_HAVE_GCC_VERSION(4,0,0,0,
5522 #        [
5523 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
5524 #            [Define to enable class visibility control in gcc.])
5525 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5526 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5527 #        ])
5528     CFLAGS="-Wall $GCC_CFLAGS"
5529     CXXFLAGS="-Wall $GCC_CXXFLAGS"
5530 else
5531 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
5532         case "${host_cpu}-${host_os}" in
5533                 *solaris*)
5534                         if test "$CXX" = "CC" ; then
5535                                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
5536                         fi
5537                 ;;
5538         esac
5539 fi
5540
5541 # Check whether --enable-static or --disable-static was given.
5542 if test "${enable_static+set}" = set; then
5543   enableval="$enable_static"
5544   p=${PACKAGE-default}
5545     case $enableval in
5546     yes) enable_static=yes ;;
5547     no) enable_static=no ;;
5548     *)
5549      enable_static=no
5550       # Look at the argument we got.  We use all the common list separators.
5551       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5552       for pkg in $enableval; do
5553         IFS="$lt_save_ifs"
5554         if test "X$pkg" = "X$p"; then
5555           enable_static=yes
5556         fi
5557       done
5558       IFS="$lt_save_ifs"
5559       ;;
5560     esac
5561 else
5562   enable_static=no
5563 fi;
5564
5565
5566 # Check whether --enable-shared or --disable-shared was given.
5567 if test "${enable_shared+set}" = set; then
5568   enableval="$enable_shared"
5569   p=${PACKAGE-default}
5570     case $enableval in
5571     yes) enable_shared=yes ;;
5572     no) enable_shared=no ;;
5573     *)
5574       enable_shared=no
5575       # Look at the argument we got.  We use all the common list separators.
5576       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5577       for pkg in $enableval; do
5578         IFS="$lt_save_ifs"
5579         if test "X$pkg" = "X$p"; then
5580           enable_shared=yes
5581         fi
5582       done
5583       IFS="$lt_save_ifs"
5584       ;;
5585     esac
5586 else
5587   enable_shared=yes
5588 fi;
5589
5590 # Check whether --enable-fast-install or --disable-fast-install was given.
5591 if test "${enable_fast_install+set}" = set; then
5592   enableval="$enable_fast_install"
5593   p=${PACKAGE-default}
5594     case $enableval in
5595     yes) enable_fast_install=yes ;;
5596     no) enable_fast_install=no ;;
5597     *)
5598       enable_fast_install=no
5599       # Look at the argument we got.  We use all the common list separators.
5600       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5601       for pkg in $enableval; do
5602         IFS="$lt_save_ifs"
5603         if test "X$pkg" = "X$p"; then
5604           enable_fast_install=yes
5605         fi
5606       done
5607       IFS="$lt_save_ifs"
5608       ;;
5609     esac
5610 else
5611   enable_fast_install=yes
5612 fi;
5613
5614 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5615 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5616 if test "${lt_cv_path_SED+set}" = set; then
5617   echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619   # Loop through the user's path and test for sed and gsed.
5620 # Then use that list of sed's as ones to test for truncation.
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624   IFS=$as_save_IFS
5625   test -z "$as_dir" && as_dir=.
5626   for lt_ac_prog in sed gsed; do
5627     for ac_exec_ext in '' $ac_executable_extensions; do
5628       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5629         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5630       fi
5631     done
5632   done
5633 done
5634 lt_ac_max=0
5635 lt_ac_count=0
5636 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5637 # along with /bin/sed that truncates output.
5638 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5639   test ! -f $lt_ac_sed && break
5640   cat /dev/null > conftest.in
5641   lt_ac_count=0
5642   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5643   # Check for GNU sed and select it if it is found.
5644   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5645     lt_cv_path_SED=$lt_ac_sed
5646     break
5647   fi
5648   while true; do
5649     cat conftest.in conftest.in >conftest.tmp
5650     mv conftest.tmp conftest.in
5651     cp conftest.in conftest.nl
5652     echo >>conftest.nl
5653     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5654     cmp -s conftest.out conftest.nl || break
5655     # 10000 chars as input seems more than enough
5656     test $lt_ac_count -gt 10 && break
5657     lt_ac_count=`expr $lt_ac_count + 1`
5658     if test $lt_ac_count -gt $lt_ac_max; then
5659       lt_ac_max=$lt_ac_count
5660       lt_cv_path_SED=$lt_ac_sed
5661     fi
5662   done
5663 done
5664 SED=$lt_cv_path_SED
5665
5666 fi
5667
5668 echo "$as_me:$LINENO: result: $SED" >&5
5669 echo "${ECHO_T}$SED" >&6
5670
5671 echo "$as_me:$LINENO: checking for egrep" >&5
5672 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5673 if test "${ac_cv_prog_egrep+set}" = set; then
5674   echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5677     then ac_cv_prog_egrep='grep -E'
5678     else ac_cv_prog_egrep='egrep'
5679     fi
5680 fi
5681 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5682 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5683  EGREP=$ac_cv_prog_egrep
5684
5685
5686
5687 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5688 if test "${with_gnu_ld+set}" = set; then
5689   withval="$with_gnu_ld"
5690   test "$withval" = no || with_gnu_ld=yes
5691 else
5692   with_gnu_ld=no
5693 fi;
5694 ac_prog=ld
5695 if test "$GCC" = yes; then
5696   # Check if gcc -print-prog-name=ld gives a path.
5697   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5698 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5699   case $host in
5700   *-*-mingw*)
5701     # gcc leaves a trailing carriage return which upsets mingw
5702     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5703   *)
5704     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5705   esac
5706   case $ac_prog in
5707     # Accept absolute paths.
5708     [\\/]* | ?:[\\/]*)
5709       re_direlt='/[^/][^/]*/\.\./'
5710       # Canonicalize the pathname of ld
5711       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5712       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5713         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5714       done
5715       test -z "$LD" && LD="$ac_prog"
5716       ;;
5717   "")
5718     # If it fails, then pretend we aren't using GCC.
5719     ac_prog=ld
5720     ;;
5721   *)
5722     # If it is relative, then search for the first ld in PATH.
5723     with_gnu_ld=unknown
5724     ;;
5725   esac
5726 elif test "$with_gnu_ld" = yes; then
5727   echo "$as_me:$LINENO: checking for GNU ld" >&5
5728 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5729 else
5730   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5731 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5732 fi
5733 if test "${lt_cv_path_LD+set}" = set; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736   if test -z "$LD"; then
5737   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5738   for ac_dir in $PATH; do
5739     IFS="$lt_save_ifs"
5740     test -z "$ac_dir" && ac_dir=.
5741     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5742       lt_cv_path_LD="$ac_dir/$ac_prog"
5743       # Check to see if the program is GNU ld.  I'd rather use --version,
5744       # but apparently some GNU ld's only accept -v.
5745       # Break only if it was the GNU/non-GNU ld that we prefer.
5746       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5747       *GNU* | *'with BFD'*)
5748         test "$with_gnu_ld" != no && break
5749         ;;
5750       *)
5751         test "$with_gnu_ld" != yes && break
5752         ;;
5753       esac
5754     fi
5755   done
5756   IFS="$lt_save_ifs"
5757 else
5758   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5759 fi
5760 fi
5761
5762 LD="$lt_cv_path_LD"
5763 if test -n "$LD"; then
5764   echo "$as_me:$LINENO: result: $LD" >&5
5765 echo "${ECHO_T}$LD" >&6
5766 else
5767   echo "$as_me:$LINENO: result: no" >&5
5768 echo "${ECHO_T}no" >&6
5769 fi
5770 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5771 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5772    { (exit 1); exit 1; }; }
5773 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5774 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5775 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5779 case `$LD -v 2>&1 </dev/null` in
5780 *GNU* | *'with BFD'*)
5781   lt_cv_prog_gnu_ld=yes
5782   ;;
5783 *)
5784   lt_cv_prog_gnu_ld=no
5785   ;;
5786 esac
5787 fi
5788 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5789 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5790 with_gnu_ld=$lt_cv_prog_gnu_ld
5791
5792
5793 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5794 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5795 if test "${lt_cv_ld_reload_flag+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   lt_cv_ld_reload_flag='-r'
5799 fi
5800 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5801 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5802 reload_flag=$lt_cv_ld_reload_flag
5803 case $reload_flag in
5804 "" | " "*) ;;
5805 *) reload_flag=" $reload_flag" ;;
5806 esac
5807 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5808
5809 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5810 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5811 if test "${lt_cv_path_NM+set}" = set; then
5812   echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814   if test -n "$NM"; then
5815   # Let the user override the test.
5816   lt_cv_path_NM="$NM"
5817 else
5818   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5819   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5820     IFS="$lt_save_ifs"
5821     test -z "$ac_dir" && ac_dir=.
5822     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5823     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5824       # Check to see if the nm accepts a BSD-compat flag.
5825       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5826       #   nm: unknown option "B" ignored
5827       # Tru64's nm complains that /dev/null is an invalid object file
5828       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5829       */dev/null* | *'Invalid file or object type'*)
5830         lt_cv_path_NM="$tmp_nm -B"
5831         break
5832         ;;
5833       *)
5834         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5835         */dev/null*)
5836           lt_cv_path_NM="$tmp_nm -p"
5837           break
5838           ;;
5839         *)
5840           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5841           continue # so that we can try to find one that supports BSD flags
5842           ;;
5843         esac
5844       esac
5845     fi
5846   done
5847   IFS="$lt_save_ifs"
5848   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5849 fi
5850 fi
5851 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5852 echo "${ECHO_T}$lt_cv_path_NM" >&6
5853 NM="$lt_cv_path_NM"
5854
5855 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5856 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5857 LN_S=$as_ln_s
5858 if test "$LN_S" = "ln -s"; then
5859   echo "$as_me:$LINENO: result: yes" >&5
5860 echo "${ECHO_T}yes" >&6
5861 else
5862   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5863 echo "${ECHO_T}no, using $LN_S" >&6
5864 fi
5865
5866 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5867 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5868 if test "${lt_cv_deplibs_check_method+set}" = set; then
5869   echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871   lt_cv_file_magic_cmd='$MAGIC_CMD'
5872 lt_cv_file_magic_test_file=
5873 lt_cv_deplibs_check_method='unknown'
5874 # Need to set the preceding variable on all platforms that support
5875 # interlibrary dependencies.
5876 # 'none' -- dependencies not supported.
5877 # `unknown' -- same as none, but documents that we really don't know.
5878 # 'pass_all' -- all dependencies passed with no checks.
5879 # 'test_compile' -- check by making test program.
5880 # 'file_magic [[regex]]' -- check by looking for files in library path
5881 # which responds to the $file_magic_cmd with a given extended regex.
5882 # If you have `file' or equivalent on your system and you're not sure
5883 # whether `pass_all' will *always* work, you probably want this one.
5884
5885 case $host_os in
5886 aix4* | aix5*)
5887   lt_cv_deplibs_check_method=pass_all
5888   ;;
5889
5890 beos*)
5891   lt_cv_deplibs_check_method=pass_all
5892   ;;
5893
5894 bsdi4*)
5895   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5896   lt_cv_file_magic_cmd='/usr/bin/file -L'
5897   lt_cv_file_magic_test_file=/shlib/libc.so
5898   ;;
5899
5900 cygwin*)
5901   # func_win32_libid is a shell function defined in ltmain.sh
5902   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5903   lt_cv_file_magic_cmd='func_win32_libid'
5904   ;;
5905
5906 mingw* | pw32*)
5907   # Base MSYS/MinGW do not provide the 'file' command needed by
5908   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5909   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5910   lt_cv_file_magic_cmd='$OBJDUMP -f'
5911   ;;
5912
5913 darwin* | rhapsody*)
5914   lt_cv_deplibs_check_method=pass_all
5915   ;;
5916
5917 freebsd* | kfreebsd*-gnu)
5918   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5919     case $host_cpu in
5920     i*86 )
5921       # Not sure whether the presence of OpenBSD here was a mistake.
5922       # Let's accept both of them until this is cleared up.
5923       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5924       lt_cv_file_magic_cmd=/usr/bin/file
5925       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5926       ;;
5927     esac
5928   else
5929     lt_cv_deplibs_check_method=pass_all
5930   fi
5931   ;;
5932
5933 gnu*)
5934   lt_cv_deplibs_check_method=pass_all
5935   ;;
5936
5937 hpux10.20* | hpux11*)
5938   lt_cv_file_magic_cmd=/usr/bin/file
5939   case "$host_cpu" in
5940   ia64*)
5941     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5942     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5943     ;;
5944   hppa*64*)
5945     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]'
5946     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5947     ;;
5948   *)
5949     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5950     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5951     ;;
5952   esac
5953   ;;
5954
5955 irix5* | irix6* | nonstopux*)
5956   case $LD in
5957   *-32|*"-32 ") libmagic=32-bit;;
5958   *-n32|*"-n32 ") libmagic=N32;;
5959   *-64|*"-64 ") libmagic=64-bit;;
5960   *) libmagic=never-match;;
5961   esac
5962   lt_cv_deplibs_check_method=pass_all
5963   ;;
5964
5965 # This must be Linux ELF.
5966 linux*)
5967   case $host_cpu in
5968   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
5969     lt_cv_deplibs_check_method=pass_all ;;
5970   *)
5971     # glibc up to 2.1.1 does not perform some relocations on ARM
5972     # this will be overridden with pass_all, but let us keep it just in case
5973     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5974   esac
5975   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5976   lt_cv_deplibs_check_method=pass_all
5977   ;;
5978
5979 netbsd*)
5980   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5981     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5982   else
5983     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5984   fi
5985   ;;
5986
5987 newos6*)
5988   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5989   lt_cv_file_magic_cmd=/usr/bin/file
5990   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5991   ;;
5992
5993 nto-qnx*)
5994   lt_cv_deplibs_check_method=unknown
5995   ;;
5996
5997 openbsd*)
5998   lt_cv_file_magic_cmd=/usr/bin/file
5999   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6000   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6001     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
6002   else
6003     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6004   fi
6005   ;;
6006
6007 osf3* | osf4* | osf5*)
6008   lt_cv_deplibs_check_method=pass_all
6009   ;;
6010
6011 sco3.2v5*)
6012   lt_cv_deplibs_check_method=pass_all
6013   ;;
6014
6015 solaris*)
6016   lt_cv_deplibs_check_method=pass_all
6017   ;;
6018
6019 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6020   case $host_vendor in
6021   motorola)
6022     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]'
6023     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6024     ;;
6025   ncr)
6026     lt_cv_deplibs_check_method=pass_all
6027     ;;
6028   sequent)
6029     lt_cv_file_magic_cmd='/bin/file'
6030     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6031     ;;
6032   sni)
6033     lt_cv_file_magic_cmd='/bin/file'
6034     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6035     lt_cv_file_magic_test_file=/lib/libc.so
6036     ;;
6037   siemens)
6038     lt_cv_deplibs_check_method=pass_all
6039     ;;
6040   esac
6041   ;;
6042
6043 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6044   lt_cv_deplibs_check_method=pass_all
6045   ;;
6046 esac
6047
6048 fi
6049 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6050 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6051 file_magic_cmd=$lt_cv_file_magic_cmd
6052 deplibs_check_method=$lt_cv_deplibs_check_method
6053 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6054
6055
6056
6057
6058 # If no C compiler was specified, use CC.
6059 LTCC=${LTCC-"$CC"}
6060
6061 # Allow CC to be a program name with arguments.
6062 compiler=$CC
6063
6064
6065 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6066 if test "${enable_libtool_lock+set}" = set; then
6067   enableval="$enable_libtool_lock"
6068
6069 fi;
6070 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6071
6072 # Some flags need to be propagated to the compiler or linker for good
6073 # libtool support.
6074 case $host in
6075 ia64-*-hpux*)
6076   # Find out which ABI we are using.
6077   echo 'int i;' > conftest.$ac_ext
6078   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079   (eval $ac_compile) 2>&5
6080   ac_status=$?
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); }; then
6083     case `/usr/bin/file conftest.$ac_objext` in
6084     *ELF-32*)
6085       HPUX_IA64_MODE="32"
6086       ;;
6087     *ELF-64*)
6088       HPUX_IA64_MODE="64"
6089       ;;
6090     esac
6091   fi
6092   rm -rf conftest*
6093   ;;
6094 *-*-irix6*)
6095   # Find out which ABI we are using.
6096   echo '#line 6096 "configure"' > conftest.$ac_ext
6097   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6098   (eval $ac_compile) 2>&5
6099   ac_status=$?
6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101   (exit $ac_status); }; then
6102    if test "$lt_cv_prog_gnu_ld" = yes; then
6103     case `/usr/bin/file conftest.$ac_objext` in
6104     *32-bit*)
6105       LD="${LD-ld} -melf32bsmip"
6106       ;;
6107     *N32*)
6108       LD="${LD-ld} -melf32bmipn32"
6109       ;;
6110     *64-bit*)
6111       LD="${LD-ld} -melf64bmip"
6112       ;;
6113     esac
6114    else
6115     case `/usr/bin/file conftest.$ac_objext` in
6116     *32-bit*)
6117       LD="${LD-ld} -32"
6118       ;;
6119     *N32*)
6120       LD="${LD-ld} -n32"
6121       ;;
6122     *64-bit*)
6123       LD="${LD-ld} -64"
6124       ;;
6125     esac
6126    fi
6127   fi
6128   rm -rf conftest*
6129   ;;
6130
6131 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6132   # Find out which ABI we are using.
6133   echo 'int i;' > conftest.$ac_ext
6134   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135   (eval $ac_compile) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; then
6139     case "`/usr/bin/file conftest.o`" in
6140     *32-bit*)
6141       case $host in
6142         x86_64-*linux*)
6143           LD="${LD-ld} -m elf_i386"
6144           ;;
6145         ppc64-*linux*|powerpc64-*linux*)
6146           LD="${LD-ld} -m elf32ppclinux"
6147           ;;
6148         s390x-*linux*)
6149           LD="${LD-ld} -m elf_s390"
6150           ;;
6151         sparc64-*linux*)
6152           LD="${LD-ld} -m elf32_sparc"
6153           ;;
6154       esac
6155       ;;
6156     *64-bit*)
6157       case $host in
6158         x86_64-*linux*)
6159           LD="${LD-ld} -m elf_x86_64"
6160           ;;
6161         ppc*-*linux*|powerpc*-*linux*)
6162           LD="${LD-ld} -m elf64ppc"
6163           ;;
6164         s390*-*linux*)
6165           LD="${LD-ld} -m elf64_s390"
6166           ;;
6167         sparc*-*linux*)
6168           LD="${LD-ld} -m elf64_sparc"
6169           ;;
6170       esac
6171       ;;
6172     esac
6173   fi
6174   rm -rf conftest*
6175   ;;
6176
6177 *-*-sco3.2v5*)
6178   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6179   SAVE_CFLAGS="$CFLAGS"
6180   CFLAGS="$CFLAGS -belf"
6181   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6182 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6183 if test "${lt_cv_cc_needs_belf+set}" = set; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186   ac_ext=c
6187 ac_cpp='$CPP $CPPFLAGS'
6188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6191
6192      cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h.  */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h.  */
6198
6199 int
6200 main ()
6201 {
6202
6203   ;
6204   return 0;
6205 }
6206 _ACEOF
6207 rm -f conftest.$ac_objext conftest$ac_exeext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6209   (eval $ac_link) 2>conftest.er1
6210   ac_status=$?
6211   grep -v '^ *+' conftest.er1 >conftest.err
6212   rm -f conftest.er1
6213   cat conftest.err >&5
6214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); } &&
6216          { ac_try='test -z "$ac_c_werror_flag"
6217                          || test ! -s conftest.err'
6218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219   (eval $ac_try) 2>&5
6220   ac_status=$?
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); }; } &&
6223          { ac_try='test -s conftest$ac_exeext'
6224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225   (eval $ac_try) 2>&5
6226   ac_status=$?
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); }; }; then
6229   lt_cv_cc_needs_belf=yes
6230 else
6231   echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234 lt_cv_cc_needs_belf=no
6235 fi
6236 rm -f conftest.err conftest.$ac_objext \
6237       conftest$ac_exeext conftest.$ac_ext
6238      ac_ext=c
6239 ac_cpp='$CPP $CPPFLAGS'
6240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6243
6244 fi
6245 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6246 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6247   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6248     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6249     CFLAGS="$SAVE_CFLAGS"
6250   fi
6251   ;;
6252
6253 esac
6254
6255 need_locks="$enable_libtool_lock"
6256
6257
6258 ac_ext=c
6259 ac_cpp='$CPP $CPPFLAGS'
6260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6263 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6264 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6265 # On Suns, sometimes $CPP names a directory.
6266 if test -n "$CPP" && test -d "$CPP"; then
6267   CPP=
6268 fi
6269 if test -z "$CPP"; then
6270   if test "${ac_cv_prog_CPP+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273       # Double quotes because CPP needs to be expanded
6274     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6275     do
6276       ac_preproc_ok=false
6277 for ac_c_preproc_warn_flag in '' yes
6278 do
6279   # Use a header file that comes with gcc, so configuring glibc
6280   # with a fresh cross-compiler works.
6281   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6282   # <limits.h> exists even on freestanding compilers.
6283   # On the NeXT, cc -E runs the code through the compiler's parser,
6284   # not just through cpp. "Syntax error" is here to catch this case.
6285   cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h.  */
6287 _ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h.  */
6291 #ifdef __STDC__
6292 # include <limits.h>
6293 #else
6294 # include <assert.h>
6295 #endif
6296                      Syntax error
6297 _ACEOF
6298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6299   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6300   ac_status=$?
6301   grep -v '^ *+' conftest.er1 >conftest.err
6302   rm -f conftest.er1
6303   cat conftest.err >&5
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); } >/dev/null; then
6306   if test -s conftest.err; then
6307     ac_cpp_err=$ac_c_preproc_warn_flag
6308     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6309   else
6310     ac_cpp_err=
6311   fi
6312 else
6313   ac_cpp_err=yes
6314 fi
6315 if test -z "$ac_cpp_err"; then
6316   :
6317 else
6318   echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321   # Broken: fails on valid input.
6322 continue
6323 fi
6324 rm -f conftest.err conftest.$ac_ext
6325
6326   # OK, works on sane cases.  Now check whether non-existent headers
6327   # can be detected and how.
6328   cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334 #include <ac_nonexistent.h>
6335 _ACEOF
6336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6337   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6338   ac_status=$?
6339   grep -v '^ *+' conftest.er1 >conftest.err
6340   rm -f conftest.er1
6341   cat conftest.err >&5
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); } >/dev/null; then
6344   if test -s conftest.err; then
6345     ac_cpp_err=$ac_c_preproc_warn_flag
6346     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6347   else
6348     ac_cpp_err=
6349   fi
6350 else
6351   ac_cpp_err=yes
6352 fi
6353 if test -z "$ac_cpp_err"; then
6354   # Broken: success on invalid input.
6355 continue
6356 else
6357   echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360   # Passes both tests.
6361 ac_preproc_ok=:
6362 break
6363 fi
6364 rm -f conftest.err conftest.$ac_ext
6365
6366 done
6367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6368 rm -f conftest.err conftest.$ac_ext
6369 if $ac_preproc_ok; then
6370   break
6371 fi
6372
6373     done
6374     ac_cv_prog_CPP=$CPP
6375
6376 fi
6377   CPP=$ac_cv_prog_CPP
6378 else
6379   ac_cv_prog_CPP=$CPP
6380 fi
6381 echo "$as_me:$LINENO: result: $CPP" >&5
6382 echo "${ECHO_T}$CPP" >&6
6383 ac_preproc_ok=false
6384 for ac_c_preproc_warn_flag in '' yes
6385 do
6386   # Use a header file that comes with gcc, so configuring glibc
6387   # with a fresh cross-compiler works.
6388   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6389   # <limits.h> exists even on freestanding compilers.
6390   # On the NeXT, cc -E runs the code through the compiler's parser,
6391   # not just through cpp. "Syntax error" is here to catch this case.
6392   cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h.  */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h.  */
6398 #ifdef __STDC__
6399 # include <limits.h>
6400 #else
6401 # include <assert.h>
6402 #endif
6403                      Syntax error
6404 _ACEOF
6405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6406   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6407   ac_status=$?
6408   grep -v '^ *+' conftest.er1 >conftest.err
6409   rm -f conftest.er1
6410   cat conftest.err >&5
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); } >/dev/null; then
6413   if test -s conftest.err; then
6414     ac_cpp_err=$ac_c_preproc_warn_flag
6415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6416   else
6417     ac_cpp_err=
6418   fi
6419 else
6420   ac_cpp_err=yes
6421 fi
6422 if test -z "$ac_cpp_err"; then
6423   :
6424 else
6425   echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6427
6428   # Broken: fails on valid input.
6429 continue
6430 fi
6431 rm -f conftest.err conftest.$ac_ext
6432
6433   # OK, works on sane cases.  Now check whether non-existent headers
6434   # can be detected and how.
6435   cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h.  */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h.  */
6441 #include <ac_nonexistent.h>
6442 _ACEOF
6443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6444   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6445   ac_status=$?
6446   grep -v '^ *+' conftest.er1 >conftest.err
6447   rm -f conftest.er1
6448   cat conftest.err >&5
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); } >/dev/null; then
6451   if test -s conftest.err; then
6452     ac_cpp_err=$ac_c_preproc_warn_flag
6453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6454   else
6455     ac_cpp_err=
6456   fi
6457 else
6458   ac_cpp_err=yes
6459 fi
6460 if test -z "$ac_cpp_err"; then
6461   # Broken: success on invalid input.
6462 continue
6463 else
6464   echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6466
6467   # Passes both tests.
6468 ac_preproc_ok=:
6469 break
6470 fi
6471 rm -f conftest.err conftest.$ac_ext
6472
6473 done
6474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6475 rm -f conftest.err conftest.$ac_ext
6476 if $ac_preproc_ok; then
6477   :
6478 else
6479   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6480 See \`config.log' for more details." >&5
6481 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6482 See \`config.log' for more details." >&2;}
6483    { (exit 1); exit 1; }; }
6484 fi
6485
6486 ac_ext=c
6487 ac_cpp='$CPP $CPPFLAGS'
6488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6491
6492
6493 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6494 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6495 if test "${ac_cv_header_stdc+set}" = set; then
6496   echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498   cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h.  */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h.  */
6504 #include <stdlib.h>
6505 #include <stdarg.h>
6506 #include <string.h>
6507 #include <float.h>
6508
6509 int
6510 main ()
6511 {
6512
6513   ;
6514   return 0;
6515 }
6516 _ACEOF
6517 rm -f conftest.$ac_objext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6519   (eval $ac_compile) 2>conftest.er1
6520   ac_status=$?
6521   grep -v '^ *+' conftest.er1 >conftest.err
6522   rm -f conftest.er1
6523   cat conftest.err >&5
6524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525   (exit $ac_status); } &&
6526          { ac_try='test -z "$ac_c_werror_flag"
6527                          || test ! -s conftest.err'
6528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529   (eval $ac_try) 2>&5
6530   ac_status=$?
6531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532   (exit $ac_status); }; } &&
6533          { ac_try='test -s conftest.$ac_objext'
6534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535   (eval $ac_try) 2>&5
6536   ac_status=$?
6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538   (exit $ac_status); }; }; then
6539   ac_cv_header_stdc=yes
6540 else
6541   echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6543
6544 ac_cv_header_stdc=no
6545 fi
6546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6547
6548 if test $ac_cv_header_stdc = yes; then
6549   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6550   cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h.  */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h.  */
6556 #include <string.h>
6557
6558 _ACEOF
6559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6560   $EGREP "memchr" >/dev/null 2>&1; then
6561   :
6562 else
6563   ac_cv_header_stdc=no
6564 fi
6565 rm -f conftest*
6566
6567 fi
6568
6569 if test $ac_cv_header_stdc = yes; then
6570   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6571   cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h.  */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h.  */
6577 #include <stdlib.h>
6578
6579 _ACEOF
6580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6581   $EGREP "free" >/dev/null 2>&1; then
6582   :
6583 else
6584   ac_cv_header_stdc=no
6585 fi
6586 rm -f conftest*
6587
6588 fi
6589
6590 if test $ac_cv_header_stdc = yes; then
6591   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6592   if test "$cross_compiling" = yes; then
6593   :
6594 else
6595   cat >conftest.$ac_ext <<_ACEOF
6596 /* confdefs.h.  */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h.  */
6601 #include <ctype.h>
6602 #if ((' ' & 0x0FF) == 0x020)
6603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6605 #else
6606 # define ISLOWER(c) \
6607                    (('a' <= (c) && (c) <= 'i') \
6608                      || ('j' <= (c) && (c) <= 'r') \
6609                      || ('s' <= (c) && (c) <= 'z'))
6610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6611 #endif
6612
6613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6614 int
6615 main ()
6616 {
6617   int i;
6618   for (i = 0; i < 256; i++)
6619     if (XOR (islower (i), ISLOWER (i))
6620         || toupper (i) != TOUPPER (i))
6621       exit(2);
6622   exit (0);
6623 }
6624 _ACEOF
6625 rm -f conftest$ac_exeext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6627   (eval $ac_link) 2>&5
6628   ac_status=$?
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632   (eval $ac_try) 2>&5
6633   ac_status=$?
6634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635   (exit $ac_status); }; }; then
6636   :
6637 else
6638   echo "$as_me: program exited with status $ac_status" >&5
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6641
6642 ( exit $ac_status )
6643 ac_cv_header_stdc=no
6644 fi
6645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6646 fi
6647 fi
6648 fi
6649 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6650 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6651 if test $ac_cv_header_stdc = yes; then
6652
6653 cat >>confdefs.h <<\_ACEOF
6654 #define STDC_HEADERS 1
6655 _ACEOF
6656
6657 fi
6658
6659 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6670                   inttypes.h stdint.h unistd.h
6671 do
6672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6673 echo "$as_me:$LINENO: checking for $ac_header" >&5
6674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6676   echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678   cat >conftest.$ac_ext <<_ACEOF
6679 /* confdefs.h.  */
6680 _ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h.  */
6684 $ac_includes_default
6685
6686 #include <$ac_header>
6687 _ACEOF
6688 rm -f conftest.$ac_objext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690   (eval $ac_compile) 2>conftest.er1
6691   ac_status=$?
6692   grep -v '^ *+' conftest.er1 >conftest.err
6693   rm -f conftest.er1
6694   cat conftest.err >&5
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); } &&
6697          { ac_try='test -z "$ac_c_werror_flag"
6698                          || test ! -s conftest.err'
6699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700   (eval $ac_try) 2>&5
6701   ac_status=$?
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); }; } &&
6704          { ac_try='test -s conftest.$ac_objext'
6705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706   (eval $ac_try) 2>&5
6707   ac_status=$?
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); }; }; then
6710   eval "$as_ac_Header=yes"
6711 else
6712   echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715 eval "$as_ac_Header=no"
6716 fi
6717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6718 fi
6719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6722   cat >>confdefs.h <<_ACEOF
6723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6724 _ACEOF
6725
6726 fi
6727
6728 done
6729
6730
6731
6732 for ac_header in dlfcn.h
6733 do
6734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6736   echo "$as_me:$LINENO: checking for $ac_header" >&5
6737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6739   echo $ECHO_N "(cached) $ECHO_C" >&6
6740 fi
6741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6743 else
6744   # Is the header compilable?
6745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h.  */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h.  */
6753 $ac_includes_default
6754 #include <$ac_header>
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758   (eval $ac_compile) 2>conftest.er1
6759   ac_status=$?
6760   grep -v '^ *+' conftest.er1 >conftest.err
6761   rm -f conftest.er1
6762   cat conftest.err >&5
6763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764   (exit $ac_status); } &&
6765          { ac_try='test -z "$ac_c_werror_flag"
6766                          || test ! -s conftest.err'
6767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768   (eval $ac_try) 2>&5
6769   ac_status=$?
6770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771   (exit $ac_status); }; } &&
6772          { ac_try='test -s conftest.$ac_objext'
6773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774   (eval $ac_try) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); }; }; then
6778   ac_header_compiler=yes
6779 else
6780   echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783 ac_header_compiler=no
6784 fi
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6787 echo "${ECHO_T}$ac_header_compiler" >&6
6788
6789 # Is the header present?
6790 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h.  */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h.  */
6798 #include <$ac_header>
6799 _ACEOF
6800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6801   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6802   ac_status=$?
6803   grep -v '^ *+' conftest.er1 >conftest.err
6804   rm -f conftest.er1
6805   cat conftest.err >&5
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); } >/dev/null; then
6808   if test -s conftest.err; then
6809     ac_cpp_err=$ac_c_preproc_warn_flag
6810     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6811   else
6812     ac_cpp_err=
6813   fi
6814 else
6815   ac_cpp_err=yes
6816 fi
6817 if test -z "$ac_cpp_err"; then
6818   ac_header_preproc=yes
6819 else
6820   echo "$as_me: failed program was:" >&5
6821 sed 's/^/| /' conftest.$ac_ext >&5
6822
6823   ac_header_preproc=no
6824 fi
6825 rm -f conftest.err conftest.$ac_ext
6826 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6827 echo "${ECHO_T}$ac_header_preproc" >&6
6828
6829 # So?  What about this header?
6830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6831   yes:no: )
6832     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6836     ac_header_preproc=yes
6837     ;;
6838   no:yes:* )
6839     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6841     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6842 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6843     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6845     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6846 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6849     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6851     (
6852       cat <<\_ASBOX
6853 ## --------------------------------------------- ##
6854 ## Report this to shibboleth-users@internet2.edu ##
6855 ## --------------------------------------------- ##
6856 _ASBOX
6857     ) |
6858       sed "s/^/$as_me: WARNING:     /" >&2
6859     ;;
6860 esac
6861 echo "$as_me:$LINENO: checking for $ac_header" >&5
6862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6864   echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866   eval "$as_ac_Header=\$ac_header_preproc"
6867 fi
6868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6870
6871 fi
6872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6873   cat >>confdefs.h <<_ACEOF
6874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6875 _ACEOF
6876
6877 fi
6878
6879 done
6880
6881 ac_ext=cc
6882 ac_cpp='$CXXCPP $CPPFLAGS'
6883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6886 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6887 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6888 if test -z "$CXXCPP"; then
6889   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6890   echo $ECHO_N "(cached) $ECHO_C" >&6
6891 else
6892       # Double quotes because CXXCPP needs to be expanded
6893     for CXXCPP in "$CXX -E" "/lib/cpp"
6894     do
6895       ac_preproc_ok=false
6896 for ac_cxx_preproc_warn_flag in '' yes
6897 do
6898   # Use a header file that comes with gcc, so configuring glibc
6899   # with a fresh cross-compiler works.
6900   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6901   # <limits.h> exists even on freestanding compilers.
6902   # On the NeXT, cc -E runs the code through the compiler's parser,
6903   # not just through cpp. "Syntax error" is here to catch this case.
6904   cat >conftest.$ac_ext <<_ACEOF
6905 /* confdefs.h.  */
6906 _ACEOF
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h.  */
6910 #ifdef __STDC__
6911 # include <limits.h>
6912 #else
6913 # include <assert.h>
6914 #endif
6915                      Syntax error
6916 _ACEOF
6917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6918   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6919   ac_status=$?
6920   grep -v '^ *+' conftest.er1 >conftest.err
6921   rm -f conftest.er1
6922   cat conftest.err >&5
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); } >/dev/null; then
6925   if test -s conftest.err; then
6926     ac_cpp_err=$ac_cxx_preproc_warn_flag
6927     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6928   else
6929     ac_cpp_err=
6930   fi
6931 else
6932   ac_cpp_err=yes
6933 fi
6934 if test -z "$ac_cpp_err"; then
6935   :
6936 else
6937   echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6939
6940   # Broken: fails on valid input.
6941 continue
6942 fi
6943 rm -f conftest.err conftest.$ac_ext
6944
6945   # OK, works on sane cases.  Now check whether non-existent headers
6946   # can be detected and how.
6947   cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h.  */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h.  */
6953 #include <ac_nonexistent.h>
6954 _ACEOF
6955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6957   ac_status=$?
6958   grep -v '^ *+' conftest.er1 >conftest.err
6959   rm -f conftest.er1
6960   cat conftest.err >&5
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); } >/dev/null; then
6963   if test -s conftest.err; then
6964     ac_cpp_err=$ac_cxx_preproc_warn_flag
6965     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6966   else
6967     ac_cpp_err=
6968   fi
6969 else
6970   ac_cpp_err=yes
6971 fi
6972 if test -z "$ac_cpp_err"; then
6973   # Broken: success on invalid input.
6974 continue
6975 else
6976   echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6978
6979   # Passes both tests.
6980 ac_preproc_ok=:
6981 break
6982 fi
6983 rm -f conftest.err conftest.$ac_ext
6984
6985 done
6986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6987 rm -f conftest.err conftest.$ac_ext
6988 if $ac_preproc_ok; then
6989   break
6990 fi
6991
6992     done
6993     ac_cv_prog_CXXCPP=$CXXCPP
6994
6995 fi
6996   CXXCPP=$ac_cv_prog_CXXCPP
6997 else
6998   ac_cv_prog_CXXCPP=$CXXCPP
6999 fi
7000 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7001 echo "${ECHO_T}$CXXCPP" >&6
7002 ac_preproc_ok=false
7003 for ac_cxx_preproc_warn_flag in '' yes
7004 do
7005   # Use a header file that comes with gcc, so configuring glibc
7006   # with a fresh cross-compiler works.
7007   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7008   # <limits.h> exists even on freestanding compilers.
7009   # On the NeXT, cc -E runs the code through the compiler's parser,
7010   # not just through cpp. "Syntax error" is here to catch this case.
7011   cat >conftest.$ac_ext <<_ACEOF
7012 /* confdefs.h.  */
7013 _ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h.  */
7017 #ifdef __STDC__
7018 # include <limits.h>
7019 #else
7020 # include <assert.h>
7021 #endif
7022                      Syntax error
7023 _ACEOF
7024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7026   ac_status=$?
7027   grep -v '^ *+' conftest.er1 >conftest.err
7028   rm -f conftest.er1
7029   cat conftest.err >&5
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); } >/dev/null; then
7032   if test -s conftest.err; then
7033     ac_cpp_err=$ac_cxx_preproc_warn_flag
7034     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7035   else
7036     ac_cpp_err=
7037   fi
7038 else
7039   ac_cpp_err=yes
7040 fi
7041 if test -z "$ac_cpp_err"; then
7042   :
7043 else
7044   echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7046
7047   # Broken: fails on valid input.
7048 continue
7049 fi
7050 rm -f conftest.err conftest.$ac_ext
7051
7052   # OK, works on sane cases.  Now check whether non-existent headers
7053   # can be detected and how.
7054   cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h.  */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h.  */
7060 #include <ac_nonexistent.h>
7061 _ACEOF
7062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7064   ac_status=$?
7065   grep -v '^ *+' conftest.er1 >conftest.err
7066   rm -f conftest.er1
7067   cat conftest.err >&5
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); } >/dev/null; then
7070   if test -s conftest.err; then
7071     ac_cpp_err=$ac_cxx_preproc_warn_flag
7072     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7073   else
7074     ac_cpp_err=
7075   fi
7076 else
7077   ac_cpp_err=yes
7078 fi
7079 if test -z "$ac_cpp_err"; then
7080   # Broken: success on invalid input.
7081 continue
7082 else
7083   echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7085
7086   # Passes both tests.
7087 ac_preproc_ok=:
7088 break
7089 fi
7090 rm -f conftest.err conftest.$ac_ext
7091
7092 done
7093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7094 rm -f conftest.err conftest.$ac_ext
7095 if $ac_preproc_ok; then
7096   :
7097 else
7098   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7099 See \`config.log' for more details." >&5
7100 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7101 See \`config.log' for more details." >&2;}
7102    { (exit 1); exit 1; }; }
7103 fi
7104
7105 ac_ext=cc
7106 ac_cpp='$CXXCPP $CPPFLAGS'
7107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7110
7111
7112 ac_ext=f
7113 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7114 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7116 if test -n "$ac_tool_prefix"; then
7117   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7118   do
7119     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7121 echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7123 if test "${ac_cv_prog_F77+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   if test -n "$F77"; then
7127   ac_cv_prog_F77="$F77" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134   for ac_exec_ext in '' $ac_executable_extensions; do
7135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141 done
7142
7143 fi
7144 fi
7145 F77=$ac_cv_prog_F77
7146 if test -n "$F77"; then
7147   echo "$as_me:$LINENO: result: $F77" >&5
7148 echo "${ECHO_T}$F77" >&6
7149 else
7150   echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6
7152 fi
7153
7154     test -n "$F77" && break
7155   done
7156 fi
7157 if test -z "$F77"; then
7158   ac_ct_F77=$F77
7159   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7160 do
7161   # Extract the first word of "$ac_prog", so it can be a program name with args.
7162 set dummy $ac_prog; ac_word=$2
7163 echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7165 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7166   echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168   if test -n "$ac_ct_F77"; then
7169   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174   IFS=$as_save_IFS
7175   test -z "$as_dir" && as_dir=.
7176   for ac_exec_ext in '' $ac_executable_extensions; do
7177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178     ac_cv_prog_ac_ct_F77="$ac_prog"
7179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180     break 2
7181   fi
7182 done
7183 done
7184
7185 fi
7186 fi
7187 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7188 if test -n "$ac_ct_F77"; then
7189   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7190 echo "${ECHO_T}$ac_ct_F77" >&6
7191 else
7192   echo "$as_me:$LINENO: result: no" >&5
7193 echo "${ECHO_T}no" >&6
7194 fi
7195
7196   test -n "$ac_ct_F77" && break
7197 done
7198
7199   F77=$ac_ct_F77
7200 fi
7201
7202
7203 # Provide some information about the compiler.
7204 echo "$as_me:7204:" \
7205      "checking for Fortran 77 compiler version" >&5
7206 ac_compiler=`set X $ac_compile; echo $2`
7207 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7208   (eval $ac_compiler --version </dev/null >&5) 2>&5
7209   ac_status=$?
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); }
7212 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7213   (eval $ac_compiler -v </dev/null >&5) 2>&5
7214   ac_status=$?
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); }
7217 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7218   (eval $ac_compiler -V </dev/null >&5) 2>&5
7219   ac_status=$?
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); }
7222 rm -f a.out
7223
7224 # If we don't use `.F' as extension, the preprocessor is not run on the
7225 # input file.  (Note that this only needs to work for GNU compilers.)
7226 ac_save_ext=$ac_ext
7227 ac_ext=F
7228 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7229 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7230 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7231   echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233   cat >conftest.$ac_ext <<_ACEOF
7234       program main
7235 #ifndef __GNUC__
7236        choke me
7237 #endif
7238
7239       end
7240 _ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243   (eval $ac_compile) 2>conftest.er1
7244   ac_status=$?
7245   grep -v '^ *+' conftest.er1 >conftest.err
7246   rm -f conftest.er1
7247   cat conftest.err >&5
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); } &&
7250          { ac_try='test -z "$ac_f77_werror_flag"
7251                          || test ! -s conftest.err'
7252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253   (eval $ac_try) 2>&5
7254   ac_status=$?
7255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256   (exit $ac_status); }; } &&
7257          { ac_try='test -s conftest.$ac_objext'
7258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259   (eval $ac_try) 2>&5
7260   ac_status=$?
7261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); }; }; then
7263   ac_compiler_gnu=yes
7264 else
7265   echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7267
7268 ac_compiler_gnu=no
7269 fi
7270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7271 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7272
7273 fi
7274 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7275 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7276 ac_ext=$ac_save_ext
7277 ac_test_FFLAGS=${FFLAGS+set}
7278 ac_save_FFLAGS=$FFLAGS
7279 FFLAGS=
7280 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7281 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7282 if test "${ac_cv_prog_f77_g+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   FFLAGS=-g
7286 cat >conftest.$ac_ext <<_ACEOF
7287       program main
7288
7289       end
7290 _ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7293   (eval $ac_compile) 2>conftest.er1
7294   ac_status=$?
7295   grep -v '^ *+' conftest.er1 >conftest.err
7296   rm -f conftest.er1
7297   cat conftest.err >&5
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); } &&
7300          { ac_try='test -z "$ac_f77_werror_flag"
7301                          || test ! -s conftest.err'
7302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303   (eval $ac_try) 2>&5
7304   ac_status=$?
7305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306   (exit $ac_status); }; } &&
7307          { ac_try='test -s conftest.$ac_objext'
7308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309   (eval $ac_try) 2>&5
7310   ac_status=$?
7311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312   (exit $ac_status); }; }; then
7313   ac_cv_prog_f77_g=yes
7314 else
7315   echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7317
7318 ac_cv_prog_f77_g=no
7319 fi
7320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7321
7322 fi
7323 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7324 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7325 if test "$ac_test_FFLAGS" = set; then
7326   FFLAGS=$ac_save_FFLAGS
7327 elif test $ac_cv_prog_f77_g = yes; then
7328   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7329     FFLAGS="-g -O2"
7330   else
7331     FFLAGS="-g"
7332   fi
7333 else
7334   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7335     FFLAGS="-O2"
7336   else
7337     FFLAGS=
7338   fi
7339 fi
7340
7341 G77=`test $ac_compiler_gnu = yes && echo yes`
7342 ac_ext=c
7343 ac_cpp='$CPP $CPPFLAGS'
7344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7347
7348
7349
7350 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7351
7352 # find the maximum length of command line arguments
7353 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7354 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7355 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7356   echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358     i=0
7359   teststring="ABCD"
7360
7361   case $build_os in
7362   msdosdjgpp*)
7363     # On DJGPP, this test can blow up pretty badly due to problems in libc
7364     # (any single argument exceeding 2000 bytes causes a buffer overrun
7365     # during glob expansion).  Even if it were fixed, the result of this
7366     # check would be larger than it should be.
7367     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7368     ;;
7369
7370   gnu*)
7371     # Under GNU Hurd, this test is not required because there is
7372     # no limit to the length of command line arguments.
7373     # Libtool will interpret -1 as no limit whatsoever
7374     lt_cv_sys_max_cmd_len=-1;
7375     ;;
7376
7377   cygwin* | mingw*)
7378     # On Win9x/ME, this test blows up -- it succeeds, but takes
7379     # about 5 minutes as the teststring grows exponentially.
7380     # Worse, since 9x/ME are not pre-emptively multitasking,
7381     # you end up with a "frozen" computer, even though with patience
7382     # the test eventually succeeds (with a max line length of 256k).
7383     # Instead, let's just punt: use the minimum linelength reported by
7384     # all of the supported platforms: 8192 (on NT/2K/XP).
7385     lt_cv_sys_max_cmd_len=8192;
7386     ;;
7387
7388   amigaos*)
7389     # On AmigaOS with pdksh, this test takes hours, literally.
7390     # So we just punt and use a minimum line length of 8192.
7391     lt_cv_sys_max_cmd_len=8192;
7392     ;;
7393
7394  *)
7395     # If test is not a shell built-in, we'll probably end up computing a
7396     # maximum length that is only half of the actual maximum length, but
7397     # we can't tell.
7398     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7399                = "XX$teststring") >/dev/null 2>&1 &&
7400             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7401             lt_cv_sys_max_cmd_len=$new_result &&
7402             test $i != 17 # 1/2 MB should be enough
7403     do
7404       i=`expr $i + 1`
7405       teststring=$teststring$teststring
7406     done
7407     teststring=
7408     # Add a significant safety factor because C++ compilers can tack on massive
7409     # amounts of additional arguments before passing them to the linker.
7410     # It appears as though 1/2 is a usable value.
7411     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7412     ;;
7413   esac
7414
7415 fi
7416
7417 if test -n $lt_cv_sys_max_cmd_len ; then
7418   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7419 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7420 else
7421   echo "$as_me:$LINENO: result: none" >&5
7422 echo "${ECHO_T}none" >&6
7423 fi
7424
7425
7426
7427
7428 # Check for command to grab the raw symbol name followed by C symbol from nm.
7429 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7430 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7431 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7432   echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434
7435 # These are sane defaults that work on at least a few old systems.
7436 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7437
7438 # Character class describing NM global symbol codes.
7439 symcode='[BCDEGRST]'
7440
7441 # Regexp to match symbols that can be accessed directly from C.
7442 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7443
7444 # Transform the above into a raw symbol and a C symbol.
7445 symxfrm='\1 \2\3 \3'
7446
7447 # Transform an extracted symbol line into a proper C declaration
7448 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7449
7450 # Transform an extracted symbol line into symbol name and symbol address
7451 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'"
7452
7453 # Define system-specific variables.
7454 case $host_os in
7455 aix*)
7456   symcode='[BCDT]'
7457   ;;
7458 cygwin* | mingw* | pw32*)
7459   symcode='[ABCDGISTW]'
7460   ;;
7461 hpux*) # Its linker distinguishes data from code symbols
7462   if test "$host_cpu" = ia64; then
7463     symcode='[ABCDEGRST]'
7464   fi
7465   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7466   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'"
7467   ;;
7468 irix* | nonstopux*)
7469   symcode='[BCDEGRST]'
7470   ;;
7471 osf*)
7472   symcode='[BCDEGQRST]'
7473   ;;
7474 solaris* | sysv5*)
7475   symcode='[BDRT]'
7476   ;;
7477 sysv4)
7478   symcode='[DFNSTU]'
7479   ;;
7480 esac
7481
7482 # Handle CRLF in mingw tool chain
7483 opt_cr=
7484 case $build_os in
7485 mingw*)
7486   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7487   ;;
7488 esac
7489
7490 # If we're using GNU nm, then use its standard symbol codes.
7491 case `$NM -V 2>&1` in
7492 *GNU* | *'with BFD'*)
7493   symcode='[ABCDGIRSTW]' ;;
7494 esac
7495
7496 # Try without a prefix undercore, then with it.
7497 for ac_symprfx in "" "_"; do
7498
7499   # Write the raw and C identifiers.
7500   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7501
7502   # Check to see that the pipe works correctly.
7503   pipe_works=no
7504
7505   rm -f conftest*
7506   cat > conftest.$ac_ext <<EOF
7507 #ifdef __cplusplus
7508 extern "C" {
7509 #endif
7510 char nm_test_var;
7511 void nm_test_func(){}
7512 #ifdef __cplusplus
7513 }
7514 #endif
7515 int main(){nm_test_var='a';nm_test_func();return(0);}
7516 EOF
7517
7518   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519   (eval $ac_compile) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; then
7523     # Now try to grab the symbols.
7524     nlist=conftest.nm
7525     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7526   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7527   ac_status=$?
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); } && test -s "$nlist"; then
7530       # Try sorting and uniquifying the output.
7531       if sort "$nlist" | uniq > "$nlist"T; then
7532         mv -f "$nlist"T "$nlist"
7533       else
7534         rm -f "$nlist"T
7535       fi
7536
7537       # Make sure that we snagged all the symbols we need.
7538       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7539         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7540           cat <<EOF > conftest.$ac_ext
7541 #ifdef __cplusplus
7542 extern "C" {
7543 #endif
7544
7545 EOF
7546           # Now generate the symbol file.
7547           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7548
7549           cat <<EOF >> conftest.$ac_ext
7550 #if defined (__STDC__) && __STDC__
7551 # define lt_ptr_t void *
7552 #else
7553 # define lt_ptr_t char *
7554 # define const
7555 #endif
7556
7557 /* The mapping between symbol names and symbols. */
7558 const struct {
7559   const char *name;
7560   lt_ptr_t address;
7561 }
7562 lt_preloaded_symbols[] =
7563 {
7564 EOF
7565           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7566           cat <<\EOF >> conftest.$ac_ext
7567   {0, (lt_ptr_t) 0}
7568 };
7569
7570 #ifdef __cplusplus
7571 }
7572 #endif
7573 EOF
7574           # Now try linking the two files.
7575           mv conftest.$ac_objext conftstm.$ac_objext
7576           lt_save_LIBS="$LIBS"
7577           lt_save_CFLAGS="$CFLAGS"
7578           LIBS="conftstm.$ac_objext"
7579           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7580           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581   (eval $ac_link) 2>&5
7582   ac_status=$?
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7585             pipe_works=yes
7586           fi
7587           LIBS="$lt_save_LIBS"
7588           CFLAGS="$lt_save_CFLAGS"
7589         else
7590           echo "cannot find nm_test_func in $nlist" >&5
7591         fi
7592       else
7593         echo "cannot find nm_test_var in $nlist" >&5
7594       fi
7595     else
7596       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7597     fi
7598   else
7599     echo "$progname: failed program was:" >&5
7600     cat conftest.$ac_ext >&5
7601   fi
7602   rm -f conftest* conftst*
7603
7604   # Do not use the global_symbol_pipe unless it works.
7605   if test "$pipe_works" = yes; then
7606     break
7607   else
7608     lt_cv_sys_global_symbol_pipe=
7609   fi
7610 done
7611
7612 fi
7613
7614 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7615   lt_cv_sys_global_symbol_to_cdecl=
7616 fi
7617 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7618   echo "$as_me:$LINENO: result: failed" >&5
7619 echo "${ECHO_T}failed" >&6
7620 else
7621   echo "$as_me:$LINENO: result: ok" >&5
7622 echo "${ECHO_T}ok" >&6
7623 fi
7624
7625 echo "$as_me:$LINENO: checking for objdir" >&5
7626 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7627 if test "${lt_cv_objdir+set}" = set; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630   rm -f .libs 2>/dev/null
7631 mkdir .libs 2>/dev/null
7632 if test -d .libs; then
7633   lt_cv_objdir=.libs
7634 else
7635   # MS-DOS does not allow filenames that begin with a dot.
7636   lt_cv_objdir=_libs
7637 fi
7638 rmdir .libs 2>/dev/null
7639 fi
7640 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7641 echo "${ECHO_T}$lt_cv_objdir" >&6
7642 objdir=$lt_cv_objdir
7643
7644
7645
7646
7647
7648 case $host_os in
7649 aix3*)
7650   # AIX sometimes has problems with the GCC collect2 program.  For some
7651   # reason, if we set the COLLECT_NAMES environment variable, the problems
7652   # vanish in a puff of smoke.
7653   if test "X${COLLECT_NAMES+set}" != Xset; then
7654     COLLECT_NAMES=
7655     export COLLECT_NAMES
7656   fi
7657   ;;
7658 esac
7659
7660 # Sed substitution that helps us do robust quoting.  It backslashifies
7661 # metacharacters that are still active within double-quoted strings.
7662 Xsed='sed -e s/^X//'
7663 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7664
7665 # Same as above, but do not quote variable references.
7666 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7667
7668 # Sed substitution to delay expansion of an escaped shell variable in a
7669 # double_quote_subst'ed string.
7670 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7671
7672 # Sed substitution to avoid accidental globbing in evaled expressions
7673 no_glob_subst='s/\*/\\\*/g'
7674
7675 # Constants:
7676 rm="rm -f"
7677
7678 # Global variables:
7679 default_ofile=libtool
7680 can_build_shared=yes
7681
7682 # All known linkers require a `.a' archive for static linking (except M$VC,
7683 # which needs '.lib').
7684 libext=a
7685 ltmain="$ac_aux_dir/ltmain.sh"
7686 ofile="$default_ofile"
7687 with_gnu_ld="$lt_cv_prog_gnu_ld"
7688
7689 if test -n "$ac_tool_prefix"; then
7690   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7691 set dummy ${ac_tool_prefix}ar; ac_word=$2
7692 echo "$as_me:$LINENO: checking for $ac_word" >&5
7693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7694 if test "${ac_cv_prog_AR+set}" = set; then
7695   echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697   if test -n "$AR"; then
7698   ac_cv_prog_AR="$AR" # Let the user override the test.
7699 else
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7702 do
7703   IFS=$as_save_IFS
7704   test -z "$as_dir" && as_dir=.
7705   for ac_exec_ext in '' $ac_executable_extensions; do
7706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707     ac_cv_prog_AR="${ac_tool_prefix}ar"
7708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7709     break 2
7710   fi
7711 done
7712 done
7713
7714 fi
7715 fi
7716 AR=$ac_cv_prog_AR
7717 if test -n "$AR"; then
7718   echo "$as_me:$LINENO: result: $AR" >&5
7719 echo "${ECHO_T}$AR" >&6
7720 else
7721   echo "$as_me:$LINENO: result: no" >&5
7722 echo "${ECHO_T}no" >&6
7723 fi
7724
7725 fi
7726 if test -z "$ac_cv_prog_AR"; then
7727   ac_ct_AR=$AR
7728   # Extract the first word of "ar", so it can be a program name with args.
7729 set dummy ar; ac_word=$2
7730 echo "$as_me:$LINENO: checking for $ac_word" >&5
7731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7732 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7733   echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735   if test -n "$ac_ct_AR"; then
7736   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741   IFS=$as_save_IFS
7742   test -z "$as_dir" && as_dir=.
7743   for ac_exec_ext in '' $ac_executable_extensions; do
7744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745     ac_cv_prog_ac_ct_AR="ar"
7746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747     break 2
7748   fi
7749 done
7750 done
7751
7752   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7753 fi
7754 fi
7755 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7756 if test -n "$ac_ct_AR"; then
7757   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7758 echo "${ECHO_T}$ac_ct_AR" >&6
7759 else
7760   echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6
7762 fi
7763
7764   AR=$ac_ct_AR
7765 else
7766   AR="$ac_cv_prog_AR"
7767 fi
7768
7769 if test -n "$ac_tool_prefix"; then
7770   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7771 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7772 echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7774 if test "${ac_cv_prog_RANLIB+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   if test -n "$RANLIB"; then
7778   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783   IFS=$as_save_IFS
7784   test -z "$as_dir" && as_dir=.
7785   for ac_exec_ext in '' $ac_executable_extensions; do
7786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789     break 2
7790   fi
7791 done
7792 done
7793
7794 fi
7795 fi
7796 RANLIB=$ac_cv_prog_RANLIB
7797 if test -n "$RANLIB"; then
7798   echo "$as_me:$LINENO: result: $RANLIB" >&5
7799 echo "${ECHO_T}$RANLIB" >&6
7800 else
7801   echo "$as_me:$LINENO: result: no" >&5
7802 echo "${ECHO_T}no" >&6
7803 fi
7804
7805 fi
7806 if test -z "$ac_cv_prog_RANLIB"; then
7807   ac_ct_RANLIB=$RANLIB
7808   # Extract the first word of "ranlib", so it can be a program name with args.
7809 set dummy ranlib; ac_word=$2
7810 echo "$as_me:$LINENO: checking for $ac_word" >&5
7811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7812 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7813   echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815   if test -n "$ac_ct_RANLIB"; then
7816   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7817 else
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 for as_dir in $PATH
7820 do
7821   IFS=$as_save_IFS
7822   test -z "$as_dir" && as_dir=.
7823   for ac_exec_ext in '' $ac_executable_extensions; do
7824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7825     ac_cv_prog_ac_ct_RANLIB="ranlib"
7826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7827     break 2
7828   fi
7829 done
7830 done
7831
7832   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7833 fi
7834 fi
7835 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7836 if test -n "$ac_ct_RANLIB"; then
7837   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7838 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7839 else
7840   echo "$as_me:$LINENO: result: no" >&5
7841 echo "${ECHO_T}no" >&6
7842 fi
7843
7844   RANLIB=$ac_ct_RANLIB
7845 else
7846   RANLIB="$ac_cv_prog_RANLIB"
7847 fi
7848
7849 if test -n "$ac_tool_prefix"; then
7850   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7851 set dummy ${ac_tool_prefix}strip; ac_word=$2
7852 echo "$as_me:$LINENO: checking for $ac_word" >&5
7853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7854 if test "${ac_cv_prog_STRIP+set}" = set; then
7855   echo $ECHO_N "(cached) $ECHO_C" >&6
7856 else
7857   if test -n "$STRIP"; then
7858   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7859 else
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 for as_dir in $PATH
7862 do
7863   IFS=$as_save_IFS
7864   test -z "$as_dir" && as_dir=.
7865   for ac_exec_ext in '' $ac_executable_extensions; do
7866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7867     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7869     break 2
7870   fi
7871 done
7872 done
7873
7874 fi
7875 fi
7876 STRIP=$ac_cv_prog_STRIP
7877 if test -n "$STRIP"; then
7878   echo "$as_me:$LINENO: result: $STRIP" >&5
7879 echo "${ECHO_T}$STRIP" >&6
7880 else
7881   echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6
7883 fi
7884
7885 fi
7886 if test -z "$ac_cv_prog_STRIP"; then
7887   ac_ct_STRIP=$STRIP
7888   # Extract the first word of "strip", so it can be a program name with args.
7889 set dummy strip; ac_word=$2
7890 echo "$as_me:$LINENO: checking for $ac_word" >&5
7891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7892 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7893   echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895   if test -n "$ac_ct_STRIP"; then
7896   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901   IFS=$as_save_IFS
7902   test -z "$as_dir" && as_dir=.
7903   for ac_exec_ext in '' $ac_executable_extensions; do
7904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7905     ac_cv_prog_ac_ct_STRIP="strip"
7906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7907     break 2
7908   fi
7909 done
7910 done
7911
7912   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7913 fi
7914 fi
7915 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7916 if test -n "$ac_ct_STRIP"; then
7917   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7918 echo "${ECHO_T}$ac_ct_STRIP" >&6
7919 else
7920   echo "$as_me:$LINENO: result: no" >&5
7921 echo "${ECHO_T}no" >&6
7922 fi
7923
7924   STRIP=$ac_ct_STRIP
7925 else
7926   STRIP="$ac_cv_prog_STRIP"
7927 fi
7928
7929
7930 old_CC="$CC"
7931 old_CFLAGS="$CFLAGS"
7932
7933 # Set sane defaults for various variables
7934 test -z "$AR" && AR=ar
7935 test -z "$AR_FLAGS" && AR_FLAGS=cru
7936 test -z "$AS" && AS=as
7937 test -z "$CC" && CC=cc
7938 test -z "$LTCC" && LTCC=$CC
7939 test -z "$DLLTOOL" && DLLTOOL=dlltool
7940 test -z "$LD" && LD=ld
7941 test -z "$LN_S" && LN_S="ln -s"
7942 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7943 test -z "$NM" && NM=nm
7944 test -z "$SED" && SED=sed
7945 test -z "$OBJDUMP" && OBJDUMP=objdump
7946 test -z "$RANLIB" && RANLIB=:
7947 test -z "$STRIP" && STRIP=:
7948 test -z "$ac_objext" && ac_objext=o
7949
7950 # Determine commands to create old-style static archives.
7951 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7952 old_postinstall_cmds='chmod 644 $oldlib'
7953 old_postuninstall_cmds=
7954
7955 if test -n "$RANLIB"; then
7956   case $host_os in
7957   openbsd*)
7958     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7959     ;;
7960   *)
7961     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7962     ;;
7963   esac
7964   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7965 fi
7966
7967 # Only perform the check for file, if the check method requires it
7968 case $deplibs_check_method in
7969 file_magic*)
7970   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7971     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7972 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7973 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7974   echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976   case $MAGIC_CMD in
7977 [\\/*] |  ?:[\\/]*)
7978   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7979   ;;
7980 *)
7981   lt_save_MAGIC_CMD="$MAGIC_CMD"
7982   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7983   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7984   for ac_dir in $ac_dummy; do
7985     IFS="$lt_save_ifs"
7986     test -z "$ac_dir" && ac_dir=.
7987     if test -f $ac_dir/${ac_tool_prefix}file; then
7988       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7989       if test -n "$file_magic_test_file"; then
7990         case $deplibs_check_method in
7991         "file_magic "*)
7992           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7993           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7994           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7995             $EGREP "$file_magic_regex" > /dev/null; then
7996             :
7997           else
7998             cat <<EOF 1>&2
7999
8000 *** Warning: the command libtool uses to detect shared libraries,
8001 *** $file_magic_cmd, produces output that libtool cannot recognize.
8002 *** The result is that libtool may fail to recognize shared libraries
8003 *** as such.  This will affect the creation of libtool libraries that
8004 *** depend on shared libraries, but programs linked with such libtool
8005 *** libraries will work regardless of this problem.  Nevertheless, you
8006 *** may want to report the problem to your system manager and/or to
8007 *** bug-libtool@gnu.org
8008
8009 EOF
8010           fi ;;
8011         esac
8012       fi
8013       break
8014     fi
8015   done
8016   IFS="$lt_save_ifs"
8017   MAGIC_CMD="$lt_save_MAGIC_CMD"
8018   ;;
8019 esac
8020 fi
8021
8022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8023 if test -n "$MAGIC_CMD"; then
8024   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8025 echo "${ECHO_T}$MAGIC_CMD" >&6
8026 else
8027   echo "$as_me:$LINENO: result: no" >&5
8028 echo "${ECHO_T}no" >&6
8029 fi
8030
8031 if test -z "$lt_cv_path_MAGIC_CMD"; then
8032   if test -n "$ac_tool_prefix"; then
8033     echo "$as_me:$LINENO: checking for file" >&5
8034 echo $ECHO_N "checking for file... $ECHO_C" >&6
8035 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8036   echo $ECHO_N "(cached) $ECHO_C" >&6
8037 else
8038   case $MAGIC_CMD in
8039 [\\/*] |  ?:[\\/]*)
8040   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8041   ;;
8042 *)
8043   lt_save_MAGIC_CMD="$MAGIC_CMD"
8044   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8045   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8046   for ac_dir in $ac_dummy; do
8047     IFS="$lt_save_ifs"
8048     test -z "$ac_dir" && ac_dir=.
8049     if test -f $ac_dir/file; then
8050       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8051       if test -n "$file_magic_test_file"; then
8052         case $deplibs_check_method in
8053         "file_magic "*)
8054           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8055           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8056           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8057             $EGREP "$file_magic_regex" > /dev/null; then
8058             :
8059           else
8060             cat <<EOF 1>&2
8061
8062 *** Warning: the command libtool uses to detect shared libraries,
8063 *** $file_magic_cmd, produces output that libtool cannot recognize.
8064 *** The result is that libtool may fail to recognize shared libraries
8065 *** as such.  This will affect the creation of libtool libraries that
8066 *** depend on shared libraries, but programs linked with such libtool
8067 *** libraries will work regardless of this problem.  Nevertheless, you
8068 *** may want to report the problem to your system manager and/or to
8069 *** bug-libtool@gnu.org
8070
8071 EOF
8072           fi ;;
8073         esac
8074       fi
8075       break
8076     fi
8077   done
8078   IFS="$lt_save_ifs"
8079   MAGIC_CMD="$lt_save_MAGIC_CMD"
8080   ;;
8081 esac
8082 fi
8083
8084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8085 if test -n "$MAGIC_CMD"; then
8086   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8087 echo "${ECHO_T}$MAGIC_CMD" >&6
8088 else
8089   echo "$as_me:$LINENO: result: no" >&5
8090 echo "${ECHO_T}no" >&6
8091 fi
8092
8093   else
8094     MAGIC_CMD=:
8095   fi
8096 fi
8097
8098   fi
8099   ;;
8100 esac
8101
8102 enable_dlopen=no
8103 enable_win32_dll=no
8104
8105 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8106 if test "${enable_libtool_lock+set}" = set; then
8107   enableval="$enable_libtool_lock"
8108
8109 fi;
8110 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8111
8112
8113 # Check whether --with-pic or --without-pic was given.
8114 if test "${with_pic+set}" = set; then
8115   withval="$with_pic"
8116   pic_mode="$withval"
8117 else
8118   pic_mode=default
8119 fi;
8120 test -z "$pic_mode" && pic_mode=default
8121
8122 # Use C for the default configuration in the libtool script
8123 tagname=
8124 lt_save_CC="$CC"
8125 ac_ext=c
8126 ac_cpp='$CPP $CPPFLAGS'
8127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8130
8131
8132 # Source file extension for C test sources.
8133 ac_ext=c
8134
8135 # Object file extension for compiled C test sources.
8136 objext=o
8137 objext=$objext
8138
8139 # Code to be used in simple compile tests
8140 lt_simple_compile_test_code="int some_variable = 0;\n"
8141
8142 # Code to be used in simple link tests
8143 lt_simple_link_test_code='int main(){return(0);}\n'
8144
8145
8146 # If no C compiler was specified, use CC.
8147 LTCC=${LTCC-"$CC"}
8148
8149 # Allow CC to be a program name with arguments.
8150 compiler=$CC
8151
8152
8153 #
8154 # Check for any special shared library compilation flags.
8155 #
8156 lt_prog_cc_shlib=
8157 if test "$GCC" = no; then
8158   case $host_os in
8159   sco3.2v5*)
8160     lt_prog_cc_shlib='-belf'
8161     ;;
8162   esac
8163 fi
8164 if test -n "$lt_prog_cc_shlib"; then
8165   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8166 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8167   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8168   else
8169     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8170 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8171     lt_cv_prog_cc_can_build_shared=no
8172   fi
8173 fi
8174
8175
8176 #
8177 # Check to make sure the static flag actually works.
8178 #
8179 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8180 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8181 if test "${lt_prog_compiler_static_works+set}" = set; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184   lt_prog_compiler_static_works=no
8185    save_LDFLAGS="$LDFLAGS"
8186    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8187    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8188    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8189      # The compiler can only warn and ignore the option if not recognized
8190      # So say no if there are warnings
8191      if test -s conftest.err; then
8192        # Append any errors to the config.log.
8193        cat conftest.err 1>&5
8194      else
8195        lt_prog_compiler_static_works=yes
8196      fi
8197    fi
8198    $rm conftest*
8199    LDFLAGS="$save_LDFLAGS"
8200
8201 fi
8202 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8203 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8204
8205 if test x"$lt_prog_compiler_static_works" = xyes; then
8206     :
8207 else
8208     lt_prog_compiler_static=
8209 fi
8210
8211
8212
8213 ## CAVEAT EMPTOR:
8214 ## There is no encapsulation within the following macros, do not change
8215 ## the running order or otherwise move them around unless you know exactly
8216 ## what you are doing...
8217
8218 lt_prog_compiler_no_builtin_flag=
8219
8220 if test "$GCC" = yes; then
8221   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8222
8223
8224 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8225 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8226 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8227   echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229   lt_cv_prog_compiler_rtti_exceptions=no
8230   ac_outfile=conftest.$ac_objext
8231    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8232    lt_compiler_flag="-fno-rtti -fno-exceptions"
8233    # Insert the option either (1) after the last *FLAGS variable, or
8234    # (2) before a word containing "conftest.", or (3) at the end.
8235    # Note that $ac_compile itself does not contain backslashes and begins
8236    # with a dollar sign (not a hyphen), so the echo should work correctly.
8237    # The option is referenced via a variable to avoid confusing sed.
8238    lt_compile=`echo "$ac_compile" | $SED \
8239    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8240    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241    -e 's:$: $lt_compiler_flag:'`
8242    (eval echo "\"\$as_me:8242: $lt_compile\"" >&5)
8243    (eval "$lt_compile" 2>conftest.err)
8244    ac_status=$?
8245    cat conftest.err >&5
8246    echo "$as_me:8246: \$? = $ac_status" >&5
8247    if (exit $ac_status) && test -s "$ac_outfile"; then
8248      # The compiler can only warn and ignore the option if not recognized
8249      # So say no if there are warnings
8250      if test ! -s conftest.err; then
8251        lt_cv_prog_compiler_rtti_exceptions=yes
8252      fi
8253    fi
8254    $rm conftest*
8255
8256 fi
8257 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8258 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8259
8260 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8261     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8262 else
8263     :
8264 fi
8265
8266 fi
8267
8268 lt_prog_compiler_wl=
8269 lt_prog_compiler_pic=
8270 lt_prog_compiler_static=
8271
8272 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8273 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8274
8275   if test "$GCC" = yes; then
8276     lt_prog_compiler_wl='-Wl,'
8277     lt_prog_compiler_static='-static'
8278
8279     case $host_os in
8280       aix*)
8281       # All AIX code is PIC.
8282       if test "$host_cpu" = ia64; then
8283         # AIX 5 now supports IA64 processor
8284         lt_prog_compiler_static='-Bstatic'
8285       fi
8286       ;;
8287
8288     amigaos*)
8289       # FIXME: we need at least 68020 code to build shared libraries, but
8290       # adding the `-m68020' flag to GCC prevents building anything better,
8291       # like `-m68040'.
8292       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8293       ;;
8294
8295     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8296       # PIC is the default for these OSes.
8297       ;;
8298
8299     mingw* | pw32* | os2*)
8300       # This hack is so that the source file can tell whether it is being
8301       # built for inclusion in a dll (and should export symbols for example).
8302       lt_prog_compiler_pic='-DDLL_EXPORT'
8303       ;;
8304
8305     darwin* | rhapsody*)
8306       # PIC is the default on this platform
8307       # Common symbols not allowed in MH_DYLIB files
8308       lt_prog_compiler_pic='-fno-common'
8309       ;;
8310
8311     msdosdjgpp*)
8312       # Just because we use GCC doesn't mean we suddenly get shared libraries
8313       # on systems that don't support them.
8314       lt_prog_compiler_can_build_shared=no
8315       enable_shared=no
8316       ;;
8317
8318     sysv4*MP*)
8319       if test -d /usr/nec; then
8320         lt_prog_compiler_pic=-Kconform_pic
8321       fi
8322       ;;
8323
8324     hpux*)
8325       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8326       # not for PA HP-UX.
8327       case "$host_cpu" in
8328       hppa*64*|ia64*)
8329         # +Z the default
8330         ;;
8331       *)
8332         lt_prog_compiler_pic='-fPIC'
8333         ;;
8334       esac
8335       ;;
8336
8337     *)
8338       lt_prog_compiler_pic='-fPIC'
8339       ;;
8340     esac
8341   else
8342     # PORTME Check for flag to pass linker flags through the system compiler.
8343     case $host_os in
8344     aix*)
8345       lt_prog_compiler_wl='-Wl,'
8346       if test "$host_cpu" = ia64; then
8347         # AIX 5 now supports IA64 processor
8348         lt_prog_compiler_static='-Bstatic'
8349       else
8350         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8351       fi
8352       ;;
8353
8354     mingw* | pw32* | os2*)
8355       # This hack is so that the source file can tell whether it is being
8356       # built for inclusion in a dll (and should export symbols for example).
8357       lt_prog_compiler_pic='-DDLL_EXPORT'
8358       ;;
8359
8360     hpux9* | hpux10* | hpux11*)
8361       lt_prog_compiler_wl='-Wl,'
8362       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8363       # not for PA HP-UX.
8364       case "$host_cpu" in
8365       hppa*64*|ia64*)
8366         # +Z the default
8367         ;;
8368       *)
8369         lt_prog_compiler_pic='+Z'
8370         ;;
8371       esac
8372       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8373       lt_prog_compiler_static='${wl}-a ${wl}archive'
8374       ;;
8375
8376     irix5* | irix6* | nonstopux*)
8377       lt_prog_compiler_wl='-Wl,'
8378       # PIC (with -KPIC) is the default.
8379       lt_prog_compiler_static='-non_shared'
8380       ;;
8381
8382     newsos6)
8383       lt_prog_compiler_pic='-KPIC'
8384       lt_prog_compiler_static='-Bstatic'
8385       ;;
8386
8387     linux*)
8388       case $CC in
8389       icc* | ecc*)
8390         lt_prog_compiler_wl='-Wl,'
8391         lt_prog_compiler_pic='-KPIC'
8392         lt_prog_compiler_static='-static'
8393         ;;
8394       ccc*)
8395         lt_prog_compiler_wl='-Wl,'
8396         # All Alpha code is PIC.
8397         lt_prog_compiler_static='-non_shared'
8398         ;;
8399       esac
8400       ;;
8401
8402     osf3* | osf4* | osf5*)
8403       lt_prog_compiler_wl='-Wl,'
8404       # All OSF/1 code is PIC.
8405       lt_prog_compiler_static='-non_shared'
8406       ;;
8407
8408     sco3.2v5*)
8409       lt_prog_compiler_pic='-Kpic'
8410       lt_prog_compiler_static='-dn'
8411       ;;
8412
8413     solaris*)
8414       lt_prog_compiler_wl='-Wl,'
8415       lt_prog_compiler_pic='-KPIC'
8416       lt_prog_compiler_static='-Bstatic'
8417       ;;
8418
8419     sunos4*)
8420       lt_prog_compiler_wl='-Qoption ld '
8421       lt_prog_compiler_pic='-PIC'
8422       lt_prog_compiler_static='-Bstatic'
8423       ;;
8424
8425     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8426       lt_prog_compiler_wl='-Wl,'
8427       lt_prog_compiler_pic='-KPIC'
8428       lt_prog_compiler_static='-Bstatic'
8429       ;;
8430
8431     sysv4*MP*)
8432       if test -d /usr/nec ;then
8433         lt_prog_compiler_pic='-Kconform_pic'
8434         lt_prog_compiler_static='-Bstatic'
8435       fi
8436       ;;
8437
8438     uts4*)
8439       lt_prog_compiler_pic='-pic'
8440       lt_prog_compiler_static='-Bstatic'
8441       ;;
8442
8443     *)
8444       lt_prog_compiler_can_build_shared=no
8445       ;;
8446     esac
8447   fi
8448
8449 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8450 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8451
8452 #
8453 # Check to make sure the PIC flag actually works.
8454 #
8455 if test -n "$lt_prog_compiler_pic"; then
8456
8457 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8458 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8459 if test "${lt_prog_compiler_pic_works+set}" = set; then
8460   echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462   lt_prog_compiler_pic_works=no
8463   ac_outfile=conftest.$ac_objext
8464    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8465    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8466    # Insert the option either (1) after the last *FLAGS variable, or
8467    # (2) before a word containing "conftest.", or (3) at the end.
8468    # Note that $ac_compile itself does not contain backslashes and begins
8469    # with a dollar sign (not a hyphen), so the echo should work correctly.
8470    # The option is referenced via a variable to avoid confusing sed.
8471    lt_compile=`echo "$ac_compile" | $SED \
8472    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8473    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8474    -e 's:$: $lt_compiler_flag:'`
8475    (eval echo "\"\$as_me:8475: $lt_compile\"" >&5)
8476    (eval "$lt_compile" 2>conftest.err)
8477    ac_status=$?
8478    cat conftest.err >&5
8479    echo "$as_me:8479: \$? = $ac_status" >&5
8480    if (exit $ac_status) && test -s "$ac_outfile"; then
8481      # The compiler can only warn and ignore the option if not recognized
8482      # So say no if there are warnings
8483      if test ! -s conftest.err; then
8484        lt_prog_compiler_pic_works=yes
8485      fi
8486    fi
8487    $rm conftest*
8488
8489 fi
8490 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8491 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8492
8493 if test x"$lt_prog_compiler_pic_works" = xyes; then
8494     case $lt_prog_compiler_pic in
8495      "" | " "*) ;;
8496      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8497      esac
8498 else
8499     lt_prog_compiler_pic=
8500      lt_prog_compiler_can_build_shared=no
8501 fi
8502
8503 fi
8504 case "$host_os" in
8505   # For platforms which do not support PIC, -DPIC is meaningless:
8506   *djgpp*)
8507     lt_prog_compiler_pic=
8508     ;;
8509   *)
8510     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8511     ;;
8512 esac
8513
8514 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8515 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8516 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   lt_cv_prog_compiler_c_o=no
8520    $rm -r conftest 2>/dev/null
8521    mkdir conftest
8522    cd conftest
8523    mkdir out
8524    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8525
8526    lt_compiler_flag="-o out/conftest2.$ac_objext"
8527    # Insert the option either (1) after the last *FLAGS variable, or
8528    # (2) before a word containing "conftest.", or (3) at the end.
8529    # Note that $ac_compile itself does not contain backslashes and begins
8530    # with a dollar sign (not a hyphen), so the echo should work correctly.
8531    lt_compile=`echo "$ac_compile" | $SED \
8532    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8533    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8534    -e 's:$: $lt_compiler_flag:'`
8535    (eval echo "\"\$as_me:8535: $lt_compile\"" >&5)
8536    (eval "$lt_compile" 2>out/conftest.err)
8537    ac_status=$?
8538    cat out/conftest.err >&5
8539    echo "$as_me:8539: \$? = $ac_status" >&5
8540    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8541    then
8542      # The compiler can only warn and ignore the option if not recognized
8543      # So say no if there are warnings
8544      if test ! -s out/conftest.err; then
8545        lt_cv_prog_compiler_c_o=yes
8546      fi
8547    fi
8548    chmod u+w .
8549    $rm conftest*
8550    # SGI C++ compiler will create directory out/ii_files/ for
8551    # template instantiation
8552    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8553    $rm out/* && rmdir out
8554    cd ..
8555    rmdir conftest
8556    $rm conftest*
8557
8558 fi
8559 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8560 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8561
8562
8563 hard_links="nottested"
8564 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8565   # do not overwrite the value of need_locks provided by the user
8566   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8567 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8568   hard_links=yes
8569   $rm conftest*
8570   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8571   touch conftest.a
8572   ln conftest.a conftest.b 2>&5 || hard_links=no
8573   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8574   echo "$as_me:$LINENO: result: $hard_links" >&5
8575 echo "${ECHO_T}$hard_links" >&6
8576   if test "$hard_links" = no; then
8577     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8578 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8579     need_locks=warn
8580   fi
8581 else
8582   need_locks=no
8583 fi
8584
8585 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8586 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8587
8588   runpath_var=
8589   allow_undefined_flag=
8590   enable_shared_with_static_runtimes=no
8591   archive_cmds=
8592   archive_expsym_cmds=
8593   old_archive_From_new_cmds=
8594   old_archive_from_expsyms_cmds=
8595   export_dynamic_flag_spec=
8596   whole_archive_flag_spec=
8597   thread_safe_flag_spec=
8598   hardcode_libdir_flag_spec=
8599   hardcode_libdir_flag_spec_ld=
8600   hardcode_libdir_separator=
8601   hardcode_direct=no
8602   hardcode_minus_L=no
8603   hardcode_shlibpath_var=unsupported
8604   link_all_deplibs=unknown
8605   hardcode_automatic=no
8606   module_cmds=
8607   module_expsym_cmds=
8608   always_export_symbols=no
8609   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8610   # include_expsyms should be a list of space-separated symbols to be *always*
8611   # included in the symbol list
8612   include_expsyms=
8613   # exclude_expsyms can be an extended regexp of symbols to exclude
8614   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8615   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8616   # as well as any symbol that contains `d'.
8617   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8618   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8619   # platforms (ab)use it in PIC code, but their linkers get confused if
8620   # the symbol is explicitly referenced.  Since portable code cannot
8621   # rely on this symbol name, it's probably fine to never include it in
8622   # preloaded symbol tables.
8623   extract_expsyms_cmds=
8624
8625   case $host_os in
8626   cygwin* | mingw* | pw32*)
8627     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8628     # When not using gcc, we currently assume that we are using
8629     # Microsoft Visual C++.
8630     if test "$GCC" != yes; then
8631       with_gnu_ld=no
8632     fi
8633     ;;
8634   openbsd*)
8635     with_gnu_ld=no
8636     ;;
8637   esac
8638
8639   ld_shlibs=yes
8640   if test "$with_gnu_ld" = yes; then
8641     # If archive_cmds runs LD, not CC, wlarc should be empty
8642     wlarc='${wl}'
8643
8644     # See if GNU ld supports shared libraries.
8645     case $host_os in
8646     aix3* | aix4* | aix5*)
8647       # On AIX/PPC, the GNU linker is very broken
8648       if test "$host_cpu" != ia64; then
8649         ld_shlibs=no
8650         cat <<EOF 1>&2
8651
8652 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8653 *** to be unable to reliably create shared libraries on AIX.
8654 *** Therefore, libtool is disabling shared libraries support.  If you
8655 *** really care for shared libraries, you may want to modify your PATH
8656 *** so that a non-GNU linker is found, and then restart.
8657
8658 EOF
8659       fi
8660       ;;
8661
8662     amigaos*)
8663       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)'
8664       hardcode_libdir_flag_spec='-L$libdir'
8665       hardcode_minus_L=yes
8666
8667       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8668       # that the semantics of dynamic libraries on AmigaOS, at least up
8669       # to version 4, is to share data among multiple programs linked
8670       # with the same dynamic library.  Since this doesn't match the
8671       # behavior of shared libraries on other platforms, we can't use
8672       # them.
8673       ld_shlibs=no
8674       ;;
8675
8676     beos*)
8677       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8678         allow_undefined_flag=unsupported
8679         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8680         # support --undefined.  This deserves some investigation.  FIXME
8681         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682       else
8683         ld_shlibs=no
8684       fi
8685       ;;
8686
8687     cygwin* | mingw* | pw32*)
8688       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8689       # as there is no search path for DLLs.
8690       hardcode_libdir_flag_spec='-L$libdir'
8691       allow_undefined_flag=unsupported
8692       always_export_symbols=no
8693       enable_shared_with_static_runtimes=yes
8694       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8695
8696       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8697         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8698         # If the export-symbols file already is a .def file (1st line
8699         # is EXPORTS), use it as is; otherwise, prepend...
8700         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8701           cp $export_symbols $output_objdir/$soname.def;
8702         else
8703           echo EXPORTS > $output_objdir/$soname.def;
8704           cat $export_symbols >> $output_objdir/$soname.def;
8705         fi~
8706         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8707       else
8708         ld_shlibs=no
8709       fi
8710       ;;
8711
8712     netbsd*)
8713       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8714         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8715         wlarc=
8716       else
8717         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8718         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8719       fi
8720       ;;
8721
8722     solaris* | sysv5*)
8723       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8724         ld_shlibs=no
8725         cat <<EOF 1>&2
8726
8727 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8728 *** create shared libraries on Solaris systems.  Therefore, libtool
8729 *** is disabling shared libraries support.  We urge you to upgrade GNU
8730 *** binutils to release 2.9.1 or newer.  Another option is to modify
8731 *** your PATH or compiler configuration so that the native linker is
8732 *** used, and then restart.
8733
8734 EOF
8735       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8736         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8738       else
8739         ld_shlibs=no
8740       fi
8741       ;;
8742
8743     sunos4*)
8744       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8745       wlarc=
8746       hardcode_direct=yes
8747       hardcode_shlibpath_var=no
8748       ;;
8749
8750   linux*)
8751     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8752         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8753         archive_cmds="$tmp_archive_cmds"
8754       supports_anon_versioning=no
8755       case `$LD -v 2>/dev/null` in
8756         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8757         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8758         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8759         *\ 2.11.*) ;; # other 2.11 versions
8760         *) supports_anon_versioning=yes ;;
8761       esac
8762       if test $supports_anon_versioning = yes; then
8763         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8764 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8765 $echo "local: *; };" >> $output_objdir/$libname.ver~
8766         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8767       else
8768         archive_expsym_cmds="$tmp_archive_cmds"
8769       fi
8770     else
8771       ld_shlibs=no
8772     fi
8773     ;;
8774
8775     *)
8776       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8777         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8778         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8779       else
8780         ld_shlibs=no
8781       fi
8782       ;;
8783     esac
8784
8785     if test "$ld_shlibs" = yes; then
8786       runpath_var=LD_RUN_PATH
8787       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8788       export_dynamic_flag_spec='${wl}--export-dynamic'
8789       # ancient GNU ld didn't support --whole-archive et. al.
8790       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8791         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8792       else
8793         whole_archive_flag_spec=
8794       fi
8795     fi
8796   else
8797     # PORTME fill in a description of your system's linker (not GNU ld)
8798     case $host_os in
8799     aix3*)
8800       allow_undefined_flag=unsupported
8801       always_export_symbols=yes
8802       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'
8803       # Note: this linker hardcodes the directories in LIBPATH if there
8804       # are no directories specified by -L.
8805       hardcode_minus_L=yes
8806       if test "$GCC" = yes && test -z "$link_static_flag"; then
8807         # Neither direct hardcoding nor static linking is supported with a
8808         # broken collect2.
8809         hardcode_direct=unsupported
8810       fi
8811       ;;
8812
8813     aix4* | aix5*)
8814       if test "$host_cpu" = ia64; then
8815         # On IA64, the linker does run time linking by default, so we don't
8816         # have to do anything special.
8817         aix_use_runtimelinking=no
8818         exp_sym_flag='-Bexport'
8819         no_entry_flag=""
8820       else
8821         # If we're using GNU nm, then we don't want the "-C" option.
8822         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8823         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8824           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'
8825         else
8826           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'
8827         fi
8828         aix_use_runtimelinking=no
8829
8830         # Test if we are trying to use run time linking or normal
8831         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8832         # need to do runtime linking.
8833         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8834           for ld_flag in $LDFLAGS; do
8835           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8836             aix_use_runtimelinking=yes
8837             break
8838           fi
8839           done
8840         esac
8841
8842         exp_sym_flag='-bexport'
8843         no_entry_flag='-bnoentry'
8844       fi
8845
8846       # When large executables or shared objects are built, AIX ld can
8847       # have problems creating the table of contents.  If linking a library
8848       # or program results in "error TOC overflow" add -mminimal-toc to
8849       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8850       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8851
8852       archive_cmds=''
8853       hardcode_direct=yes
8854       hardcode_libdir_separator=':'
8855       link_all_deplibs=yes
8856
8857       if test "$GCC" = yes; then
8858         case $host_os in aix4.012|aix4.012.*)
8859         # We only want to do this on AIX 4.2 and lower, the check
8860         # below for broken collect2 doesn't work under 4.3+
8861           collect2name=`${CC} -print-prog-name=collect2`
8862           if test -f "$collect2name" && \
8863            strings "$collect2name" | grep resolve_lib_name >/dev/null
8864           then
8865           # We have reworked collect2
8866           hardcode_direct=yes
8867           else
8868           # We have old collect2
8869           hardcode_direct=unsupported
8870           # It fails to find uninstalled libraries when the uninstalled
8871           # path is not listed in the libpath.  Setting hardcode_minus_L
8872           # to unsupported forces relinking
8873           hardcode_minus_L=yes
8874           hardcode_libdir_flag_spec='-L$libdir'
8875           hardcode_libdir_separator=
8876           fi
8877         esac
8878         shared_flag='-shared'
8879       else
8880         # not using gcc
8881         if test "$host_cpu" = ia64; then
8882         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8883         # chokes on -Wl,-G. The following line is correct:
8884           shared_flag='-G'
8885         else
8886         if test "$aix_use_runtimelinking" = yes; then
8887             shared_flag='${wl}-G'
8888           else
8889             shared_flag='${wl}-bM:SRE'
8890         fi
8891         fi
8892       fi
8893
8894       # It seems that -bexpall does not export symbols beginning with
8895       # underscore (_), so it is better to generate a list of symbols to export.
8896       always_export_symbols=yes
8897       if test "$aix_use_runtimelinking" = yes; then
8898         # Warning - without using the other runtime loading flags (-brtl),
8899         # -berok will link without error, but may produce a broken library.
8900         allow_undefined_flag='-berok'
8901        # Determine the default libpath from the value encoded in an empty executable.
8902        cat >conftest.$ac_ext <<_ACEOF
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908
8909 int
8910 main ()
8911 {
8912
8913   ;
8914   return 0;
8915 }
8916 _ACEOF
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919   (eval $ac_link) 2>conftest.er1
8920   ac_status=$?
8921   grep -v '^ *+' conftest.er1 >conftest.err
8922   rm -f conftest.er1
8923   cat conftest.err >&5
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } &&
8926          { ac_try='test -z "$ac_c_werror_flag"
8927                          || test ! -s conftest.err'
8928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929   (eval $ac_try) 2>&5
8930   ac_status=$?
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); }; } &&
8933          { ac_try='test -s conftest$ac_exeext'
8934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935   (eval $ac_try) 2>&5
8936   ac_status=$?
8937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938   (exit $ac_status); }; }; then
8939
8940 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8941 }'`
8942 # Check for a 64-bit object if we didn't find anything.
8943 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; }
8944 }'`; fi
8945 else
8946   echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8948
8949 fi
8950 rm -f conftest.err conftest.$ac_objext \
8951       conftest$ac_exeext conftest.$ac_ext
8952 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8953
8954        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8955         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"
8956        else
8957         if test "$host_cpu" = ia64; then
8958           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8959           allow_undefined_flag="-z nodefs"
8960           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"
8961         else
8962          # Determine the default libpath from the value encoded in an empty executable.
8963          cat >conftest.$ac_ext <<_ACEOF
8964 /* confdefs.h.  */
8965 _ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h.  */
8969
8970 int
8971 main ()
8972 {
8973
8974   ;
8975   return 0;
8976 }
8977 _ACEOF
8978 rm -f conftest.$ac_objext conftest$ac_exeext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980   (eval $ac_link) 2>conftest.er1
8981   ac_status=$?
8982   grep -v '^ *+' conftest.er1 >conftest.err
8983   rm -f conftest.er1
8984   cat conftest.err >&5
8985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986   (exit $ac_status); } &&
8987          { ac_try='test -z "$ac_c_werror_flag"
8988                          || test ! -s conftest.err'
8989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990   (eval $ac_try) 2>&5
8991   ac_status=$?
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); }; } &&
8994          { ac_try='test -s conftest$ac_exeext'
8995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996   (eval $ac_try) 2>&5
8997   ac_status=$?
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); }; }; then
9000
9001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9002 }'`
9003 # Check for a 64-bit object if we didn't find anything.
9004 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; }
9005 }'`; fi
9006 else
9007   echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9009
9010 fi
9011 rm -f conftest.err conftest.$ac_objext \
9012       conftest$ac_exeext conftest.$ac_ext
9013 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9014
9015          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9016           # Warning - without using the other run time loading flags,
9017           # -berok will link without error, but may produce a broken library.
9018           no_undefined_flag=' ${wl}-bernotok'
9019           allow_undefined_flag=' ${wl}-berok'
9020           # -bexpall does not export symbols beginning with underscore (_)
9021           always_export_symbols=yes
9022           # Exported symbols can be pulled into shared objects from archives
9023           whole_archive_flag_spec=' '
9024           archive_cmds_need_lc=yes
9025           # This is similar to how AIX traditionally builds it's shared libraries.
9026           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'
9027         fi
9028       fi
9029       ;;
9030
9031     amigaos*)
9032       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)'
9033       hardcode_libdir_flag_spec='-L$libdir'
9034       hardcode_minus_L=yes
9035       # see comment about different semantics on the GNU ld section
9036       ld_shlibs=no
9037       ;;
9038
9039     bsdi4*)
9040       export_dynamic_flag_spec=-rdynamic
9041       ;;
9042
9043     cygwin* | mingw* | pw32*)
9044       # When not using gcc, we currently assume that we are using
9045       # Microsoft Visual C++.
9046       # hardcode_libdir_flag_spec is actually meaningless, as there is
9047       # no search path for DLLs.
9048       hardcode_libdir_flag_spec=' '
9049       allow_undefined_flag=unsupported
9050       # Tell ltmain to make .lib files, not .a files.
9051       libext=lib
9052       # Tell ltmain to make .dll files, not .so files.
9053       shrext_cmds=".dll"
9054       # FIXME: Setting linknames here is a bad hack.
9055       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9056       # The linker will automatically build a .lib file if we build a DLL.
9057       old_archive_From_new_cmds='true'
9058       # FIXME: Should let the user specify the lib program.
9059       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9060       fix_srcfile_path='`cygpath -w "$srcfile"`'
9061       enable_shared_with_static_runtimes=yes
9062       ;;
9063
9064     darwin* | rhapsody*)
9065     if test "$GXX" = yes ; then
9066       archive_cmds_need_lc=no
9067       case "$host_os" in
9068       rhapsody* | darwin1.[012])
9069         allow_undefined_flag='-undefined suppress'
9070         ;;
9071       *) # Darwin 1.3 on
9072       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9073         allow_undefined_flag='-flat_namespace -undefined suppress'
9074       else
9075         case ${MACOSX_DEPLOYMENT_TARGET} in
9076           10.[012])
9077             allow_undefined_flag='-flat_namespace -undefined suppress'
9078             ;;
9079           10.*)
9080             allow_undefined_flag='-undefined dynamic_lookup'
9081             ;;
9082         esac
9083       fi
9084         ;;
9085       esac
9086         lt_int_apple_cc_single_mod=no
9087         output_verbose_link_cmd='echo'
9088         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9089           lt_int_apple_cc_single_mod=yes
9090         fi
9091         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9092           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9093         else
9094         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'
9095       fi
9096       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9097       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9098         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9099           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}'
9100         else
9101           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}'
9102         fi
9103           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}'
9104       hardcode_direct=no
9105       hardcode_automatic=yes
9106       hardcode_shlibpath_var=unsupported
9107       whole_archive_flag_spec='-all_load $convenience'
9108       link_all_deplibs=yes
9109     else
9110       ld_shlibs=no
9111     fi
9112       ;;
9113
9114     dgux*)
9115       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9116       hardcode_libdir_flag_spec='-L$libdir'
9117       hardcode_shlibpath_var=no
9118       ;;
9119
9120     freebsd1*)
9121       ld_shlibs=no
9122       ;;
9123
9124     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9125     # support.  Future versions do this automatically, but an explicit c++rt0.o
9126     # does not break anything, and helps significantly (at the cost of a little
9127     # extra space).
9128     freebsd2.2*)
9129       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9130       hardcode_libdir_flag_spec='-R$libdir'
9131       hardcode_direct=yes
9132       hardcode_shlibpath_var=no
9133       ;;
9134
9135     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9136     freebsd2*)
9137       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9138       hardcode_direct=yes
9139       hardcode_minus_L=yes
9140       hardcode_shlibpath_var=no
9141       ;;
9142
9143     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9144     freebsd* | kfreebsd*-gnu)
9145       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9146       hardcode_libdir_flag_spec='-R$libdir'
9147       hardcode_direct=yes
9148       hardcode_shlibpath_var=no
9149       ;;
9150
9151     hpux9*)
9152       if test "$GCC" = yes; then
9153         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'
9154       else
9155         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'
9156       fi
9157       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9158       hardcode_libdir_separator=:
9159       hardcode_direct=yes
9160
9161       # hardcode_minus_L: Not really in the search PATH,
9162       # but as the default location of the library.
9163       hardcode_minus_L=yes
9164       export_dynamic_flag_spec='${wl}-E'
9165       ;;
9166
9167     hpux10* | hpux11*)
9168       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9169         case "$host_cpu" in
9170         hppa*64*|ia64*)
9171           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9172           ;;
9173         *)
9174           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9175           ;;
9176         esac
9177       else
9178         case "$host_cpu" in
9179         hppa*64*|ia64*)
9180           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9181           ;;
9182         *)
9183           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9184           ;;
9185         esac
9186       fi
9187       if test "$with_gnu_ld" = no; then
9188         case "$host_cpu" in
9189         hppa*64*)
9190           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9191           hardcode_libdir_flag_spec_ld='+b $libdir'
9192           hardcode_libdir_separator=:
9193           hardcode_direct=no
9194           hardcode_shlibpath_var=no
9195           ;;
9196         ia64*)
9197           hardcode_libdir_flag_spec='-L$libdir'
9198           hardcode_direct=no
9199           hardcode_shlibpath_var=no
9200
9201           # hardcode_minus_L: Not really in the search PATH,
9202           # but as the default location of the library.
9203           hardcode_minus_L=yes
9204           ;;
9205         *)
9206           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9207           hardcode_libdir_separator=:
9208           hardcode_direct=yes
9209           export_dynamic_flag_spec='${wl}-E'
9210
9211           # hardcode_minus_L: Not really in the search PATH,
9212           # but as the default location of the library.
9213           hardcode_minus_L=yes
9214           ;;
9215         esac
9216       fi
9217       ;;
9218
9219     irix5* | irix6* | nonstopux*)
9220       if test "$GCC" = yes; then
9221         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'
9222       else
9223         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'
9224         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9225       fi
9226       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227       hardcode_libdir_separator=:
9228       link_all_deplibs=yes
9229       ;;
9230
9231     netbsd*)
9232       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9233         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9234       else
9235         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9236       fi
9237       hardcode_libdir_flag_spec='-R$libdir'
9238       hardcode_direct=yes
9239       hardcode_shlibpath_var=no
9240       ;;
9241
9242     newsos6)
9243       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9244       hardcode_direct=yes
9245       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9246       hardcode_libdir_separator=:
9247       hardcode_shlibpath_var=no
9248       ;;
9249
9250     openbsd*)
9251       hardcode_direct=yes
9252       hardcode_shlibpath_var=no
9253       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9254         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9255         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9256         export_dynamic_flag_spec='${wl}-E'
9257       else
9258        case $host_os in
9259          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9260            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9261            hardcode_libdir_flag_spec='-R$libdir'
9262            ;;
9263          *)
9264            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9265            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9266            ;;
9267        esac
9268       fi
9269       ;;
9270
9271     os2*)
9272       hardcode_libdir_flag_spec='-L$libdir'
9273       hardcode_minus_L=yes
9274       allow_undefined_flag=unsupported
9275       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'
9276       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9277       ;;
9278
9279     osf3*)
9280       if test "$GCC" = yes; then
9281         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9282         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'
9283       else
9284         allow_undefined_flag=' -expect_unresolved \*'
9285         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'
9286       fi
9287       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9288       hardcode_libdir_separator=:
9289       ;;
9290
9291     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9292       if test "$GCC" = yes; then
9293         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9294         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'
9295         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296       else
9297         allow_undefined_flag=' -expect_unresolved \*'
9298         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'
9299         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9300         $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'
9301
9302         # Both c and cxx compiler support -rpath directly
9303         hardcode_libdir_flag_spec='-rpath $libdir'
9304       fi
9305       hardcode_libdir_separator=:
9306       ;;
9307
9308     sco3.2v5*)
9309       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310       hardcode_shlibpath_var=no
9311       export_dynamic_flag_spec='${wl}-Bexport'
9312       runpath_var=LD_RUN_PATH
9313       hardcode_runpath_var=yes
9314       ;;
9315
9316     solaris*)
9317       no_undefined_flag=' -z text'
9318       if test "$GCC" = yes; then
9319         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9320         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9321           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9322       else
9323         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9325         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9326       fi
9327       hardcode_libdir_flag_spec='-R$libdir'
9328       hardcode_shlibpath_var=no
9329       case $host_os in
9330       solaris2.[0-5] | solaris2.[0-5].*) ;;
9331       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9332         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9333       esac
9334       link_all_deplibs=yes
9335       ;;
9336
9337     sunos4*)
9338       if test "x$host_vendor" = xsequent; then
9339         # Use $CC to link under sequent, because it throws in some extra .o
9340         # files that make .init and .fini sections work.
9341         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9342       else
9343         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9344       fi
9345       hardcode_libdir_flag_spec='-L$libdir'
9346       hardcode_direct=yes
9347       hardcode_minus_L=yes
9348       hardcode_shlibpath_var=no
9349       ;;
9350
9351     sysv4)
9352       case $host_vendor in
9353         sni)
9354           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355           hardcode_direct=yes # is this really true???
9356         ;;
9357         siemens)
9358           ## LD is ld it makes a PLAMLIB
9359           ## CC just makes a GrossModule.
9360           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9361           reload_cmds='$CC -r -o $output$reload_objs'
9362           hardcode_direct=no
9363         ;;
9364         motorola)
9365           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9367         ;;
9368       esac
9369       runpath_var='LD_RUN_PATH'
9370       hardcode_shlibpath_var=no
9371       ;;
9372
9373     sysv4.3*)
9374       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9375       hardcode_shlibpath_var=no
9376       export_dynamic_flag_spec='-Bexport'
9377       ;;
9378
9379     sysv4*MP*)
9380       if test -d /usr/nec; then
9381         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382         hardcode_shlibpath_var=no
9383         runpath_var=LD_RUN_PATH
9384         hardcode_runpath_var=yes
9385         ld_shlibs=yes
9386       fi
9387       ;;
9388
9389     sysv4.2uw2*)
9390       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9391       hardcode_direct=yes
9392       hardcode_minus_L=no
9393       hardcode_shlibpath_var=no
9394       hardcode_runpath_var=yes
9395       runpath_var=LD_RUN_PATH
9396       ;;
9397
9398    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9399       no_undefined_flag='${wl}-z ${wl}text'
9400       if test "$GCC" = yes; then
9401         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9402       else
9403         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9404       fi
9405       runpath_var='LD_RUN_PATH'
9406       hardcode_shlibpath_var=no
9407       ;;
9408
9409     sysv5*)
9410       no_undefined_flag=' -z text'
9411       # $CC -shared without GNU ld will not create a library from C++
9412       # object files and a static libstdc++, better avoid it by now
9413       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9415                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9416       hardcode_libdir_flag_spec=
9417       hardcode_shlibpath_var=no
9418       runpath_var='LD_RUN_PATH'
9419       ;;
9420
9421     uts4*)
9422       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423       hardcode_libdir_flag_spec='-L$libdir'
9424       hardcode_shlibpath_var=no
9425       ;;
9426
9427     *)
9428       ld_shlibs=no
9429       ;;
9430     esac
9431   fi
9432
9433 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9434 echo "${ECHO_T}$ld_shlibs" >&6
9435 test "$ld_shlibs" = no && can_build_shared=no
9436
9437 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9438 if test "$GCC" = yes; then
9439   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9440 fi
9441
9442 #
9443 # Do we need to explicitly link libc?
9444 #
9445 case "x$archive_cmds_need_lc" in
9446 x|xyes)
9447   # Assume -lc should be added
9448   archive_cmds_need_lc=yes
9449
9450   if test "$enable_shared" = yes && test "$GCC" = yes; then
9451     case $archive_cmds in
9452     *'~'*)
9453       # FIXME: we may have to deal with multi-command sequences.
9454       ;;
9455     '$CC '*)
9456       # Test whether the compiler implicitly links with -lc since on some
9457       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9458       # to ld, don't add -lc before -lgcc.
9459       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9460 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9461       $rm conftest*
9462       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9463
9464       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9465   (eval $ac_compile) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); } 2>conftest.err; then
9469         soname=conftest
9470         lib=conftest
9471         libobjs=conftest.$ac_objext
9472         deplibs=
9473         wl=$lt_prog_compiler_wl
9474         compiler_flags=-v
9475         linker_flags=-v
9476         verstring=
9477         output_objdir=.
9478         libname=conftest
9479         lt_save_allow_undefined_flag=$allow_undefined_flag
9480         allow_undefined_flag=
9481         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9482   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9483   ac_status=$?
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); }
9486         then
9487           archive_cmds_need_lc=no
9488         else
9489           archive_cmds_need_lc=yes
9490         fi
9491         allow_undefined_flag=$lt_save_allow_undefined_flag
9492       else
9493         cat conftest.err 1>&5
9494       fi
9495       $rm conftest*
9496       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9497 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9498       ;;
9499     esac
9500   fi
9501   ;;
9502 esac
9503
9504 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9505 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9506 library_names_spec=
9507 libname_spec='lib$name'
9508 soname_spec=
9509 shrext_cmds=".so"
9510 postinstall_cmds=
9511 postuninstall_cmds=
9512 finish_cmds=
9513 finish_eval=
9514 shlibpath_var=
9515 shlibpath_overrides_runpath=unknown
9516 version_type=none
9517 dynamic_linker="$host_os ld.so"
9518 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9519 if test "$GCC" = yes; then
9520   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9521   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9522     # if the path contains ";" then we assume it to be the separator
9523     # otherwise default to the standard path separator (i.e. ":") - it is
9524     # assumed that no part of a normal pathname contains ";" but that should
9525     # okay in the real world where ";" in dirpaths is itself problematic.
9526     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9527   else
9528     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9529   fi
9530 else
9531   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9532 fi
9533 need_lib_prefix=unknown
9534 hardcode_into_libs=no
9535
9536 # when you set need_version to no, make sure it does not cause -set_version
9537 # flags to be left without arguments
9538 need_version=unknown
9539
9540 case $host_os in
9541 aix3*)
9542   version_type=linux
9543   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9544   shlibpath_var=LIBPATH
9545
9546   # AIX 3 has no versioning support, so we append a major version to the name.
9547   soname_spec='${libname}${release}${shared_ext}$major'
9548   ;;
9549
9550 aix4* | aix5*)
9551   version_type=linux
9552   need_lib_prefix=no
9553   need_version=no
9554   hardcode_into_libs=yes
9555   if test "$host_cpu" = ia64; then
9556     # AIX 5 supports IA64
9557     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9558     shlibpath_var=LD_LIBRARY_PATH
9559   else
9560     # With GCC up to 2.95.x, collect2 would create an import file
9561     # for dependence libraries.  The import file would start with
9562     # the line `#! .'.  This would cause the generated library to
9563     # depend on `.', always an invalid library.  This was fixed in
9564     # development snapshots of GCC prior to 3.0.
9565     case $host_os in
9566       aix4 | aix4.[01] | aix4.[01].*)
9567       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9568            echo ' yes '
9569            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9570         :
9571       else
9572         can_build_shared=no
9573       fi
9574       ;;
9575     esac
9576     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9577     # soname into executable. Probably we can add versioning support to
9578     # collect2, so additional links can be useful in future.
9579     if test "$aix_use_runtimelinking" = yes; then
9580       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9581       # instead of lib<name>.a to let people know that these are not
9582       # typical AIX shared libraries.
9583       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584     else
9585       # We preserve .a as extension for shared libraries through AIX4.2
9586       # and later when we are not doing run time linking.
9587       library_names_spec='${libname}${release}.a $libname.a'
9588       soname_spec='${libname}${release}${shared_ext}$major'
9589     fi
9590     shlibpath_var=LIBPATH
9591   fi
9592   ;;
9593
9594 amigaos*)
9595   library_names_spec='$libname.ixlibrary $libname.a'
9596   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9597   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'
9598   ;;
9599
9600 beos*)
9601   library_names_spec='${libname}${shared_ext}'
9602   dynamic_linker="$host_os ld.so"
9603   shlibpath_var=LIBRARY_PATH
9604   ;;
9605
9606 bsdi4*)
9607   version_type=linux
9608   need_version=no
9609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9610   soname_spec='${libname}${release}${shared_ext}$major'
9611   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9612   shlibpath_var=LD_LIBRARY_PATH
9613   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9614   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9615   # the default ld.so.conf also contains /usr/contrib/lib and
9616   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9617   # libtool to hard-code these into programs
9618   ;;
9619
9620 cygwin* | mingw* | pw32*)
9621   version_type=windows
9622   shrext_cmds=".dll"
9623   need_version=no
9624   need_lib_prefix=no
9625
9626   case $GCC,$host_os in
9627   yes,cygwin* | yes,mingw* | yes,pw32*)
9628     library_names_spec='$libname.dll.a'
9629     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9630     postinstall_cmds='base_file=`basename \${file}`~
9631       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9632       dldir=$destdir/`dirname \$dlpath`~
9633       test -d \$dldir || mkdir -p \$dldir~
9634       $install_prog $dir/$dlname \$dldir/$dlname'
9635     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9636       dlpath=$dir/\$dldll~
9637        $rm \$dlpath'
9638     shlibpath_overrides_runpath=yes
9639
9640     case $host_os in
9641     cygwin*)
9642       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9643       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9644       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9645       ;;
9646     mingw*)
9647       # MinGW DLLs use traditional 'lib' prefix
9648       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9649       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9650       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9651         # It is most probably a Windows format PATH printed by
9652         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9653         # path with ; separators, and with drive letters. We can handle the
9654         # drive letters (cygwin fileutils understands them), so leave them,
9655         # especially as we might pass files found there to a mingw objdump,
9656         # which wouldn't understand a cygwinified path. Ahh.
9657         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9658       else
9659         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9660       fi
9661       ;;
9662     pw32*)
9663       # pw32 DLLs use 'pw' prefix rather than 'lib'
9664       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9665       ;;
9666     esac
9667     ;;
9668
9669   *)
9670     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9671     ;;
9672   esac
9673   dynamic_linker='Win32 ld.exe'
9674   # FIXME: first we should search . and the directory the executable is in
9675   shlibpath_var=PATH
9676   ;;
9677
9678 darwin* | rhapsody*)
9679   dynamic_linker="$host_os dyld"
9680   version_type=darwin
9681   need_lib_prefix=no
9682   need_version=no
9683   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9684   soname_spec='${libname}${release}${major}$shared_ext'
9685   shlibpath_overrides_runpath=yes
9686   shlibpath_var=DYLD_LIBRARY_PATH
9687   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9688   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9689   if test "$GCC" = yes; then
9690     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"`
9691   else
9692     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9693   fi
9694   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9695   ;;
9696
9697 dgux*)
9698   version_type=linux
9699   need_lib_prefix=no
9700   need_version=no
9701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9702   soname_spec='${libname}${release}${shared_ext}$major'
9703   shlibpath_var=LD_LIBRARY_PATH
9704   ;;
9705
9706 freebsd1*)
9707   dynamic_linker=no
9708   ;;
9709
9710 kfreebsd*-gnu)
9711   version_type=linux
9712   need_lib_prefix=no
9713   need_version=no
9714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9715   soname_spec='${libname}${release}${shared_ext}$major'
9716   shlibpath_var=LD_LIBRARY_PATH
9717   shlibpath_overrides_runpath=no
9718   hardcode_into_libs=yes
9719   dynamic_linker='GNU ld.so'
9720   ;;
9721
9722 freebsd*)
9723   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9724   version_type=freebsd-$objformat
9725   case $version_type in
9726     freebsd-elf*)
9727       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9728       need_version=no
9729       need_lib_prefix=no
9730       ;;
9731     freebsd-*)
9732       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9733       need_version=yes
9734       ;;
9735   esac
9736   shlibpath_var=LD_LIBRARY_PATH
9737   case $host_os in
9738   freebsd2*)
9739     shlibpath_overrides_runpath=yes
9740     ;;
9741   freebsd3.01* | freebsdelf3.01*)
9742     shlibpath_overrides_runpath=yes
9743     hardcode_into_libs=yes
9744     ;;
9745   *) # from 3.2 on
9746     shlibpath_overrides_runpath=no
9747     hardcode_into_libs=yes
9748     ;;
9749   esac
9750   ;;
9751
9752 gnu*)
9753   version_type=linux
9754   need_lib_prefix=no
9755   need_version=no
9756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9757   soname_spec='${libname}${release}${shared_ext}$major'
9758   shlibpath_var=LD_LIBRARY_PATH
9759   hardcode_into_libs=yes
9760   ;;
9761
9762 hpux9* | hpux10* | hpux11*)
9763   # Give a soname corresponding to the major version so that dld.sl refuses to
9764   # link against other versions.
9765   version_type=sunos
9766   need_lib_prefix=no
9767   need_version=no
9768   case "$host_cpu" in
9769   ia64*)
9770     shrext_cmds='.so'
9771     hardcode_into_libs=yes
9772     dynamic_linker="$host_os dld.so"
9773     shlibpath_var=LD_LIBRARY_PATH
9774     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9775     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776     soname_spec='${libname}${release}${shared_ext}$major'
9777     if test "X$HPUX_IA64_MODE" = X32; then
9778       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9779     else
9780       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9781     fi
9782     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9783     ;;
9784    hppa*64*)
9785      shrext_cmds='.sl'
9786      hardcode_into_libs=yes
9787      dynamic_linker="$host_os dld.sl"
9788      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9789      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9790      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791      soname_spec='${libname}${release}${shared_ext}$major'
9792      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9793      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9794      ;;
9795    *)
9796     shrext_cmds='.sl'
9797     dynamic_linker="$host_os dld.sl"
9798     shlibpath_var=SHLIB_PATH
9799     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9800     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801     soname_spec='${libname}${release}${shared_ext}$major'
9802     ;;
9803   esac
9804   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9805   postinstall_cmds='chmod 555 $lib'
9806   ;;
9807
9808 irix5* | irix6* | nonstopux*)
9809   case $host_os in
9810     nonstopux*) version_type=nonstopux ;;
9811     *)
9812         if test "$lt_cv_prog_gnu_ld" = yes; then
9813                 version_type=linux
9814         else
9815                 version_type=irix
9816         fi ;;
9817   esac
9818   need_lib_prefix=no
9819   need_version=no
9820   soname_spec='${libname}${release}${shared_ext}$major'
9821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9822   case $host_os in
9823   irix5* | nonstopux*)
9824     libsuff= shlibsuff=
9825     ;;
9826   *)
9827     case $LD in # libtool.m4 will add one of these switches to LD
9828     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9829       libsuff= shlibsuff= libmagic=32-bit;;
9830     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9831       libsuff=32 shlibsuff=N32 libmagic=N32;;
9832     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9833       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9834     *) libsuff= shlibsuff= libmagic=never-match;;
9835     esac
9836     ;;
9837   esac
9838   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9839   shlibpath_overrides_runpath=no
9840   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9841   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9842   hardcode_into_libs=yes
9843   ;;
9844
9845 # No shared lib support for Linux oldld, aout, or coff.
9846 linux*oldld* | linux*aout* | linux*coff*)
9847   dynamic_linker=no
9848   ;;
9849
9850 # This must be Linux ELF.
9851 linux*)
9852   version_type=linux
9853   need_lib_prefix=no
9854   need_version=no
9855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856   soname_spec='${libname}${release}${shared_ext}$major'
9857   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9858   shlibpath_var=LD_LIBRARY_PATH
9859   shlibpath_overrides_runpath=no
9860   # This implies no fast_install, which is unacceptable.
9861   # Some rework will be needed to allow for fast_install
9862   # before this can be enabled.
9863   hardcode_into_libs=yes
9864
9865   # find out which ABI we are using
9866   libsuff=
9867   case "$host_cpu" in
9868   x86_64*|s390x*|powerpc64*)
9869     echo '#line 9869 "configure"' > conftest.$ac_ext
9870     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871   (eval $ac_compile) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; then
9875       case `/usr/bin/file conftest.$ac_objext` in
9876       *64-bit*)
9877         libsuff=64
9878         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9879         ;;
9880       esac
9881     fi
9882     rm -rf conftest*
9883     ;;
9884   esac
9885
9886   # Append ld.so.conf contents to the search path
9887   if test -f /etc/ld.so.conf; then
9888     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9889     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9890   fi
9891
9892   # We used to test for /lib/ld.so.1 and disable shared libraries on
9893   # powerpc, because MkLinux only supported shared libraries with the
9894   # GNU dynamic linker.  Since this was broken with cross compilers,
9895   # most powerpc-linux boxes support dynamic linking these days and
9896   # people can always --disable-shared, the test was removed, and we
9897   # assume the GNU/Linux dynamic linker is in use.
9898   dynamic_linker='GNU/Linux ld.so'
9899   ;;
9900
9901 knetbsd*-gnu)
9902   version_type=linux
9903   need_lib_prefix=no
9904   need_version=no
9905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9906   soname_spec='${libname}${release}${shared_ext}$major'
9907   shlibpath_var=LD_LIBRARY_PATH
9908   shlibpath_overrides_runpath=no
9909   hardcode_into_libs=yes
9910   dynamic_linker='GNU ld.so'
9911   ;;
9912
9913 netbsd*)
9914   version_type=sunos
9915   need_lib_prefix=no
9916   need_version=no
9917   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9919     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9920     dynamic_linker='NetBSD (a.out) ld.so'
9921   else
9922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9923     soname_spec='${libname}${release}${shared_ext}$major'
9924     dynamic_linker='NetBSD ld.elf_so'
9925   fi
9926   shlibpath_var=LD_LIBRARY_PATH
9927   shlibpath_overrides_runpath=yes
9928   hardcode_into_libs=yes
9929   ;;
9930
9931 newsos6)
9932   version_type=linux
9933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934   shlibpath_var=LD_LIBRARY_PATH
9935   shlibpath_overrides_runpath=yes
9936   ;;
9937
9938 nto-qnx*)
9939   version_type=linux
9940   need_lib_prefix=no
9941   need_version=no
9942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943   soname_spec='${libname}${release}${shared_ext}$major'
9944   shlibpath_var=LD_LIBRARY_PATH
9945   shlibpath_overrides_runpath=yes
9946   ;;
9947
9948 openbsd*)
9949   version_type=sunos
9950   need_lib_prefix=no
9951   need_version=yes
9952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9953   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9954   shlibpath_var=LD_LIBRARY_PATH
9955   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9956     case $host_os in
9957       openbsd2.[89] | openbsd2.[89].*)
9958         shlibpath_overrides_runpath=no
9959         ;;
9960       *)
9961         shlibpath_overrides_runpath=yes
9962         ;;
9963       esac
9964   else
9965     shlibpath_overrides_runpath=yes
9966   fi
9967   ;;
9968
9969 os2*)
9970   libname_spec='$name'
9971   shrext_cmds=".dll"
9972   need_lib_prefix=no
9973   library_names_spec='$libname${shared_ext} $libname.a'
9974   dynamic_linker='OS/2 ld.exe'
9975   shlibpath_var=LIBPATH
9976   ;;
9977
9978 osf3* | osf4* | osf5*)
9979   version_type=osf
9980   need_lib_prefix=no
9981   need_version=no
9982   soname_spec='${libname}${release}${shared_ext}$major'
9983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984   shlibpath_var=LD_LIBRARY_PATH
9985   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9986   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9987   ;;
9988
9989 sco3.2v5*)
9990   version_type=osf
9991   soname_spec='${libname}${release}${shared_ext}$major'
9992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993   shlibpath_var=LD_LIBRARY_PATH
9994   ;;
9995
9996 solaris*)
9997   version_type=linux
9998   need_lib_prefix=no
9999   need_version=no
10000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001   soname_spec='${libname}${release}${shared_ext}$major'
10002   shlibpath_var=LD_LIBRARY_PATH
10003   shlibpath_overrides_runpath=yes
10004   hardcode_into_libs=yes
10005   # ldd complains unless libraries are executable
10006   postinstall_cmds='chmod +x $lib'
10007   ;;
10008
10009 sunos4*)
10010   version_type=sunos
10011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10012   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10013   shlibpath_var=LD_LIBRARY_PATH
10014   shlibpath_overrides_runpath=yes
10015   if test "$with_gnu_ld" = yes; then
10016     need_lib_prefix=no
10017   fi
10018   need_version=yes
10019   ;;
10020
10021 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10022   version_type=linux
10023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024   soname_spec='${libname}${release}${shared_ext}$major'
10025   shlibpath_var=LD_LIBRARY_PATH
10026   case $host_vendor in
10027     sni)
10028       shlibpath_overrides_runpath=no
10029       need_lib_prefix=no
10030       export_dynamic_flag_spec='${wl}-Blargedynsym'
10031       runpath_var=LD_RUN_PATH
10032       ;;
10033     siemens)
10034       need_lib_prefix=no
10035       ;;
10036     motorola)
10037       need_lib_prefix=no
10038       need_version=no
10039       shlibpath_overrides_runpath=no
10040       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10041       ;;
10042   esac
10043   ;;
10044
10045 sysv4*MP*)
10046   if test -d /usr/nec ;then
10047     version_type=linux
10048     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10049     soname_spec='$libname${shared_ext}.$major'
10050     shlibpath_var=LD_LIBRARY_PATH
10051   fi
10052   ;;
10053
10054 uts4*)
10055   version_type=linux
10056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057   soname_spec='${libname}${release}${shared_ext}$major'
10058   shlibpath_var=LD_LIBRARY_PATH
10059   ;;
10060
10061 *)
10062   dynamic_linker=no
10063   ;;
10064 esac
10065 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10066 echo "${ECHO_T}$dynamic_linker" >&6
10067 test "$dynamic_linker" = no && can_build_shared=no
10068
10069 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10070 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10071 hardcode_action=
10072 if test -n "$hardcode_libdir_flag_spec" || \
10073    test -n "$runpath_var " || \
10074    test "X$hardcode_automatic"="Xyes" ; then
10075
10076   # We can hardcode non-existant directories.
10077   if test "$hardcode_direct" != no &&
10078      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10079      # have to relink, otherwise we might link with an installed library
10080      # when we should be linking with a yet-to-be-installed one
10081      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10082      test "$hardcode_minus_L" != no; then
10083     # Linking always hardcodes the temporary library directory.
10084     hardcode_action=relink
10085   else
10086     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10087     hardcode_action=immediate
10088   fi
10089 else
10090   # We cannot hardcode anything, or else we can only hardcode existing
10091   # directories.
10092   hardcode_action=unsupported
10093 fi
10094 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10095 echo "${ECHO_T}$hardcode_action" >&6
10096
10097 if test "$hardcode_action" = relink; then
10098   # Fast installation is not supported
10099   enable_fast_install=no
10100 elif test "$shlibpath_overrides_runpath" = yes ||
10101      test "$enable_shared" = no; then
10102   # Fast installation is not necessary
10103   enable_fast_install=needless
10104 fi
10105
10106 striplib=
10107 old_striplib=
10108 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10109 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10110 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10111   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10112   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10113   echo "$as_me:$LINENO: result: yes" >&5
10114 echo "${ECHO_T}yes" >&6
10115 else
10116 # FIXME - insert some real tests, host_os isn't really good enough
10117   case $host_os in
10118    darwin*)
10119        if test -n "$STRIP" ; then
10120          striplib="$STRIP -x"
10121          echo "$as_me:$LINENO: result: yes" >&5
10122 echo "${ECHO_T}yes" >&6
10123        else
10124   echo "$as_me:$LINENO: result: no" >&5
10125 echo "${ECHO_T}no" >&6
10126 fi
10127        ;;
10128    *)
10129   echo "$as_me:$LINENO: result: no" >&5
10130 echo "${ECHO_T}no" >&6
10131     ;;
10132   esac
10133 fi
10134
10135 if test "x$enable_dlopen" != xyes; then
10136   enable_dlopen=unknown
10137   enable_dlopen_self=unknown
10138   enable_dlopen_self_static=unknown
10139 else
10140   lt_cv_dlopen=no
10141   lt_cv_dlopen_libs=
10142
10143   case $host_os in
10144   beos*)
10145     lt_cv_dlopen="load_add_on"
10146     lt_cv_dlopen_libs=
10147     lt_cv_dlopen_self=yes
10148     ;;
10149
10150   mingw* | pw32*)
10151     lt_cv_dlopen="LoadLibrary"
10152     lt_cv_dlopen_libs=
10153    ;;
10154
10155   cygwin*)
10156     lt_cv_dlopen="dlopen"
10157     lt_cv_dlopen_libs=
10158    ;;
10159
10160   darwin*)
10161   # if libdl is installed we need to link against it
10162     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10163 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10164 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10165   echo $ECHO_N "(cached) $ECHO_C" >&6
10166 else
10167   ac_check_lib_save_LIBS=$LIBS
10168 LIBS="-ldl  $LIBS"
10169 cat >conftest.$ac_ext <<_ACEOF
10170 /* confdefs.h.  */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h.  */
10175
10176 /* Override any gcc2 internal prototype to avoid an error.  */
10177 #ifdef __cplusplus
10178 extern "C"
10179 #endif
10180 /* We use char because int might match the return type of a gcc2
10181    builtin and then its argument prototype would still apply.  */
10182 char dlopen ();
10183 int
10184 main ()
10185 {
10186 dlopen ();
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193   (eval $ac_link) 2>conftest.er1
10194   ac_status=$?
10195   grep -v '^ *+' conftest.er1 >conftest.err
10196   rm -f conftest.er1
10197   cat conftest.err >&5
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); } &&
10200          { ac_try='test -z "$ac_c_werror_flag"
10201                          || test ! -s conftest.err'
10202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203   (eval $ac_try) 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); }; } &&
10207          { ac_try='test -s conftest$ac_exeext'
10208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209   (eval $ac_try) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; }; then
10213   ac_cv_lib_dl_dlopen=yes
10214 else
10215   echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10217
10218 ac_cv_lib_dl_dlopen=no
10219 fi
10220 rm -f conftest.err conftest.$ac_objext \
10221       conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10223 fi
10224 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10225 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10226 if test $ac_cv_lib_dl_dlopen = yes; then
10227   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10228 else
10229
10230     lt_cv_dlopen="dyld"
10231     lt_cv_dlopen_libs=
10232     lt_cv_dlopen_self=yes
10233
10234 fi
10235
10236    ;;
10237
10238   *)
10239     echo "$as_me:$LINENO: checking for shl_load" >&5
10240 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10241 if test "${ac_cv_func_shl_load+set}" = set; then
10242   echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244   cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h.  */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h.  */
10250 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10252 #define shl_load innocuous_shl_load
10253
10254 /* System header to define __stub macros and hopefully few prototypes,
10255     which can conflict with char shl_load (); below.
10256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10257     <limits.h> exists even on freestanding compilers.  */
10258
10259 #ifdef __STDC__
10260 # include <limits.h>
10261 #else
10262 # include <assert.h>
10263 #endif
10264
10265 #undef shl_load
10266
10267 /* Override any gcc2 internal prototype to avoid an error.  */
10268 #ifdef __cplusplus
10269 extern "C"
10270 {
10271 #endif
10272 /* We use char because int might match the return type of a gcc2
10273    builtin and then its argument prototype would still apply.  */
10274 char shl_load ();
10275 /* The GNU C library defines this for functions which it implements
10276     to always fail with ENOSYS.  Some functions are actually named
10277     something starting with __ and the normal name is an alias.  */
10278 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10279 choke me
10280 #else
10281 char (*f) () = shl_load;
10282 #endif
10283 #ifdef __cplusplus
10284 }
10285 #endif
10286
10287 int
10288 main ()
10289 {
10290 return f != shl_load;
10291   ;
10292   return 0;
10293 }
10294 _ACEOF
10295 rm -f conftest.$ac_objext conftest$ac_exeext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297   (eval $ac_link) 2>conftest.er1
10298   ac_status=$?
10299   grep -v '^ *+' conftest.er1 >conftest.err
10300   rm -f conftest.er1
10301   cat conftest.err >&5
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); } &&
10304          { ac_try='test -z "$ac_c_werror_flag"
10305                          || test ! -s conftest.err'
10306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307   (eval $ac_try) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); }; } &&
10311          { ac_try='test -s conftest$ac_exeext'
10312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313   (eval $ac_try) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); }; }; then
10317   ac_cv_func_shl_load=yes
10318 else
10319   echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 ac_cv_func_shl_load=no
10323 fi
10324 rm -f conftest.err conftest.$ac_objext \
10325       conftest$ac_exeext conftest.$ac_ext
10326 fi
10327 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10328 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10329 if test $ac_cv_func_shl_load = yes; then
10330   lt_cv_dlopen="shl_load"
10331 else
10332   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10333 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10334 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   ac_check_lib_save_LIBS=$LIBS
10338 LIBS="-ldld  $LIBS"
10339 cat >conftest.$ac_ext <<_ACEOF
10340 /* confdefs.h.  */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h.  */
10345
10346 /* Override any gcc2 internal prototype to avoid an error.  */
10347 #ifdef __cplusplus
10348 extern "C"
10349 #endif
10350 /* We use char because int might match the return type of a gcc2
10351    builtin and then its argument prototype would still apply.  */
10352 char shl_load ();
10353 int
10354 main ()
10355 {
10356 shl_load ();
10357   ;
10358   return 0;
10359 }
10360 _ACEOF
10361 rm -f conftest.$ac_objext conftest$ac_exeext
10362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10363   (eval $ac_link) 2>conftest.er1
10364   ac_status=$?
10365   grep -v '^ *+' conftest.er1 >conftest.err
10366   rm -f conftest.er1
10367   cat conftest.err >&5
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); } &&
10370          { ac_try='test -z "$ac_c_werror_flag"
10371                          || test ! -s conftest.err'
10372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373   (eval $ac_try) 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); }; } &&
10377          { ac_try='test -s conftest$ac_exeext'
10378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379   (eval $ac_try) 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); }; }; then
10383   ac_cv_lib_dld_shl_load=yes
10384 else
10385   echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10387
10388 ac_cv_lib_dld_shl_load=no
10389 fi
10390 rm -f conftest.err conftest.$ac_objext \
10391       conftest$ac_exeext conftest.$ac_ext
10392 LIBS=$ac_check_lib_save_LIBS
10393 fi
10394 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10395 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10396 if test $ac_cv_lib_dld_shl_load = yes; then
10397   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10398 else
10399   echo "$as_me:$LINENO: checking for dlopen" >&5
10400 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10401 if test "${ac_cv_func_dlopen+set}" = set; then
10402   echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404   cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h.  */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h.  */
10410 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10412 #define dlopen innocuous_dlopen
10413
10414 /* System header to define __stub macros and hopefully few prototypes,
10415     which can conflict with char dlopen (); below.
10416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10417     <limits.h> exists even on freestanding compilers.  */
10418
10419 #ifdef __STDC__
10420 # include <limits.h>
10421 #else
10422 # include <assert.h>
10423 #endif
10424
10425 #undef dlopen
10426
10427 /* Override any gcc2 internal prototype to avoid an error.  */
10428 #ifdef __cplusplus
10429 extern "C"
10430 {
10431 #endif
10432 /* We use char because int might match the return type of a gcc2
10433    builtin and then its argument prototype would still apply.  */
10434 char dlopen ();
10435 /* The GNU C library defines this for functions which it implements
10436     to always fail with ENOSYS.  Some functions are actually named
10437     something starting with __ and the normal name is an alias.  */
10438 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10439 choke me
10440 #else
10441 char (*f) () = dlopen;
10442 #endif
10443 #ifdef __cplusplus
10444 }
10445 #endif
10446
10447 int
10448 main ()
10449 {
10450 return f != dlopen;
10451   ;
10452   return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457   (eval $ac_link) 2>conftest.er1
10458   ac_status=$?
10459   grep -v '^ *+' conftest.er1 >conftest.err
10460   rm -f conftest.er1
10461   cat conftest.err >&5
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); } &&
10464          { ac_try='test -z "$ac_c_werror_flag"
10465                          || test ! -s conftest.err'
10466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467   (eval $ac_try) 2>&5
10468   ac_status=$?
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); }; } &&
10471          { ac_try='test -s conftest$ac_exeext'
10472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473   (eval $ac_try) 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); }; }; then
10477   ac_cv_func_dlopen=yes
10478 else
10479   echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10481
10482 ac_cv_func_dlopen=no
10483 fi
10484 rm -f conftest.err conftest.$ac_objext \
10485       conftest$ac_exeext conftest.$ac_ext
10486 fi
10487 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10488 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10489 if test $ac_cv_func_dlopen = yes; then
10490   lt_cv_dlopen="dlopen"
10491 else
10492   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10493 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10494 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10495   echo $ECHO_N "(cached) $ECHO_C" >&6
10496 else
10497   ac_check_lib_save_LIBS=$LIBS
10498 LIBS="-ldl  $LIBS"
10499 cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h.  */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h.  */
10505
10506 /* Override any gcc2 internal prototype to avoid an error.  */
10507 #ifdef __cplusplus
10508 extern "C"
10509 #endif
10510 /* We use char because int might match the return type of a gcc2
10511    builtin and then its argument prototype would still apply.  */
10512 char dlopen ();
10513 int
10514 main ()
10515 {
10516 dlopen ();
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10523   (eval $ac_link) 2>conftest.er1
10524   ac_status=$?
10525   grep -v '^ *+' conftest.er1 >conftest.err
10526   rm -f conftest.er1
10527   cat conftest.err >&5
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); } &&
10530          { ac_try='test -z "$ac_c_werror_flag"
10531                          || test ! -s conftest.err'
10532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533   (eval $ac_try) 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); }; } &&
10537          { ac_try='test -s conftest$ac_exeext'
10538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539   (eval $ac_try) 2>&5
10540   ac_status=$?
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); }; }; then
10543   ac_cv_lib_dl_dlopen=yes
10544 else
10545   echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10547
10548 ac_cv_lib_dl_dlopen=no
10549 fi
10550 rm -f conftest.err conftest.$ac_objext \
10551       conftest$ac_exeext conftest.$ac_ext
10552 LIBS=$ac_check_lib_save_LIBS
10553 fi
10554 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10555 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10556 if test $ac_cv_lib_dl_dlopen = yes; then
10557   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10558 else
10559   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10560 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10561 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10562   echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10564   ac_check_lib_save_LIBS=$LIBS
10565 LIBS="-lsvld  $LIBS"
10566 cat >conftest.$ac_ext <<_ACEOF
10567 /* confdefs.h.  */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h.  */
10572
10573 /* Override any gcc2 internal prototype to avoid an error.  */
10574 #ifdef __cplusplus
10575 extern "C"
10576 #endif
10577 /* We use char because int might match the return type of a gcc2
10578    builtin and then its argument prototype would still apply.  */
10579 char dlopen ();
10580 int
10581 main ()
10582 {
10583 dlopen ();
10584   ;
10585   return 0;
10586 }
10587 _ACEOF
10588 rm -f conftest.$ac_objext conftest$ac_exeext
10589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10590   (eval $ac_link) 2>conftest.er1
10591   ac_status=$?
10592   grep -v '^ *+' conftest.er1 >conftest.err
10593   rm -f conftest.er1
10594   cat conftest.err >&5
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); } &&
10597          { ac_try='test -z "$ac_c_werror_flag"
10598                          || test ! -s conftest.err'
10599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600   (eval $ac_try) 2>&5
10601   ac_status=$?
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); }; } &&
10604          { ac_try='test -s conftest$ac_exeext'
10605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606   (eval $ac_try) 2>&5
10607   ac_status=$?
10608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); }; }; then
10610   ac_cv_lib_svld_dlopen=yes
10611 else
10612   echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10614
10615 ac_cv_lib_svld_dlopen=no
10616 fi
10617 rm -f conftest.err conftest.$ac_objext \
10618       conftest$ac_exeext conftest.$ac_ext
10619 LIBS=$ac_check_lib_save_LIBS
10620 fi
10621 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10622 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10623 if test $ac_cv_lib_svld_dlopen = yes; then
10624   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10625 else
10626   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10627 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10628 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10629   echo $ECHO_N "(cached) $ECHO_C" >&6
10630 else
10631   ac_check_lib_save_LIBS=$LIBS
10632 LIBS="-ldld  $LIBS"
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h.  */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h.  */
10639
10640 /* Override any gcc2 internal prototype to avoid an error.  */
10641 #ifdef __cplusplus
10642 extern "C"
10643 #endif
10644 /* We use char because int might match the return type of a gcc2
10645    builtin and then its argument prototype would still apply.  */
10646 char dld_link ();
10647 int
10648 main ()
10649 {
10650 dld_link ();
10651   ;
10652   return 0;
10653 }
10654 _ACEOF
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10657   (eval $ac_link) 2>conftest.er1
10658   ac_status=$?
10659   grep -v '^ *+' conftest.er1 >conftest.err
10660   rm -f conftest.er1
10661   cat conftest.err >&5
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } &&
10664          { ac_try='test -z "$ac_c_werror_flag"
10665                          || test ! -s conftest.err'
10666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667   (eval $ac_try) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; } &&
10671          { ac_try='test -s conftest$ac_exeext'
10672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673   (eval $ac_try) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); }; }; then
10677   ac_cv_lib_dld_dld_link=yes
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682 ac_cv_lib_dld_dld_link=no
10683 fi
10684 rm -f conftest.err conftest.$ac_objext \
10685       conftest$ac_exeext conftest.$ac_ext
10686 LIBS=$ac_check_lib_save_LIBS
10687 fi
10688 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10689 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10690 if test $ac_cv_lib_dld_dld_link = yes; then
10691   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10692 fi
10693
10694
10695 fi
10696
10697
10698 fi
10699
10700
10701 fi
10702
10703
10704 fi
10705
10706
10707 fi
10708
10709     ;;
10710   esac
10711
10712   if test "x$lt_cv_dlopen" != xno; then
10713     enable_dlopen=yes
10714   else
10715     enable_dlopen=no
10716   fi
10717
10718   case $lt_cv_dlopen in
10719   dlopen)
10720     save_CPPFLAGS="$CPPFLAGS"
10721     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10722
10723     save_LDFLAGS="$LDFLAGS"
10724     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10725
10726     save_LIBS="$LIBS"
10727     LIBS="$lt_cv_dlopen_libs $LIBS"
10728
10729     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10730 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10731 if test "${lt_cv_dlopen_self+set}" = set; then
10732   echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734           if test "$cross_compiling" = yes; then :
10735   lt_cv_dlopen_self=cross
10736 else
10737   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10738   lt_status=$lt_dlunknown
10739   cat > conftest.$ac_ext <<EOF
10740 #line 10740 "configure"
10741 #include "confdefs.h"
10742
10743 #if HAVE_DLFCN_H
10744 #include <dlfcn.h>
10745 #endif
10746
10747 #include <stdio.h>
10748
10749 #ifdef RTLD_GLOBAL
10750 #  define LT_DLGLOBAL           RTLD_GLOBAL
10751 #else
10752 #  ifdef DL_GLOBAL
10753 #    define LT_DLGLOBAL         DL_GLOBAL
10754 #  else
10755 #    define LT_DLGLOBAL         0
10756 #  endif
10757 #endif
10758
10759 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10760    find out it does not work in some platform. */
10761 #ifndef LT_DLLAZY_OR_NOW
10762 #  ifdef RTLD_LAZY
10763 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10764 #  else
10765 #    ifdef DL_LAZY
10766 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10767 #    else
10768 #      ifdef RTLD_NOW
10769 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10770 #      else
10771 #        ifdef DL_NOW
10772 #          define LT_DLLAZY_OR_NOW      DL_NOW
10773 #        else
10774 #          define LT_DLLAZY_OR_NOW      0
10775 #        endif
10776 #      endif
10777 #    endif
10778 #  endif
10779 #endif
10780
10781 #ifdef __cplusplus
10782 extern "C" void exit (int);
10783 #endif
10784
10785 void fnord() { int i=42;}
10786 int main ()
10787 {
10788   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10789   int status = $lt_dlunknown;
10790
10791   if (self)
10792     {
10793       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10794       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10795       /* dlclose (self); */
10796     }
10797
10798     exit (status);
10799 }
10800 EOF
10801   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10802   (eval $ac_link) 2>&5
10803   ac_status=$?
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10806     (./conftest; exit; ) 2>/dev/null
10807     lt_status=$?
10808     case x$lt_status in
10809       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10810       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10811       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10812     esac
10813   else :
10814     # compilation failed
10815     lt_cv_dlopen_self=no
10816   fi
10817 fi
10818 rm -fr conftest*
10819
10820
10821 fi
10822 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10823 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10824
10825     if test "x$lt_cv_dlopen_self" = xyes; then
10826       LDFLAGS="$LDFLAGS $link_static_flag"
10827       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10828 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10829 if test "${lt_cv_dlopen_self_static+set}" = set; then
10830   echo $ECHO_N "(cached) $ECHO_C" >&6
10831 else
10832           if test "$cross_compiling" = yes; then :
10833   lt_cv_dlopen_self_static=cross
10834 else
10835   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10836   lt_status=$lt_dlunknown
10837   cat > conftest.$ac_ext <<EOF
10838 #line 10838 "configure"
10839 #include "confdefs.h"
10840
10841 #if HAVE_DLFCN_H
10842 #include <dlfcn.h>
10843 #endif
10844
10845 #include <stdio.h>
10846
10847 #ifdef RTLD_GLOBAL
10848 #  define LT_DLGLOBAL           RTLD_GLOBAL
10849 #else
10850 #  ifdef DL_GLOBAL
10851 #    define LT_DLGLOBAL         DL_GLOBAL
10852 #  else
10853 #    define LT_DLGLOBAL         0
10854 #  endif
10855 #endif
10856
10857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10858    find out it does not work in some platform. */
10859 #ifndef LT_DLLAZY_OR_NOW
10860 #  ifdef RTLD_LAZY
10861 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10862 #  else
10863 #    ifdef DL_LAZY
10864 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10865 #    else
10866 #      ifdef RTLD_NOW
10867 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10868 #      else
10869 #        ifdef DL_NOW
10870 #          define LT_DLLAZY_OR_NOW      DL_NOW
10871 #        else
10872 #          define LT_DLLAZY_OR_NOW      0
10873 #        endif
10874 #      endif
10875 #    endif
10876 #  endif
10877 #endif
10878
10879 #ifdef __cplusplus
10880 extern "C" void exit (int);
10881 #endif
10882
10883 void fnord() { int i=42;}
10884 int main ()
10885 {
10886   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10887   int status = $lt_dlunknown;
10888
10889   if (self)
10890     {
10891       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10892       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10893       /* dlclose (self); */
10894     }
10895
10896     exit (status);
10897 }
10898 EOF
10899   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10900   (eval $ac_link) 2>&5
10901   ac_status=$?
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10904     (./conftest; exit; ) 2>/dev/null
10905     lt_status=$?
10906     case x$lt_status in
10907       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10908       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10909       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10910     esac
10911   else :
10912     # compilation failed
10913     lt_cv_dlopen_self_static=no
10914   fi
10915 fi
10916 rm -fr conftest*
10917
10918
10919 fi
10920 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10921 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10922     fi
10923
10924     CPPFLAGS="$save_CPPFLAGS"
10925     LDFLAGS="$save_LDFLAGS"
10926     LIBS="$save_LIBS"
10927     ;;
10928   esac
10929
10930   case $lt_cv_dlopen_self in
10931   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10932   *) enable_dlopen_self=unknown ;;
10933   esac
10934
10935   case $lt_cv_dlopen_self_static in
10936   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10937   *) enable_dlopen_self_static=unknown ;;
10938   esac
10939 fi
10940
10941
10942 # Report which librarie types wil actually be built
10943 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10944 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10945 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10946 echo "${ECHO_T}$can_build_shared" >&6
10947
10948 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10949 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10950 test "$can_build_shared" = "no" && enable_shared=no
10951
10952 # On AIX, shared libraries and static libraries use the same namespace, and
10953 # are all built from PIC.
10954 case "$host_os" in
10955 aix3*)
10956   test "$enable_shared" = yes && enable_static=no
10957   if test -n "$RANLIB"; then
10958     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10959     postinstall_cmds='$RANLIB $lib'
10960   fi
10961   ;;
10962
10963 aix4* | aix5*)
10964   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10965     test "$enable_shared" = yes && enable_static=no
10966   fi
10967   ;;
10968   darwin* | rhapsody*)
10969   if test "$GCC" = yes; then
10970     archive_cmds_need_lc=no
10971     case "$host_os" in
10972     rhapsody* | darwin1.[012])
10973       allow_undefined_flag='-undefined suppress'
10974       ;;
10975     *) # Darwin 1.3 on
10976       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10977         allow_undefined_flag='-flat_namespace -undefined suppress'
10978       else
10979         case ${MACOSX_DEPLOYMENT_TARGET} in
10980           10.[012])
10981             allow_undefined_flag='-flat_namespace -undefined suppress'
10982             ;;
10983           10.*)
10984             allow_undefined_flag='-undefined dynamic_lookup'
10985             ;;
10986         esac
10987       fi
10988       ;;
10989     esac
10990     output_verbose_link_cmd='echo'
10991     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10992     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10993     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10994     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}'
10995     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}'
10996     hardcode_direct=no
10997     hardcode_automatic=yes
10998     hardcode_shlibpath_var=unsupported
10999     whole_archive_flag_spec='-all_load $convenience'
11000     link_all_deplibs=yes
11001   else
11002     ld_shlibs=no
11003   fi
11004     ;;
11005 esac
11006 echo "$as_me:$LINENO: result: $enable_shared" >&5
11007 echo "${ECHO_T}$enable_shared" >&6
11008
11009 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11010 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11011 # Make sure either enable_shared or enable_static is yes.
11012 test "$enable_shared" = yes || enable_static=yes
11013 echo "$as_me:$LINENO: result: $enable_static" >&5
11014 echo "${ECHO_T}$enable_static" >&6
11015
11016 # The else clause should only fire when bootstrapping the
11017 # libtool distribution, otherwise you forgot to ship ltmain.sh
11018 # with your package, and you will get complaints that there are
11019 # no rules to generate ltmain.sh.
11020 if test -f "$ltmain"; then
11021   # See if we are running on zsh, and set the options which allow our commands through
11022   # without removal of \ escapes.
11023   if test -n "${ZSH_VERSION+set}" ; then
11024     setopt NO_GLOB_SUBST
11025   fi
11026   # Now quote all the things that may contain metacharacters while being
11027   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11028   # variables and quote the copies for generation of the libtool script.
11029   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11030     SED SHELL STRIP \
11031     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11032     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11033     deplibs_check_method reload_flag reload_cmds need_locks \
11034     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11035     lt_cv_sys_global_symbol_to_c_name_address \
11036     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11037     old_postinstall_cmds old_postuninstall_cmds \
11038     compiler \
11039     CC \
11040     LD \
11041     lt_prog_compiler_wl \
11042     lt_prog_compiler_pic \
11043     lt_prog_compiler_static \
11044     lt_prog_compiler_no_builtin_flag \
11045     export_dynamic_flag_spec \
11046     thread_safe_flag_spec \
11047     whole_archive_flag_spec \
11048     enable_shared_with_static_runtimes \
11049     old_archive_cmds \
11050     old_archive_from_new_cmds \
11051     predep_objects \
11052     postdep_objects \
11053     predeps \
11054     postdeps \
11055     compiler_lib_search_path \
11056     archive_cmds \
11057     archive_expsym_cmds \
11058     postinstall_cmds \
11059     postuninstall_cmds \
11060     old_archive_from_expsyms_cmds \
11061     allow_undefined_flag \
11062     no_undefined_flag \
11063     export_symbols_cmds \
11064     hardcode_libdir_flag_spec \
11065     hardcode_libdir_flag_spec_ld \
11066     hardcode_libdir_separator \
11067     hardcode_automatic \
11068     module_cmds \
11069     module_expsym_cmds \
11070     lt_cv_prog_compiler_c_o \
11071     exclude_expsyms \
11072     include_expsyms; do
11073
11074     case $var in
11075     old_archive_cmds | \
11076     old_archive_from_new_cmds | \
11077     archive_cmds | \
11078     archive_expsym_cmds | \
11079     module_cmds | \
11080     module_expsym_cmds | \
11081     old_archive_from_expsyms_cmds | \
11082     export_symbols_cmds | \
11083     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11084     postinstall_cmds | postuninstall_cmds | \
11085     old_postinstall_cmds | old_postuninstall_cmds | \
11086     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11087       # Double-quote double-evaled strings.
11088       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11089       ;;
11090     *)
11091       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11092       ;;
11093     esac
11094   done
11095
11096   case $lt_echo in
11097   *'\$0 --fallback-echo"')
11098     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11099     ;;
11100   esac
11101
11102 cfgfile="${ofile}T"
11103   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11104   $rm -f "$cfgfile"
11105   { echo "$as_me:$LINENO: creating $ofile" >&5
11106 echo "$as_me: creating $ofile" >&6;}
11107
11108   cat <<__EOF__ >> "$cfgfile"
11109 #! $SHELL
11110
11111 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11112 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11113 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11114 #
11115 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11116 # Free Software Foundation, Inc.
11117 #
11118 # This file is part of GNU Libtool:
11119 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11120 #
11121 # This program is free software; you can redistribute it and/or modify
11122 # it under the terms of the GNU General Public License as published by
11123 # the Free Software Foundation; either version 2 of the License, or
11124 # (at your option) any later version.
11125 #
11126 # This program is distributed in the hope that it will be useful, but
11127 # WITHOUT ANY WARRANTY; without even the implied warranty of
11128 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11129 # General Public License for more details.
11130 #
11131 # You should have received a copy of the GNU General Public License
11132 # along with this program; if not, write to the Free Software
11133 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11134 #
11135 # As a special exception to the GNU General Public License, if you
11136 # distribute this file as part of a program that contains a
11137 # configuration script generated by Autoconf, you may include it under
11138 # the same distribution terms that you use for the rest of that program.
11139
11140 # A sed program that does not truncate output.
11141 SED=$lt_SED
11142
11143 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11144 Xsed="$SED -e s/^X//"
11145
11146 # The HP-UX ksh and POSIX shell print the target directory to stdout
11147 # if CDPATH is set.
11148 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11149
11150 # The names of the tagged configurations supported by this script.
11151 available_tags=
11152
11153 # ### BEGIN LIBTOOL CONFIG
11154
11155 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11156
11157 # Shell to use when invoking shell scripts.
11158 SHELL=$lt_SHELL
11159
11160 # Whether or not to build shared libraries.
11161 build_libtool_libs=$enable_shared
11162
11163 # Whether or not to build static libraries.
11164 build_old_libs=$enable_static
11165
11166 # Whether or not to add -lc for building shared libraries.
11167 build_libtool_need_lc=$archive_cmds_need_lc
11168
11169 # Whether or not to disallow shared libs when runtime libs are static
11170 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11171
11172 # Whether or not to optimize for fast installation.
11173 fast_install=$enable_fast_install
11174
11175 # The host system.
11176 host_alias=$host_alias
11177 host=$host
11178
11179 # An echo program that does not interpret backslashes.
11180 echo=$lt_echo
11181
11182 # The archiver.
11183 AR=$lt_AR
11184 AR_FLAGS=$lt_AR_FLAGS
11185
11186 # A C compiler.
11187 LTCC=$lt_LTCC
11188
11189 # A language-specific compiler.
11190 CC=$lt_compiler
11191
11192 # Is the compiler the GNU C compiler?
11193 with_gcc=$GCC
11194
11195 # An ERE matcher.
11196 EGREP=$lt_EGREP
11197
11198 # The linker used to build libraries.
11199 LD=$lt_LD
11200
11201 # Whether we need hard or soft links.
11202 LN_S=$lt_LN_S
11203
11204 # A BSD-compatible nm program.
11205 NM=$lt_NM
11206
11207 # A symbol stripping program
11208 STRIP=$lt_STRIP
11209
11210 # Used to examine libraries when file_magic_cmd begins "file"
11211 MAGIC_CMD=$MAGIC_CMD
11212
11213 # Used on cygwin: DLL creation program.
11214 DLLTOOL="$DLLTOOL"
11215
11216 # Used on cygwin: object dumper.
11217 OBJDUMP="$OBJDUMP"
11218
11219 # Used on cygwin: assembler.
11220 AS="$AS"
11221
11222 # The name of the directory that contains temporary libtool files.
11223 objdir=$objdir
11224
11225 # How to create reloadable object files.
11226 reload_flag=$lt_reload_flag
11227 reload_cmds=$lt_reload_cmds
11228
11229 # How to pass a linker flag through the compiler.
11230 wl=$lt_lt_prog_compiler_wl
11231
11232 # Object file suffix (normally "o").
11233 objext="$ac_objext"
11234
11235 # Old archive suffix (normally "a").
11236 libext="$libext"
11237
11238 # Shared library suffix (normally ".so").
11239 shrext_cmds='$shrext_cmds'
11240
11241 # Executable file suffix (normally "").
11242 exeext="$exeext"
11243
11244 # Additional compiler flags for building library objects.
11245 pic_flag=$lt_lt_prog_compiler_pic
11246 pic_mode=$pic_mode
11247
11248 # What is the maximum length of a command?
11249 max_cmd_len=$lt_cv_sys_max_cmd_len
11250
11251 # Does compiler simultaneously support -c and -o options?
11252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11253
11254 # Must we lock files when doing compilation ?
11255 need_locks=$lt_need_locks
11256
11257 # Do we need the lib prefix for modules?
11258 need_lib_prefix=$need_lib_prefix
11259
11260 # Do we need a version for libraries?
11261 need_version=$need_version
11262
11263 # Whether dlopen is supported.
11264 dlopen_support=$enable_dlopen
11265
11266 # Whether dlopen of programs is supported.
11267 dlopen_self=$enable_dlopen_self
11268
11269 # Whether dlopen of statically linked programs is supported.
11270 dlopen_self_static=$enable_dlopen_self_static
11271
11272 # Compiler flag to prevent dynamic linking.
11273 link_static_flag=$lt_lt_prog_compiler_static
11274
11275 # Compiler flag to turn off builtin functions.
11276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11277
11278 # Compiler flag to allow reflexive dlopens.
11279 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11280
11281 # Compiler flag to generate shared objects directly from archives.
11282 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11283
11284 # Compiler flag to generate thread-safe objects.
11285 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11286
11287 # Library versioning type.
11288 version_type=$version_type
11289
11290 # Format of library name prefix.
11291 libname_spec=$lt_libname_spec
11292
11293 # List of archive names.  First name is the real one, the rest are links.
11294 # The last name is the one that the linker finds with -lNAME.
11295 library_names_spec=$lt_library_names_spec
11296
11297 # The coded name of the library, if different from the real name.
11298 soname_spec=$lt_soname_spec
11299
11300 # Commands used to build and install an old-style archive.
11301 RANLIB=$lt_RANLIB
11302 old_archive_cmds=$lt_old_archive_cmds
11303 old_postinstall_cmds=$lt_old_postinstall_cmds
11304 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11305
11306 # Create an old-style archive from a shared archive.
11307 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11308
11309 # Create a temporary old-style archive to link instead of a shared archive.
11310 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11311
11312 # Commands used to build and install a shared archive.
11313 archive_cmds=$lt_archive_cmds
11314 archive_expsym_cmds=$lt_archive_expsym_cmds
11315 postinstall_cmds=$lt_postinstall_cmds
11316 postuninstall_cmds=$lt_postuninstall_cmds
11317
11318 # Commands used to build a loadable module (assumed same as above if empty)
11319 module_cmds=$lt_module_cmds
11320 module_expsym_cmds=$lt_module_expsym_cmds
11321
11322 # Commands to strip libraries.
11323 old_striplib=$lt_old_striplib
11324 striplib=$lt_striplib
11325
11326 # Dependencies to place before the objects being linked to create a
11327 # shared library.
11328 predep_objects=$lt_predep_objects
11329
11330 # Dependencies to place after the objects being linked to create a
11331 # shared library.
11332 postdep_objects=$lt_postdep_objects
11333
11334 # Dependencies to place before the objects being linked to create a
11335 # shared library.
11336 predeps=$lt_predeps
11337
11338 # Dependencies to place after the objects being linked to create a
11339 # shared library.
11340 postdeps=$lt_postdeps
11341
11342 # The library search path used internally by the compiler when linking
11343 # a shared library.
11344 compiler_lib_search_path=$lt_compiler_lib_search_path
11345
11346 # Method to check whether dependent libraries are shared objects.
11347 deplibs_check_method=$lt_deplibs_check_method
11348
11349 # Command to use when deplibs_check_method == file_magic.
11350 file_magic_cmd=$lt_file_magic_cmd
11351
11352 # Flag that allows shared libraries with undefined symbols to be built.
11353 allow_undefined_flag=$lt_allow_undefined_flag
11354
11355 # Flag that forces no undefined symbols.
11356 no_undefined_flag=$lt_no_undefined_flag
11357
11358 # Commands used to finish a libtool library installation in a directory.
11359 finish_cmds=$lt_finish_cmds
11360
11361 # Same as above, but a single script fragment to be evaled but not shown.
11362 finish_eval=$lt_finish_eval
11363
11364 # Take the output of nm and produce a listing of raw symbols and C names.
11365 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11366
11367 # Transform the output of nm in a proper C declaration
11368 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11369
11370 # Transform the output of nm in a C name address pair
11371 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11372
11373 # This is the shared library runtime path variable.
11374 runpath_var=$runpath_var
11375
11376 # This is the shared library path variable.
11377 shlibpath_var=$shlibpath_var
11378
11379 # Is shlibpath searched before the hard-coded library search path?
11380 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11381
11382 # How to hardcode a shared library path into an executable.
11383 hardcode_action=$hardcode_action
11384
11385 # Whether we should hardcode library paths into libraries.
11386 hardcode_into_libs=$hardcode_into_libs
11387
11388 # Flag to hardcode \$libdir into a binary during linking.
11389 # This must work even if \$libdir does not exist.
11390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11391
11392 # If ld is used when linking, flag to hardcode \$libdir into
11393 # a binary during linking. This must work even if \$libdir does
11394 # not exist.
11395 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11396
11397 # Whether we need a single -rpath flag with a separated argument.
11398 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11399
11400 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11401 # resulting binary.
11402 hardcode_direct=$hardcode_direct
11403
11404 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11405 # resulting binary.
11406 hardcode_minus_L=$hardcode_minus_L
11407
11408 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11409 # the resulting binary.
11410 hardcode_shlibpath_var=$hardcode_shlibpath_var
11411
11412 # Set to yes if building a shared library automatically hardcodes DIR into the library
11413 # and all subsequent libraries and executables linked against it.
11414 hardcode_automatic=$hardcode_automatic
11415
11416 # Variables whose values should be saved in libtool wrapper scripts and
11417 # restored at relink time.
11418 variables_saved_for_relink="$variables_saved_for_relink"
11419
11420 # Whether libtool must link a program against all its dependency libraries.
11421 link_all_deplibs=$link_all_deplibs
11422
11423 # Compile-time system search path for libraries
11424 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11425
11426 # Run-time system search path for libraries
11427 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11428
11429 # Fix the shell variable \$srcfile for the compiler.
11430 fix_srcfile_path="$fix_srcfile_path"
11431
11432 # Set to yes if exported symbols are required.
11433 always_export_symbols=$always_export_symbols
11434
11435 # The commands to list exported symbols.
11436 export_symbols_cmds=$lt_export_symbols_cmds
11437
11438 # The commands to extract the exported symbol list from a shared archive.
11439 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11440
11441 # Symbols that should not be listed in the preloaded symbols.
11442 exclude_expsyms=$lt_exclude_expsyms
11443
11444 # Symbols that must always be exported.
11445 include_expsyms=$lt_include_expsyms
11446
11447 # ### END LIBTOOL CONFIG
11448
11449 __EOF__
11450
11451
11452   case $host_os in
11453   aix3*)
11454     cat <<\EOF >> "$cfgfile"
11455
11456 # AIX sometimes has problems with the GCC collect2 program.  For some
11457 # reason, if we set the COLLECT_NAMES environment variable, the problems
11458 # vanish in a puff of smoke.
11459 if test "X${COLLECT_NAMES+set}" != Xset; then
11460   COLLECT_NAMES=
11461   export COLLECT_NAMES
11462 fi
11463 EOF
11464     ;;
11465   esac
11466
11467   # We use sed instead of cat because bash on DJGPP gets confused if
11468   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11469   # text mode, it properly converts lines to CR/LF.  This bash problem
11470   # is reportedly fixed, but why not run on old versions too?
11471   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11472
11473   mv -f "$cfgfile" "$ofile" || \
11474     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11475   chmod +x "$ofile"
11476
11477 else
11478   # If there is no Makefile yet, we rely on a make rule to execute
11479   # `config.status --recheck' to rerun these tests and create the
11480   # libtool script then.
11481   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11482   if test -f "$ltmain_in"; then
11483     test -f Makefile && make "$ltmain"
11484   fi
11485 fi
11486
11487
11488 ac_ext=c
11489 ac_cpp='$CPP $CPPFLAGS'
11490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11493
11494 CC="$lt_save_CC"
11495
11496
11497 # Check whether --with-tags or --without-tags was given.
11498 if test "${with_tags+set}" = set; then
11499   withval="$with_tags"
11500   tagnames="$withval"
11501 fi;
11502
11503 if test -f "$ltmain" && test -n "$tagnames"; then
11504   if test ! -f "${ofile}"; then
11505     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11506 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11507   fi
11508
11509   if test -z "$LTCC"; then
11510     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11511     if test -z "$LTCC"; then
11512       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11513 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11514     else
11515       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11516 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11517     fi
11518   fi
11519
11520   # Extract list of available tagged configurations in $ofile.
11521   # Note that this assumes the entire list is on one line.
11522   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11523
11524   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11525   for tagname in $tagnames; do
11526     IFS="$lt_save_ifs"
11527     # Check whether tagname contains only valid characters
11528     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11529     "") ;;
11530     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11531 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11532    { (exit 1); exit 1; }; }
11533         ;;
11534     esac
11535
11536     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11537     then
11538       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11539 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11540    { (exit 1); exit 1; }; }
11541     fi
11542
11543     # Update the list of available tags.
11544     if test -n "$tagname"; then
11545       echo appending configuration tag \"$tagname\" to $ofile
11546
11547       case $tagname in
11548       CXX)
11549         if test -n "$CXX" && test "X$CXX" != "Xno"; then
11550           ac_ext=cc
11551 ac_cpp='$CXXCPP $CPPFLAGS'
11552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11555
11556
11557
11558
11559 archive_cmds_need_lc_CXX=no
11560 allow_undefined_flag_CXX=
11561 always_export_symbols_CXX=no
11562 archive_expsym_cmds_CXX=
11563 export_dynamic_flag_spec_CXX=
11564 hardcode_direct_CXX=no
11565 hardcode_libdir_flag_spec_CXX=
11566 hardcode_libdir_flag_spec_ld_CXX=
11567 hardcode_libdir_separator_CXX=
11568 hardcode_minus_L_CXX=no
11569 hardcode_automatic_CXX=no
11570 module_cmds_CXX=
11571 module_expsym_cmds_CXX=
11572 link_all_deplibs_CXX=unknown
11573 old_archive_cmds_CXX=$old_archive_cmds
11574 no_undefined_flag_CXX=
11575 whole_archive_flag_spec_CXX=
11576 enable_shared_with_static_runtimes_CXX=no
11577
11578 # Dependencies to place before and after the object being linked:
11579 predep_objects_CXX=
11580 postdep_objects_CXX=
11581 predeps_CXX=
11582 postdeps_CXX=
11583 compiler_lib_search_path_CXX=
11584
11585 # Source file extension for C++ test sources.
11586 ac_ext=cc
11587
11588 # Object file extension for compiled C++ test sources.
11589 objext=o
11590 objext_CXX=$objext
11591
11592 # Code to be used in simple compile tests
11593 lt_simple_compile_test_code="int some_variable = 0;\n"
11594
11595 # Code to be used in simple link tests
11596 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11597
11598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11599
11600 # If no C compiler was specified, use CC.
11601 LTCC=${LTCC-"$CC"}
11602
11603 # Allow CC to be a program name with arguments.
11604 compiler=$CC
11605
11606
11607 # Allow CC to be a program name with arguments.
11608 lt_save_CC=$CC
11609 lt_save_LD=$LD
11610 lt_save_GCC=$GCC
11611 GCC=$GXX
11612 lt_save_with_gnu_ld=$with_gnu_ld
11613 lt_save_path_LD=$lt_cv_path_LD
11614 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11615   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11616 else
11617   unset lt_cv_prog_gnu_ld
11618 fi
11619 if test -n "${lt_cv_path_LDCXX+set}"; then
11620   lt_cv_path_LD=$lt_cv_path_LDCXX
11621 else
11622   unset lt_cv_path_LD
11623 fi
11624 test -z "${LDCXX+set}" || LD=$LDCXX
11625 CC=${CXX-"c++"}
11626 compiler=$CC
11627 compiler_CXX=$CC
11628 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11629
11630 # We don't want -fno-exception wen compiling C++ code, so set the
11631 # no_builtin_flag separately
11632 if test "$GXX" = yes; then
11633   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11634 else
11635   lt_prog_compiler_no_builtin_flag_CXX=
11636 fi
11637
11638 if test "$GXX" = yes; then
11639   # Set up default GNU C++ configuration
11640
11641
11642 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11643 if test "${with_gnu_ld+set}" = set; then
11644   withval="$with_gnu_ld"
11645   test "$withval" = no || with_gnu_ld=yes
11646 else
11647   with_gnu_ld=no
11648 fi;
11649 ac_prog=ld
11650 if test "$GCC" = yes; then
11651   # Check if gcc -print-prog-name=ld gives a path.
11652   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11653 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11654   case $host in
11655   *-*-mingw*)
11656     # gcc leaves a trailing carriage return which upsets mingw
11657     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11658   *)
11659     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11660   esac
11661   case $ac_prog in
11662     # Accept absolute paths.
11663     [\\/]* | ?:[\\/]*)
11664       re_direlt='/[^/][^/]*/\.\./'
11665       # Canonicalize the pathname of ld
11666       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11667       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11668         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11669       done
11670       test -z "$LD" && LD="$ac_prog"
11671       ;;
11672   "")
11673     # If it fails, then pretend we aren't using GCC.
11674     ac_prog=ld
11675     ;;
11676   *)
11677     # If it is relative, then search for the first ld in PATH.
11678     with_gnu_ld=unknown
11679     ;;
11680   esac
11681 elif test "$with_gnu_ld" = yes; then
11682   echo "$as_me:$LINENO: checking for GNU ld" >&5
11683 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11684 else
11685   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11686 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11687 fi
11688 if test "${lt_cv_path_LD+set}" = set; then
11689   echo $ECHO_N "(cached) $ECHO_C" >&6
11690 else
11691   if test -z "$LD"; then
11692   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11693   for ac_dir in $PATH; do
11694     IFS="$lt_save_ifs"
11695     test -z "$ac_dir" && ac_dir=.
11696     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11697       lt_cv_path_LD="$ac_dir/$ac_prog"
11698       # Check to see if the program is GNU ld.  I'd rather use --version,
11699       # but apparently some GNU ld's only accept -v.
11700       # Break only if it was the GNU/non-GNU ld that we prefer.
11701       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11702       *GNU* | *'with BFD'*)
11703         test "$with_gnu_ld" != no && break
11704         ;;
11705       *)
11706         test "$with_gnu_ld" != yes && break
11707         ;;
11708       esac
11709     fi
11710   done
11711   IFS="$lt_save_ifs"
11712 else
11713   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11714 fi
11715 fi
11716
11717 LD="$lt_cv_path_LD"
11718 if test -n "$LD"; then
11719   echo "$as_me:$LINENO: result: $LD" >&5
11720 echo "${ECHO_T}$LD" >&6
11721 else
11722   echo "$as_me:$LINENO: result: no" >&5
11723 echo "${ECHO_T}no" >&6
11724 fi
11725 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11726 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11727    { (exit 1); exit 1; }; }
11728 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11729 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11730 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11731   echo $ECHO_N "(cached) $ECHO_C" >&6
11732 else
11733   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11734 case `$LD -v 2>&1 </dev/null` in
11735 *GNU* | *'with BFD'*)
11736   lt_cv_prog_gnu_ld=yes
11737   ;;
11738 *)
11739   lt_cv_prog_gnu_ld=no
11740   ;;
11741 esac
11742 fi
11743 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11744 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11745 with_gnu_ld=$lt_cv_prog_gnu_ld
11746
11747
11748
11749   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11750   # archiving commands below assume that GNU ld is being used.
11751   if test "$with_gnu_ld" = yes; then
11752     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11753     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'
11754
11755     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11756     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11757
11758     # If archive_cmds runs LD, not CC, wlarc should be empty
11759     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11760     #     investigate it a little bit more. (MM)
11761     wlarc='${wl}'
11762
11763     # ancient GNU ld didn't support --whole-archive et. al.
11764     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11765         grep 'no-whole-archive' > /dev/null; then
11766       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11767     else
11768       whole_archive_flag_spec_CXX=
11769     fi
11770   else
11771     with_gnu_ld=no
11772     wlarc=
11773
11774     # A generic and very simple default shared library creation
11775     # command for GNU C++ for the case where it uses the native
11776     # linker, instead of GNU ld.  If possible, this setting should
11777     # overridden to take advantage of the native linker features on
11778     # the platform it is being used on.
11779     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11780   fi
11781
11782   # Commands to make compiler produce verbose output that lists
11783   # what "hidden" libraries, object files and flags are used when
11784   # linking a shared library.
11785   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11786
11787 else
11788   GXX=no
11789   with_gnu_ld=no
11790   wlarc=
11791 fi
11792
11793 # PORTME: fill in a description of your system's C++ link characteristics
11794 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11795 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11796 ld_shlibs_CXX=yes
11797 case $host_os in
11798   aix3*)
11799     # FIXME: insert proper C++ library support
11800     ld_shlibs_CXX=no
11801     ;;
11802   aix4* | aix5*)
11803     if test "$host_cpu" = ia64; then
11804       # On IA64, the linker does run time linking by default, so we don't
11805       # have to do anything special.
11806       aix_use_runtimelinking=no
11807       exp_sym_flag='-Bexport'
11808       no_entry_flag=""
11809     else
11810       aix_use_runtimelinking=no
11811
11812       # Test if we are trying to use run time linking or normal
11813       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11814       # need to do runtime linking.
11815       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11816         for ld_flag in $LDFLAGS; do
11817           case $ld_flag in
11818           *-brtl*)
11819             aix_use_runtimelinking=yes
11820             break
11821             ;;
11822           esac
11823         done
11824       esac
11825
11826       exp_sym_flag='-bexport'
11827       no_entry_flag='-bnoentry'
11828     fi
11829
11830     # When large executables or shared objects are built, AIX ld can
11831     # have problems creating the table of contents.  If linking a library
11832     # or program results in "error TOC overflow" add -mminimal-toc to
11833     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11834     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11835
11836     archive_cmds_CXX=''
11837     hardcode_direct_CXX=yes
11838     hardcode_libdir_separator_CXX=':'
11839     link_all_deplibs_CXX=yes
11840
11841     if test "$GXX" = yes; then
11842       case $host_os in aix4.012|aix4.012.*)
11843       # We only want to do this on AIX 4.2 and lower, the check
11844       # below for broken collect2 doesn't work under 4.3+
11845         collect2name=`${CC} -print-prog-name=collect2`
11846         if test -f "$collect2name" && \
11847            strings "$collect2name" | grep resolve_lib_name >/dev/null
11848         then
11849           # We have reworked collect2
11850           hardcode_direct_CXX=yes
11851         else
11852           # We have old collect2
11853           hardcode_direct_CXX=unsupported
11854           # It fails to find uninstalled libraries when the uninstalled
11855           # path is not listed in the libpath.  Setting hardcode_minus_L
11856           # to unsupported forces relinking
11857           hardcode_minus_L_CXX=yes
11858           hardcode_libdir_flag_spec_CXX='-L$libdir'
11859           hardcode_libdir_separator_CXX=
11860         fi
11861       esac
11862       shared_flag='-shared'
11863     else
11864       # not using gcc
11865       if test "$host_cpu" = ia64; then
11866         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11867         # chokes on -Wl,-G. The following line is correct:
11868         shared_flag='-G'
11869       else
11870         if test "$aix_use_runtimelinking" = yes; then
11871           shared_flag='${wl}-G'
11872         else
11873           shared_flag='${wl}-bM:SRE'
11874         fi
11875       fi
11876     fi
11877
11878     # It seems that -bexpall does not export symbols beginning with
11879     # underscore (_), so it is better to generate a list of symbols to export.
11880     always_export_symbols_CXX=yes
11881     if test "$aix_use_runtimelinking" = yes; then
11882       # Warning - without using the other runtime loading flags (-brtl),
11883       # -berok will link without error, but may produce a broken library.
11884       allow_undefined_flag_CXX='-berok'
11885       # Determine the default libpath from the value encoded in an empty executable.
11886       cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h.  */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h.  */
11892
11893 int
11894 main ()
11895 {
11896
11897   ;
11898   return 0;
11899 }
11900 _ACEOF
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903   (eval $ac_link) 2>conftest.er1
11904   ac_status=$?
11905   grep -v '^ *+' conftest.er1 >conftest.err
11906   rm -f conftest.er1
11907   cat conftest.err >&5
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); } &&
11910          { ac_try='test -z "$ac_cxx_werror_flag"
11911                          || test ! -s conftest.err'
11912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913   (eval $ac_try) 2>&5
11914   ac_status=$?
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); }; } &&
11917          { ac_try='test -s conftest$ac_exeext'
11918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919   (eval $ac_try) 2>&5
11920   ac_status=$?
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); }; }; then
11923
11924 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11925 }'`
11926 # Check for a 64-bit object if we didn't find anything.
11927 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; }
11928 }'`; fi
11929 else
11930   echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11932
11933 fi
11934 rm -f conftest.err conftest.$ac_objext \
11935       conftest$ac_exeext conftest.$ac_ext
11936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11937
11938       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11939
11940       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"
11941      else
11942       if test "$host_cpu" = ia64; then
11943         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11944         allow_undefined_flag_CXX="-z nodefs"
11945         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"
11946       else
11947         # Determine the default libpath from the value encoded in an empty executable.
11948         cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h.  */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h.  */
11954
11955 int
11956 main ()
11957 {
11958
11959   ;
11960   return 0;
11961 }
11962 _ACEOF
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11965   (eval $ac_link) 2>conftest.er1
11966   ac_status=$?
11967   grep -v '^ *+' conftest.er1 >conftest.err
11968   rm -f conftest.er1
11969   cat conftest.err >&5
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); } &&
11972          { ac_try='test -z "$ac_cxx_werror_flag"
11973                          || test ! -s conftest.err'
11974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975   (eval $ac_try) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; } &&
11979          { ac_try='test -s conftest$ac_exeext'
11980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981   (eval $ac_try) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; }; then
11985
11986 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11987 }'`
11988 # Check for a 64-bit object if we didn't find anything.
11989 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; }
11990 }'`; fi
11991 else
11992   echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11994
11995 fi
11996 rm -f conftest.err conftest.$ac_objext \
11997       conftest$ac_exeext conftest.$ac_ext
11998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11999
12000         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12001         # Warning - without using the other run time loading flags,
12002         # -berok will link without error, but may produce a broken library.
12003         no_undefined_flag_CXX=' ${wl}-bernotok'
12004         allow_undefined_flag_CXX=' ${wl}-berok'
12005         # -bexpall does not export symbols beginning with underscore (_)
12006         always_export_symbols_CXX=yes
12007         # Exported symbols can be pulled into shared objects from archives
12008         whole_archive_flag_spec_CXX=' '
12009         archive_cmds_need_lc_CXX=yes
12010         # This is similar to how AIX traditionally builds it's shared libraries.
12011         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'
12012       fi
12013     fi
12014     ;;
12015   chorus*)
12016     case $cc_basename in
12017       *)
12018         # FIXME: insert proper C++ library support
12019         ld_shlibs_CXX=no
12020         ;;
12021     esac
12022     ;;
12023
12024   cygwin* | mingw* | pw32*)
12025     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12026     # as there is no search path for DLLs.
12027     hardcode_libdir_flag_spec_CXX='-L$libdir'
12028     allow_undefined_flag_CXX=unsupported
12029     always_export_symbols_CXX=no
12030     enable_shared_with_static_runtimes_CXX=yes
12031
12032     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12033       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'
12034       # If the export-symbols file already is a .def file (1st line
12035       # is EXPORTS), use it as is; otherwise, prepend...
12036       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12037         cp $export_symbols $output_objdir/$soname.def;
12038       else
12039         echo EXPORTS > $output_objdir/$soname.def;
12040         cat $export_symbols >> $output_objdir/$soname.def;
12041       fi~
12042       $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'
12043     else
12044       ld_shlibs_CXX=no
12045     fi
12046   ;;
12047
12048   darwin* | rhapsody*)
12049   if test "$GXX" = yes; then
12050     archive_cmds_need_lc_CXX=no
12051     case "$host_os" in
12052     rhapsody* | darwin1.[012])
12053       allow_undefined_flag_CXX='-undefined suppress'
12054       ;;
12055     *) # Darwin 1.3 on
12056       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12057         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12058       else
12059         case ${MACOSX_DEPLOYMENT_TARGET} in
12060           10.[012])
12061             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12062             ;;
12063           10.*)
12064             allow_undefined_flag_CXX='-undefined dynamic_lookup'
12065             ;;
12066         esac
12067       fi
12068       ;;
12069     esac
12070     lt_int_apple_cc_single_mod=no
12071     output_verbose_link_cmd='echo'
12072     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12073       lt_int_apple_cc_single_mod=yes
12074     fi
12075     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12076       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12077     else
12078       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'
12079     fi
12080     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12081
12082     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12083     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12084       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}'
12085     else
12086       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}'
12087     fi
12088     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}'
12089     hardcode_direct_CXX=no
12090     hardcode_automatic_CXX=yes
12091     hardcode_shlibpath_var_CXX=unsupported
12092     whole_archive_flag_spec_CXX='-all_load $convenience'
12093     link_all_deplibs_CXX=yes
12094   else
12095     ld_shlibs_CXX=no
12096   fi
12097     ;;
12098
12099   dgux*)
12100     case $cc_basename in
12101       ec++)
12102         # FIXME: insert proper C++ library support
12103         ld_shlibs_CXX=no
12104         ;;
12105       ghcx)
12106         # Green Hills C++ Compiler
12107         # FIXME: insert proper C++ library support
12108         ld_shlibs_CXX=no
12109         ;;
12110       *)
12111         # FIXME: insert proper C++ library support
12112         ld_shlibs_CXX=no
12113         ;;
12114     esac
12115     ;;
12116   freebsd12*)
12117     # C++ shared libraries reported to be fairly broken before switch to ELF
12118     ld_shlibs_CXX=no
12119     ;;
12120   freebsd-elf*)
12121     archive_cmds_need_lc_CXX=no
12122     ;;
12123   freebsd* | kfreebsd*-gnu)
12124     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12125     # conventions
12126     ld_shlibs_CXX=yes
12127     ;;
12128   gnu*)
12129     ;;
12130   hpux9*)
12131     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12132     hardcode_libdir_separator_CXX=:
12133     export_dynamic_flag_spec_CXX='${wl}-E'
12134     hardcode_direct_CXX=yes
12135     hardcode_minus_L_CXX=yes # Not in the search PATH,
12136                                 # but as the default
12137                                 # location of the library.
12138
12139     case $cc_basename in
12140     CC)
12141       # FIXME: insert proper C++ library support
12142       ld_shlibs_CXX=no
12143       ;;
12144     aCC)
12145       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'
12146       # Commands to make compiler produce verbose output that lists
12147       # what "hidden" libraries, object files and flags are used when
12148       # linking a shared library.
12149       #
12150       # There doesn't appear to be a way to prevent this compiler from
12151       # explicitly linking system object files so we need to strip them
12152       # from the output so that they don't get included in the library
12153       # dependencies.
12154       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'
12155       ;;
12156     *)
12157       if test "$GXX" = yes; then
12158         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'
12159       else
12160         # FIXME: insert proper C++ library support
12161         ld_shlibs_CXX=no
12162       fi
12163       ;;
12164     esac
12165     ;;
12166   hpux10*|hpux11*)
12167     if test $with_gnu_ld = no; then
12168       case "$host_cpu" in
12169       hppa*64*)
12170         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12171         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12172         hardcode_libdir_separator_CXX=:
12173         ;;
12174       ia64*)
12175         hardcode_libdir_flag_spec_CXX='-L$libdir'
12176         ;;
12177       *)
12178         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12179         hardcode_libdir_separator_CXX=:
12180         export_dynamic_flag_spec_CXX='${wl}-E'
12181         ;;
12182       esac
12183     fi
12184     case "$host_cpu" in
12185     hppa*64*)
12186       hardcode_direct_CXX=no
12187       hardcode_shlibpath_var_CXX=no
12188       ;;
12189     ia64*)
12190       hardcode_direct_CXX=no
12191       hardcode_shlibpath_var_CXX=no
12192       hardcode_minus_L_CXX=yes # Not in the search PATH,
12193                                               # but as the default
12194                                               # location of the library.
12195       ;;
12196     *)
12197       hardcode_direct_CXX=yes
12198       hardcode_minus_L_CXX=yes # Not in the search PATH,
12199                                               # but as the default
12200                                               # location of the library.
12201       ;;
12202     esac
12203
12204     case $cc_basename in
12205       CC)
12206         # FIXME: insert proper C++ library support
12207         ld_shlibs_CXX=no
12208         ;;
12209       aCC)
12210         case "$host_cpu" in
12211         hppa*64*|ia64*)
12212           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12213           ;;
12214         *)
12215           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12216           ;;
12217         esac
12218         # Commands to make compiler produce verbose output that lists
12219         # what "hidden" libraries, object files and flags are used when
12220         # linking a shared library.
12221         #
12222         # There doesn't appear to be a way to prevent this compiler from
12223         # explicitly linking system object files so we need to strip them
12224         # from the output so that they don't get included in the library
12225         # dependencies.
12226         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'
12227         ;;
12228       *)
12229         if test "$GXX" = yes; then
12230           if test $with_gnu_ld = no; then
12231             case "$host_cpu" in
12232             ia64*|hppa*64*)
12233               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12234               ;;
12235             *)
12236               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'
12237               ;;
12238             esac
12239           fi
12240         else
12241           # FIXME: insert proper C++ library support
12242           ld_shlibs_CXX=no
12243         fi
12244         ;;
12245     esac
12246     ;;
12247   irix5* | irix6*)
12248     case $cc_basename in
12249       CC)
12250         # SGI C++
12251         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'
12252
12253         # Archives containing C++ object files must be created using
12254         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12255         # necessary to make sure instantiated templates are included
12256         # in the archive.
12257         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12258         ;;
12259       *)
12260         if test "$GXX" = yes; then
12261           if test "$with_gnu_ld" = no; then
12262             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'
12263           else
12264             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'
12265           fi
12266         fi
12267         link_all_deplibs_CXX=yes
12268         ;;
12269     esac
12270     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12271     hardcode_libdir_separator_CXX=:
12272     ;;
12273   linux*)
12274     case $cc_basename in
12275       KCC)
12276         # Kuck and Associates, Inc. (KAI) C++ Compiler
12277
12278         # KCC will only create a shared library if the output file
12279         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12280         # to its proper name (with version) after linking.
12281         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'
12282         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'
12283         # Commands to make compiler produce verbose output that lists
12284         # what "hidden" libraries, object files and flags are used when
12285         # linking a shared library.
12286         #
12287         # There doesn't appear to be a way to prevent this compiler from
12288         # explicitly linking system object files so we need to strip them
12289         # from the output so that they don't get included in the library
12290         # dependencies.
12291         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'
12292
12293         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12294         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12295
12296         # Archives containing C++ object files must be created using
12297         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12298         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12299         ;;
12300       icpc)
12301         # Intel C++
12302         with_gnu_ld=yes
12303         archive_cmds_need_lc_CXX=no
12304         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12305         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'
12306         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12307         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12308         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12309         ;;
12310       cxx)
12311         # Compaq C++
12312         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12313         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'
12314
12315         runpath_var=LD_RUN_PATH
12316         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12317         hardcode_libdir_separator_CXX=:
12318
12319         # Commands to make compiler produce verbose output that lists
12320         # what "hidden" libraries, object files and flags are used when
12321         # linking a shared library.
12322         #
12323         # There doesn't appear to be a way to prevent this compiler from
12324         # explicitly linking system object files so we need to strip them
12325         # from the output so that they don't get included in the library
12326         # dependencies.
12327         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'
12328         ;;
12329     esac
12330     ;;
12331   lynxos*)
12332     # FIXME: insert proper C++ library support
12333     ld_shlibs_CXX=no
12334     ;;
12335   m88k*)
12336     # FIXME: insert proper C++ library support
12337     ld_shlibs_CXX=no
12338     ;;
12339   mvs*)
12340     case $cc_basename in
12341       cxx)
12342         # FIXME: insert proper C++ library support
12343         ld_shlibs_CXX=no
12344         ;;
12345       *)
12346         # FIXME: insert proper C++ library support
12347         ld_shlibs_CXX=no
12348         ;;
12349     esac
12350     ;;
12351   netbsd*)
12352     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12353       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12354       wlarc=
12355       hardcode_libdir_flag_spec_CXX='-R$libdir'
12356       hardcode_direct_CXX=yes
12357       hardcode_shlibpath_var_CXX=no
12358     fi
12359     # Workaround some broken pre-1.5 toolchains
12360     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12361     ;;
12362   osf3*)
12363     case $cc_basename in
12364       KCC)
12365         # Kuck and Associates, Inc. (KAI) C++ Compiler
12366
12367         # KCC will only create a shared library if the output file
12368         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12369         # to its proper name (with version) after linking.
12370         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'
12371
12372         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12373         hardcode_libdir_separator_CXX=:
12374
12375         # Archives containing C++ object files must be created using
12376         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12377         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12378
12379         ;;
12380       RCC)
12381         # Rational C++ 2.4.1
12382         # FIXME: insert proper C++ library support
12383         ld_shlibs_CXX=no
12384         ;;
12385       cxx)
12386         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12387         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'
12388
12389         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12390         hardcode_libdir_separator_CXX=:
12391
12392         # Commands to make compiler produce verbose output that lists
12393         # what "hidden" libraries, object files and flags are used when
12394         # linking a shared library.
12395         #
12396         # There doesn't appear to be a way to prevent this compiler from
12397         # explicitly linking system object files so we need to strip them
12398         # from the output so that they don't get included in the library
12399         # dependencies.
12400         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'
12401         ;;
12402       *)
12403         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12404           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12405           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'
12406
12407           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12408           hardcode_libdir_separator_CXX=:
12409
12410           # Commands to make compiler produce verbose output that lists
12411           # what "hidden" libraries, object files and flags are used when
12412           # linking a shared library.
12413           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12414
12415         else
12416           # FIXME: insert proper C++ library support
12417           ld_shlibs_CXX=no
12418         fi
12419         ;;
12420     esac
12421     ;;
12422   osf4* | osf5*)
12423     case $cc_basename in
12424       KCC)
12425         # Kuck and Associates, Inc. (KAI) C++ Compiler
12426
12427         # KCC will only create a shared library if the output file
12428         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12429         # to its proper name (with version) after linking.
12430         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'
12431
12432         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12433         hardcode_libdir_separator_CXX=:
12434
12435         # Archives containing C++ object files must be created using
12436         # the KAI C++ compiler.
12437         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12438         ;;
12439       RCC)
12440         # Rational C++ 2.4.1
12441         # FIXME: insert proper C++ library support
12442         ld_shlibs_CXX=no
12443         ;;
12444       cxx)
12445         allow_undefined_flag_CXX=' -expect_unresolved \*'
12446         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'
12447         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12448           echo "-hidden">> $lib.exp~
12449           $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~
12450           $rm $lib.exp'
12451
12452         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12453         hardcode_libdir_separator_CXX=:
12454
12455         # Commands to make compiler produce verbose output that lists
12456         # what "hidden" libraries, object files and flags are used when
12457         # linking a shared library.
12458         #
12459         # There doesn't appear to be a way to prevent this compiler from
12460         # explicitly linking system object files so we need to strip them
12461         # from the output so that they don't get included in the library
12462         # dependencies.
12463         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'
12464         ;;
12465       *)
12466         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12467           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12468          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'
12469
12470           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12471           hardcode_libdir_separator_CXX=:
12472
12473           # Commands to make compiler produce verbose output that lists
12474           # what "hidden" libraries, object files and flags are used when
12475           # linking a shared library.
12476           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12477
12478         else
12479           # FIXME: insert proper C++ library support
12480           ld_shlibs_CXX=no
12481         fi
12482         ;;
12483     esac
12484     ;;
12485   psos*)
12486     # FIXME: insert proper C++ library support
12487     ld_shlibs_CXX=no
12488     ;;
12489   sco*)
12490     archive_cmds_need_lc_CXX=no
12491     case $cc_basename in
12492       CC)
12493         # FIXME: insert proper C++ library support
12494         ld_shlibs_CXX=no
12495         ;;
12496       *)
12497         # FIXME: insert proper C++ library support
12498         ld_shlibs_CXX=no
12499         ;;
12500     esac
12501     ;;
12502   sunos4*)
12503     case $cc_basename in
12504       CC)
12505         # Sun C++ 4.x
12506         # FIXME: insert proper C++ library support
12507         ld_shlibs_CXX=no
12508         ;;
12509       lcc)
12510         # Lucid
12511         # FIXME: insert proper C++ library support
12512         ld_shlibs_CXX=no
12513         ;;
12514       *)
12515         # FIXME: insert proper C++ library support
12516         ld_shlibs_CXX=no
12517         ;;
12518     esac
12519     ;;
12520   solaris*)
12521     case $cc_basename in
12522       CC)
12523         # Sun C++ 4.2, 5.x and Centerline C++
12524         no_undefined_flag_CXX=' -zdefs'
12525         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12526         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12527         $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'
12528
12529         hardcode_libdir_flag_spec_CXX='-R$libdir'
12530         hardcode_shlibpath_var_CXX=no
12531         case $host_os in
12532           solaris2.0-5 | solaris2.0-5.*) ;;
12533           *)
12534             # The C++ compiler is used as linker so we must use $wl
12535             # flag to pass the commands to the underlying system
12536             # linker.
12537             # Supported since Solaris 2.6 (maybe 2.5.1?)
12538             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12539             ;;
12540         esac
12541         link_all_deplibs_CXX=yes
12542
12543         # Commands to make compiler produce verbose output that lists
12544         # what "hidden" libraries, object files and flags are used when
12545         # linking a shared library.
12546         #
12547         # There doesn't appear to be a way to prevent this compiler from
12548         # explicitly linking system object files so we need to strip them
12549         # from the output so that they don't get included in the library
12550         # dependencies.
12551         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'
12552
12553         # Archives containing C++ object files must be created using
12554         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12555         # necessary to make sure instantiated templates are included
12556         # in the archive.
12557         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12558         ;;
12559       gcx)
12560         # Green Hills C++ Compiler
12561         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12562
12563         # The C++ compiler must be used to create the archive.
12564         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12565         ;;
12566       *)
12567         # GNU C++ compiler with Solaris linker
12568         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12569           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12570           if $CC --version | grep -v '^2\.7' > /dev/null; then
12571             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12572             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12573                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12574
12575             # Commands to make compiler produce verbose output that lists
12576             # what "hidden" libraries, object files and flags are used when
12577             # linking a shared library.
12578             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12579           else
12580             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12581             # platform.
12582             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12583             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12584                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12585
12586             # Commands to make compiler produce verbose output that lists
12587             # what "hidden" libraries, object files and flags are used when
12588             # linking a shared library.
12589             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12590           fi
12591
12592           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12593         fi
12594         ;;
12595     esac
12596     ;;
12597   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12598     archive_cmds_need_lc_CXX=no
12599     ;;
12600   tandem*)
12601     case $cc_basename in
12602       NCC)
12603         # NonStop-UX NCC 3.20
12604         # FIXME: insert proper C++ library support
12605         ld_shlibs_CXX=no
12606         ;;
12607       *)
12608         # FIXME: insert proper C++ library support
12609         ld_shlibs_CXX=no
12610         ;;
12611     esac
12612     ;;
12613   vxworks*)
12614     # FIXME: insert proper C++ library support
12615     ld_shlibs_CXX=no
12616     ;;
12617   *)
12618     # FIXME: insert proper C++ library support
12619     ld_shlibs_CXX=no
12620     ;;
12621 esac
12622 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12623 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12624 test "$ld_shlibs_CXX" = no && can_build_shared=no
12625
12626 GCC_CXX="$GXX"
12627 LD_CXX="$LD"
12628
12629 ## CAVEAT EMPTOR:
12630 ## There is no encapsulation within the following macros, do not change
12631 ## the running order or otherwise move them around unless you know exactly
12632 ## what you are doing...
12633
12634 cat > conftest.$ac_ext <<EOF
12635 class Foo
12636 {
12637 public:
12638   Foo (void) { a = 0; }
12639 private:
12640   int a;
12641 };
12642 EOF
12643
12644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12645   (eval $ac_compile) 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; then
12649   # Parse the compiler output and extract the necessary
12650   # objects, libraries and library flags.
12651
12652   # Sentinel used to keep track of whether or not we are before
12653   # the conftest object file.
12654   pre_test_object_deps_done=no
12655
12656   # The `*' in the case matches for architectures that use `case' in
12657   # $output_verbose_cmd can trigger glob expansion during the loop
12658   # eval without this substitution.
12659   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12660
12661   for p in `eval $output_verbose_link_cmd`; do
12662     case $p in
12663
12664     -L* | -R* | -l*)
12665        # Some compilers place space between "-{L,R}" and the path.
12666        # Remove the space.
12667        if test $p = "-L" \
12668           || test $p = "-R"; then
12669          prev=$p
12670          continue
12671        else
12672          prev=
12673        fi
12674
12675        if test "$pre_test_object_deps_done" = no; then
12676          case $p in
12677          -L* | -R*)
12678            # Internal compiler library paths should come after those
12679            # provided the user.  The postdeps already come after the
12680            # user supplied libs so there is no need to process them.
12681            if test -z "$compiler_lib_search_path_CXX"; then
12682              compiler_lib_search_path_CXX="${prev}${p}"
12683            else
12684              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12685            fi
12686            ;;
12687          # The "-l" case would never come before the object being
12688          # linked, so don't bother handling this case.
12689          esac
12690        else
12691          if test -z "$postdeps_CXX"; then
12692            postdeps_CXX="${prev}${p}"
12693          else
12694            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12695          fi
12696        fi
12697        ;;
12698
12699     *.$objext)
12700        # This assumes that the test object file only shows up
12701        # once in the compiler output.
12702        if test "$p" = "conftest.$objext"; then
12703          pre_test_object_deps_done=yes
12704          continue
12705        fi
12706
12707        if test "$pre_test_object_deps_done" = no; then
12708          if test -z "$predep_objects_CXX"; then
12709            predep_objects_CXX="$p"
12710          else
12711            predep_objects_CXX="$predep_objects_CXX $p"
12712          fi
12713        else
12714          if test -z "$postdep_objects_CXX"; then
12715            postdep_objects_CXX="$p"
12716          else
12717            postdep_objects_CXX="$postdep_objects_CXX $p"
12718          fi
12719        fi
12720        ;;
12721
12722     *) ;; # Ignore the rest.
12723
12724     esac
12725   done
12726
12727   # Clean up.
12728   rm -f a.out a.exe
12729 else
12730   echo "libtool.m4: error: problem compiling CXX test program"
12731 fi
12732
12733 $rm -f confest.$objext
12734
12735 case " $postdeps_CXX " in
12736 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12737 esac
12738
12739 lt_prog_compiler_wl_CXX=
12740 lt_prog_compiler_pic_CXX=
12741 lt_prog_compiler_static_CXX=
12742
12743 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12744 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12745
12746   # C++ specific cases for pic, static, wl, etc.
12747   if test "$GXX" = yes; then
12748     lt_prog_compiler_wl_CXX='-Wl,'
12749     lt_prog_compiler_static_CXX='-static'
12750
12751     case $host_os in
12752     aix*)
12753       # All AIX code is PIC.
12754       if test "$host_cpu" = ia64; then
12755         # AIX 5 now supports IA64 processor
12756         lt_prog_compiler_static_CXX='-Bstatic'
12757       fi
12758       ;;
12759     amigaos*)
12760       # FIXME: we need at least 68020 code to build shared libraries, but
12761       # adding the `-m68020' flag to GCC prevents building anything better,
12762       # like `-m68040'.
12763       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12764       ;;
12765     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12766       # PIC is the default for these OSes.
12767       ;;
12768     mingw* | os2* | pw32*)
12769       # This hack is so that the source file can tell whether it is being
12770       # built for inclusion in a dll (and should export symbols for example).
12771       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12772       ;;
12773     darwin* | rhapsody*)
12774       # PIC is the default on this platform
12775       # Common symbols not allowed in MH_DYLIB files
12776       lt_prog_compiler_pic_CXX='-fno-common'
12777       ;;
12778     *djgpp*)
12779       # DJGPP does not support shared libraries at all
12780       lt_prog_compiler_pic_CXX=
12781       ;;
12782     sysv4*MP*)
12783       if test -d /usr/nec; then
12784         lt_prog_compiler_pic_CXX=-Kconform_pic
12785       fi
12786       ;;
12787     hpux*)
12788       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12789       # not for PA HP-UX.
12790       case "$host_cpu" in
12791       hppa*64*|ia64*)
12792         ;;
12793       *)
12794         lt_prog_compiler_pic_CXX='-fPIC'
12795         ;;
12796       esac
12797       ;;
12798     *)
12799       lt_prog_compiler_pic_CXX='-fPIC'
12800       ;;
12801     esac
12802   else
12803     case $host_os in
12804       aix4* | aix5*)
12805         # All AIX code is PIC.
12806         if test "$host_cpu" = ia64; then
12807           # AIX 5 now supports IA64 processor
12808           lt_prog_compiler_static_CXX='-Bstatic'
12809         else
12810           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12811         fi
12812         ;;
12813       chorus*)
12814         case $cc_basename in
12815         cxch68)
12816           # Green Hills C++ Compiler
12817           # _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"
12818           ;;
12819         esac
12820         ;;
12821       dgux*)
12822         case $cc_basename in
12823           ec++)
12824             lt_prog_compiler_pic_CXX='-KPIC'
12825             ;;
12826           ghcx)
12827             # Green Hills C++ Compiler
12828             lt_prog_compiler_pic_CXX='-pic'
12829             ;;
12830           *)
12831             ;;
12832         esac
12833         ;;
12834       freebsd* | kfreebsd*-gnu)
12835         # FreeBSD uses GNU C++
12836         ;;
12837       hpux9* | hpux10* | hpux11*)
12838         case $cc_basename in
12839           CC)
12840             lt_prog_compiler_wl_CXX='-Wl,'
12841             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12842             if test "$host_cpu" != ia64; then
12843               lt_prog_compiler_pic_CXX='+Z'
12844             fi
12845             ;;
12846           aCC)
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             case "$host_cpu" in
12850             hppa*64*|ia64*)
12851               # +Z the default
12852               ;;
12853             *)
12854               lt_prog_compiler_pic_CXX='+Z'
12855               ;;
12856             esac
12857             ;;
12858           *)
12859             ;;
12860         esac
12861         ;;
12862       irix5* | irix6* | nonstopux*)
12863         case $cc_basename in
12864           CC)
12865             lt_prog_compiler_wl_CXX='-Wl,'
12866             lt_prog_compiler_static_CXX='-non_shared'
12867             # CC pic flag -KPIC is the default.
12868             ;;
12869           *)
12870             ;;
12871         esac
12872         ;;
12873       linux*)
12874         case $cc_basename in
12875           KCC)
12876             # KAI C++ Compiler
12877             lt_prog_compiler_wl_CXX='--backend -Wl,'
12878             lt_prog_compiler_pic_CXX='-fPIC'
12879             ;;
12880           icpc)
12881             # Intel C++
12882             lt_prog_compiler_wl_CXX='-Wl,'
12883             lt_prog_compiler_pic_CXX='-KPIC'
12884             lt_prog_compiler_static_CXX='-static'
12885             ;;
12886           cxx)
12887             # Compaq C++
12888             # Make sure the PIC flag is empty.  It appears that all Alpha
12889             # Linux and Compaq Tru64 Unix objects are PIC.
12890             lt_prog_compiler_pic_CXX=
12891             lt_prog_compiler_static_CXX='-non_shared'
12892             ;;
12893           *)
12894             ;;
12895         esac
12896         ;;
12897       lynxos*)
12898         ;;
12899       m88k*)
12900         ;;
12901       mvs*)
12902         case $cc_basename in
12903           cxx)
12904             lt_prog_compiler_pic_CXX='-W c,exportall'
12905             ;;
12906           *)
12907             ;;
12908         esac
12909         ;;
12910       netbsd*)
12911         ;;
12912       osf3* | osf4* | osf5*)
12913         case $cc_basename in
12914           KCC)
12915             lt_prog_compiler_wl_CXX='--backend -Wl,'
12916             ;;
12917           RCC)
12918             # Rational C++ 2.4.1
12919             lt_prog_compiler_pic_CXX='-pic'
12920             ;;
12921           cxx)
12922             # Digital/Compaq C++
12923             lt_prog_compiler_wl_CXX='-Wl,'
12924             # Make sure the PIC flag is empty.  It appears that all Alpha
12925             # Linux and Compaq Tru64 Unix objects are PIC.
12926             lt_prog_compiler_pic_CXX=
12927             lt_prog_compiler_static_CXX='-non_shared'
12928             ;;
12929           *)
12930             ;;
12931         esac
12932         ;;
12933       psos*)
12934         ;;
12935       sco*)
12936         case $cc_basename in
12937           CC)
12938             lt_prog_compiler_pic_CXX='-fPIC'
12939             ;;
12940           *)
12941             ;;
12942         esac
12943         ;;
12944       solaris*)
12945         case $cc_basename in
12946           CC)
12947             # Sun C++ 4.2, 5.x and Centerline C++
12948             lt_prog_compiler_pic_CXX='-KPIC'
12949             lt_prog_compiler_static_CXX='-Bstatic'
12950             lt_prog_compiler_wl_CXX='-Qoption ld '
12951             ;;
12952           gcx)
12953             # Green Hills C++ Compiler
12954             lt_prog_compiler_pic_CXX='-PIC'
12955             ;;
12956           *)
12957             ;;
12958         esac
12959         ;;
12960       sunos4*)
12961         case $cc_basename in
12962           CC)
12963             # Sun C++ 4.x
12964             lt_prog_compiler_pic_CXX='-pic'
12965             lt_prog_compiler_static_CXX='-Bstatic'
12966             ;;
12967           lcc)
12968             # Lucid
12969             lt_prog_compiler_pic_CXX='-pic'
12970             ;;
12971           *)
12972             ;;
12973         esac
12974         ;;
12975       tandem*)
12976         case $cc_basename in
12977           NCC)
12978             # NonStop-UX NCC 3.20
12979             lt_prog_compiler_pic_CXX='-KPIC'
12980             ;;
12981           *)
12982             ;;
12983         esac
12984         ;;
12985       unixware*)
12986         ;;
12987       vxworks*)
12988         ;;
12989       *)
12990         lt_prog_compiler_can_build_shared_CXX=no
12991         ;;
12992     esac
12993   fi
12994
12995 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12996 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12997
12998 #
12999 # Check to make sure the PIC flag actually works.
13000 #
13001 if test -n "$lt_prog_compiler_pic_CXX"; then
13002
13003 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13004 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13005 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13006   echo $ECHO_N "(cached) $ECHO_C" >&6
13007 else
13008   lt_prog_compiler_pic_works_CXX=no
13009   ac_outfile=conftest.$ac_objext
13010    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13011    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13012    # Insert the option either (1) after the last *FLAGS variable, or
13013    # (2) before a word containing "conftest.", or (3) at the end.
13014    # Note that $ac_compile itself does not contain backslashes and begins
13015    # with a dollar sign (not a hyphen), so the echo should work correctly.
13016    # The option is referenced via a variable to avoid confusing sed.
13017    lt_compile=`echo "$ac_compile" | $SED \
13018    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13019    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13020    -e 's:$: $lt_compiler_flag:'`
13021    (eval echo "\"\$as_me:13021: $lt_compile\"" >&5)
13022    (eval "$lt_compile" 2>conftest.err)
13023    ac_status=$?
13024    cat conftest.err >&5
13025    echo "$as_me:13025: \$? = $ac_status" >&5
13026    if (exit $ac_status) && test -s "$ac_outfile"; then
13027      # The compiler can only warn and ignore the option if not recognized
13028      # So say no if there are warnings
13029      if test ! -s conftest.err; then
13030        lt_prog_compiler_pic_works_CXX=yes
13031      fi
13032    fi
13033    $rm conftest*
13034
13035 fi
13036 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13037 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13038
13039 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13040     case $lt_prog_compiler_pic_CXX in
13041      "" | " "*) ;;
13042      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13043      esac
13044 else
13045     lt_prog_compiler_pic_CXX=
13046      lt_prog_compiler_can_build_shared_CXX=no
13047 fi
13048
13049 fi
13050 case "$host_os" in
13051   # For platforms which do not support PIC, -DPIC is meaningless:
13052   *djgpp*)
13053     lt_prog_compiler_pic_CXX=
13054     ;;
13055   *)
13056     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13057     ;;
13058 esac
13059
13060 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13061 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13062 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13063   echo $ECHO_N "(cached) $ECHO_C" >&6
13064 else
13065   lt_cv_prog_compiler_c_o_CXX=no
13066    $rm -r conftest 2>/dev/null
13067    mkdir conftest
13068    cd conftest
13069    mkdir out
13070    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13071
13072    lt_compiler_flag="-o out/conftest2.$ac_objext"
13073    # Insert the option either (1) after the last *FLAGS variable, or
13074    # (2) before a word containing "conftest.", or (3) at the end.
13075    # Note that $ac_compile itself does not contain backslashes and begins
13076    # with a dollar sign (not a hyphen), so the echo should work correctly.
13077    lt_compile=`echo "$ac_compile" | $SED \
13078    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13079    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13080    -e 's:$: $lt_compiler_flag:'`
13081    (eval echo "\"\$as_me:13081: $lt_compile\"" >&5)
13082    (eval "$lt_compile" 2>out/conftest.err)
13083    ac_status=$?
13084    cat out/conftest.err >&5
13085    echo "$as_me:13085: \$? = $ac_status" >&5
13086    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13087    then
13088      # The compiler can only warn and ignore the option if not recognized
13089      # So say no if there are warnings
13090      if test ! -s out/conftest.err; then
13091        lt_cv_prog_compiler_c_o_CXX=yes
13092      fi
13093    fi
13094    chmod u+w .
13095    $rm conftest*
13096    # SGI C++ compiler will create directory out/ii_files/ for
13097    # template instantiation
13098    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13099    $rm out/* && rmdir out
13100    cd ..
13101    rmdir conftest
13102    $rm conftest*
13103
13104 fi
13105 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13106 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13107
13108
13109 hard_links="nottested"
13110 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13111   # do not overwrite the value of need_locks provided by the user
13112   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13113 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13114   hard_links=yes
13115   $rm conftest*
13116   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13117   touch conftest.a
13118   ln conftest.a conftest.b 2>&5 || hard_links=no
13119   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13120   echo "$as_me:$LINENO: result: $hard_links" >&5
13121 echo "${ECHO_T}$hard_links" >&6
13122   if test "$hard_links" = no; then
13123     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13124 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13125     need_locks=warn
13126   fi
13127 else
13128   need_locks=no
13129 fi
13130
13131 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13132 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13133
13134   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13135   case $host_os in
13136   aix4* | aix5*)
13137     # If we're using GNU nm, then we don't want the "-C" option.
13138     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13139     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13140       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'
13141     else
13142       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'
13143     fi
13144     ;;
13145   pw32*)
13146     export_symbols_cmds_CXX="$ltdll_cmds"
13147   ;;
13148   cygwin* | mingw*)
13149     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13150   ;;
13151   *)
13152     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13153   ;;
13154   esac
13155
13156 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13157 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13158 test "$ld_shlibs_CXX" = no && can_build_shared=no
13159
13160 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13161 if test "$GCC" = yes; then
13162   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13163 fi
13164
13165 #
13166 # Do we need to explicitly link libc?
13167 #
13168 case "x$archive_cmds_need_lc_CXX" in
13169 x|xyes)
13170   # Assume -lc should be added
13171   archive_cmds_need_lc_CXX=yes
13172
13173   if test "$enable_shared" = yes && test "$GCC" = yes; then
13174     case $archive_cmds_CXX in
13175     *'~'*)
13176       # FIXME: we may have to deal with multi-command sequences.
13177       ;;
13178     '$CC '*)
13179       # Test whether the compiler implicitly links with -lc since on some
13180       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13181       # to ld, don't add -lc before -lgcc.
13182       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13183 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13184       $rm conftest*
13185       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13186
13187       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13188   (eval $ac_compile) 2>&5
13189   ac_status=$?
13190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191   (exit $ac_status); } 2>conftest.err; then
13192         soname=conftest
13193         lib=conftest
13194         libobjs=conftest.$ac_objext
13195         deplibs=
13196         wl=$lt_prog_compiler_wl_CXX
13197         compiler_flags=-v
13198         linker_flags=-v
13199         verstring=
13200         output_objdir=.
13201         libname=conftest
13202         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13203         allow_undefined_flag_CXX=
13204         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13205   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13206   ac_status=$?
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); }
13209         then
13210           archive_cmds_need_lc_CXX=no
13211         else
13212           archive_cmds_need_lc_CXX=yes
13213         fi
13214         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13215       else
13216         cat conftest.err 1>&5
13217       fi
13218       $rm conftest*
13219       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13220 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13221       ;;
13222     esac
13223   fi
13224   ;;
13225 esac
13226
13227 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13228 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13229 library_names_spec=
13230 libname_spec='lib$name'
13231 soname_spec=
13232 shrext_cmds=".so"
13233 postinstall_cmds=
13234 postuninstall_cmds=
13235 finish_cmds=
13236 finish_eval=
13237 shlibpath_var=
13238 shlibpath_overrides_runpath=unknown
13239 version_type=none
13240 dynamic_linker="$host_os ld.so"
13241 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13242 if test "$GCC" = yes; then
13243   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13244   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13245     # if the path contains ";" then we assume it to be the separator
13246     # otherwise default to the standard path separator (i.e. ":") - it is
13247     # assumed that no part of a normal pathname contains ";" but that should
13248     # okay in the real world where ";" in dirpaths is itself problematic.
13249     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13250   else
13251     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13252   fi
13253 else
13254   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13255 fi
13256 need_lib_prefix=unknown
13257 hardcode_into_libs=no
13258
13259 # when you set need_version to no, make sure it does not cause -set_version
13260 # flags to be left without arguments
13261 need_version=unknown
13262
13263 case $host_os in
13264 aix3*)
13265   version_type=linux
13266   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13267   shlibpath_var=LIBPATH
13268
13269   # AIX 3 has no versioning support, so we append a major version to the name.
13270   soname_spec='${libname}${release}${shared_ext}$major'
13271   ;;
13272
13273 aix4* | aix5*)
13274   version_type=linux
13275   need_lib_prefix=no
13276   need_version=no
13277   hardcode_into_libs=yes
13278   if test "$host_cpu" = ia64; then
13279     # AIX 5 supports IA64
13280     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13281     shlibpath_var=LD_LIBRARY_PATH
13282   else
13283     # With GCC up to 2.95.x, collect2 would create an import file
13284     # for dependence libraries.  The import file would start with
13285     # the line `#! .'.  This would cause the generated library to
13286     # depend on `.', always an invalid library.  This was fixed in
13287     # development snapshots of GCC prior to 3.0.
13288     case $host_os in
13289       aix4 | aix4.[01] | aix4.[01].*)
13290       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13291            echo ' yes '
13292            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13293         :
13294       else
13295         can_build_shared=no
13296       fi
13297       ;;
13298     esac
13299     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13300     # soname into executable. Probably we can add versioning support to
13301     # collect2, so additional links can be useful in future.
13302     if test "$aix_use_runtimelinking" = yes; then
13303       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13304       # instead of lib<name>.a to let people know that these are not
13305       # typical AIX shared libraries.
13306       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13307     else
13308       # We preserve .a as extension for shared libraries through AIX4.2
13309       # and later when we are not doing run time linking.
13310       library_names_spec='${libname}${release}.a $libname.a'
13311       soname_spec='${libname}${release}${shared_ext}$major'
13312     fi
13313     shlibpath_var=LIBPATH
13314   fi
13315   ;;
13316
13317 amigaos*)
13318   library_names_spec='$libname.ixlibrary $libname.a'
13319   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13320   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'
13321   ;;
13322
13323 beos*)
13324   library_names_spec='${libname}${shared_ext}'
13325   dynamic_linker="$host_os ld.so"
13326   shlibpath_var=LIBRARY_PATH
13327   ;;
13328
13329 bsdi4*)
13330   version_type=linux
13331   need_version=no
13332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13333   soname_spec='${libname}${release}${shared_ext}$major'
13334   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13335   shlibpath_var=LD_LIBRARY_PATH
13336   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13337   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13338   # the default ld.so.conf also contains /usr/contrib/lib and
13339   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13340   # libtool to hard-code these into programs
13341   ;;
13342
13343 cygwin* | mingw* | pw32*)
13344   version_type=windows
13345   shrext_cmds=".dll"
13346   need_version=no
13347   need_lib_prefix=no
13348
13349   case $GCC,$host_os in
13350   yes,cygwin* | yes,mingw* | yes,pw32*)
13351     library_names_spec='$libname.dll.a'
13352     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13353     postinstall_cmds='base_file=`basename \${file}`~
13354       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13355       dldir=$destdir/`dirname \$dlpath`~
13356       test -d \$dldir || mkdir -p \$dldir~
13357       $install_prog $dir/$dlname \$dldir/$dlname'
13358     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13359       dlpath=$dir/\$dldll~
13360        $rm \$dlpath'
13361     shlibpath_overrides_runpath=yes
13362
13363     case $host_os in
13364     cygwin*)
13365       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13366       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13367       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13368       ;;
13369     mingw*)
13370       # MinGW DLLs use traditional 'lib' prefix
13371       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13372       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13373       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13374         # It is most probably a Windows format PATH printed by
13375         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13376         # path with ; separators, and with drive letters. We can handle the
13377         # drive letters (cygwin fileutils understands them), so leave them,
13378         # especially as we might pass files found there to a mingw objdump,
13379         # which wouldn't understand a cygwinified path. Ahh.
13380         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13381       else
13382         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13383       fi
13384       ;;
13385     pw32*)
13386       # pw32 DLLs use 'pw' prefix rather than 'lib'
13387       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13388       ;;
13389     esac
13390     ;;
13391
13392   *)
13393     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13394     ;;
13395   esac
13396   dynamic_linker='Win32 ld.exe'
13397   # FIXME: first we should search . and the directory the executable is in
13398   shlibpath_var=PATH
13399   ;;
13400
13401 darwin* | rhapsody*)
13402   dynamic_linker="$host_os dyld"
13403   version_type=darwin
13404   need_lib_prefix=no
13405   need_version=no
13406   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13407   soname_spec='${libname}${release}${major}$shared_ext'
13408   shlibpath_overrides_runpath=yes
13409   shlibpath_var=DYLD_LIBRARY_PATH
13410   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13411   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13412   if test "$GCC" = yes; then
13413     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"`
13414   else
13415     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13416   fi
13417   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13418   ;;
13419
13420 dgux*)
13421   version_type=linux
13422   need_lib_prefix=no
13423   need_version=no
13424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13425   soname_spec='${libname}${release}${shared_ext}$major'
13426   shlibpath_var=LD_LIBRARY_PATH
13427   ;;
13428
13429 freebsd1*)
13430   dynamic_linker=no
13431   ;;
13432
13433 kfreebsd*-gnu)
13434   version_type=linux
13435   need_lib_prefix=no
13436   need_version=no
13437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13438   soname_spec='${libname}${release}${shared_ext}$major'
13439   shlibpath_var=LD_LIBRARY_PATH
13440   shlibpath_overrides_runpath=no
13441   hardcode_into_libs=yes
13442   dynamic_linker='GNU ld.so'
13443   ;;
13444
13445 freebsd*)
13446   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13447   version_type=freebsd-$objformat
13448   case $version_type in
13449     freebsd-elf*)
13450       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13451       need_version=no
13452       need_lib_prefix=no
13453       ;;
13454     freebsd-*)
13455       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13456       need_version=yes
13457       ;;
13458   esac
13459   shlibpath_var=LD_LIBRARY_PATH
13460   case $host_os in
13461   freebsd2*)
13462     shlibpath_overrides_runpath=yes
13463     ;;
13464   freebsd3.01* | freebsdelf3.01*)
13465     shlibpath_overrides_runpath=yes
13466     hardcode_into_libs=yes
13467     ;;
13468   *) # from 3.2 on
13469     shlibpath_overrides_runpath=no
13470     hardcode_into_libs=yes
13471     ;;
13472   esac
13473   ;;
13474
13475 gnu*)
13476   version_type=linux
13477   need_lib_prefix=no
13478   need_version=no
13479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13480   soname_spec='${libname}${release}${shared_ext}$major'
13481   shlibpath_var=LD_LIBRARY_PATH
13482   hardcode_into_libs=yes
13483   ;;
13484
13485 hpux9* | hpux10* | hpux11*)
13486   # Give a soname corresponding to the major version so that dld.sl refuses to
13487   # link against other versions.
13488   version_type=sunos
13489   need_lib_prefix=no
13490   need_version=no
13491   case "$host_cpu" in
13492   ia64*)
13493     shrext_cmds='.so'
13494     hardcode_into_libs=yes
13495     dynamic_linker="$host_os dld.so"
13496     shlibpath_var=LD_LIBRARY_PATH
13497     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13498     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499     soname_spec='${libname}${release}${shared_ext}$major'
13500     if test "X$HPUX_IA64_MODE" = X32; then
13501       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13502     else
13503       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13504     fi
13505     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13506     ;;
13507    hppa*64*)
13508      shrext_cmds='.sl'
13509      hardcode_into_libs=yes
13510      dynamic_linker="$host_os dld.sl"
13511      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13512      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13513      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13514      soname_spec='${libname}${release}${shared_ext}$major'
13515      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13516      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13517      ;;
13518    *)
13519     shrext_cmds='.sl'
13520     dynamic_linker="$host_os dld.sl"
13521     shlibpath_var=SHLIB_PATH
13522     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13524     soname_spec='${libname}${release}${shared_ext}$major'
13525     ;;
13526   esac
13527   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13528   postinstall_cmds='chmod 555 $lib'
13529   ;;
13530
13531 irix5* | irix6* | nonstopux*)
13532   case $host_os in
13533     nonstopux*) version_type=nonstopux ;;
13534     *)
13535         if test "$lt_cv_prog_gnu_ld" = yes; then
13536                 version_type=linux
13537         else
13538                 version_type=irix
13539         fi ;;
13540   esac
13541   need_lib_prefix=no
13542   need_version=no
13543   soname_spec='${libname}${release}${shared_ext}$major'
13544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13545   case $host_os in
13546   irix5* | nonstopux*)
13547     libsuff= shlibsuff=
13548     ;;
13549   *)
13550     case $LD in # libtool.m4 will add one of these switches to LD
13551     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13552       libsuff= shlibsuff= libmagic=32-bit;;
13553     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13554       libsuff=32 shlibsuff=N32 libmagic=N32;;
13555     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13556       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13557     *) libsuff= shlibsuff= libmagic=never-match;;
13558     esac
13559     ;;
13560   esac
13561   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13562   shlibpath_overrides_runpath=no
13563   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13564   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13565   hardcode_into_libs=yes
13566   ;;
13567
13568 # No shared lib support for Linux oldld, aout, or coff.
13569 linux*oldld* | linux*aout* | linux*coff*)
13570   dynamic_linker=no
13571   ;;
13572
13573 # This must be Linux ELF.
13574 linux*)
13575   version_type=linux
13576   need_lib_prefix=no
13577   need_version=no
13578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13579   soname_spec='${libname}${release}${shared_ext}$major'
13580   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13581   shlibpath_var=LD_LIBRARY_PATH
13582   shlibpath_overrides_runpath=no
13583   # This implies no fast_install, which is unacceptable.
13584   # Some rework will be needed to allow for fast_install
13585   # before this can be enabled.
13586   hardcode_into_libs=yes
13587
13588   # find out which ABI we are using
13589   libsuff=
13590   case "$host_cpu" in
13591   x86_64*|s390x*|powerpc64*)
13592     echo '#line 13592 "configure"' > conftest.$ac_ext
13593     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594   (eval $ac_compile) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); }; then
13598       case `/usr/bin/file conftest.$ac_objext` in
13599       *64-bit*)
13600         libsuff=64
13601         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13602         ;;
13603       esac
13604     fi
13605     rm -rf conftest*
13606     ;;
13607   esac
13608
13609   # Append ld.so.conf contents to the search path
13610   if test -f /etc/ld.so.conf; then
13611     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13612     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13613   fi
13614
13615   # We used to test for /lib/ld.so.1 and disable shared libraries on
13616   # powerpc, because MkLinux only supported shared libraries with the
13617   # GNU dynamic linker.  Since this was broken with cross compilers,
13618   # most powerpc-linux boxes support dynamic linking these days and
13619   # people can always --disable-shared, the test was removed, and we
13620   # assume the GNU/Linux dynamic linker is in use.
13621   dynamic_linker='GNU/Linux ld.so'
13622   ;;
13623
13624 knetbsd*-gnu)
13625   version_type=linux
13626   need_lib_prefix=no
13627   need_version=no
13628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13629   soname_spec='${libname}${release}${shared_ext}$major'
13630   shlibpath_var=LD_LIBRARY_PATH
13631   shlibpath_overrides_runpath=no
13632   hardcode_into_libs=yes
13633   dynamic_linker='GNU ld.so'
13634   ;;
13635
13636 netbsd*)
13637   version_type=sunos
13638   need_lib_prefix=no
13639   need_version=no
13640   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13642     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13643     dynamic_linker='NetBSD (a.out) ld.so'
13644   else
13645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13646     soname_spec='${libname}${release}${shared_ext}$major'
13647     dynamic_linker='NetBSD ld.elf_so'
13648   fi
13649   shlibpath_var=LD_LIBRARY_PATH
13650   shlibpath_overrides_runpath=yes
13651   hardcode_into_libs=yes
13652   ;;
13653
13654 newsos6)
13655   version_type=linux
13656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13657   shlibpath_var=LD_LIBRARY_PATH
13658   shlibpath_overrides_runpath=yes
13659   ;;
13660
13661 nto-qnx*)
13662   version_type=linux
13663   need_lib_prefix=no
13664   need_version=no
13665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666   soname_spec='${libname}${release}${shared_ext}$major'
13667   shlibpath_var=LD_LIBRARY_PATH
13668   shlibpath_overrides_runpath=yes
13669   ;;
13670
13671 openbsd*)
13672   version_type=sunos
13673   need_lib_prefix=no
13674   need_version=yes
13675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13676   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13677   shlibpath_var=LD_LIBRARY_PATH
13678   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13679     case $host_os in
13680       openbsd2.[89] | openbsd2.[89].*)
13681         shlibpath_overrides_runpath=no
13682         ;;
13683       *)
13684         shlibpath_overrides_runpath=yes
13685         ;;
13686       esac
13687   else
13688     shlibpath_overrides_runpath=yes
13689   fi
13690   ;;
13691
13692 os2*)
13693   libname_spec='$name'
13694   shrext_cmds=".dll"
13695   need_lib_prefix=no
13696   library_names_spec='$libname${shared_ext} $libname.a'
13697   dynamic_linker='OS/2 ld.exe'
13698   shlibpath_var=LIBPATH
13699   ;;
13700
13701 osf3* | osf4* | osf5*)
13702   version_type=osf
13703   need_lib_prefix=no
13704   need_version=no
13705   soname_spec='${libname}${release}${shared_ext}$major'
13706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13707   shlibpath_var=LD_LIBRARY_PATH
13708   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13709   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13710   ;;
13711
13712 sco3.2v5*)
13713   version_type=osf
13714   soname_spec='${libname}${release}${shared_ext}$major'
13715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716   shlibpath_var=LD_LIBRARY_PATH
13717   ;;
13718
13719 solaris*)
13720   version_type=linux
13721   need_lib_prefix=no
13722   need_version=no
13723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13724   soname_spec='${libname}${release}${shared_ext}$major'
13725   shlibpath_var=LD_LIBRARY_PATH
13726   shlibpath_overrides_runpath=yes
13727   hardcode_into_libs=yes
13728   # ldd complains unless libraries are executable
13729   postinstall_cmds='chmod +x $lib'
13730   ;;
13731
13732 sunos4*)
13733   version_type=sunos
13734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13735   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13736   shlibpath_var=LD_LIBRARY_PATH
13737   shlibpath_overrides_runpath=yes
13738   if test "$with_gnu_ld" = yes; then
13739     need_lib_prefix=no
13740   fi
13741   need_version=yes
13742   ;;
13743
13744 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13745   version_type=linux
13746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747   soname_spec='${libname}${release}${shared_ext}$major'
13748   shlibpath_var=LD_LIBRARY_PATH
13749   case $host_vendor in
13750     sni)
13751       shlibpath_overrides_runpath=no
13752       need_lib_prefix=no
13753       export_dynamic_flag_spec='${wl}-Blargedynsym'
13754       runpath_var=LD_RUN_PATH
13755       ;;
13756     siemens)
13757       need_lib_prefix=no
13758       ;;
13759     motorola)
13760       need_lib_prefix=no
13761       need_version=no
13762       shlibpath_overrides_runpath=no
13763       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13764       ;;
13765   esac
13766   ;;
13767
13768 sysv4*MP*)
13769   if test -d /usr/nec ;then
13770     version_type=linux
13771     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13772     soname_spec='$libname${shared_ext}.$major'
13773     shlibpath_var=LD_LIBRARY_PATH
13774   fi
13775   ;;
13776
13777 uts4*)
13778   version_type=linux
13779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780   soname_spec='${libname}${release}${shared_ext}$major'
13781   shlibpath_var=LD_LIBRARY_PATH
13782   ;;
13783
13784 *)
13785   dynamic_linker=no
13786   ;;
13787 esac
13788 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13789 echo "${ECHO_T}$dynamic_linker" >&6
13790 test "$dynamic_linker" = no && can_build_shared=no
13791
13792 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13793 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13794 hardcode_action_CXX=
13795 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13796    test -n "$runpath_var CXX" || \
13797    test "X$hardcode_automatic_CXX"="Xyes" ; then
13798
13799   # We can hardcode non-existant directories.
13800   if test "$hardcode_direct_CXX" != no &&
13801      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13802      # have to relink, otherwise we might link with an installed library
13803      # when we should be linking with a yet-to-be-installed one
13804      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13805      test "$hardcode_minus_L_CXX" != no; then
13806     # Linking always hardcodes the temporary library directory.
13807     hardcode_action_CXX=relink
13808   else
13809     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13810     hardcode_action_CXX=immediate
13811   fi
13812 else
13813   # We cannot hardcode anything, or else we can only hardcode existing
13814   # directories.
13815   hardcode_action_CXX=unsupported
13816 fi
13817 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13818 echo "${ECHO_T}$hardcode_action_CXX" >&6
13819
13820 if test "$hardcode_action_CXX" = relink; then
13821   # Fast installation is not supported
13822   enable_fast_install=no
13823 elif test "$shlibpath_overrides_runpath" = yes ||
13824      test "$enable_shared" = no; then
13825   # Fast installation is not necessary
13826   enable_fast_install=needless
13827 fi
13828
13829 striplib=
13830 old_striplib=
13831 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13832 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13833 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13834   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13835   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13836   echo "$as_me:$LINENO: result: yes" >&5
13837 echo "${ECHO_T}yes" >&6
13838 else
13839 # FIXME - insert some real tests, host_os isn't really good enough
13840   case $host_os in
13841    darwin*)
13842        if test -n "$STRIP" ; then
13843          striplib="$STRIP -x"
13844          echo "$as_me:$LINENO: result: yes" >&5
13845 echo "${ECHO_T}yes" >&6
13846        else
13847   echo "$as_me:$LINENO: result: no" >&5
13848 echo "${ECHO_T}no" >&6
13849 fi
13850        ;;
13851    *)
13852   echo "$as_me:$LINENO: result: no" >&5
13853 echo "${ECHO_T}no" >&6
13854     ;;
13855   esac
13856 fi
13857
13858 if test "x$enable_dlopen" != xyes; then
13859   enable_dlopen=unknown
13860   enable_dlopen_self=unknown
13861   enable_dlopen_self_static=unknown
13862 else
13863   lt_cv_dlopen=no
13864   lt_cv_dlopen_libs=
13865
13866   case $host_os in
13867   beos*)
13868     lt_cv_dlopen="load_add_on"
13869     lt_cv_dlopen_libs=
13870     lt_cv_dlopen_self=yes
13871     ;;
13872
13873   mingw* | pw32*)
13874     lt_cv_dlopen="LoadLibrary"
13875     lt_cv_dlopen_libs=
13876    ;;
13877
13878   cygwin*)
13879     lt_cv_dlopen="dlopen"
13880     lt_cv_dlopen_libs=
13881    ;;
13882
13883   darwin*)
13884   # if libdl is installed we need to link against it
13885     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13886 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13887 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13888   echo $ECHO_N "(cached) $ECHO_C" >&6
13889 else
13890   ac_check_lib_save_LIBS=$LIBS
13891 LIBS="-ldl  $LIBS"
13892 cat >conftest.$ac_ext <<_ACEOF
13893 /* confdefs.h.  */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h.  */
13898
13899 /* Override any gcc2 internal prototype to avoid an error.  */
13900 #ifdef __cplusplus
13901 extern "C"
13902 #endif
13903 /* We use char because int might match the return type of a gcc2
13904    builtin and then its argument prototype would still apply.  */
13905 char dlopen ();
13906 int
13907 main ()
13908 {
13909 dlopen ();
13910   ;
13911   return 0;
13912 }
13913 _ACEOF
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13916   (eval $ac_link) 2>conftest.er1
13917   ac_status=$?
13918   grep -v '^ *+' conftest.er1 >conftest.err
13919   rm -f conftest.er1
13920   cat conftest.err >&5
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); } &&
13923          { ac_try='test -z "$ac_cxx_werror_flag"
13924                          || test ! -s conftest.err'
13925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926   (eval $ac_try) 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; } &&
13930          { ac_try='test -s conftest$ac_exeext'
13931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932   (eval $ac_try) 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); }; }; then
13936   ac_cv_lib_dl_dlopen=yes
13937 else
13938   echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941 ac_cv_lib_dl_dlopen=no
13942 fi
13943 rm -f conftest.err conftest.$ac_objext \
13944       conftest$ac_exeext conftest.$ac_ext
13945 LIBS=$ac_check_lib_save_LIBS
13946 fi
13947 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13949 if test $ac_cv_lib_dl_dlopen = yes; then
13950   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13951 else
13952
13953     lt_cv_dlopen="dyld"
13954     lt_cv_dlopen_libs=
13955     lt_cv_dlopen_self=yes
13956
13957 fi
13958
13959    ;;
13960
13961   *)
13962     echo "$as_me:$LINENO: checking for shl_load" >&5
13963 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13964 if test "${ac_cv_func_shl_load+set}" = set; then
13965   echo $ECHO_N "(cached) $ECHO_C" >&6
13966 else
13967   cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h.  */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h.  */
13973 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13975 #define shl_load innocuous_shl_load
13976
13977 /* System header to define __stub macros and hopefully few prototypes,
13978     which can conflict with char shl_load (); below.
13979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13980     <limits.h> exists even on freestanding compilers.  */
13981
13982 #ifdef __STDC__
13983 # include <limits.h>
13984 #else
13985 # include <assert.h>
13986 #endif
13987
13988 #undef shl_load
13989
13990 /* Override any gcc2 internal prototype to avoid an error.  */
13991 #ifdef __cplusplus
13992 extern "C"
13993 {
13994 #endif
13995 /* We use char because int might match the return type of a gcc2
13996    builtin and then its argument prototype would still apply.  */
13997 char shl_load ();
13998 /* The GNU C library defines this for functions which it implements
13999     to always fail with ENOSYS.  Some functions are actually named
14000     something starting with __ and the normal name is an alias.  */
14001 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14002 choke me
14003 #else
14004 char (*f) () = shl_load;
14005 #endif
14006 #ifdef __cplusplus
14007 }
14008 #endif
14009
14010 int
14011 main ()
14012 {
14013 return f != shl_load;
14014   ;
14015   return 0;
14016 }
14017 _ACEOF
14018 rm -f conftest.$ac_objext conftest$ac_exeext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14020   (eval $ac_link) 2>conftest.er1
14021   ac_status=$?
14022   grep -v '^ *+' conftest.er1 >conftest.err
14023   rm -f conftest.er1
14024   cat conftest.err >&5
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); } &&
14027          { ac_try='test -z "$ac_cxx_werror_flag"
14028                          || test ! -s conftest.err'
14029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030   (eval $ac_try) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); }; } &&
14034          { ac_try='test -s conftest$ac_exeext'
14035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036   (eval $ac_try) 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; }; then
14040   ac_cv_func_shl_load=yes
14041 else
14042   echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045 ac_cv_func_shl_load=no
14046 fi
14047 rm -f conftest.err conftest.$ac_objext \
14048       conftest$ac_exeext conftest.$ac_ext
14049 fi
14050 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14051 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14052 if test $ac_cv_func_shl_load = yes; then
14053   lt_cv_dlopen="shl_load"
14054 else
14055   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14056 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14057 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14058   echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060   ac_check_lib_save_LIBS=$LIBS
14061 LIBS="-ldld  $LIBS"
14062 cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h.  */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h.  */
14068
14069 /* Override any gcc2 internal prototype to avoid an error.  */
14070 #ifdef __cplusplus
14071 extern "C"
14072 #endif
14073 /* We use char because int might match the return type of a gcc2
14074    builtin and then its argument prototype would still apply.  */
14075 char shl_load ();
14076 int
14077 main ()
14078 {
14079 shl_load ();
14080   ;
14081   return 0;
14082 }
14083 _ACEOF
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14086   (eval $ac_link) 2>conftest.er1
14087   ac_status=$?
14088   grep -v '^ *+' conftest.er1 >conftest.err
14089   rm -f conftest.er1
14090   cat conftest.err >&5
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); } &&
14093          { ac_try='test -z "$ac_cxx_werror_flag"
14094                          || test ! -s conftest.err'
14095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096   (eval $ac_try) 2>&5
14097   ac_status=$?
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); }; } &&
14100          { ac_try='test -s conftest$ac_exeext'
14101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102   (eval $ac_try) 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); }; }; then
14106   ac_cv_lib_dld_shl_load=yes
14107 else
14108   echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14110
14111 ac_cv_lib_dld_shl_load=no
14112 fi
14113 rm -f conftest.err conftest.$ac_objext \
14114       conftest$ac_exeext conftest.$ac_ext
14115 LIBS=$ac_check_lib_save_LIBS
14116 fi
14117 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14118 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14119 if test $ac_cv_lib_dld_shl_load = yes; then
14120   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14121 else
14122   echo "$as_me:$LINENO: checking for dlopen" >&5
14123 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14124 if test "${ac_cv_func_dlopen+set}" = set; then
14125   echo $ECHO_N "(cached) $ECHO_C" >&6
14126 else
14127   cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h.  */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h.  */
14133 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14135 #define dlopen innocuous_dlopen
14136
14137 /* System header to define __stub macros and hopefully few prototypes,
14138     which can conflict with char dlopen (); below.
14139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14140     <limits.h> exists even on freestanding compilers.  */
14141
14142 #ifdef __STDC__
14143 # include <limits.h>
14144 #else
14145 # include <assert.h>
14146 #endif
14147
14148 #undef dlopen
14149
14150 /* Override any gcc2 internal prototype to avoid an error.  */
14151 #ifdef __cplusplus
14152 extern "C"
14153 {
14154 #endif
14155 /* We use char because int might match the return type of a gcc2
14156    builtin and then its argument prototype would still apply.  */
14157 char dlopen ();
14158 /* The GNU C library defines this for functions which it implements
14159     to always fail with ENOSYS.  Some functions are actually named
14160     something starting with __ and the normal name is an alias.  */
14161 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14162 choke me
14163 #else
14164 char (*f) () = dlopen;
14165 #endif
14166 #ifdef __cplusplus
14167 }
14168 #endif
14169
14170 int
14171 main ()
14172 {
14173 return f != dlopen;
14174   ;
14175   return 0;
14176 }
14177 _ACEOF
14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14180   (eval $ac_link) 2>conftest.er1
14181   ac_status=$?
14182   grep -v '^ *+' conftest.er1 >conftest.err
14183   rm -f conftest.er1
14184   cat conftest.err >&5
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); } &&
14187          { ac_try='test -z "$ac_cxx_werror_flag"
14188                          || test ! -s conftest.err'
14189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190   (eval $ac_try) 2>&5
14191   ac_status=$?
14192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193   (exit $ac_status); }; } &&
14194          { ac_try='test -s conftest$ac_exeext'
14195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196   (eval $ac_try) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); }; }; then
14200   ac_cv_func_dlopen=yes
14201 else
14202   echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14204
14205 ac_cv_func_dlopen=no
14206 fi
14207 rm -f conftest.err conftest.$ac_objext \
14208       conftest$ac_exeext conftest.$ac_ext
14209 fi
14210 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14211 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14212 if test $ac_cv_func_dlopen = yes; then
14213   lt_cv_dlopen="dlopen"
14214 else
14215   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14216 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14217 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14218   echo $ECHO_N "(cached) $ECHO_C" >&6
14219 else
14220   ac_check_lib_save_LIBS=$LIBS
14221 LIBS="-ldl  $LIBS"
14222 cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h.  */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h.  */
14228
14229 /* Override any gcc2 internal prototype to avoid an error.  */
14230 #ifdef __cplusplus
14231 extern "C"
14232 #endif
14233 /* We use char because int might match the return type of a gcc2
14234    builtin and then its argument prototype would still apply.  */
14235 char dlopen ();
14236 int
14237 main ()
14238 {
14239 dlopen ();
14240   ;
14241   return 0;
14242 }
14243 _ACEOF
14244 rm -f conftest.$ac_objext conftest$ac_exeext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14246   (eval $ac_link) 2>conftest.er1
14247   ac_status=$?
14248   grep -v '^ *+' conftest.er1 >conftest.err
14249   rm -f conftest.er1
14250   cat conftest.err >&5
14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); } &&
14253          { ac_try='test -z "$ac_cxx_werror_flag"
14254                          || test ! -s conftest.err'
14255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256   (eval $ac_try) 2>&5
14257   ac_status=$?
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); }; } &&
14260          { ac_try='test -s conftest$ac_exeext'
14261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262   (eval $ac_try) 2>&5
14263   ac_status=$?
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); }; }; then
14266   ac_cv_lib_dl_dlopen=yes
14267 else
14268   echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14270
14271 ac_cv_lib_dl_dlopen=no
14272 fi
14273 rm -f conftest.err conftest.$ac_objext \
14274       conftest$ac_exeext conftest.$ac_ext
14275 LIBS=$ac_check_lib_save_LIBS
14276 fi
14277 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14278 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14279 if test $ac_cv_lib_dl_dlopen = yes; then
14280   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14281 else
14282   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14283 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14284 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14285   echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287   ac_check_lib_save_LIBS=$LIBS
14288 LIBS="-lsvld  $LIBS"
14289 cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h.  */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h.  */
14295
14296 /* Override any gcc2 internal prototype to avoid an error.  */
14297 #ifdef __cplusplus
14298 extern "C"
14299 #endif
14300 /* We use char because int might match the return type of a gcc2
14301    builtin and then its argument prototype would still apply.  */
14302 char dlopen ();
14303 int
14304 main ()
14305 {
14306 dlopen ();
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 rm -f conftest.$ac_objext conftest$ac_exeext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313   (eval $ac_link) 2>conftest.er1
14314   ac_status=$?
14315   grep -v '^ *+' conftest.er1 >conftest.err
14316   rm -f conftest.er1
14317   cat conftest.err >&5
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); } &&
14320          { ac_try='test -z "$ac_cxx_werror_flag"
14321                          || test ! -s conftest.err'
14322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323   (eval $ac_try) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; } &&
14327          { ac_try='test -s conftest$ac_exeext'
14328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329   (eval $ac_try) 2>&5
14330   ac_status=$?
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); }; }; then
14333   ac_cv_lib_svld_dlopen=yes
14334 else
14335   echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14337
14338 ac_cv_lib_svld_dlopen=no
14339 fi
14340 rm -f conftest.err conftest.$ac_objext \
14341       conftest$ac_exeext conftest.$ac_ext
14342 LIBS=$ac_check_lib_save_LIBS
14343 fi
14344 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14345 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14346 if test $ac_cv_lib_svld_dlopen = yes; then
14347   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14348 else
14349   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14350 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14351 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14352   echo $ECHO_N "(cached) $ECHO_C" >&6
14353 else
14354   ac_check_lib_save_LIBS=$LIBS
14355 LIBS="-ldld  $LIBS"
14356 cat >conftest.$ac_ext <<_ACEOF
14357 /* confdefs.h.  */
14358 _ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h.  */
14362
14363 /* Override any gcc2 internal prototype to avoid an error.  */
14364 #ifdef __cplusplus
14365 extern "C"
14366 #endif
14367 /* We use char because int might match the return type of a gcc2
14368    builtin and then its argument prototype would still apply.  */
14369 char dld_link ();
14370 int
14371 main ()
14372 {
14373 dld_link ();
14374   ;
14375   return 0;
14376 }
14377 _ACEOF
14378 rm -f conftest.$ac_objext conftest$ac_exeext
14379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14380   (eval $ac_link) 2>conftest.er1
14381   ac_status=$?
14382   grep -v '^ *+' conftest.er1 >conftest.err
14383   rm -f conftest.er1
14384   cat conftest.err >&5
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); } &&
14387          { ac_try='test -z "$ac_cxx_werror_flag"
14388                          || test ! -s conftest.err'
14389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390   (eval $ac_try) 2>&5
14391   ac_status=$?
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); }; } &&
14394          { ac_try='test -s conftest$ac_exeext'
14395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396   (eval $ac_try) 2>&5
14397   ac_status=$?
14398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399   (exit $ac_status); }; }; then
14400   ac_cv_lib_dld_dld_link=yes
14401 else
14402   echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14404
14405 ac_cv_lib_dld_dld_link=no
14406 fi
14407 rm -f conftest.err conftest.$ac_objext \
14408       conftest$ac_exeext conftest.$ac_ext
14409 LIBS=$ac_check_lib_save_LIBS
14410 fi
14411 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14412 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14413 if test $ac_cv_lib_dld_dld_link = yes; then
14414   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14415 fi
14416
14417
14418 fi
14419
14420
14421 fi
14422
14423
14424 fi
14425
14426
14427 fi
14428
14429
14430 fi
14431
14432     ;;
14433   esac
14434
14435   if test "x$lt_cv_dlopen" != xno; then
14436     enable_dlopen=yes
14437   else
14438     enable_dlopen=no
14439   fi
14440
14441   case $lt_cv_dlopen in
14442   dlopen)
14443     save_CPPFLAGS="$CPPFLAGS"
14444     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14445
14446     save_LDFLAGS="$LDFLAGS"
14447     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14448
14449     save_LIBS="$LIBS"
14450     LIBS="$lt_cv_dlopen_libs $LIBS"
14451
14452     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14453 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14454 if test "${lt_cv_dlopen_self+set}" = set; then
14455   echo $ECHO_N "(cached) $ECHO_C" >&6
14456 else
14457           if test "$cross_compiling" = yes; then :
14458   lt_cv_dlopen_self=cross
14459 else
14460   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14461   lt_status=$lt_dlunknown
14462   cat > conftest.$ac_ext <<EOF
14463 #line 14463 "configure"
14464 #include "confdefs.h"
14465
14466 #if HAVE_DLFCN_H
14467 #include <dlfcn.h>
14468 #endif
14469
14470 #include <stdio.h>
14471
14472 #ifdef RTLD_GLOBAL
14473 #  define LT_DLGLOBAL           RTLD_GLOBAL
14474 #else
14475 #  ifdef DL_GLOBAL
14476 #    define LT_DLGLOBAL         DL_GLOBAL
14477 #  else
14478 #    define LT_DLGLOBAL         0
14479 #  endif
14480 #endif
14481
14482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14483    find out it does not work in some platform. */
14484 #ifndef LT_DLLAZY_OR_NOW
14485 #  ifdef RTLD_LAZY
14486 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14487 #  else
14488 #    ifdef DL_LAZY
14489 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14490 #    else
14491 #      ifdef RTLD_NOW
14492 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14493 #      else
14494 #        ifdef DL_NOW
14495 #          define LT_DLLAZY_OR_NOW      DL_NOW
14496 #        else
14497 #          define LT_DLLAZY_OR_NOW      0
14498 #        endif
14499 #      endif
14500 #    endif
14501 #  endif
14502 #endif
14503
14504 #ifdef __cplusplus
14505 extern "C" void exit (int);
14506 #endif
14507
14508 void fnord() { int i=42;}
14509 int main ()
14510 {
14511   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14512   int status = $lt_dlunknown;
14513
14514   if (self)
14515     {
14516       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14517       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14518       /* dlclose (self); */
14519     }
14520
14521     exit (status);
14522 }
14523 EOF
14524   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525   (eval $ac_link) 2>&5
14526   ac_status=$?
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14529     (./conftest; exit; ) 2>/dev/null
14530     lt_status=$?
14531     case x$lt_status in
14532       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14533       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14534       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14535     esac
14536   else :
14537     # compilation failed
14538     lt_cv_dlopen_self=no
14539   fi
14540 fi
14541 rm -fr conftest*
14542
14543
14544 fi
14545 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14546 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14547
14548     if test "x$lt_cv_dlopen_self" = xyes; then
14549       LDFLAGS="$LDFLAGS $link_static_flag"
14550       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14551 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14552 if test "${lt_cv_dlopen_self_static+set}" = set; then
14553   echo $ECHO_N "(cached) $ECHO_C" >&6
14554 else
14555           if test "$cross_compiling" = yes; then :
14556   lt_cv_dlopen_self_static=cross
14557 else
14558   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14559   lt_status=$lt_dlunknown
14560   cat > conftest.$ac_ext <<EOF
14561 #line 14561 "configure"
14562 #include "confdefs.h"
14563
14564 #if HAVE_DLFCN_H
14565 #include <dlfcn.h>
14566 #endif
14567
14568 #include <stdio.h>
14569
14570 #ifdef RTLD_GLOBAL
14571 #  define LT_DLGLOBAL           RTLD_GLOBAL
14572 #else
14573 #  ifdef DL_GLOBAL
14574 #    define LT_DLGLOBAL         DL_GLOBAL
14575 #  else
14576 #    define LT_DLGLOBAL         0
14577 #  endif
14578 #endif
14579
14580 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14581    find out it does not work in some platform. */
14582 #ifndef LT_DLLAZY_OR_NOW
14583 #  ifdef RTLD_LAZY
14584 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14585 #  else
14586 #    ifdef DL_LAZY
14587 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14588 #    else
14589 #      ifdef RTLD_NOW
14590 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14591 #      else
14592 #        ifdef DL_NOW
14593 #          define LT_DLLAZY_OR_NOW      DL_NOW
14594 #        else
14595 #          define LT_DLLAZY_OR_NOW      0
14596 #        endif
14597 #      endif
14598 #    endif
14599 #  endif
14600 #endif
14601
14602 #ifdef __cplusplus
14603 extern "C" void exit (int);
14604 #endif
14605
14606 void fnord() { int i=42;}
14607 int main ()
14608 {
14609   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14610   int status = $lt_dlunknown;
14611
14612   if (self)
14613     {
14614       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14615       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14616       /* dlclose (self); */
14617     }
14618
14619     exit (status);
14620 }
14621 EOF
14622   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14623   (eval $ac_link) 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14627     (./conftest; exit; ) 2>/dev/null
14628     lt_status=$?
14629     case x$lt_status in
14630       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14631       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14632       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14633     esac
14634   else :
14635     # compilation failed
14636     lt_cv_dlopen_self_static=no
14637   fi
14638 fi
14639 rm -fr conftest*
14640
14641
14642 fi
14643 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14644 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14645     fi
14646
14647     CPPFLAGS="$save_CPPFLAGS"
14648     LDFLAGS="$save_LDFLAGS"
14649     LIBS="$save_LIBS"
14650     ;;
14651   esac
14652
14653   case $lt_cv_dlopen_self in
14654   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14655   *) enable_dlopen_self=unknown ;;
14656   esac
14657
14658   case $lt_cv_dlopen_self_static in
14659   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14660   *) enable_dlopen_self_static=unknown ;;
14661   esac
14662 fi
14663
14664
14665 # The else clause should only fire when bootstrapping the
14666 # libtool distribution, otherwise you forgot to ship ltmain.sh
14667 # with your package, and you will get complaints that there are
14668 # no rules to generate ltmain.sh.
14669 if test -f "$ltmain"; then
14670   # See if we are running on zsh, and set the options which allow our commands through
14671   # without removal of \ escapes.
14672   if test -n "${ZSH_VERSION+set}" ; then
14673     setopt NO_GLOB_SUBST
14674   fi
14675   # Now quote all the things that may contain metacharacters while being
14676   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14677   # variables and quote the copies for generation of the libtool script.
14678   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14679     SED SHELL STRIP \
14680     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14681     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14682     deplibs_check_method reload_flag reload_cmds need_locks \
14683     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14684     lt_cv_sys_global_symbol_to_c_name_address \
14685     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14686     old_postinstall_cmds old_postuninstall_cmds \
14687     compiler_CXX \
14688     CC_CXX \
14689     LD_CXX \
14690     lt_prog_compiler_wl_CXX \
14691     lt_prog_compiler_pic_CXX \
14692     lt_prog_compiler_static_CXX \
14693     lt_prog_compiler_no_builtin_flag_CXX \
14694     export_dynamic_flag_spec_CXX \
14695     thread_safe_flag_spec_CXX \
14696     whole_archive_flag_spec_CXX \
14697     enable_shared_with_static_runtimes_CXX \
14698     old_archive_cmds_CXX \
14699     old_archive_from_new_cmds_CXX \
14700     predep_objects_CXX \
14701     postdep_objects_CXX \
14702     predeps_CXX \
14703     postdeps_CXX \
14704     compiler_lib_search_path_CXX \
14705     archive_cmds_CXX \
14706     archive_expsym_cmds_CXX \
14707     postinstall_cmds_CXX \
14708     postuninstall_cmds_CXX \
14709     old_archive_from_expsyms_cmds_CXX \
14710     allow_undefined_flag_CXX \
14711     no_undefined_flag_CXX \
14712     export_symbols_cmds_CXX \
14713     hardcode_libdir_flag_spec_CXX \
14714     hardcode_libdir_flag_spec_ld_CXX \
14715     hardcode_libdir_separator_CXX \
14716     hardcode_automatic_CXX \
14717     module_cmds_CXX \
14718     module_expsym_cmds_CXX \
14719     lt_cv_prog_compiler_c_o_CXX \
14720     exclude_expsyms_CXX \
14721     include_expsyms_CXX; do
14722
14723     case $var in
14724     old_archive_cmds_CXX | \
14725     old_archive_from_new_cmds_CXX | \
14726     archive_cmds_CXX | \
14727     archive_expsym_cmds_CXX | \
14728     module_cmds_CXX | \
14729     module_expsym_cmds_CXX | \
14730     old_archive_from_expsyms_cmds_CXX | \
14731     export_symbols_cmds_CXX | \
14732     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14733     postinstall_cmds | postuninstall_cmds | \
14734     old_postinstall_cmds | old_postuninstall_cmds | \
14735     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14736       # Double-quote double-evaled strings.
14737       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14738       ;;
14739     *)
14740       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14741       ;;
14742     esac
14743   done
14744
14745   case $lt_echo in
14746   *'\$0 --fallback-echo"')
14747     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14748     ;;
14749   esac
14750
14751 cfgfile="$ofile"
14752
14753   cat <<__EOF__ >> "$cfgfile"
14754 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14755
14756 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14757
14758 # Shell to use when invoking shell scripts.
14759 SHELL=$lt_SHELL
14760
14761 # Whether or not to build shared libraries.
14762 build_libtool_libs=$enable_shared
14763
14764 # Whether or not to build static libraries.
14765 build_old_libs=$enable_static
14766
14767 # Whether or not to add -lc for building shared libraries.
14768 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14769
14770 # Whether or not to disallow shared libs when runtime libs are static
14771 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14772
14773 # Whether or not to optimize for fast installation.
14774 fast_install=$enable_fast_install
14775
14776 # The host system.
14777 host_alias=$host_alias
14778 host=$host
14779
14780 # An echo program that does not interpret backslashes.
14781 echo=$lt_echo
14782
14783 # The archiver.
14784 AR=$lt_AR
14785 AR_FLAGS=$lt_AR_FLAGS
14786
14787 # A C compiler.
14788 LTCC=$lt_LTCC
14789
14790 # A language-specific compiler.
14791 CC=$lt_compiler_CXX
14792
14793 # Is the compiler the GNU C compiler?
14794 with_gcc=$GCC_CXX
14795
14796 # An ERE matcher.
14797 EGREP=$lt_EGREP
14798
14799 # The linker used to build libraries.
14800 LD=$lt_LD_CXX
14801
14802 # Whether we need hard or soft links.
14803 LN_S=$lt_LN_S
14804
14805 # A BSD-compatible nm program.
14806 NM=$lt_NM
14807
14808 # A symbol stripping program
14809 STRIP=$lt_STRIP
14810
14811 # Used to examine libraries when file_magic_cmd begins "file"
14812 MAGIC_CMD=$MAGIC_CMD
14813
14814 # Used on cygwin: DLL creation program.
14815 DLLTOOL="$DLLTOOL"
14816
14817 # Used on cygwin: object dumper.
14818 OBJDUMP="$OBJDUMP"
14819
14820 # Used on cygwin: assembler.
14821 AS="$AS"
14822
14823 # The name of the directory that contains temporary libtool files.
14824 objdir=$objdir
14825
14826 # How to create reloadable object files.
14827 reload_flag=$lt_reload_flag
14828 reload_cmds=$lt_reload_cmds
14829
14830 # How to pass a linker flag through the compiler.
14831 wl=$lt_lt_prog_compiler_wl_CXX
14832
14833 # Object file suffix (normally "o").
14834 objext="$ac_objext"
14835
14836 # Old archive suffix (normally "a").
14837 libext="$libext"
14838
14839 # Shared library suffix (normally ".so").
14840 shrext_cmds='$shrext_cmds'
14841
14842 # Executable file suffix (normally "").
14843 exeext="$exeext"
14844
14845 # Additional compiler flags for building library objects.
14846 pic_flag=$lt_lt_prog_compiler_pic_CXX
14847 pic_mode=$pic_mode
14848
14849 # What is the maximum length of a command?
14850 max_cmd_len=$lt_cv_sys_max_cmd_len
14851
14852 # Does compiler simultaneously support -c and -o options?
14853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14854
14855 # Must we lock files when doing compilation ?
14856 need_locks=$lt_need_locks
14857
14858 # Do we need the lib prefix for modules?
14859 need_lib_prefix=$need_lib_prefix
14860
14861 # Do we need a version for libraries?
14862 need_version=$need_version
14863
14864 # Whether dlopen is supported.
14865 dlopen_support=$enable_dlopen
14866
14867 # Whether dlopen of programs is supported.
14868 dlopen_self=$enable_dlopen_self
14869
14870 # Whether dlopen of statically linked programs is supported.
14871 dlopen_self_static=$enable_dlopen_self_static
14872
14873 # Compiler flag to prevent dynamic linking.
14874 link_static_flag=$lt_lt_prog_compiler_static_CXX
14875
14876 # Compiler flag to turn off builtin functions.
14877 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14878
14879 # Compiler flag to allow reflexive dlopens.
14880 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14881
14882 # Compiler flag to generate shared objects directly from archives.
14883 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14884
14885 # Compiler flag to generate thread-safe objects.
14886 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14887
14888 # Library versioning type.
14889 version_type=$version_type
14890
14891 # Format of library name prefix.
14892 libname_spec=$lt_libname_spec
14893
14894 # List of archive names.  First name is the real one, the rest are links.
14895 # The last name is the one that the linker finds with -lNAME.
14896 library_names_spec=$lt_library_names_spec
14897
14898 # The coded name of the library, if different from the real name.
14899 soname_spec=$lt_soname_spec
14900
14901 # Commands used to build and install an old-style archive.
14902 RANLIB=$lt_RANLIB
14903 old_archive_cmds=$lt_old_archive_cmds_CXX
14904 old_postinstall_cmds=$lt_old_postinstall_cmds
14905 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14906
14907 # Create an old-style archive from a shared archive.
14908 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14909
14910 # Create a temporary old-style archive to link instead of a shared archive.
14911 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14912
14913 # Commands used to build and install a shared archive.
14914 archive_cmds=$lt_archive_cmds_CXX
14915 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14916 postinstall_cmds=$lt_postinstall_cmds
14917 postuninstall_cmds=$lt_postuninstall_cmds
14918
14919 # Commands used to build a loadable module (assumed same as above if empty)
14920 module_cmds=$lt_module_cmds_CXX
14921 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14922
14923 # Commands to strip libraries.
14924 old_striplib=$lt_old_striplib
14925 striplib=$lt_striplib
14926
14927 # Dependencies to place before the objects being linked to create a
14928 # shared library.
14929 predep_objects=$lt_predep_objects_CXX
14930
14931 # Dependencies to place after the objects being linked to create a
14932 # shared library.
14933 postdep_objects=$lt_postdep_objects_CXX
14934
14935 # Dependencies to place before the objects being linked to create a
14936 # shared library.
14937 predeps=$lt_predeps_CXX
14938
14939 # Dependencies to place after the objects being linked to create a
14940 # shared library.
14941 postdeps=$lt_postdeps_CXX
14942
14943 # The library search path used internally by the compiler when linking
14944 # a shared library.
14945 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14946
14947 # Method to check whether dependent libraries are shared objects.
14948 deplibs_check_method=$lt_deplibs_check_method
14949
14950 # Command to use when deplibs_check_method == file_magic.
14951 file_magic_cmd=$lt_file_magic_cmd
14952
14953 # Flag that allows shared libraries with undefined symbols to be built.
14954 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14955
14956 # Flag that forces no undefined symbols.
14957 no_undefined_flag=$lt_no_undefined_flag_CXX
14958
14959 # Commands used to finish a libtool library installation in a directory.
14960 finish_cmds=$lt_finish_cmds
14961
14962 # Same as above, but a single script fragment to be evaled but not shown.
14963 finish_eval=$lt_finish_eval
14964
14965 # Take the output of nm and produce a listing of raw symbols and C names.
14966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14967
14968 # Transform the output of nm in a proper C declaration
14969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14970
14971 # Transform the output of nm in a C name address pair
14972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14973
14974 # This is the shared library runtime path variable.
14975 runpath_var=$runpath_var
14976
14977 # This is the shared library path variable.
14978 shlibpath_var=$shlibpath_var
14979
14980 # Is shlibpath searched before the hard-coded library search path?
14981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14982
14983 # How to hardcode a shared library path into an executable.
14984 hardcode_action=$hardcode_action_CXX
14985
14986 # Whether we should hardcode library paths into libraries.
14987 hardcode_into_libs=$hardcode_into_libs
14988
14989 # Flag to hardcode \$libdir into a binary during linking.
14990 # This must work even if \$libdir does not exist.
14991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14992
14993 # If ld is used when linking, flag to hardcode \$libdir into
14994 # a binary during linking. This must work even if \$libdir does
14995 # not exist.
14996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14997
14998 # Whether we need a single -rpath flag with a separated argument.
14999 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15000
15001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15002 # resulting binary.
15003 hardcode_direct=$hardcode_direct_CXX
15004
15005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15006 # resulting binary.
15007 hardcode_minus_L=$hardcode_minus_L_CXX
15008
15009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15010 # the resulting binary.
15011 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15012
15013 # Set to yes if building a shared library automatically hardcodes DIR into the library
15014 # and all subsequent libraries and executables linked against it.
15015 hardcode_automatic=$hardcode_automatic_CXX
15016
15017 # Variables whose values should be saved in libtool wrapper scripts and
15018 # restored at relink time.
15019 variables_saved_for_relink="$variables_saved_for_relink"
15020
15021 # Whether libtool must link a program against all its dependency libraries.
15022 link_all_deplibs=$link_all_deplibs_CXX
15023
15024 # Compile-time system search path for libraries
15025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15026
15027 # Run-time system search path for libraries
15028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15029
15030 # Fix the shell variable \$srcfile for the compiler.
15031 fix_srcfile_path="$fix_srcfile_path_CXX"
15032
15033 # Set to yes if exported symbols are required.
15034 always_export_symbols=$always_export_symbols_CXX
15035
15036 # The commands to list exported symbols.
15037 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15038
15039 # The commands to extract the exported symbol list from a shared archive.
15040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15041
15042 # Symbols that should not be listed in the preloaded symbols.
15043 exclude_expsyms=$lt_exclude_expsyms_CXX
15044
15045 # Symbols that must always be exported.
15046 include_expsyms=$lt_include_expsyms_CXX
15047
15048 # ### END LIBTOOL TAG CONFIG: $tagname
15049
15050 __EOF__
15051
15052
15053 else
15054   # If there is no Makefile yet, we rely on a make rule to execute
15055   # `config.status --recheck' to rerun these tests and create the
15056   # libtool script then.
15057   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15058   if test -f "$ltmain_in"; then
15059     test -f Makefile && make "$ltmain"
15060   fi
15061 fi
15062
15063
15064 ac_ext=c
15065 ac_cpp='$CPP $CPPFLAGS'
15066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15069
15070 CC=$lt_save_CC
15071 LDCXX=$LD
15072 LD=$lt_save_LD
15073 GCC=$lt_save_GCC
15074 with_gnu_ldcxx=$with_gnu_ld
15075 with_gnu_ld=$lt_save_with_gnu_ld
15076 lt_cv_path_LDCXX=$lt_cv_path_LD
15077 lt_cv_path_LD=$lt_save_path_LD
15078 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15079 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15080
15081         else
15082           tagname=""
15083         fi
15084         ;;
15085
15086       F77)
15087         if test -n "$F77" && test "X$F77" != "Xno"; then
15088
15089 ac_ext=f
15090 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15091 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15092 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15093
15094
15095 archive_cmds_need_lc_F77=no
15096 allow_undefined_flag_F77=
15097 always_export_symbols_F77=no
15098 archive_expsym_cmds_F77=
15099 export_dynamic_flag_spec_F77=
15100 hardcode_direct_F77=no
15101 hardcode_libdir_flag_spec_F77=
15102 hardcode_libdir_flag_spec_ld_F77=
15103 hardcode_libdir_separator_F77=
15104 hardcode_minus_L_F77=no
15105 hardcode_automatic_F77=no
15106 module_cmds_F77=
15107 module_expsym_cmds_F77=
15108 link_all_deplibs_F77=unknown
15109 old_archive_cmds_F77=$old_archive_cmds
15110 no_undefined_flag_F77=
15111 whole_archive_flag_spec_F77=
15112 enable_shared_with_static_runtimes_F77=no
15113
15114 # Source file extension for f77 test sources.
15115 ac_ext=f
15116
15117 # Object file extension for compiled f77 test sources.
15118 objext=o
15119 objext_F77=$objext
15120
15121 # Code to be used in simple compile tests
15122 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15123
15124 # Code to be used in simple link tests
15125 lt_simple_link_test_code="      program t\n      end\n"
15126
15127 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15128
15129 # If no C compiler was specified, use CC.
15130 LTCC=${LTCC-"$CC"}
15131
15132 # Allow CC to be a program name with arguments.
15133 compiler=$CC
15134
15135
15136 # Allow CC to be a program name with arguments.
15137 lt_save_CC="$CC"
15138 CC=${F77-"f77"}
15139 compiler=$CC
15140 compiler_F77=$CC
15141 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15142
15143 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15144 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15145 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15146 echo "${ECHO_T}$can_build_shared" >&6
15147
15148 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15149 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15150 test "$can_build_shared" = "no" && enable_shared=no
15151
15152 # On AIX, shared libraries and static libraries use the same namespace, and
15153 # are all built from PIC.
15154 case "$host_os" in
15155 aix3*)
15156   test "$enable_shared" = yes && enable_static=no
15157   if test -n "$RANLIB"; then
15158     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15159     postinstall_cmds='$RANLIB $lib'
15160   fi
15161   ;;
15162 aix4* | aix5*)
15163   test "$enable_shared" = yes && enable_static=no
15164   ;;
15165 esac
15166 echo "$as_me:$LINENO: result: $enable_shared" >&5
15167 echo "${ECHO_T}$enable_shared" >&6
15168
15169 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15170 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15171 # Make sure either enable_shared or enable_static is yes.
15172 test "$enable_shared" = yes || enable_static=yes
15173 echo "$as_me:$LINENO: result: $enable_static" >&5
15174 echo "${ECHO_T}$enable_static" >&6
15175
15176 test "$ld_shlibs_F77" = no && can_build_shared=no
15177
15178 GCC_F77="$G77"
15179 LD_F77="$LD"
15180
15181 lt_prog_compiler_wl_F77=
15182 lt_prog_compiler_pic_F77=
15183 lt_prog_compiler_static_F77=
15184
15185 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15186 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15187
15188   if test "$GCC" = yes; then
15189     lt_prog_compiler_wl_F77='-Wl,'
15190     lt_prog_compiler_static_F77='-static'
15191
15192     case $host_os in
15193       aix*)
15194       # All AIX code is PIC.
15195       if test "$host_cpu" = ia64; then
15196         # AIX 5 now supports IA64 processor
15197         lt_prog_compiler_static_F77='-Bstatic'
15198       fi
15199       ;;
15200
15201     amigaos*)
15202       # FIXME: we need at least 68020 code to build shared libraries, but
15203       # adding the `-m68020' flag to GCC prevents building anything better,
15204       # like `-m68040'.
15205       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15206       ;;
15207
15208     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15209       # PIC is the default for these OSes.
15210       ;;
15211
15212     mingw* | pw32* | os2*)
15213       # This hack is so that the source file can tell whether it is being
15214       # built for inclusion in a dll (and should export symbols for example).
15215       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15216       ;;
15217
15218     darwin* | rhapsody*)
15219       # PIC is the default on this platform
15220       # Common symbols not allowed in MH_DYLIB files
15221       lt_prog_compiler_pic_F77='-fno-common'
15222       ;;
15223
15224     msdosdjgpp*)
15225       # Just because we use GCC doesn't mean we suddenly get shared libraries
15226       # on systems that don't support them.
15227       lt_prog_compiler_can_build_shared_F77=no
15228       enable_shared=no
15229       ;;
15230
15231     sysv4*MP*)
15232       if test -d /usr/nec; then
15233         lt_prog_compiler_pic_F77=-Kconform_pic
15234       fi
15235       ;;
15236
15237     hpux*)
15238       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15239       # not for PA HP-UX.
15240       case "$host_cpu" in
15241       hppa*64*|ia64*)
15242         # +Z the default
15243         ;;
15244       *)
15245         lt_prog_compiler_pic_F77='-fPIC'
15246         ;;
15247       esac
15248       ;;
15249
15250     *)
15251       lt_prog_compiler_pic_F77='-fPIC'
15252       ;;
15253     esac
15254   else
15255     # PORTME Check for flag to pass linker flags through the system compiler.
15256     case $host_os in
15257     aix*)
15258       lt_prog_compiler_wl_F77='-Wl,'
15259       if test "$host_cpu" = ia64; then
15260         # AIX 5 now supports IA64 processor
15261         lt_prog_compiler_static_F77='-Bstatic'
15262       else
15263         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15264       fi
15265       ;;
15266
15267     mingw* | pw32* | os2*)
15268       # This hack is so that the source file can tell whether it is being
15269       # built for inclusion in a dll (and should export symbols for example).
15270       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15271       ;;
15272
15273     hpux9* | hpux10* | hpux11*)
15274       lt_prog_compiler_wl_F77='-Wl,'
15275       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15276       # not for PA HP-UX.
15277       case "$host_cpu" in
15278       hppa*64*|ia64*)
15279         # +Z the default
15280         ;;
15281       *)
15282         lt_prog_compiler_pic_F77='+Z'
15283         ;;
15284       esac
15285       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15286       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15287       ;;
15288
15289     irix5* | irix6* | nonstopux*)
15290       lt_prog_compiler_wl_F77='-Wl,'
15291       # PIC (with -KPIC) is the default.
15292       lt_prog_compiler_static_F77='-non_shared'
15293       ;;
15294
15295     newsos6)
15296       lt_prog_compiler_pic_F77='-KPIC'
15297       lt_prog_compiler_static_F77='-Bstatic'
15298       ;;
15299
15300     linux*)
15301       case $CC in
15302       icc* | ecc*)
15303         lt_prog_compiler_wl_F77='-Wl,'
15304         lt_prog_compiler_pic_F77='-KPIC'
15305         lt_prog_compiler_static_F77='-static'
15306         ;;
15307       ccc*)
15308         lt_prog_compiler_wl_F77='-Wl,'
15309         # All Alpha code is PIC.
15310         lt_prog_compiler_static_F77='-non_shared'
15311         ;;
15312       esac
15313       ;;
15314
15315     osf3* | osf4* | osf5*)
15316       lt_prog_compiler_wl_F77='-Wl,'
15317       # All OSF/1 code is PIC.
15318       lt_prog_compiler_static_F77='-non_shared'
15319       ;;
15320
15321     sco3.2v5*)
15322       lt_prog_compiler_pic_F77='-Kpic'
15323       lt_prog_compiler_static_F77='-dn'
15324       ;;
15325
15326     solaris*)
15327       lt_prog_compiler_wl_F77='-Wl,'
15328       lt_prog_compiler_pic_F77='-KPIC'
15329       lt_prog_compiler_static_F77='-Bstatic'
15330       ;;
15331
15332     sunos4*)
15333       lt_prog_compiler_wl_F77='-Qoption ld '
15334       lt_prog_compiler_pic_F77='-PIC'
15335       lt_prog_compiler_static_F77='-Bstatic'
15336       ;;
15337
15338     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15339       lt_prog_compiler_wl_F77='-Wl,'
15340       lt_prog_compiler_pic_F77='-KPIC'
15341       lt_prog_compiler_static_F77='-Bstatic'
15342       ;;
15343
15344     sysv4*MP*)
15345       if test -d /usr/nec ;then
15346         lt_prog_compiler_pic_F77='-Kconform_pic'
15347         lt_prog_compiler_static_F77='-Bstatic'
15348       fi
15349       ;;
15350
15351     uts4*)
15352       lt_prog_compiler_pic_F77='-pic'
15353       lt_prog_compiler_static_F77='-Bstatic'
15354       ;;
15355
15356     *)
15357       lt_prog_compiler_can_build_shared_F77=no
15358       ;;
15359     esac
15360   fi
15361
15362 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15363 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15364
15365 #
15366 # Check to make sure the PIC flag actually works.
15367 #
15368 if test -n "$lt_prog_compiler_pic_F77"; then
15369
15370 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15371 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15372 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15373   echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375   lt_prog_compiler_pic_works_F77=no
15376   ac_outfile=conftest.$ac_objext
15377    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15378    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15379    # Insert the option either (1) after the last *FLAGS variable, or
15380    # (2) before a word containing "conftest.", or (3) at the end.
15381    # Note that $ac_compile itself does not contain backslashes and begins
15382    # with a dollar sign (not a hyphen), so the echo should work correctly.
15383    # The option is referenced via a variable to avoid confusing sed.
15384    lt_compile=`echo "$ac_compile" | $SED \
15385    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15386    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15387    -e 's:$: $lt_compiler_flag:'`
15388    (eval echo "\"\$as_me:15388: $lt_compile\"" >&5)
15389    (eval "$lt_compile" 2>conftest.err)
15390    ac_status=$?
15391    cat conftest.err >&5
15392    echo "$as_me:15392: \$? = $ac_status" >&5
15393    if (exit $ac_status) && test -s "$ac_outfile"; then
15394      # The compiler can only warn and ignore the option if not recognized
15395      # So say no if there are warnings
15396      if test ! -s conftest.err; then
15397        lt_prog_compiler_pic_works_F77=yes
15398      fi
15399    fi
15400    $rm conftest*
15401
15402 fi
15403 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15404 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15405
15406 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15407     case $lt_prog_compiler_pic_F77 in
15408      "" | " "*) ;;
15409      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15410      esac
15411 else
15412     lt_prog_compiler_pic_F77=
15413      lt_prog_compiler_can_build_shared_F77=no
15414 fi
15415
15416 fi
15417 case "$host_os" in
15418   # For platforms which do not support PIC, -DPIC is meaningless:
15419   *djgpp*)
15420     lt_prog_compiler_pic_F77=
15421     ;;
15422   *)
15423     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15424     ;;
15425 esac
15426
15427 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15428 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15429 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15430   echo $ECHO_N "(cached) $ECHO_C" >&6
15431 else
15432   lt_cv_prog_compiler_c_o_F77=no
15433    $rm -r conftest 2>/dev/null
15434    mkdir conftest
15435    cd conftest
15436    mkdir out
15437    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15438
15439    lt_compiler_flag="-o out/conftest2.$ac_objext"
15440    # Insert the option either (1) after the last *FLAGS variable, or
15441    # (2) before a word containing "conftest.", or (3) at the end.
15442    # Note that $ac_compile itself does not contain backslashes and begins
15443    # with a dollar sign (not a hyphen), so the echo should work correctly.
15444    lt_compile=`echo "$ac_compile" | $SED \
15445    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15446    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15447    -e 's:$: $lt_compiler_flag:'`
15448    (eval echo "\"\$as_me:15448: $lt_compile\"" >&5)
15449    (eval "$lt_compile" 2>out/conftest.err)
15450    ac_status=$?
15451    cat out/conftest.err >&5
15452    echo "$as_me:15452: \$? = $ac_status" >&5
15453    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15454    then
15455      # The compiler can only warn and ignore the option if not recognized
15456      # So say no if there are warnings
15457      if test ! -s out/conftest.err; then
15458        lt_cv_prog_compiler_c_o_F77=yes
15459      fi
15460    fi
15461    chmod u+w .
15462    $rm conftest*
15463    # SGI C++ compiler will create directory out/ii_files/ for
15464    # template instantiation
15465    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15466    $rm out/* && rmdir out
15467    cd ..
15468    rmdir conftest
15469    $rm conftest*
15470
15471 fi
15472 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15473 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15474
15475
15476 hard_links="nottested"
15477 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15478   # do not overwrite the value of need_locks provided by the user
15479   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15480 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15481   hard_links=yes
15482   $rm conftest*
15483   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15484   touch conftest.a
15485   ln conftest.a conftest.b 2>&5 || hard_links=no
15486   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15487   echo "$as_me:$LINENO: result: $hard_links" >&5
15488 echo "${ECHO_T}$hard_links" >&6
15489   if test "$hard_links" = no; then
15490     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15491 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15492     need_locks=warn
15493   fi
15494 else
15495   need_locks=no
15496 fi
15497
15498 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15499 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15500
15501   runpath_var=
15502   allow_undefined_flag_F77=
15503   enable_shared_with_static_runtimes_F77=no
15504   archive_cmds_F77=
15505   archive_expsym_cmds_F77=
15506   old_archive_From_new_cmds_F77=
15507   old_archive_from_expsyms_cmds_F77=
15508   export_dynamic_flag_spec_F77=
15509   whole_archive_flag_spec_F77=
15510   thread_safe_flag_spec_F77=
15511   hardcode_libdir_flag_spec_F77=
15512   hardcode_libdir_flag_spec_ld_F77=
15513   hardcode_libdir_separator_F77=
15514   hardcode_direct_F77=no
15515   hardcode_minus_L_F77=no
15516   hardcode_shlibpath_var_F77=unsupported
15517   link_all_deplibs_F77=unknown
15518   hardcode_automatic_F77=no
15519   module_cmds_F77=
15520   module_expsym_cmds_F77=
15521   always_export_symbols_F77=no
15522   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15523   # include_expsyms should be a list of space-separated symbols to be *always*
15524   # included in the symbol list
15525   include_expsyms_F77=
15526   # exclude_expsyms can be an extended regexp of symbols to exclude
15527   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15528   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15529   # as well as any symbol that contains `d'.
15530   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15531   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15532   # platforms (ab)use it in PIC code, but their linkers get confused if
15533   # the symbol is explicitly referenced.  Since portable code cannot
15534   # rely on this symbol name, it's probably fine to never include it in
15535   # preloaded symbol tables.
15536   extract_expsyms_cmds=
15537
15538   case $host_os in
15539   cygwin* | mingw* | pw32*)
15540     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15541     # When not using gcc, we currently assume that we are using
15542     # Microsoft Visual C++.
15543     if test "$GCC" != yes; then
15544       with_gnu_ld=no
15545     fi
15546     ;;
15547   openbsd*)
15548     with_gnu_ld=no
15549     ;;
15550   esac
15551
15552   ld_shlibs_F77=yes
15553   if test "$with_gnu_ld" = yes; then
15554     # If archive_cmds runs LD, not CC, wlarc should be empty
15555     wlarc='${wl}'
15556
15557     # See if GNU ld supports shared libraries.
15558     case $host_os in
15559     aix3* | aix4* | aix5*)
15560       # On AIX/PPC, the GNU linker is very broken
15561       if test "$host_cpu" != ia64; then
15562         ld_shlibs_F77=no
15563         cat <<EOF 1>&2
15564
15565 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15566 *** to be unable to reliably create shared libraries on AIX.
15567 *** Therefore, libtool is disabling shared libraries support.  If you
15568 *** really care for shared libraries, you may want to modify your PATH
15569 *** so that a non-GNU linker is found, and then restart.
15570
15571 EOF
15572       fi
15573       ;;
15574
15575     amigaos*)
15576       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)'
15577       hardcode_libdir_flag_spec_F77='-L$libdir'
15578       hardcode_minus_L_F77=yes
15579
15580       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15581       # that the semantics of dynamic libraries on AmigaOS, at least up
15582       # to version 4, is to share data among multiple programs linked
15583       # with the same dynamic library.  Since this doesn't match the
15584       # behavior of shared libraries on other platforms, we can't use
15585       # them.
15586       ld_shlibs_F77=no
15587       ;;
15588
15589     beos*)
15590       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15591         allow_undefined_flag_F77=unsupported
15592         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15593         # support --undefined.  This deserves some investigation.  FIXME
15594         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15595       else
15596         ld_shlibs_F77=no
15597       fi
15598       ;;
15599
15600     cygwin* | mingw* | pw32*)
15601       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15602       # as there is no search path for DLLs.
15603       hardcode_libdir_flag_spec_F77='-L$libdir'
15604       allow_undefined_flag_F77=unsupported
15605       always_export_symbols_F77=no
15606       enable_shared_with_static_runtimes_F77=yes
15607       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15608
15609       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15610         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15611         # If the export-symbols file already is a .def file (1st line
15612         # is EXPORTS), use it as is; otherwise, prepend...
15613         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15614           cp $export_symbols $output_objdir/$soname.def;
15615         else
15616           echo EXPORTS > $output_objdir/$soname.def;
15617           cat $export_symbols >> $output_objdir/$soname.def;
15618         fi~
15619         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15620       else
15621         ld_shlibs=no
15622       fi
15623       ;;
15624
15625     netbsd*)
15626       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15627         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15628         wlarc=
15629       else
15630         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15631         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15632       fi
15633       ;;
15634
15635     solaris* | sysv5*)
15636       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15637         ld_shlibs_F77=no
15638         cat <<EOF 1>&2
15639
15640 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15641 *** create shared libraries on Solaris systems.  Therefore, libtool
15642 *** is disabling shared libraries support.  We urge you to upgrade GNU
15643 *** binutils to release 2.9.1 or newer.  Another option is to modify
15644 *** your PATH or compiler configuration so that the native linker is
15645 *** used, and then restart.
15646
15647 EOF
15648       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15649         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15650         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15651       else
15652         ld_shlibs_F77=no
15653       fi
15654       ;;
15655
15656     sunos4*)
15657       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15658       wlarc=
15659       hardcode_direct_F77=yes
15660       hardcode_shlibpath_var_F77=no
15661       ;;
15662
15663   linux*)
15664     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15665         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15666         archive_cmds_F77="$tmp_archive_cmds"
15667       supports_anon_versioning=no
15668       case `$LD -v 2>/dev/null` in
15669         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15670         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15671         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15672         *\ 2.11.*) ;; # other 2.11 versions
15673         *) supports_anon_versioning=yes ;;
15674       esac
15675       if test $supports_anon_versioning = yes; then
15676         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15677 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15678 $echo "local: *; };" >> $output_objdir/$libname.ver~
15679         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15680       else
15681         archive_expsym_cmds_F77="$tmp_archive_cmds"
15682       fi
15683     else
15684       ld_shlibs_F77=no
15685     fi
15686     ;;
15687
15688     *)
15689       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15690         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15691         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15692       else
15693         ld_shlibs_F77=no
15694       fi
15695       ;;
15696     esac
15697
15698     if test "$ld_shlibs_F77" = yes; then
15699       runpath_var=LD_RUN_PATH
15700       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15701       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15702       # ancient GNU ld didn't support --whole-archive et. al.
15703       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15704         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15705       else
15706         whole_archive_flag_spec_F77=
15707       fi
15708     fi
15709   else
15710     # PORTME fill in a description of your system's linker (not GNU ld)
15711     case $host_os in
15712     aix3*)
15713       allow_undefined_flag_F77=unsupported
15714       always_export_symbols_F77=yes
15715       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'
15716       # Note: this linker hardcodes the directories in LIBPATH if there
15717       # are no directories specified by -L.
15718       hardcode_minus_L_F77=yes
15719       if test "$GCC" = yes && test -z "$link_static_flag"; then
15720         # Neither direct hardcoding nor static linking is supported with a
15721         # broken collect2.
15722         hardcode_direct_F77=unsupported
15723       fi
15724       ;;
15725
15726     aix4* | aix5*)
15727       if test "$host_cpu" = ia64; then
15728         # On IA64, the linker does run time linking by default, so we don't
15729         # have to do anything special.
15730         aix_use_runtimelinking=no
15731         exp_sym_flag='-Bexport'
15732         no_entry_flag=""
15733       else
15734         # If we're using GNU nm, then we don't want the "-C" option.
15735         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15736         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15737           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'
15738         else
15739           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'
15740         fi
15741         aix_use_runtimelinking=no
15742
15743         # Test if we are trying to use run time linking or normal
15744         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15745         # need to do runtime linking.
15746         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15747           for ld_flag in $LDFLAGS; do
15748           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15749             aix_use_runtimelinking=yes
15750             break
15751           fi
15752           done
15753         esac
15754
15755         exp_sym_flag='-bexport'
15756         no_entry_flag='-bnoentry'
15757       fi
15758
15759       # When large executables or shared objects are built, AIX ld can
15760       # have problems creating the table of contents.  If linking a library
15761       # or program results in "error TOC overflow" add -mminimal-toc to
15762       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15763       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15764
15765       archive_cmds_F77=''
15766       hardcode_direct_F77=yes
15767       hardcode_libdir_separator_F77=':'
15768       link_all_deplibs_F77=yes
15769
15770       if test "$GCC" = yes; then
15771         case $host_os in aix4.012|aix4.012.*)
15772         # We only want to do this on AIX 4.2 and lower, the check
15773         # below for broken collect2 doesn't work under 4.3+
15774           collect2name=`${CC} -print-prog-name=collect2`
15775           if test -f "$collect2name" && \
15776            strings "$collect2name" | grep resolve_lib_name >/dev/null
15777           then
15778           # We have reworked collect2
15779           hardcode_direct_F77=yes
15780           else
15781           # We have old collect2
15782           hardcode_direct_F77=unsupported
15783           # It fails to find uninstalled libraries when the uninstalled
15784           # path is not listed in the libpath.  Setting hardcode_minus_L
15785           # to unsupported forces relinking
15786           hardcode_minus_L_F77=yes
15787           hardcode_libdir_flag_spec_F77='-L$libdir'
15788           hardcode_libdir_separator_F77=
15789           fi
15790         esac
15791         shared_flag='-shared'
15792       else
15793         # not using gcc
15794         if test "$host_cpu" = ia64; then
15795         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15796         # chokes on -Wl,-G. The following line is correct:
15797           shared_flag='-G'
15798         else
15799         if test "$aix_use_runtimelinking" = yes; then
15800             shared_flag='${wl}-G'
15801           else
15802             shared_flag='${wl}-bM:SRE'
15803         fi
15804         fi
15805       fi
15806
15807       # It seems that -bexpall does not export symbols beginning with
15808       # underscore (_), so it is better to generate a list of symbols to export.
15809       always_export_symbols_F77=yes
15810       if test "$aix_use_runtimelinking" = yes; then
15811         # Warning - without using the other runtime loading flags (-brtl),
15812         # -berok will link without error, but may produce a broken library.
15813         allow_undefined_flag_F77='-berok'
15814        # Determine the default libpath from the value encoded in an empty executable.
15815        cat >conftest.$ac_ext <<_ACEOF
15816       program main
15817
15818       end
15819 _ACEOF
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15822   (eval $ac_link) 2>conftest.er1
15823   ac_status=$?
15824   grep -v '^ *+' conftest.er1 >conftest.err
15825   rm -f conftest.er1
15826   cat conftest.err >&5
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); } &&
15829          { ac_try='test -z "$ac_f77_werror_flag"
15830                          || test ! -s conftest.err'
15831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832   (eval $ac_try) 2>&5
15833   ac_status=$?
15834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835   (exit $ac_status); }; } &&
15836          { ac_try='test -s conftest$ac_exeext'
15837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838   (eval $ac_try) 2>&5
15839   ac_status=$?
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); }; }; then
15842
15843 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15844 }'`
15845 # Check for a 64-bit object if we didn't find anything.
15846 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; }
15847 }'`; fi
15848 else
15849   echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15851
15852 fi
15853 rm -f conftest.err conftest.$ac_objext \
15854       conftest$ac_exeext conftest.$ac_ext
15855 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15856
15857        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15858         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"
15859        else
15860         if test "$host_cpu" = ia64; then
15861           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15862           allow_undefined_flag_F77="-z nodefs"
15863           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"
15864         else
15865          # Determine the default libpath from the value encoded in an empty executable.
15866          cat >conftest.$ac_ext <<_ACEOF
15867       program main
15868
15869       end
15870 _ACEOF
15871 rm -f conftest.$ac_objext conftest$ac_exeext
15872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15873   (eval $ac_link) 2>conftest.er1
15874   ac_status=$?
15875   grep -v '^ *+' conftest.er1 >conftest.err
15876   rm -f conftest.er1
15877   cat conftest.err >&5
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); } &&
15880          { ac_try='test -z "$ac_f77_werror_flag"
15881                          || test ! -s conftest.err'
15882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883   (eval $ac_try) 2>&5
15884   ac_status=$?
15885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886   (exit $ac_status); }; } &&
15887          { ac_try='test -s conftest$ac_exeext'
15888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889   (eval $ac_try) 2>&5
15890   ac_status=$?
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); }; }; then
15893
15894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15895 }'`
15896 # Check for a 64-bit object if we didn't find anything.
15897 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; }
15898 }'`; fi
15899 else
15900   echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15902
15903 fi
15904 rm -f conftest.err conftest.$ac_objext \
15905       conftest$ac_exeext conftest.$ac_ext
15906 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15907
15908          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15909           # Warning - without using the other run time loading flags,
15910           # -berok will link without error, but may produce a broken library.
15911           no_undefined_flag_F77=' ${wl}-bernotok'
15912           allow_undefined_flag_F77=' ${wl}-berok'
15913           # -bexpall does not export symbols beginning with underscore (_)
15914           always_export_symbols_F77=yes
15915           # Exported symbols can be pulled into shared objects from archives
15916           whole_archive_flag_spec_F77=' '
15917           archive_cmds_need_lc_F77=yes
15918           # This is similar to how AIX traditionally builds it's shared libraries.
15919           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'
15920         fi
15921       fi
15922       ;;
15923
15924     amigaos*)
15925       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)'
15926       hardcode_libdir_flag_spec_F77='-L$libdir'
15927       hardcode_minus_L_F77=yes
15928       # see comment about different semantics on the GNU ld section
15929       ld_shlibs_F77=no
15930       ;;
15931
15932     bsdi4*)
15933       export_dynamic_flag_spec_F77=-rdynamic
15934       ;;
15935
15936     cygwin* | mingw* | pw32*)
15937       # When not using gcc, we currently assume that we are using
15938       # Microsoft Visual C++.
15939       # hardcode_libdir_flag_spec is actually meaningless, as there is
15940       # no search path for DLLs.
15941       hardcode_libdir_flag_spec_F77=' '
15942       allow_undefined_flag_F77=unsupported
15943       # Tell ltmain to make .lib files, not .a files.
15944       libext=lib
15945       # Tell ltmain to make .dll files, not .so files.
15946       shrext_cmds=".dll"
15947       # FIXME: Setting linknames here is a bad hack.
15948       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15949       # The linker will automatically build a .lib file if we build a DLL.
15950       old_archive_From_new_cmds_F77='true'
15951       # FIXME: Should let the user specify the lib program.
15952       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15953       fix_srcfile_path='`cygpath -w "$srcfile"`'
15954       enable_shared_with_static_runtimes_F77=yes
15955       ;;
15956
15957     darwin* | rhapsody*)
15958     if test "$GXX" = yes ; then
15959       archive_cmds_need_lc_F77=no
15960       case "$host_os" in
15961       rhapsody* | darwin1.[012])
15962         allow_undefined_flag_F77='-undefined suppress'
15963         ;;
15964       *) # Darwin 1.3 on
15965       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15966         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15967       else
15968         case ${MACOSX_DEPLOYMENT_TARGET} in
15969           10.[012])
15970             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15971             ;;
15972           10.*)
15973             allow_undefined_flag_F77='-undefined dynamic_lookup'
15974             ;;
15975         esac
15976       fi
15977         ;;
15978       esac
15979         lt_int_apple_cc_single_mod=no
15980         output_verbose_link_cmd='echo'
15981         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15982           lt_int_apple_cc_single_mod=yes
15983         fi
15984         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15985           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15986         else
15987         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'
15988       fi
15989       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15990       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15991         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15992           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}'
15993         else
15994           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}'
15995         fi
15996           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}'
15997       hardcode_direct_F77=no
15998       hardcode_automatic_F77=yes
15999       hardcode_shlibpath_var_F77=unsupported
16000       whole_archive_flag_spec_F77='-all_load $convenience'
16001       link_all_deplibs_F77=yes
16002     else
16003       ld_shlibs_F77=no
16004     fi
16005       ;;
16006
16007     dgux*)
16008       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16009       hardcode_libdir_flag_spec_F77='-L$libdir'
16010       hardcode_shlibpath_var_F77=no
16011       ;;
16012
16013     freebsd1*)
16014       ld_shlibs_F77=no
16015       ;;
16016
16017     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16018     # support.  Future versions do this automatically, but an explicit c++rt0.o
16019     # does not break anything, and helps significantly (at the cost of a little
16020     # extra space).
16021     freebsd2.2*)
16022       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16023       hardcode_libdir_flag_spec_F77='-R$libdir'
16024       hardcode_direct_F77=yes
16025       hardcode_shlibpath_var_F77=no
16026       ;;
16027
16028     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16029     freebsd2*)
16030       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16031       hardcode_direct_F77=yes
16032       hardcode_minus_L_F77=yes
16033       hardcode_shlibpath_var_F77=no
16034       ;;
16035
16036     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16037     freebsd* | kfreebsd*-gnu)
16038       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16039       hardcode_libdir_flag_spec_F77='-R$libdir'
16040       hardcode_direct_F77=yes
16041       hardcode_shlibpath_var_F77=no
16042       ;;
16043
16044     hpux9*)
16045       if test "$GCC" = yes; then
16046         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'
16047       else
16048         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'
16049       fi
16050       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16051       hardcode_libdir_separator_F77=:
16052       hardcode_direct_F77=yes
16053
16054       # hardcode_minus_L: Not really in the search PATH,
16055       # but as the default location of the library.
16056       hardcode_minus_L_F77=yes
16057       export_dynamic_flag_spec_F77='${wl}-E'
16058       ;;
16059
16060     hpux10* | hpux11*)
16061       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16062         case "$host_cpu" in
16063         hppa*64*|ia64*)
16064           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16065           ;;
16066         *)
16067           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16068           ;;
16069         esac
16070       else
16071         case "$host_cpu" in
16072         hppa*64*|ia64*)
16073           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16074           ;;
16075         *)
16076           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16077           ;;
16078         esac
16079       fi
16080       if test "$with_gnu_ld" = no; then
16081         case "$host_cpu" in
16082         hppa*64*)
16083           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16084           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16085           hardcode_libdir_separator_F77=:
16086           hardcode_direct_F77=no
16087           hardcode_shlibpath_var_F77=no
16088           ;;
16089         ia64*)
16090           hardcode_libdir_flag_spec_F77='-L$libdir'
16091           hardcode_direct_F77=no
16092           hardcode_shlibpath_var_F77=no
16093
16094           # hardcode_minus_L: Not really in the search PATH,
16095           # but as the default location of the library.
16096           hardcode_minus_L_F77=yes
16097           ;;
16098         *)
16099           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16100           hardcode_libdir_separator_F77=:
16101           hardcode_direct_F77=yes
16102           export_dynamic_flag_spec_F77='${wl}-E'
16103
16104           # hardcode_minus_L: Not really in the search PATH,
16105           # but as the default location of the library.
16106           hardcode_minus_L_F77=yes
16107           ;;
16108         esac
16109       fi
16110       ;;
16111
16112     irix5* | irix6* | nonstopux*)
16113       if test "$GCC" = yes; then
16114         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'
16115       else
16116         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'
16117         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16118       fi
16119       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16120       hardcode_libdir_separator_F77=:
16121       link_all_deplibs_F77=yes
16122       ;;
16123
16124     netbsd*)
16125       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16126         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16127       else
16128         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16129       fi
16130       hardcode_libdir_flag_spec_F77='-R$libdir'
16131       hardcode_direct_F77=yes
16132       hardcode_shlibpath_var_F77=no
16133       ;;
16134
16135     newsos6)
16136       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16137       hardcode_direct_F77=yes
16138       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16139       hardcode_libdir_separator_F77=:
16140       hardcode_shlibpath_var_F77=no
16141       ;;
16142
16143     openbsd*)
16144       hardcode_direct_F77=yes
16145       hardcode_shlibpath_var_F77=no
16146       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16147         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16148         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16149         export_dynamic_flag_spec_F77='${wl}-E'
16150       else
16151        case $host_os in
16152          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16153            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16154            hardcode_libdir_flag_spec_F77='-R$libdir'
16155            ;;
16156          *)
16157            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16158            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16159            ;;
16160        esac
16161       fi
16162       ;;
16163
16164     os2*)
16165       hardcode_libdir_flag_spec_F77='-L$libdir'
16166       hardcode_minus_L_F77=yes
16167       allow_undefined_flag_F77=unsupported
16168       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'
16169       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16170       ;;
16171
16172     osf3*)
16173       if test "$GCC" = yes; then
16174         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16175         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'
16176       else
16177         allow_undefined_flag_F77=' -expect_unresolved \*'
16178         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'
16179       fi
16180       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16181       hardcode_libdir_separator_F77=:
16182       ;;
16183
16184     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16185       if test "$GCC" = yes; then
16186         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16187         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'
16188         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16189       else
16190         allow_undefined_flag_F77=' -expect_unresolved \*'
16191         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'
16192         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~
16193         $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'
16194
16195         # Both c and cxx compiler support -rpath directly
16196         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16197       fi
16198       hardcode_libdir_separator_F77=:
16199       ;;
16200
16201     sco3.2v5*)
16202       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16203       hardcode_shlibpath_var_F77=no
16204       export_dynamic_flag_spec_F77='${wl}-Bexport'
16205       runpath_var=LD_RUN_PATH
16206       hardcode_runpath_var=yes
16207       ;;
16208
16209     solaris*)
16210       no_undefined_flag_F77=' -z text'
16211       if test "$GCC" = yes; then
16212         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16213         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16214           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16215       else
16216         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16217         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16218         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16219       fi
16220       hardcode_libdir_flag_spec_F77='-R$libdir'
16221       hardcode_shlibpath_var_F77=no
16222       case $host_os in
16223       solaris2.[0-5] | solaris2.[0-5].*) ;;
16224       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16225         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16226       esac
16227       link_all_deplibs_F77=yes
16228       ;;
16229
16230     sunos4*)
16231       if test "x$host_vendor" = xsequent; then
16232         # Use $CC to link under sequent, because it throws in some extra .o
16233         # files that make .init and .fini sections work.
16234         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16235       else
16236         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16237       fi
16238       hardcode_libdir_flag_spec_F77='-L$libdir'
16239       hardcode_direct_F77=yes
16240       hardcode_minus_L_F77=yes
16241       hardcode_shlibpath_var_F77=no
16242       ;;
16243
16244     sysv4)
16245       case $host_vendor in
16246         sni)
16247           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16248           hardcode_direct_F77=yes # is this really true???
16249         ;;
16250         siemens)
16251           ## LD is ld it makes a PLAMLIB
16252           ## CC just makes a GrossModule.
16253           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16254           reload_cmds_F77='$CC -r -o $output$reload_objs'
16255           hardcode_direct_F77=no
16256         ;;
16257         motorola)
16258           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16259           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16260         ;;
16261       esac
16262       runpath_var='LD_RUN_PATH'
16263       hardcode_shlibpath_var_F77=no
16264       ;;
16265
16266     sysv4.3*)
16267       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16268       hardcode_shlibpath_var_F77=no
16269       export_dynamic_flag_spec_F77='-Bexport'
16270       ;;
16271
16272     sysv4*MP*)
16273       if test -d /usr/nec; then
16274         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16275         hardcode_shlibpath_var_F77=no
16276         runpath_var=LD_RUN_PATH
16277         hardcode_runpath_var=yes
16278         ld_shlibs_F77=yes
16279       fi
16280       ;;
16281
16282     sysv4.2uw2*)
16283       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16284       hardcode_direct_F77=yes
16285       hardcode_minus_L_F77=no
16286       hardcode_shlibpath_var_F77=no
16287       hardcode_runpath_var=yes
16288       runpath_var=LD_RUN_PATH
16289       ;;
16290
16291    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16292       no_undefined_flag_F77='${wl}-z ${wl}text'
16293       if test "$GCC" = yes; then
16294         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16295       else
16296         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16297       fi
16298       runpath_var='LD_RUN_PATH'
16299       hardcode_shlibpath_var_F77=no
16300       ;;
16301
16302     sysv5*)
16303       no_undefined_flag_F77=' -z text'
16304       # $CC -shared without GNU ld will not create a library from C++
16305       # object files and a static libstdc++, better avoid it by now
16306       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16307       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16308                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16309       hardcode_libdir_flag_spec_F77=
16310       hardcode_shlibpath_var_F77=no
16311       runpath_var='LD_RUN_PATH'
16312       ;;
16313
16314     uts4*)
16315       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16316       hardcode_libdir_flag_spec_F77='-L$libdir'
16317       hardcode_shlibpath_var_F77=no
16318       ;;
16319
16320     *)
16321       ld_shlibs_F77=no
16322       ;;
16323     esac
16324   fi
16325
16326 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16327 echo "${ECHO_T}$ld_shlibs_F77" >&6
16328 test "$ld_shlibs_F77" = no && can_build_shared=no
16329
16330 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16331 if test "$GCC" = yes; then
16332   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16333 fi
16334
16335 #
16336 # Do we need to explicitly link libc?
16337 #
16338 case "x$archive_cmds_need_lc_F77" in
16339 x|xyes)
16340   # Assume -lc should be added
16341   archive_cmds_need_lc_F77=yes
16342
16343   if test "$enable_shared" = yes && test "$GCC" = yes; then
16344     case $archive_cmds_F77 in
16345     *'~'*)
16346       # FIXME: we may have to deal with multi-command sequences.
16347       ;;
16348     '$CC '*)
16349       # Test whether the compiler implicitly links with -lc since on some
16350       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16351       # to ld, don't add -lc before -lgcc.
16352       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16353 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16354       $rm conftest*
16355       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16356
16357       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16358   (eval $ac_compile) 2>&5
16359   ac_status=$?
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); } 2>conftest.err; then
16362         soname=conftest
16363         lib=conftest
16364         libobjs=conftest.$ac_objext
16365         deplibs=
16366         wl=$lt_prog_compiler_wl_F77
16367         compiler_flags=-v
16368         linker_flags=-v
16369         verstring=
16370         output_objdir=.
16371         libname=conftest
16372         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16373         allow_undefined_flag_F77=
16374         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16375   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16376   ac_status=$?
16377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378   (exit $ac_status); }
16379         then
16380           archive_cmds_need_lc_F77=no
16381         else
16382           archive_cmds_need_lc_F77=yes
16383         fi
16384         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16385       else
16386         cat conftest.err 1>&5
16387       fi
16388       $rm conftest*
16389       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16390 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16391       ;;
16392     esac
16393   fi
16394   ;;
16395 esac
16396
16397 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16398 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16399 library_names_spec=
16400 libname_spec='lib$name'
16401 soname_spec=
16402 shrext_cmds=".so"
16403 postinstall_cmds=
16404 postuninstall_cmds=
16405 finish_cmds=
16406 finish_eval=
16407 shlibpath_var=
16408 shlibpath_overrides_runpath=unknown
16409 version_type=none
16410 dynamic_linker="$host_os ld.so"
16411 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16412 if test "$GCC" = yes; then
16413   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16414   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16415     # if the path contains ";" then we assume it to be the separator
16416     # otherwise default to the standard path separator (i.e. ":") - it is
16417     # assumed that no part of a normal pathname contains ";" but that should
16418     # okay in the real world where ";" in dirpaths is itself problematic.
16419     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16420   else
16421     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16422   fi
16423 else
16424   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16425 fi
16426 need_lib_prefix=unknown
16427 hardcode_into_libs=no
16428
16429 # when you set need_version to no, make sure it does not cause -set_version
16430 # flags to be left without arguments
16431 need_version=unknown
16432
16433 case $host_os in
16434 aix3*)
16435   version_type=linux
16436   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16437   shlibpath_var=LIBPATH
16438
16439   # AIX 3 has no versioning support, so we append a major version to the name.
16440   soname_spec='${libname}${release}${shared_ext}$major'
16441   ;;
16442
16443 aix4* | aix5*)
16444   version_type=linux
16445   need_lib_prefix=no
16446   need_version=no
16447   hardcode_into_libs=yes
16448   if test "$host_cpu" = ia64; then
16449     # AIX 5 supports IA64
16450     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16451     shlibpath_var=LD_LIBRARY_PATH
16452   else
16453     # With GCC up to 2.95.x, collect2 would create an import file
16454     # for dependence libraries.  The import file would start with
16455     # the line `#! .'.  This would cause the generated library to
16456     # depend on `.', always an invalid library.  This was fixed in
16457     # development snapshots of GCC prior to 3.0.
16458     case $host_os in
16459       aix4 | aix4.[01] | aix4.[01].*)
16460       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16461            echo ' yes '
16462            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16463         :
16464       else
16465         can_build_shared=no
16466       fi
16467       ;;
16468     esac
16469     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16470     # soname into executable. Probably we can add versioning support to
16471     # collect2, so additional links can be useful in future.
16472     if test "$aix_use_runtimelinking" = yes; then
16473       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16474       # instead of lib<name>.a to let people know that these are not
16475       # typical AIX shared libraries.
16476       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16477     else
16478       # We preserve .a as extension for shared libraries through AIX4.2
16479       # and later when we are not doing run time linking.
16480       library_names_spec='${libname}${release}.a $libname.a'
16481       soname_spec='${libname}${release}${shared_ext}$major'
16482     fi
16483     shlibpath_var=LIBPATH
16484   fi
16485   ;;
16486
16487 amigaos*)
16488   library_names_spec='$libname.ixlibrary $libname.a'
16489   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16490   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'
16491   ;;
16492
16493 beos*)
16494   library_names_spec='${libname}${shared_ext}'
16495   dynamic_linker="$host_os ld.so"
16496   shlibpath_var=LIBRARY_PATH
16497   ;;
16498
16499 bsdi4*)
16500   version_type=linux
16501   need_version=no
16502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503   soname_spec='${libname}${release}${shared_ext}$major'
16504   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16505   shlibpath_var=LD_LIBRARY_PATH
16506   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16507   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16508   # the default ld.so.conf also contains /usr/contrib/lib and
16509   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16510   # libtool to hard-code these into programs
16511   ;;
16512
16513 cygwin* | mingw* | pw32*)
16514   version_type=windows
16515   shrext_cmds=".dll"
16516   need_version=no
16517   need_lib_prefix=no
16518
16519   case $GCC,$host_os in
16520   yes,cygwin* | yes,mingw* | yes,pw32*)
16521     library_names_spec='$libname.dll.a'
16522     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16523     postinstall_cmds='base_file=`basename \${file}`~
16524       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16525       dldir=$destdir/`dirname \$dlpath`~
16526       test -d \$dldir || mkdir -p \$dldir~
16527       $install_prog $dir/$dlname \$dldir/$dlname'
16528     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16529       dlpath=$dir/\$dldll~
16530        $rm \$dlpath'
16531     shlibpath_overrides_runpath=yes
16532
16533     case $host_os in
16534     cygwin*)
16535       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16536       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16537       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16538       ;;
16539     mingw*)
16540       # MinGW DLLs use traditional 'lib' prefix
16541       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16542       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16543       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16544         # It is most probably a Windows format PATH printed by
16545         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16546         # path with ; separators, and with drive letters. We can handle the
16547         # drive letters (cygwin fileutils understands them), so leave them,
16548         # especially as we might pass files found there to a mingw objdump,
16549         # which wouldn't understand a cygwinified path. Ahh.
16550         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16551       else
16552         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16553       fi
16554       ;;
16555     pw32*)
16556       # pw32 DLLs use 'pw' prefix rather than 'lib'
16557       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16558       ;;
16559     esac
16560     ;;
16561
16562   *)
16563     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16564     ;;
16565   esac
16566   dynamic_linker='Win32 ld.exe'
16567   # FIXME: first we should search . and the directory the executable is in
16568   shlibpath_var=PATH
16569   ;;
16570
16571 darwin* | rhapsody*)
16572   dynamic_linker="$host_os dyld"
16573   version_type=darwin
16574   need_lib_prefix=no
16575   need_version=no
16576   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16577   soname_spec='${libname}${release}${major}$shared_ext'
16578   shlibpath_overrides_runpath=yes
16579   shlibpath_var=DYLD_LIBRARY_PATH
16580   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16581   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16582   if test "$GCC" = yes; then
16583     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"`
16584   else
16585     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16586   fi
16587   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16588   ;;
16589
16590 dgux*)
16591   version_type=linux
16592   need_lib_prefix=no
16593   need_version=no
16594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16595   soname_spec='${libname}${release}${shared_ext}$major'
16596   shlibpath_var=LD_LIBRARY_PATH
16597   ;;
16598
16599 freebsd1*)
16600   dynamic_linker=no
16601   ;;
16602
16603 kfreebsd*-gnu)
16604   version_type=linux
16605   need_lib_prefix=no
16606   need_version=no
16607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16608   soname_spec='${libname}${release}${shared_ext}$major'
16609   shlibpath_var=LD_LIBRARY_PATH
16610   shlibpath_overrides_runpath=no
16611   hardcode_into_libs=yes
16612   dynamic_linker='GNU ld.so'
16613   ;;
16614
16615 freebsd*)
16616   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16617   version_type=freebsd-$objformat
16618   case $version_type in
16619     freebsd-elf*)
16620       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16621       need_version=no
16622       need_lib_prefix=no
16623       ;;
16624     freebsd-*)
16625       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16626       need_version=yes
16627       ;;
16628   esac
16629   shlibpath_var=LD_LIBRARY_PATH
16630   case $host_os in
16631   freebsd2*)
16632     shlibpath_overrides_runpath=yes
16633     ;;
16634   freebsd3.01* | freebsdelf3.01*)
16635     shlibpath_overrides_runpath=yes
16636     hardcode_into_libs=yes
16637     ;;
16638   *) # from 3.2 on
16639     shlibpath_overrides_runpath=no
16640     hardcode_into_libs=yes
16641     ;;
16642   esac
16643   ;;
16644
16645 gnu*)
16646   version_type=linux
16647   need_lib_prefix=no
16648   need_version=no
16649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16650   soname_spec='${libname}${release}${shared_ext}$major'
16651   shlibpath_var=LD_LIBRARY_PATH
16652   hardcode_into_libs=yes
16653   ;;
16654
16655 hpux9* | hpux10* | hpux11*)
16656   # Give a soname corresponding to the major version so that dld.sl refuses to
16657   # link against other versions.
16658   version_type=sunos
16659   need_lib_prefix=no
16660   need_version=no
16661   case "$host_cpu" in
16662   ia64*)
16663     shrext_cmds='.so'
16664     hardcode_into_libs=yes
16665     dynamic_linker="$host_os dld.so"
16666     shlibpath_var=LD_LIBRARY_PATH
16667     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16668     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16669     soname_spec='${libname}${release}${shared_ext}$major'
16670     if test "X$HPUX_IA64_MODE" = X32; then
16671       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16672     else
16673       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16674     fi
16675     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16676     ;;
16677    hppa*64*)
16678      shrext_cmds='.sl'
16679      hardcode_into_libs=yes
16680      dynamic_linker="$host_os dld.sl"
16681      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16682      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16683      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16684      soname_spec='${libname}${release}${shared_ext}$major'
16685      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16686      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16687      ;;
16688    *)
16689     shrext_cmds='.sl'
16690     dynamic_linker="$host_os dld.sl"
16691     shlibpath_var=SHLIB_PATH
16692     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16693     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694     soname_spec='${libname}${release}${shared_ext}$major'
16695     ;;
16696   esac
16697   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16698   postinstall_cmds='chmod 555 $lib'
16699   ;;
16700
16701 irix5* | irix6* | nonstopux*)
16702   case $host_os in
16703     nonstopux*) version_type=nonstopux ;;
16704     *)
16705         if test "$lt_cv_prog_gnu_ld" = yes; then
16706                 version_type=linux
16707         else
16708                 version_type=irix
16709         fi ;;
16710   esac
16711   need_lib_prefix=no
16712   need_version=no
16713   soname_spec='${libname}${release}${shared_ext}$major'
16714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16715   case $host_os in
16716   irix5* | nonstopux*)
16717     libsuff= shlibsuff=
16718     ;;
16719   *)
16720     case $LD in # libtool.m4 will add one of these switches to LD
16721     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16722       libsuff= shlibsuff= libmagic=32-bit;;
16723     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16724       libsuff=32 shlibsuff=N32 libmagic=N32;;
16725     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16726       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16727     *) libsuff= shlibsuff= libmagic=never-match;;
16728     esac
16729     ;;
16730   esac
16731   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16732   shlibpath_overrides_runpath=no
16733   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16734   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16735   hardcode_into_libs=yes
16736   ;;
16737
16738 # No shared lib support for Linux oldld, aout, or coff.
16739 linux*oldld* | linux*aout* | linux*coff*)
16740   dynamic_linker=no
16741   ;;
16742
16743 # This must be Linux ELF.
16744 linux*)
16745   version_type=linux
16746   need_lib_prefix=no
16747   need_version=no
16748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749   soname_spec='${libname}${release}${shared_ext}$major'
16750   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16751   shlibpath_var=LD_LIBRARY_PATH
16752   shlibpath_overrides_runpath=no
16753   # This implies no fast_install, which is unacceptable.
16754   # Some rework will be needed to allow for fast_install
16755   # before this can be enabled.
16756   hardcode_into_libs=yes
16757
16758   # find out which ABI we are using
16759   libsuff=
16760   case "$host_cpu" in
16761   x86_64*|s390x*|powerpc64*)
16762     echo '#line 16762 "configure"' > conftest.$ac_ext
16763     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16764   (eval $ac_compile) 2>&5
16765   ac_status=$?
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); }; then
16768       case `/usr/bin/file conftest.$ac_objext` in
16769       *64-bit*)
16770         libsuff=64
16771         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16772         ;;
16773       esac
16774     fi
16775     rm -rf conftest*
16776     ;;
16777   esac
16778
16779   # Append ld.so.conf contents to the search path
16780   if test -f /etc/ld.so.conf; then
16781     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16782     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16783   fi
16784
16785   # We used to test for /lib/ld.so.1 and disable shared libraries on
16786   # powerpc, because MkLinux only supported shared libraries with the
16787   # GNU dynamic linker.  Since this was broken with cross compilers,
16788   # most powerpc-linux boxes support dynamic linking these days and
16789   # people can always --disable-shared, the test was removed, and we
16790   # assume the GNU/Linux dynamic linker is in use.
16791   dynamic_linker='GNU/Linux ld.so'
16792   ;;
16793
16794 knetbsd*-gnu)
16795   version_type=linux
16796   need_lib_prefix=no
16797   need_version=no
16798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16799   soname_spec='${libname}${release}${shared_ext}$major'
16800   shlibpath_var=LD_LIBRARY_PATH
16801   shlibpath_overrides_runpath=no
16802   hardcode_into_libs=yes
16803   dynamic_linker='GNU ld.so'
16804   ;;
16805
16806 netbsd*)
16807   version_type=sunos
16808   need_lib_prefix=no
16809   need_version=no
16810   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16811     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16812     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16813     dynamic_linker='NetBSD (a.out) ld.so'
16814   else
16815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16816     soname_spec='${libname}${release}${shared_ext}$major'
16817     dynamic_linker='NetBSD ld.elf_so'
16818   fi
16819   shlibpath_var=LD_LIBRARY_PATH
16820   shlibpath_overrides_runpath=yes
16821   hardcode_into_libs=yes
16822   ;;
16823
16824 newsos6)
16825   version_type=linux
16826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827   shlibpath_var=LD_LIBRARY_PATH
16828   shlibpath_overrides_runpath=yes
16829   ;;
16830
16831 nto-qnx*)
16832   version_type=linux
16833   need_lib_prefix=no
16834   need_version=no
16835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836   soname_spec='${libname}${release}${shared_ext}$major'
16837   shlibpath_var=LD_LIBRARY_PATH
16838   shlibpath_overrides_runpath=yes
16839   ;;
16840
16841 openbsd*)
16842   version_type=sunos
16843   need_lib_prefix=no
16844   need_version=yes
16845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16846   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16847   shlibpath_var=LD_LIBRARY_PATH
16848   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16849     case $host_os in
16850       openbsd2.[89] | openbsd2.[89].*)
16851         shlibpath_overrides_runpath=no
16852         ;;
16853       *)
16854         shlibpath_overrides_runpath=yes
16855         ;;
16856       esac
16857   else
16858     shlibpath_overrides_runpath=yes
16859   fi
16860   ;;
16861
16862 os2*)
16863   libname_spec='$name'
16864   shrext_cmds=".dll"
16865   need_lib_prefix=no
16866   library_names_spec='$libname${shared_ext} $libname.a'
16867   dynamic_linker='OS/2 ld.exe'
16868   shlibpath_var=LIBPATH
16869   ;;
16870
16871 osf3* | osf4* | osf5*)
16872   version_type=osf
16873   need_lib_prefix=no
16874   need_version=no
16875   soname_spec='${libname}${release}${shared_ext}$major'
16876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877   shlibpath_var=LD_LIBRARY_PATH
16878   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16879   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16880   ;;
16881
16882 sco3.2v5*)
16883   version_type=osf
16884   soname_spec='${libname}${release}${shared_ext}$major'
16885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886   shlibpath_var=LD_LIBRARY_PATH
16887   ;;
16888
16889 solaris*)
16890   version_type=linux
16891   need_lib_prefix=no
16892   need_version=no
16893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894   soname_spec='${libname}${release}${shared_ext}$major'
16895   shlibpath_var=LD_LIBRARY_PATH
16896   shlibpath_overrides_runpath=yes
16897   hardcode_into_libs=yes
16898   # ldd complains unless libraries are executable
16899   postinstall_cmds='chmod +x $lib'
16900   ;;
16901
16902 sunos4*)
16903   version_type=sunos
16904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16905   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16906   shlibpath_var=LD_LIBRARY_PATH
16907   shlibpath_overrides_runpath=yes
16908   if test "$with_gnu_ld" = yes; then
16909     need_lib_prefix=no
16910   fi
16911   need_version=yes
16912   ;;
16913
16914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16915   version_type=linux
16916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917   soname_spec='${libname}${release}${shared_ext}$major'
16918   shlibpath_var=LD_LIBRARY_PATH
16919   case $host_vendor in
16920     sni)
16921       shlibpath_overrides_runpath=no
16922       need_lib_prefix=no
16923       export_dynamic_flag_spec='${wl}-Blargedynsym'
16924       runpath_var=LD_RUN_PATH
16925       ;;
16926     siemens)
16927       need_lib_prefix=no
16928       ;;
16929     motorola)
16930       need_lib_prefix=no
16931       need_version=no
16932       shlibpath_overrides_runpath=no
16933       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16934       ;;
16935   esac
16936   ;;
16937
16938 sysv4*MP*)
16939   if test -d /usr/nec ;then
16940     version_type=linux
16941     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16942     soname_spec='$libname${shared_ext}.$major'
16943     shlibpath_var=LD_LIBRARY_PATH
16944   fi
16945   ;;
16946
16947 uts4*)
16948   version_type=linux
16949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16950   soname_spec='${libname}${release}${shared_ext}$major'
16951   shlibpath_var=LD_LIBRARY_PATH
16952   ;;
16953
16954 *)
16955   dynamic_linker=no
16956   ;;
16957 esac
16958 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16959 echo "${ECHO_T}$dynamic_linker" >&6
16960 test "$dynamic_linker" = no && can_build_shared=no
16961
16962 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16963 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16964 hardcode_action_F77=
16965 if test -n "$hardcode_libdir_flag_spec_F77" || \
16966    test -n "$runpath_var F77" || \
16967    test "X$hardcode_automatic_F77"="Xyes" ; then
16968
16969   # We can hardcode non-existant directories.
16970   if test "$hardcode_direct_F77" != no &&
16971      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16972      # have to relink, otherwise we might link with an installed library
16973      # when we should be linking with a yet-to-be-installed one
16974      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16975      test "$hardcode_minus_L_F77" != no; then
16976     # Linking always hardcodes the temporary library directory.
16977     hardcode_action_F77=relink
16978   else
16979     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16980     hardcode_action_F77=immediate
16981   fi
16982 else
16983   # We cannot hardcode anything, or else we can only hardcode existing
16984   # directories.
16985   hardcode_action_F77=unsupported
16986 fi
16987 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16988 echo "${ECHO_T}$hardcode_action_F77" >&6
16989
16990 if test "$hardcode_action_F77" = relink; then
16991   # Fast installation is not supported
16992   enable_fast_install=no
16993 elif test "$shlibpath_overrides_runpath" = yes ||
16994      test "$enable_shared" = no; then
16995   # Fast installation is not necessary
16996   enable_fast_install=needless
16997 fi
16998
16999 striplib=
17000 old_striplib=
17001 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17002 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17003 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17004   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17005   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17006   echo "$as_me:$LINENO: result: yes" >&5
17007 echo "${ECHO_T}yes" >&6
17008 else
17009 # FIXME - insert some real tests, host_os isn't really good enough
17010   case $host_os in
17011    darwin*)
17012        if test -n "$STRIP" ; then
17013          striplib="$STRIP -x"
17014          echo "$as_me:$LINENO: result: yes" >&5
17015 echo "${ECHO_T}yes" >&6
17016        else
17017   echo "$as_me:$LINENO: result: no" >&5
17018 echo "${ECHO_T}no" >&6
17019 fi
17020        ;;
17021    *)
17022   echo "$as_me:$LINENO: result: no" >&5
17023 echo "${ECHO_T}no" >&6
17024     ;;
17025   esac
17026 fi
17027
17028
17029
17030 # The else clause should only fire when bootstrapping the
17031 # libtool distribution, otherwise you forgot to ship ltmain.sh
17032 # with your package, and you will get complaints that there are
17033 # no rules to generate ltmain.sh.
17034 if test -f "$ltmain"; then
17035   # See if we are running on zsh, and set the options which allow our commands through
17036   # without removal of \ escapes.
17037   if test -n "${ZSH_VERSION+set}" ; then
17038     setopt NO_GLOB_SUBST
17039   fi
17040   # Now quote all the things that may contain metacharacters while being
17041   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17042   # variables and quote the copies for generation of the libtool script.
17043   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17044     SED SHELL STRIP \
17045     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17046     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17047     deplibs_check_method reload_flag reload_cmds need_locks \
17048     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17049     lt_cv_sys_global_symbol_to_c_name_address \
17050     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17051     old_postinstall_cmds old_postuninstall_cmds \
17052     compiler_F77 \
17053     CC_F77 \
17054     LD_F77 \
17055     lt_prog_compiler_wl_F77 \
17056     lt_prog_compiler_pic_F77 \
17057     lt_prog_compiler_static_F77 \
17058     lt_prog_compiler_no_builtin_flag_F77 \
17059     export_dynamic_flag_spec_F77 \
17060     thread_safe_flag_spec_F77 \
17061     whole_archive_flag_spec_F77 \
17062     enable_shared_with_static_runtimes_F77 \
17063     old_archive_cmds_F77 \
17064     old_archive_from_new_cmds_F77 \
17065     predep_objects_F77 \
17066     postdep_objects_F77 \
17067     predeps_F77 \
17068     postdeps_F77 \
17069     compiler_lib_search_path_F77 \
17070     archive_cmds_F77 \
17071     archive_expsym_cmds_F77 \
17072     postinstall_cmds_F77 \
17073     postuninstall_cmds_F77 \
17074     old_archive_from_expsyms_cmds_F77 \
17075     allow_undefined_flag_F77 \
17076     no_undefined_flag_F77 \
17077     export_symbols_cmds_F77 \
17078     hardcode_libdir_flag_spec_F77 \
17079     hardcode_libdir_flag_spec_ld_F77 \
17080     hardcode_libdir_separator_F77 \
17081     hardcode_automatic_F77 \
17082     module_cmds_F77 \
17083     module_expsym_cmds_F77 \
17084     lt_cv_prog_compiler_c_o_F77 \
17085     exclude_expsyms_F77 \
17086     include_expsyms_F77; do
17087
17088     case $var in
17089     old_archive_cmds_F77 | \
17090     old_archive_from_new_cmds_F77 | \
17091     archive_cmds_F77 | \
17092     archive_expsym_cmds_F77 | \
17093     module_cmds_F77 | \
17094     module_expsym_cmds_F77 | \
17095     old_archive_from_expsyms_cmds_F77 | \
17096     export_symbols_cmds_F77 | \
17097     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17098     postinstall_cmds | postuninstall_cmds | \
17099     old_postinstall_cmds | old_postuninstall_cmds | \
17100     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17101       # Double-quote double-evaled strings.
17102       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17103       ;;
17104     *)
17105       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17106       ;;
17107     esac
17108   done
17109
17110   case $lt_echo in
17111   *'\$0 --fallback-echo"')
17112     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17113     ;;
17114   esac
17115
17116 cfgfile="$ofile"
17117
17118   cat <<__EOF__ >> "$cfgfile"
17119 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17120
17121 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17122
17123 # Shell to use when invoking shell scripts.
17124 SHELL=$lt_SHELL
17125
17126 # Whether or not to build shared libraries.
17127 build_libtool_libs=$enable_shared
17128
17129 # Whether or not to build static libraries.
17130 build_old_libs=$enable_static
17131
17132 # Whether or not to add -lc for building shared libraries.
17133 build_libtool_need_lc=$archive_cmds_need_lc_F77
17134
17135 # Whether or not to disallow shared libs when runtime libs are static
17136 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17137
17138 # Whether or not to optimize for fast installation.
17139 fast_install=$enable_fast_install
17140
17141 # The host system.
17142 host_alias=$host_alias
17143 host=$host
17144
17145 # An echo program that does not interpret backslashes.
17146 echo=$lt_echo
17147
17148 # The archiver.
17149 AR=$lt_AR
17150 AR_FLAGS=$lt_AR_FLAGS
17151
17152 # A C compiler.
17153 LTCC=$lt_LTCC
17154
17155 # A language-specific compiler.
17156 CC=$lt_compiler_F77
17157
17158 # Is the compiler the GNU C compiler?
17159 with_gcc=$GCC_F77
17160
17161 # An ERE matcher.
17162 EGREP=$lt_EGREP
17163
17164 # The linker used to build libraries.
17165 LD=$lt_LD_F77
17166
17167 # Whether we need hard or soft links.
17168 LN_S=$lt_LN_S
17169
17170 # A BSD-compatible nm program.
17171 NM=$lt_NM
17172
17173 # A symbol stripping program
17174 STRIP=$lt_STRIP
17175
17176 # Used to examine libraries when file_magic_cmd begins "file"
17177 MAGIC_CMD=$MAGIC_CMD
17178
17179 # Used on cygwin: DLL creation program.
17180 DLLTOOL="$DLLTOOL"
17181
17182 # Used on cygwin: object dumper.
17183 OBJDUMP="$OBJDUMP"
17184
17185 # Used on cygwin: assembler.
17186 AS="$AS"
17187
17188 # The name of the directory that contains temporary libtool files.
17189 objdir=$objdir
17190
17191 # How to create reloadable object files.
17192 reload_flag=$lt_reload_flag
17193 reload_cmds=$lt_reload_cmds
17194
17195 # How to pass a linker flag through the compiler.
17196 wl=$lt_lt_prog_compiler_wl_F77
17197
17198 # Object file suffix (normally "o").
17199 objext="$ac_objext"
17200
17201 # Old archive suffix (normally "a").
17202 libext="$libext"
17203
17204 # Shared library suffix (normally ".so").
17205 shrext_cmds='$shrext_cmds'
17206
17207 # Executable file suffix (normally "").
17208 exeext="$exeext"
17209
17210 # Additional compiler flags for building library objects.
17211 pic_flag=$lt_lt_prog_compiler_pic_F77
17212 pic_mode=$pic_mode
17213
17214 # What is the maximum length of a command?
17215 max_cmd_len=$lt_cv_sys_max_cmd_len
17216
17217 # Does compiler simultaneously support -c and -o options?
17218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17219
17220 # Must we lock files when doing compilation ?
17221 need_locks=$lt_need_locks
17222
17223 # Do we need the lib prefix for modules?
17224 need_lib_prefix=$need_lib_prefix
17225
17226 # Do we need a version for libraries?
17227 need_version=$need_version
17228
17229 # Whether dlopen is supported.
17230 dlopen_support=$enable_dlopen
17231
17232 # Whether dlopen of programs is supported.
17233 dlopen_self=$enable_dlopen_self
17234
17235 # Whether dlopen of statically linked programs is supported.
17236 dlopen_self_static=$enable_dlopen_self_static
17237
17238 # Compiler flag to prevent dynamic linking.
17239 link_static_flag=$lt_lt_prog_compiler_static_F77
17240
17241 # Compiler flag to turn off builtin functions.
17242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17243
17244 # Compiler flag to allow reflexive dlopens.
17245 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17246
17247 # Compiler flag to generate shared objects directly from archives.
17248 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17249
17250 # Compiler flag to generate thread-safe objects.
17251 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17252
17253 # Library versioning type.
17254 version_type=$version_type
17255
17256 # Format of library name prefix.
17257 libname_spec=$lt_libname_spec
17258
17259 # List of archive names.  First name is the real one, the rest are links.
17260 # The last name is the one that the linker finds with -lNAME.
17261 library_names_spec=$lt_library_names_spec
17262
17263 # The coded name of the library, if different from the real name.
17264 soname_spec=$lt_soname_spec
17265
17266 # Commands used to build and install an old-style archive.
17267 RANLIB=$lt_RANLIB
17268 old_archive_cmds=$lt_old_archive_cmds_F77
17269 old_postinstall_cmds=$lt_old_postinstall_cmds
17270 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17271
17272 # Create an old-style archive from a shared archive.
17273 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17274
17275 # Create a temporary old-style archive to link instead of a shared archive.
17276 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17277
17278 # Commands used to build and install a shared archive.
17279 archive_cmds=$lt_archive_cmds_F77
17280 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17281 postinstall_cmds=$lt_postinstall_cmds
17282 postuninstall_cmds=$lt_postuninstall_cmds
17283
17284 # Commands used to build a loadable module (assumed same as above if empty)
17285 module_cmds=$lt_module_cmds_F77
17286 module_expsym_cmds=$lt_module_expsym_cmds_F77
17287
17288 # Commands to strip libraries.
17289 old_striplib=$lt_old_striplib
17290 striplib=$lt_striplib
17291
17292 # Dependencies to place before the objects being linked to create a
17293 # shared library.
17294 predep_objects=$lt_predep_objects_F77
17295
17296 # Dependencies to place after the objects being linked to create a
17297 # shared library.
17298 postdep_objects=$lt_postdep_objects_F77
17299
17300 # Dependencies to place before the objects being linked to create a
17301 # shared library.
17302 predeps=$lt_predeps_F77
17303
17304 # Dependencies to place after the objects being linked to create a
17305 # shared library.
17306 postdeps=$lt_postdeps_F77
17307
17308 # The library search path used internally by the compiler when linking
17309 # a shared library.
17310 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17311
17312 # Method to check whether dependent libraries are shared objects.
17313 deplibs_check_method=$lt_deplibs_check_method
17314
17315 # Command to use when deplibs_check_method == file_magic.
17316 file_magic_cmd=$lt_file_magic_cmd
17317
17318 # Flag that allows shared libraries with undefined symbols to be built.
17319 allow_undefined_flag=$lt_allow_undefined_flag_F77
17320
17321 # Flag that forces no undefined symbols.
17322 no_undefined_flag=$lt_no_undefined_flag_F77
17323
17324 # Commands used to finish a libtool library installation in a directory.
17325 finish_cmds=$lt_finish_cmds
17326
17327 # Same as above, but a single script fragment to be evaled but not shown.
17328 finish_eval=$lt_finish_eval
17329
17330 # Take the output of nm and produce a listing of raw symbols and C names.
17331 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17332
17333 # Transform the output of nm in a proper C declaration
17334 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17335
17336 # Transform the output of nm in a C name address pair
17337 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17338
17339 # This is the shared library runtime path variable.
17340 runpath_var=$runpath_var
17341
17342 # This is the shared library path variable.
17343 shlibpath_var=$shlibpath_var
17344
17345 # Is shlibpath searched before the hard-coded library search path?
17346 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17347
17348 # How to hardcode a shared library path into an executable.
17349 hardcode_action=$hardcode_action_F77
17350
17351 # Whether we should hardcode library paths into libraries.
17352 hardcode_into_libs=$hardcode_into_libs
17353
17354 # Flag to hardcode \$libdir into a binary during linking.
17355 # This must work even if \$libdir does not exist.
17356 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17357
17358 # If ld is used when linking, flag to hardcode \$libdir into
17359 # a binary during linking. This must work even if \$libdir does
17360 # not exist.
17361 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17362
17363 # Whether we need a single -rpath flag with a separated argument.
17364 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17365
17366 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17367 # resulting binary.
17368 hardcode_direct=$hardcode_direct_F77
17369
17370 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17371 # resulting binary.
17372 hardcode_minus_L=$hardcode_minus_L_F77
17373
17374 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17375 # the resulting binary.
17376 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17377
17378 # Set to yes if building a shared library automatically hardcodes DIR into the library
17379 # and all subsequent libraries and executables linked against it.
17380 hardcode_automatic=$hardcode_automatic_F77
17381
17382 # Variables whose values should be saved in libtool wrapper scripts and
17383 # restored at relink time.
17384 variables_saved_for_relink="$variables_saved_for_relink"
17385
17386 # Whether libtool must link a program against all its dependency libraries.
17387 link_all_deplibs=$link_all_deplibs_F77
17388
17389 # Compile-time system search path for libraries
17390 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17391
17392 # Run-time system search path for libraries
17393 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17394
17395 # Fix the shell variable \$srcfile for the compiler.
17396 fix_srcfile_path="$fix_srcfile_path_F77"
17397
17398 # Set to yes if exported symbols are required.
17399 always_export_symbols=$always_export_symbols_F77
17400
17401 # The commands to list exported symbols.
17402 export_symbols_cmds=$lt_export_symbols_cmds_F77
17403
17404 # The commands to extract the exported symbol list from a shared archive.
17405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17406
17407 # Symbols that should not be listed in the preloaded symbols.
17408 exclude_expsyms=$lt_exclude_expsyms_F77
17409
17410 # Symbols that must always be exported.
17411 include_expsyms=$lt_include_expsyms_F77
17412
17413 # ### END LIBTOOL TAG CONFIG: $tagname
17414
17415 __EOF__
17416
17417
17418 else
17419   # If there is no Makefile yet, we rely on a make rule to execute
17420   # `config.status --recheck' to rerun these tests and create the
17421   # libtool script then.
17422   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17423   if test -f "$ltmain_in"; then
17424     test -f Makefile && make "$ltmain"
17425   fi
17426 fi
17427
17428
17429 ac_ext=c
17430 ac_cpp='$CPP $CPPFLAGS'
17431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17434
17435 CC="$lt_save_CC"
17436
17437         else
17438           tagname=""
17439         fi
17440         ;;
17441
17442       GCJ)
17443         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17444
17445
17446
17447 # Source file extension for Java test sources.
17448 ac_ext=java
17449
17450 # Object file extension for compiled Java test sources.
17451 objext=o
17452 objext_GCJ=$objext
17453
17454 # Code to be used in simple compile tests
17455 lt_simple_compile_test_code="class foo {}\n"
17456
17457 # Code to be used in simple link tests
17458 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17459
17460 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17461
17462 # If no C compiler was specified, use CC.
17463 LTCC=${LTCC-"$CC"}
17464
17465 # Allow CC to be a program name with arguments.
17466 compiler=$CC
17467
17468
17469 # Allow CC to be a program name with arguments.
17470 lt_save_CC="$CC"
17471 CC=${GCJ-"gcj"}
17472 compiler=$CC
17473 compiler_GCJ=$CC
17474
17475 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17476 archive_cmds_need_lc_GCJ=no
17477
17478 ## CAVEAT EMPTOR:
17479 ## There is no encapsulation within the following macros, do not change
17480 ## the running order or otherwise move them around unless you know exactly
17481 ## what you are doing...
17482
17483 lt_prog_compiler_no_builtin_flag_GCJ=
17484
17485 if test "$GCC" = yes; then
17486   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17487
17488
17489 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17490 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17491 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17492   echo $ECHO_N "(cached) $ECHO_C" >&6
17493 else
17494   lt_cv_prog_compiler_rtti_exceptions=no
17495   ac_outfile=conftest.$ac_objext
17496    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17497    lt_compiler_flag="-fno-rtti -fno-exceptions"
17498    # Insert the option either (1) after the last *FLAGS variable, or
17499    # (2) before a word containing "conftest.", or (3) at the end.
17500    # Note that $ac_compile itself does not contain backslashes and begins
17501    # with a dollar sign (not a hyphen), so the echo should work correctly.
17502    # The option is referenced via a variable to avoid confusing sed.
17503    lt_compile=`echo "$ac_compile" | $SED \
17504    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17505    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17506    -e 's:$: $lt_compiler_flag:'`
17507    (eval echo "\"\$as_me:17507: $lt_compile\"" >&5)
17508    (eval "$lt_compile" 2>conftest.err)
17509    ac_status=$?
17510    cat conftest.err >&5
17511    echo "$as_me:17511: \$? = $ac_status" >&5
17512    if (exit $ac_status) && test -s "$ac_outfile"; then
17513      # The compiler can only warn and ignore the option if not recognized
17514      # So say no if there are warnings
17515      if test ! -s conftest.err; then
17516        lt_cv_prog_compiler_rtti_exceptions=yes
17517      fi
17518    fi
17519    $rm conftest*
17520
17521 fi
17522 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17523 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17524
17525 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17526     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17527 else
17528     :
17529 fi
17530
17531 fi
17532
17533 lt_prog_compiler_wl_GCJ=
17534 lt_prog_compiler_pic_GCJ=
17535 lt_prog_compiler_static_GCJ=
17536
17537 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17538 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17539
17540   if test "$GCC" = yes; then
17541     lt_prog_compiler_wl_GCJ='-Wl,'
17542     lt_prog_compiler_static_GCJ='-static'
17543
17544     case $host_os in
17545       aix*)
17546       # All AIX code is PIC.
17547       if test "$host_cpu" = ia64; then
17548         # AIX 5 now supports IA64 processor
17549         lt_prog_compiler_static_GCJ='-Bstatic'
17550       fi
17551       ;;
17552
17553     amigaos*)
17554       # FIXME: we need at least 68020 code to build shared libraries, but
17555       # adding the `-m68020' flag to GCC prevents building anything better,
17556       # like `-m68040'.
17557       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17558       ;;
17559
17560     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17561       # PIC is the default for these OSes.
17562       ;;
17563
17564     mingw* | pw32* | os2*)
17565       # This hack is so that the source file can tell whether it is being
17566       # built for inclusion in a dll (and should export symbols for example).
17567       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17568       ;;
17569
17570     darwin* | rhapsody*)
17571       # PIC is the default on this platform
17572       # Common symbols not allowed in MH_DYLIB files
17573       lt_prog_compiler_pic_GCJ='-fno-common'
17574       ;;
17575
17576     msdosdjgpp*)
17577       # Just because we use GCC doesn't mean we suddenly get shared libraries
17578       # on systems that don't support them.
17579       lt_prog_compiler_can_build_shared_GCJ=no
17580       enable_shared=no
17581       ;;
17582
17583     sysv4*MP*)
17584       if test -d /usr/nec; then
17585         lt_prog_compiler_pic_GCJ=-Kconform_pic
17586       fi
17587       ;;
17588
17589     hpux*)
17590       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17591       # not for PA HP-UX.
17592       case "$host_cpu" in
17593       hppa*64*|ia64*)
17594         # +Z the default
17595         ;;
17596       *)
17597         lt_prog_compiler_pic_GCJ='-fPIC'
17598         ;;
17599       esac
17600       ;;
17601
17602     *)
17603       lt_prog_compiler_pic_GCJ='-fPIC'
17604       ;;
17605     esac
17606   else
17607     # PORTME Check for flag to pass linker flags through the system compiler.
17608     case $host_os in
17609     aix*)
17610       lt_prog_compiler_wl_GCJ='-Wl,'
17611       if test "$host_cpu" = ia64; then
17612         # AIX 5 now supports IA64 processor
17613         lt_prog_compiler_static_GCJ='-Bstatic'
17614       else
17615         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17616       fi
17617       ;;
17618
17619     mingw* | pw32* | os2*)
17620       # This hack is so that the source file can tell whether it is being
17621       # built for inclusion in a dll (and should export symbols for example).
17622       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17623       ;;
17624
17625     hpux9* | hpux10* | hpux11*)
17626       lt_prog_compiler_wl_GCJ='-Wl,'
17627       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17628       # not for PA HP-UX.
17629       case "$host_cpu" in
17630       hppa*64*|ia64*)
17631         # +Z the default
17632         ;;
17633       *)
17634         lt_prog_compiler_pic_GCJ='+Z'
17635         ;;
17636       esac
17637       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17638       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17639       ;;
17640
17641     irix5* | irix6* | nonstopux*)
17642       lt_prog_compiler_wl_GCJ='-Wl,'
17643       # PIC (with -KPIC) is the default.
17644       lt_prog_compiler_static_GCJ='-non_shared'
17645       ;;
17646
17647     newsos6)
17648       lt_prog_compiler_pic_GCJ='-KPIC'
17649       lt_prog_compiler_static_GCJ='-Bstatic'
17650       ;;
17651
17652     linux*)
17653       case $CC in
17654       icc* | ecc*)
17655         lt_prog_compiler_wl_GCJ='-Wl,'
17656         lt_prog_compiler_pic_GCJ='-KPIC'
17657         lt_prog_compiler_static_GCJ='-static'
17658         ;;
17659       ccc*)
17660         lt_prog_compiler_wl_GCJ='-Wl,'
17661         # All Alpha code is PIC.
17662         lt_prog_compiler_static_GCJ='-non_shared'
17663         ;;
17664       esac
17665       ;;
17666
17667     osf3* | osf4* | osf5*)
17668       lt_prog_compiler_wl_GCJ='-Wl,'
17669       # All OSF/1 code is PIC.
17670       lt_prog_compiler_static_GCJ='-non_shared'
17671       ;;
17672
17673     sco3.2v5*)
17674       lt_prog_compiler_pic_GCJ='-Kpic'
17675       lt_prog_compiler_static_GCJ='-dn'
17676       ;;
17677
17678     solaris*)
17679       lt_prog_compiler_wl_GCJ='-Wl,'
17680       lt_prog_compiler_pic_GCJ='-KPIC'
17681       lt_prog_compiler_static_GCJ='-Bstatic'
17682       ;;
17683
17684     sunos4*)
17685       lt_prog_compiler_wl_GCJ='-Qoption ld '
17686       lt_prog_compiler_pic_GCJ='-PIC'
17687       lt_prog_compiler_static_GCJ='-Bstatic'
17688       ;;
17689
17690     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17691       lt_prog_compiler_wl_GCJ='-Wl,'
17692       lt_prog_compiler_pic_GCJ='-KPIC'
17693       lt_prog_compiler_static_GCJ='-Bstatic'
17694       ;;
17695
17696     sysv4*MP*)
17697       if test -d /usr/nec ;then
17698         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17699         lt_prog_compiler_static_GCJ='-Bstatic'
17700       fi
17701       ;;
17702
17703     uts4*)
17704       lt_prog_compiler_pic_GCJ='-pic'
17705       lt_prog_compiler_static_GCJ='-Bstatic'
17706       ;;
17707
17708     *)
17709       lt_prog_compiler_can_build_shared_GCJ=no
17710       ;;
17711     esac
17712   fi
17713
17714 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17715 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17716
17717 #
17718 # Check to make sure the PIC flag actually works.
17719 #
17720 if test -n "$lt_prog_compiler_pic_GCJ"; then
17721
17722 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17723 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17724 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17725   echo $ECHO_N "(cached) $ECHO_C" >&6
17726 else
17727   lt_prog_compiler_pic_works_GCJ=no
17728   ac_outfile=conftest.$ac_objext
17729    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17730    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17731    # Insert the option either (1) after the last *FLAGS variable, or
17732    # (2) before a word containing "conftest.", or (3) at the end.
17733    # Note that $ac_compile itself does not contain backslashes and begins
17734    # with a dollar sign (not a hyphen), so the echo should work correctly.
17735    # The option is referenced via a variable to avoid confusing sed.
17736    lt_compile=`echo "$ac_compile" | $SED \
17737    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17738    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17739    -e 's:$: $lt_compiler_flag:'`
17740    (eval echo "\"\$as_me:17740: $lt_compile\"" >&5)
17741    (eval "$lt_compile" 2>conftest.err)
17742    ac_status=$?
17743    cat conftest.err >&5
17744    echo "$as_me:17744: \$? = $ac_status" >&5
17745    if (exit $ac_status) && test -s "$ac_outfile"; then
17746      # The compiler can only warn and ignore the option if not recognized
17747      # So say no if there are warnings
17748      if test ! -s conftest.err; then
17749        lt_prog_compiler_pic_works_GCJ=yes
17750      fi
17751    fi
17752    $rm conftest*
17753
17754 fi
17755 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17756 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17757
17758 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17759     case $lt_prog_compiler_pic_GCJ in
17760      "" | " "*) ;;
17761      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17762      esac
17763 else
17764     lt_prog_compiler_pic_GCJ=
17765      lt_prog_compiler_can_build_shared_GCJ=no
17766 fi
17767
17768 fi
17769 case "$host_os" in
17770   # For platforms which do not support PIC, -DPIC is meaningless:
17771   *djgpp*)
17772     lt_prog_compiler_pic_GCJ=
17773     ;;
17774   *)
17775     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17776     ;;
17777 esac
17778
17779 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17780 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17781 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17782   echo $ECHO_N "(cached) $ECHO_C" >&6
17783 else
17784   lt_cv_prog_compiler_c_o_GCJ=no
17785    $rm -r conftest 2>/dev/null
17786    mkdir conftest
17787    cd conftest
17788    mkdir out
17789    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17790
17791    lt_compiler_flag="-o out/conftest2.$ac_objext"
17792    # Insert the option either (1) after the last *FLAGS variable, or
17793    # (2) before a word containing "conftest.", or (3) at the end.
17794    # Note that $ac_compile itself does not contain backslashes and begins
17795    # with a dollar sign (not a hyphen), so the echo should work correctly.
17796    lt_compile=`echo "$ac_compile" | $SED \
17797    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17798    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17799    -e 's:$: $lt_compiler_flag:'`
17800    (eval echo "\"\$as_me:17800: $lt_compile\"" >&5)
17801    (eval "$lt_compile" 2>out/conftest.err)
17802    ac_status=$?
17803    cat out/conftest.err >&5
17804    echo "$as_me:17804: \$? = $ac_status" >&5
17805    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17806    then
17807      # The compiler can only warn and ignore the option if not recognized
17808      # So say no if there are warnings
17809      if test ! -s out/conftest.err; then
17810        lt_cv_prog_compiler_c_o_GCJ=yes
17811      fi
17812    fi
17813    chmod u+w .
17814    $rm conftest*
17815    # SGI C++ compiler will create directory out/ii_files/ for
17816    # template instantiation
17817    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17818    $rm out/* && rmdir out
17819    cd ..
17820    rmdir conftest
17821    $rm conftest*
17822
17823 fi
17824 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17825 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17826
17827
17828 hard_links="nottested"
17829 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17830   # do not overwrite the value of need_locks provided by the user
17831   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17832 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17833   hard_links=yes
17834   $rm conftest*
17835   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17836   touch conftest.a
17837   ln conftest.a conftest.b 2>&5 || hard_links=no
17838   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17839   echo "$as_me:$LINENO: result: $hard_links" >&5
17840 echo "${ECHO_T}$hard_links" >&6
17841   if test "$hard_links" = no; then
17842     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17843 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17844     need_locks=warn
17845   fi
17846 else
17847   need_locks=no
17848 fi
17849
17850 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17852
17853   runpath_var=
17854   allow_undefined_flag_GCJ=
17855   enable_shared_with_static_runtimes_GCJ=no
17856   archive_cmds_GCJ=
17857   archive_expsym_cmds_GCJ=
17858   old_archive_From_new_cmds_GCJ=
17859   old_archive_from_expsyms_cmds_GCJ=
17860   export_dynamic_flag_spec_GCJ=
17861   whole_archive_flag_spec_GCJ=
17862   thread_safe_flag_spec_GCJ=
17863   hardcode_libdir_flag_spec_GCJ=
17864   hardcode_libdir_flag_spec_ld_GCJ=
17865   hardcode_libdir_separator_GCJ=
17866   hardcode_direct_GCJ=no
17867   hardcode_minus_L_GCJ=no
17868   hardcode_shlibpath_var_GCJ=unsupported
17869   link_all_deplibs_GCJ=unknown
17870   hardcode_automatic_GCJ=no
17871   module_cmds_GCJ=
17872   module_expsym_cmds_GCJ=
17873   always_export_symbols_GCJ=no
17874   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17875   # include_expsyms should be a list of space-separated symbols to be *always*
17876   # included in the symbol list
17877   include_expsyms_GCJ=
17878   # exclude_expsyms can be an extended regexp of symbols to exclude
17879   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17880   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17881   # as well as any symbol that contains `d'.
17882   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17883   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17884   # platforms (ab)use it in PIC code, but their linkers get confused if
17885   # the symbol is explicitly referenced.  Since portable code cannot
17886   # rely on this symbol name, it's probably fine to never include it in
17887   # preloaded symbol tables.
17888   extract_expsyms_cmds=
17889
17890   case $host_os in
17891   cygwin* | mingw* | pw32*)
17892     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17893     # When not using gcc, we currently assume that we are using
17894     # Microsoft Visual C++.
17895     if test "$GCC" != yes; then
17896       with_gnu_ld=no
17897     fi
17898     ;;
17899   openbsd*)
17900     with_gnu_ld=no
17901     ;;
17902   esac
17903
17904   ld_shlibs_GCJ=yes
17905   if test "$with_gnu_ld" = yes; then
17906     # If archive_cmds runs LD, not CC, wlarc should be empty
17907     wlarc='${wl}'
17908
17909     # See if GNU ld supports shared libraries.
17910     case $host_os in
17911     aix3* | aix4* | aix5*)
17912       # On AIX/PPC, the GNU linker is very broken
17913       if test "$host_cpu" != ia64; then
17914         ld_shlibs_GCJ=no
17915         cat <<EOF 1>&2
17916
17917 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17918 *** to be unable to reliably create shared libraries on AIX.
17919 *** Therefore, libtool is disabling shared libraries support.  If you
17920 *** really care for shared libraries, you may want to modify your PATH
17921 *** so that a non-GNU linker is found, and then restart.
17922
17923 EOF
17924       fi
17925       ;;
17926
17927     amigaos*)
17928       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)'
17929       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17930       hardcode_minus_L_GCJ=yes
17931
17932       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17933       # that the semantics of dynamic libraries on AmigaOS, at least up
17934       # to version 4, is to share data among multiple programs linked
17935       # with the same dynamic library.  Since this doesn't match the
17936       # behavior of shared libraries on other platforms, we can't use
17937       # them.
17938       ld_shlibs_GCJ=no
17939       ;;
17940
17941     beos*)
17942       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17943         allow_undefined_flag_GCJ=unsupported
17944         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17945         # support --undefined.  This deserves some investigation.  FIXME
17946         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17947       else
17948         ld_shlibs_GCJ=no
17949       fi
17950       ;;
17951
17952     cygwin* | mingw* | pw32*)
17953       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17954       # as there is no search path for DLLs.
17955       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17956       allow_undefined_flag_GCJ=unsupported
17957       always_export_symbols_GCJ=no
17958       enable_shared_with_static_runtimes_GCJ=yes
17959       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17960
17961       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17962         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17963         # If the export-symbols file already is a .def file (1st line
17964         # is EXPORTS), use it as is; otherwise, prepend...
17965         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17966           cp $export_symbols $output_objdir/$soname.def;
17967         else
17968           echo EXPORTS > $output_objdir/$soname.def;
17969           cat $export_symbols >> $output_objdir/$soname.def;
17970         fi~
17971         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17972       else
17973         ld_shlibs=no
17974       fi
17975       ;;
17976
17977     netbsd*)
17978       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17979         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17980         wlarc=
17981       else
17982         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17983         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17984       fi
17985       ;;
17986
17987     solaris* | sysv5*)
17988       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17989         ld_shlibs_GCJ=no
17990         cat <<EOF 1>&2
17991
17992 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17993 *** create shared libraries on Solaris systems.  Therefore, libtool
17994 *** is disabling shared libraries support.  We urge you to upgrade GNU
17995 *** binutils to release 2.9.1 or newer.  Another option is to modify
17996 *** your PATH or compiler configuration so that the native linker is
17997 *** used, and then restart.
17998
17999 EOF
18000       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18001         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18002         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18003       else
18004         ld_shlibs_GCJ=no
18005       fi
18006       ;;
18007
18008     sunos4*)
18009       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18010       wlarc=
18011       hardcode_direct_GCJ=yes
18012       hardcode_shlibpath_var_GCJ=no
18013       ;;
18014
18015   linux*)
18016     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18017         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18018         archive_cmds_GCJ="$tmp_archive_cmds"
18019       supports_anon_versioning=no
18020       case `$LD -v 2>/dev/null` in
18021         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18022         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18023         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18024         *\ 2.11.*) ;; # other 2.11 versions
18025         *) supports_anon_versioning=yes ;;
18026       esac
18027       if test $supports_anon_versioning = yes; then
18028         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18029 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18030 $echo "local: *; };" >> $output_objdir/$libname.ver~
18031         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18032       else
18033         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18034       fi
18035     else
18036       ld_shlibs_GCJ=no
18037     fi
18038     ;;
18039
18040     *)
18041       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18042         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18043         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18044       else
18045         ld_shlibs_GCJ=no
18046       fi
18047       ;;
18048     esac
18049
18050     if test "$ld_shlibs_GCJ" = yes; then
18051       runpath_var=LD_RUN_PATH
18052       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18053       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18054       # ancient GNU ld didn't support --whole-archive et. al.
18055       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18056         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18057       else
18058         whole_archive_flag_spec_GCJ=
18059       fi
18060     fi
18061   else
18062     # PORTME fill in a description of your system's linker (not GNU ld)
18063     case $host_os in
18064     aix3*)
18065       allow_undefined_flag_GCJ=unsupported
18066       always_export_symbols_GCJ=yes
18067       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'
18068       # Note: this linker hardcodes the directories in LIBPATH if there
18069       # are no directories specified by -L.
18070       hardcode_minus_L_GCJ=yes
18071       if test "$GCC" = yes && test -z "$link_static_flag"; then
18072         # Neither direct hardcoding nor static linking is supported with a
18073         # broken collect2.
18074         hardcode_direct_GCJ=unsupported
18075       fi
18076       ;;
18077
18078     aix4* | aix5*)
18079       if test "$host_cpu" = ia64; then
18080         # On IA64, the linker does run time linking by default, so we don't
18081         # have to do anything special.
18082         aix_use_runtimelinking=no
18083         exp_sym_flag='-Bexport'
18084         no_entry_flag=""
18085       else
18086         # If we're using GNU nm, then we don't want the "-C" option.
18087         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18088         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18089           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'
18090         else
18091           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'
18092         fi
18093         aix_use_runtimelinking=no
18094
18095         # Test if we are trying to use run time linking or normal
18096         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18097         # need to do runtime linking.
18098         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18099           for ld_flag in $LDFLAGS; do
18100           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18101             aix_use_runtimelinking=yes
18102             break
18103           fi
18104           done
18105         esac
18106
18107         exp_sym_flag='-bexport'
18108         no_entry_flag='-bnoentry'
18109       fi
18110
18111       # When large executables or shared objects are built, AIX ld can
18112       # have problems creating the table of contents.  If linking a library
18113       # or program results in "error TOC overflow" add -mminimal-toc to
18114       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18115       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18116
18117       archive_cmds_GCJ=''
18118       hardcode_direct_GCJ=yes
18119       hardcode_libdir_separator_GCJ=':'
18120       link_all_deplibs_GCJ=yes
18121
18122       if test "$GCC" = yes; then
18123         case $host_os in aix4.012|aix4.012.*)
18124         # We only want to do this on AIX 4.2 and lower, the check
18125         # below for broken collect2 doesn't work under 4.3+
18126           collect2name=`${CC} -print-prog-name=collect2`
18127           if test -f "$collect2name" && \
18128            strings "$collect2name" | grep resolve_lib_name >/dev/null
18129           then
18130           # We have reworked collect2
18131           hardcode_direct_GCJ=yes
18132           else
18133           # We have old collect2
18134           hardcode_direct_GCJ=unsupported
18135           # It fails to find uninstalled libraries when the uninstalled
18136           # path is not listed in the libpath.  Setting hardcode_minus_L
18137           # to unsupported forces relinking
18138           hardcode_minus_L_GCJ=yes
18139           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18140           hardcode_libdir_separator_GCJ=
18141           fi
18142         esac
18143         shared_flag='-shared'
18144       else
18145         # not using gcc
18146         if test "$host_cpu" = ia64; then
18147         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18148         # chokes on -Wl,-G. The following line is correct:
18149           shared_flag='-G'
18150         else
18151         if test "$aix_use_runtimelinking" = yes; then
18152             shared_flag='${wl}-G'
18153           else
18154             shared_flag='${wl}-bM:SRE'
18155         fi
18156         fi
18157       fi
18158
18159       # It seems that -bexpall does not export symbols beginning with
18160       # underscore (_), so it is better to generate a list of symbols to export.
18161       always_export_symbols_GCJ=yes
18162       if test "$aix_use_runtimelinking" = yes; then
18163         # Warning - without using the other runtime loading flags (-brtl),
18164         # -berok will link without error, but may produce a broken library.
18165         allow_undefined_flag_GCJ='-berok'
18166        # Determine the default libpath from the value encoded in an empty executable.
18167        cat >conftest.$ac_ext <<_ACEOF
18168 /* confdefs.h.  */
18169 _ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h.  */
18173
18174 int
18175 main ()
18176 {
18177
18178   ;
18179   return 0;
18180 }
18181 _ACEOF
18182 rm -f conftest.$ac_objext conftest$ac_exeext
18183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18184   (eval $ac_link) 2>conftest.er1
18185   ac_status=$?
18186   grep -v '^ *+' conftest.er1 >conftest.err
18187   rm -f conftest.er1
18188   cat conftest.err >&5
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); } &&
18191          { ac_try='test -z "$ac_c_werror_flag"
18192                          || test ! -s conftest.err'
18193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18194   (eval $ac_try) 2>&5
18195   ac_status=$?
18196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197   (exit $ac_status); }; } &&
18198          { ac_try='test -s conftest$ac_exeext'
18199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200   (eval $ac_try) 2>&5
18201   ac_status=$?
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); }; }; then
18204
18205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18206 }'`
18207 # Check for a 64-bit object if we didn't find anything.
18208 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; }
18209 }'`; fi
18210 else
18211   echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18213
18214 fi
18215 rm -f conftest.err conftest.$ac_objext \
18216       conftest$ac_exeext conftest.$ac_ext
18217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18218
18219        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18220         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"
18221        else
18222         if test "$host_cpu" = ia64; then
18223           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18224           allow_undefined_flag_GCJ="-z nodefs"
18225           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"
18226         else
18227          # Determine the default libpath from the value encoded in an empty executable.
18228          cat >conftest.$ac_ext <<_ACEOF
18229 /* confdefs.h.  */
18230 _ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h.  */
18234
18235 int
18236 main ()
18237 {
18238
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 rm -f conftest.$ac_objext conftest$ac_exeext
18244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18245   (eval $ac_link) 2>conftest.er1
18246   ac_status=$?
18247   grep -v '^ *+' conftest.er1 >conftest.err
18248   rm -f conftest.er1
18249   cat conftest.err >&5
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); } &&
18252          { ac_try='test -z "$ac_c_werror_flag"
18253                          || test ! -s conftest.err'
18254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255   (eval $ac_try) 2>&5
18256   ac_status=$?
18257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); }; } &&
18259          { ac_try='test -s conftest$ac_exeext'
18260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261   (eval $ac_try) 2>&5
18262   ac_status=$?
18263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264   (exit $ac_status); }; }; then
18265
18266 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18267 }'`
18268 # Check for a 64-bit object if we didn't find anything.
18269 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; }
18270 }'`; fi
18271 else
18272   echo "$as_me: failed program was:" >&5
18273 sed 's/^/| /' conftest.$ac_ext >&5
18274
18275 fi
18276 rm -f conftest.err conftest.$ac_objext \
18277       conftest$ac_exeext conftest.$ac_ext
18278 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18279
18280          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18281           # Warning - without using the other run time loading flags,
18282           # -berok will link without error, but may produce a broken library.
18283           no_undefined_flag_GCJ=' ${wl}-bernotok'
18284           allow_undefined_flag_GCJ=' ${wl}-berok'
18285           # -bexpall does not export symbols beginning with underscore (_)
18286           always_export_symbols_GCJ=yes
18287           # Exported symbols can be pulled into shared objects from archives
18288           whole_archive_flag_spec_GCJ=' '
18289           archive_cmds_need_lc_GCJ=yes
18290           # This is similar to how AIX traditionally builds it's shared libraries.
18291           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'
18292         fi
18293       fi
18294       ;;
18295
18296     amigaos*)
18297       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)'
18298       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18299       hardcode_minus_L_GCJ=yes
18300       # see comment about different semantics on the GNU ld section
18301       ld_shlibs_GCJ=no
18302       ;;
18303
18304     bsdi4*)
18305       export_dynamic_flag_spec_GCJ=-rdynamic
18306       ;;
18307
18308     cygwin* | mingw* | pw32*)
18309       # When not using gcc, we currently assume that we are using
18310       # Microsoft Visual C++.
18311       # hardcode_libdir_flag_spec is actually meaningless, as there is
18312       # no search path for DLLs.
18313       hardcode_libdir_flag_spec_GCJ=' '
18314       allow_undefined_flag_GCJ=unsupported
18315       # Tell ltmain to make .lib files, not .a files.
18316       libext=lib
18317       # Tell ltmain to make .dll files, not .so files.
18318       shrext_cmds=".dll"
18319       # FIXME: Setting linknames here is a bad hack.
18320       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18321       # The linker will automatically build a .lib file if we build a DLL.
18322       old_archive_From_new_cmds_GCJ='true'
18323       # FIXME: Should let the user specify the lib program.
18324       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18325       fix_srcfile_path='`cygpath -w "$srcfile"`'
18326       enable_shared_with_static_runtimes_GCJ=yes
18327       ;;
18328
18329     darwin* | rhapsody*)
18330     if test "$GXX" = yes ; then
18331       archive_cmds_need_lc_GCJ=no
18332       case "$host_os" in
18333       rhapsody* | darwin1.[012])
18334         allow_undefined_flag_GCJ='-undefined suppress'
18335         ;;
18336       *) # Darwin 1.3 on
18337       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18338         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18339       else
18340         case ${MACOSX_DEPLOYMENT_TARGET} in
18341           10.[012])
18342             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18343             ;;
18344           10.*)
18345             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
18346             ;;
18347         esac
18348       fi
18349         ;;
18350       esac
18351         lt_int_apple_cc_single_mod=no
18352         output_verbose_link_cmd='echo'
18353         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18354           lt_int_apple_cc_single_mod=yes
18355         fi
18356         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18357           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18358         else
18359         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'
18360       fi
18361       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18362       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18363         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18364           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}'
18365         else
18366           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}'
18367         fi
18368           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}'
18369       hardcode_direct_GCJ=no
18370       hardcode_automatic_GCJ=yes
18371       hardcode_shlibpath_var_GCJ=unsupported
18372       whole_archive_flag_spec_GCJ='-all_load $convenience'
18373       link_all_deplibs_GCJ=yes
18374     else
18375       ld_shlibs_GCJ=no
18376     fi
18377       ;;
18378
18379     dgux*)
18380       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18381       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18382       hardcode_shlibpath_var_GCJ=no
18383       ;;
18384
18385     freebsd1*)
18386       ld_shlibs_GCJ=no
18387       ;;
18388
18389     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18390     # support.  Future versions do this automatically, but an explicit c++rt0.o
18391     # does not break anything, and helps significantly (at the cost of a little
18392     # extra space).
18393     freebsd2.2*)
18394       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18395       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18396       hardcode_direct_GCJ=yes
18397       hardcode_shlibpath_var_GCJ=no
18398       ;;
18399
18400     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18401     freebsd2*)
18402       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18403       hardcode_direct_GCJ=yes
18404       hardcode_minus_L_GCJ=yes
18405       hardcode_shlibpath_var_GCJ=no
18406       ;;
18407
18408     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18409     freebsd* | kfreebsd*-gnu)
18410       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18411       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18412       hardcode_direct_GCJ=yes
18413       hardcode_shlibpath_var_GCJ=no
18414       ;;
18415
18416     hpux9*)
18417       if test "$GCC" = yes; then
18418         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'
18419       else
18420         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'
18421       fi
18422       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18423       hardcode_libdir_separator_GCJ=:
18424       hardcode_direct_GCJ=yes
18425
18426       # hardcode_minus_L: Not really in the search PATH,
18427       # but as the default location of the library.
18428       hardcode_minus_L_GCJ=yes
18429       export_dynamic_flag_spec_GCJ='${wl}-E'
18430       ;;
18431
18432     hpux10* | hpux11*)
18433       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18434         case "$host_cpu" in
18435         hppa*64*|ia64*)
18436           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18437           ;;
18438         *)
18439           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18440           ;;
18441         esac
18442       else
18443         case "$host_cpu" in
18444         hppa*64*|ia64*)
18445           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18446           ;;
18447         *)
18448           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18449           ;;
18450         esac
18451       fi
18452       if test "$with_gnu_ld" = no; then
18453         case "$host_cpu" in
18454         hppa*64*)
18455           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18456           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18457           hardcode_libdir_separator_GCJ=:
18458           hardcode_direct_GCJ=no
18459           hardcode_shlibpath_var_GCJ=no
18460           ;;
18461         ia64*)
18462           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18463           hardcode_direct_GCJ=no
18464           hardcode_shlibpath_var_GCJ=no
18465
18466           # hardcode_minus_L: Not really in the search PATH,
18467           # but as the default location of the library.
18468           hardcode_minus_L_GCJ=yes
18469           ;;
18470         *)
18471           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18472           hardcode_libdir_separator_GCJ=:
18473           hardcode_direct_GCJ=yes
18474           export_dynamic_flag_spec_GCJ='${wl}-E'
18475
18476           # hardcode_minus_L: Not really in the search PATH,
18477           # but as the default location of the library.
18478           hardcode_minus_L_GCJ=yes
18479           ;;
18480         esac
18481       fi
18482       ;;
18483
18484     irix5* | irix6* | nonstopux*)
18485       if test "$GCC" = yes; then
18486         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'
18487       else
18488         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'
18489         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18490       fi
18491       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18492       hardcode_libdir_separator_GCJ=:
18493       link_all_deplibs_GCJ=yes
18494       ;;
18495
18496     netbsd*)
18497       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18498         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18499       else
18500         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18501       fi
18502       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18503       hardcode_direct_GCJ=yes
18504       hardcode_shlibpath_var_GCJ=no
18505       ;;
18506
18507     newsos6)
18508       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18509       hardcode_direct_GCJ=yes
18510       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18511       hardcode_libdir_separator_GCJ=:
18512       hardcode_shlibpath_var_GCJ=no
18513       ;;
18514
18515     openbsd*)
18516       hardcode_direct_GCJ=yes
18517       hardcode_shlibpath_var_GCJ=no
18518       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18519         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18520         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18521         export_dynamic_flag_spec_GCJ='${wl}-E'
18522       else
18523        case $host_os in
18524          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18525            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18526            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18527            ;;
18528          *)
18529            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18530            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18531            ;;
18532        esac
18533       fi
18534       ;;
18535
18536     os2*)
18537       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18538       hardcode_minus_L_GCJ=yes
18539       allow_undefined_flag_GCJ=unsupported
18540       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'
18541       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18542       ;;
18543
18544     osf3*)
18545       if test "$GCC" = yes; then
18546         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18547         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'
18548       else
18549         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18550         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'
18551       fi
18552       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18553       hardcode_libdir_separator_GCJ=:
18554       ;;
18555
18556     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18557       if test "$GCC" = yes; then
18558         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18559         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'
18560         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18561       else
18562         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18563         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'
18564         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~
18565         $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'
18566
18567         # Both c and cxx compiler support -rpath directly
18568         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18569       fi
18570       hardcode_libdir_separator_GCJ=:
18571       ;;
18572
18573     sco3.2v5*)
18574       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18575       hardcode_shlibpath_var_GCJ=no
18576       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18577       runpath_var=LD_RUN_PATH
18578       hardcode_runpath_var=yes
18579       ;;
18580
18581     solaris*)
18582       no_undefined_flag_GCJ=' -z text'
18583       if test "$GCC" = yes; then
18584         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18585         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18586           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18587       else
18588         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18589         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18590         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18591       fi
18592       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18593       hardcode_shlibpath_var_GCJ=no
18594       case $host_os in
18595       solaris2.[0-5] | solaris2.[0-5].*) ;;
18596       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18597         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18598       esac
18599       link_all_deplibs_GCJ=yes
18600       ;;
18601
18602     sunos4*)
18603       if test "x$host_vendor" = xsequent; then
18604         # Use $CC to link under sequent, because it throws in some extra .o
18605         # files that make .init and .fini sections work.
18606         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18607       else
18608         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18609       fi
18610       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18611       hardcode_direct_GCJ=yes
18612       hardcode_minus_L_GCJ=yes
18613       hardcode_shlibpath_var_GCJ=no
18614       ;;
18615
18616     sysv4)
18617       case $host_vendor in
18618         sni)
18619           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18620           hardcode_direct_GCJ=yes # is this really true???
18621         ;;
18622         siemens)
18623           ## LD is ld it makes a PLAMLIB
18624           ## CC just makes a GrossModule.
18625           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18626           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18627           hardcode_direct_GCJ=no
18628         ;;
18629         motorola)
18630           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18631           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18632         ;;
18633       esac
18634       runpath_var='LD_RUN_PATH'
18635       hardcode_shlibpath_var_GCJ=no
18636       ;;
18637
18638     sysv4.3*)
18639       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18640       hardcode_shlibpath_var_GCJ=no
18641       export_dynamic_flag_spec_GCJ='-Bexport'
18642       ;;
18643
18644     sysv4*MP*)
18645       if test -d /usr/nec; then
18646         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18647         hardcode_shlibpath_var_GCJ=no
18648         runpath_var=LD_RUN_PATH
18649         hardcode_runpath_var=yes
18650         ld_shlibs_GCJ=yes
18651       fi
18652       ;;
18653
18654     sysv4.2uw2*)
18655       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18656       hardcode_direct_GCJ=yes
18657       hardcode_minus_L_GCJ=no
18658       hardcode_shlibpath_var_GCJ=no
18659       hardcode_runpath_var=yes
18660       runpath_var=LD_RUN_PATH
18661       ;;
18662
18663    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18664       no_undefined_flag_GCJ='${wl}-z ${wl}text'
18665       if test "$GCC" = yes; then
18666         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18667       else
18668         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18669       fi
18670       runpath_var='LD_RUN_PATH'
18671       hardcode_shlibpath_var_GCJ=no
18672       ;;
18673
18674     sysv5*)
18675       no_undefined_flag_GCJ=' -z text'
18676       # $CC -shared without GNU ld will not create a library from C++
18677       # object files and a static libstdc++, better avoid it by now
18678       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18679       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18680                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18681       hardcode_libdir_flag_spec_GCJ=
18682       hardcode_shlibpath_var_GCJ=no
18683       runpath_var='LD_RUN_PATH'
18684       ;;
18685
18686     uts4*)
18687       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18688       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18689       hardcode_shlibpath_var_GCJ=no
18690       ;;
18691
18692     *)
18693       ld_shlibs_GCJ=no
18694       ;;
18695     esac
18696   fi
18697
18698 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18699 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18700 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18701
18702 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18703 if test "$GCC" = yes; then
18704   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18705 fi
18706
18707 #
18708 # Do we need to explicitly link libc?
18709 #
18710 case "x$archive_cmds_need_lc_GCJ" in
18711 x|xyes)
18712   # Assume -lc should be added
18713   archive_cmds_need_lc_GCJ=yes
18714
18715   if test "$enable_shared" = yes && test "$GCC" = yes; then
18716     case $archive_cmds_GCJ in
18717     *'~'*)
18718       # FIXME: we may have to deal with multi-command sequences.
18719       ;;
18720     '$CC '*)
18721       # Test whether the compiler implicitly links with -lc since on some
18722       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18723       # to ld, don't add -lc before -lgcc.
18724       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18725 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18726       $rm conftest*
18727       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18728
18729       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18730   (eval $ac_compile) 2>&5
18731   ac_status=$?
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); } 2>conftest.err; then
18734         soname=conftest
18735         lib=conftest
18736         libobjs=conftest.$ac_objext
18737         deplibs=
18738         wl=$lt_prog_compiler_wl_GCJ
18739         compiler_flags=-v
18740         linker_flags=-v
18741         verstring=
18742         output_objdir=.
18743         libname=conftest
18744         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18745         allow_undefined_flag_GCJ=
18746         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18747   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18748   ac_status=$?
18749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750   (exit $ac_status); }
18751         then
18752           archive_cmds_need_lc_GCJ=no
18753         else
18754           archive_cmds_need_lc_GCJ=yes
18755         fi
18756         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18757       else
18758         cat conftest.err 1>&5
18759       fi
18760       $rm conftest*
18761       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18762 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18763       ;;
18764     esac
18765   fi
18766   ;;
18767 esac
18768
18769 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18770 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18771 library_names_spec=
18772 libname_spec='lib$name'
18773 soname_spec=
18774 shrext_cmds=".so"
18775 postinstall_cmds=
18776 postuninstall_cmds=
18777 finish_cmds=
18778 finish_eval=
18779 shlibpath_var=
18780 shlibpath_overrides_runpath=unknown
18781 version_type=none
18782 dynamic_linker="$host_os ld.so"
18783 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18784 if test "$GCC" = yes; then
18785   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18786   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18787     # if the path contains ";" then we assume it to be the separator
18788     # otherwise default to the standard path separator (i.e. ":") - it is
18789     # assumed that no part of a normal pathname contains ";" but that should
18790     # okay in the real world where ";" in dirpaths is itself problematic.
18791     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18792   else
18793     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18794   fi
18795 else
18796   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18797 fi
18798 need_lib_prefix=unknown
18799 hardcode_into_libs=no
18800
18801 # when you set need_version to no, make sure it does not cause -set_version
18802 # flags to be left without arguments
18803 need_version=unknown
18804
18805 case $host_os in
18806 aix3*)
18807   version_type=linux
18808   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18809   shlibpath_var=LIBPATH
18810
18811   # AIX 3 has no versioning support, so we append a major version to the name.
18812   soname_spec='${libname}${release}${shared_ext}$major'
18813   ;;
18814
18815 aix4* | aix5*)
18816   version_type=linux
18817   need_lib_prefix=no
18818   need_version=no
18819   hardcode_into_libs=yes
18820   if test "$host_cpu" = ia64; then
18821     # AIX 5 supports IA64
18822     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18823     shlibpath_var=LD_LIBRARY_PATH
18824   else
18825     # With GCC up to 2.95.x, collect2 would create an import file
18826     # for dependence libraries.  The import file would start with
18827     # the line `#! .'.  This would cause the generated library to
18828     # depend on `.', always an invalid library.  This was fixed in
18829     # development snapshots of GCC prior to 3.0.
18830     case $host_os in
18831       aix4 | aix4.[01] | aix4.[01].*)
18832       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18833            echo ' yes '
18834            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18835         :
18836       else
18837         can_build_shared=no
18838       fi
18839       ;;
18840     esac
18841     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18842     # soname into executable. Probably we can add versioning support to
18843     # collect2, so additional links can be useful in future.
18844     if test "$aix_use_runtimelinking" = yes; then
18845       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18846       # instead of lib<name>.a to let people know that these are not
18847       # typical AIX shared libraries.
18848       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18849     else
18850       # We preserve .a as extension for shared libraries through AIX4.2
18851       # and later when we are not doing run time linking.
18852       library_names_spec='${libname}${release}.a $libname.a'
18853       soname_spec='${libname}${release}${shared_ext}$major'
18854     fi
18855     shlibpath_var=LIBPATH
18856   fi
18857   ;;
18858
18859 amigaos*)
18860   library_names_spec='$libname.ixlibrary $libname.a'
18861   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18862   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'
18863   ;;
18864
18865 beos*)
18866   library_names_spec='${libname}${shared_ext}'
18867   dynamic_linker="$host_os ld.so"
18868   shlibpath_var=LIBRARY_PATH
18869   ;;
18870
18871 bsdi4*)
18872   version_type=linux
18873   need_version=no
18874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18875   soname_spec='${libname}${release}${shared_ext}$major'
18876   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18877   shlibpath_var=LD_LIBRARY_PATH
18878   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18879   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18880   # the default ld.so.conf also contains /usr/contrib/lib and
18881   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18882   # libtool to hard-code these into programs
18883   ;;
18884
18885 cygwin* | mingw* | pw32*)
18886   version_type=windows
18887   shrext_cmds=".dll"
18888   need_version=no
18889   need_lib_prefix=no
18890
18891   case $GCC,$host_os in
18892   yes,cygwin* | yes,mingw* | yes,pw32*)
18893     library_names_spec='$libname.dll.a'
18894     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18895     postinstall_cmds='base_file=`basename \${file}`~
18896       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18897       dldir=$destdir/`dirname \$dlpath`~
18898       test -d \$dldir || mkdir -p \$dldir~
18899       $install_prog $dir/$dlname \$dldir/$dlname'
18900     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18901       dlpath=$dir/\$dldll~
18902        $rm \$dlpath'
18903     shlibpath_overrides_runpath=yes
18904
18905     case $host_os in
18906     cygwin*)
18907       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18908       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18909       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18910       ;;
18911     mingw*)
18912       # MinGW DLLs use traditional 'lib' prefix
18913       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18914       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18915       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18916         # It is most probably a Windows format PATH printed by
18917         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18918         # path with ; separators, and with drive letters. We can handle the
18919         # drive letters (cygwin fileutils understands them), so leave them,
18920         # especially as we might pass files found there to a mingw objdump,
18921         # which wouldn't understand a cygwinified path. Ahh.
18922         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18923       else
18924         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18925       fi
18926       ;;
18927     pw32*)
18928       # pw32 DLLs use 'pw' prefix rather than 'lib'
18929       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18930       ;;
18931     esac
18932     ;;
18933
18934   *)
18935     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18936     ;;
18937   esac
18938   dynamic_linker='Win32 ld.exe'
18939   # FIXME: first we should search . and the directory the executable is in
18940   shlibpath_var=PATH
18941   ;;
18942
18943 darwin* | rhapsody*)
18944   dynamic_linker="$host_os dyld"
18945   version_type=darwin
18946   need_lib_prefix=no
18947   need_version=no
18948   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18949   soname_spec='${libname}${release}${major}$shared_ext'
18950   shlibpath_overrides_runpath=yes
18951   shlibpath_var=DYLD_LIBRARY_PATH
18952   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18953   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18954   if test "$GCC" = yes; then
18955     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"`
18956   else
18957     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18958   fi
18959   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18960   ;;
18961
18962 dgux*)
18963   version_type=linux
18964   need_lib_prefix=no
18965   need_version=no
18966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18967   soname_spec='${libname}${release}${shared_ext}$major'
18968   shlibpath_var=LD_LIBRARY_PATH
18969   ;;
18970
18971 freebsd1*)
18972   dynamic_linker=no
18973   ;;
18974
18975 kfreebsd*-gnu)
18976   version_type=linux
18977   need_lib_prefix=no
18978   need_version=no
18979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18980   soname_spec='${libname}${release}${shared_ext}$major'
18981   shlibpath_var=LD_LIBRARY_PATH
18982   shlibpath_overrides_runpath=no
18983   hardcode_into_libs=yes
18984   dynamic_linker='GNU ld.so'
18985   ;;
18986
18987 freebsd*)
18988   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18989   version_type=freebsd-$objformat
18990   case $version_type in
18991     freebsd-elf*)
18992       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18993       need_version=no
18994       need_lib_prefix=no
18995       ;;
18996     freebsd-*)
18997       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18998       need_version=yes
18999       ;;
19000   esac
19001   shlibpath_var=LD_LIBRARY_PATH
19002   case $host_os in
19003   freebsd2*)
19004     shlibpath_overrides_runpath=yes
19005     ;;
19006   freebsd3.01* | freebsdelf3.01*)
19007     shlibpath_overrides_runpath=yes
19008     hardcode_into_libs=yes
19009     ;;
19010   *) # from 3.2 on
19011     shlibpath_overrides_runpath=no
19012     hardcode_into_libs=yes
19013     ;;
19014   esac
19015   ;;
19016
19017 gnu*)
19018   version_type=linux
19019   need_lib_prefix=no
19020   need_version=no
19021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19022   soname_spec='${libname}${release}${shared_ext}$major'
19023   shlibpath_var=LD_LIBRARY_PATH
19024   hardcode_into_libs=yes
19025   ;;
19026
19027 hpux9* | hpux10* | hpux11*)
19028   # Give a soname corresponding to the major version so that dld.sl refuses to
19029   # link against other versions.
19030   version_type=sunos
19031   need_lib_prefix=no
19032   need_version=no
19033   case "$host_cpu" in
19034   ia64*)
19035     shrext_cmds='.so'
19036     hardcode_into_libs=yes
19037     dynamic_linker="$host_os dld.so"
19038     shlibpath_var=LD_LIBRARY_PATH
19039     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19040     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19041     soname_spec='${libname}${release}${shared_ext}$major'
19042     if test "X$HPUX_IA64_MODE" = X32; then
19043       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19044     else
19045       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19046     fi
19047     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19048     ;;
19049    hppa*64*)
19050      shrext_cmds='.sl'
19051      hardcode_into_libs=yes
19052      dynamic_linker="$host_os dld.sl"
19053      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19054      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19055      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19056      soname_spec='${libname}${release}${shared_ext}$major'
19057      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19058      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19059      ;;
19060    *)
19061     shrext_cmds='.sl'
19062     dynamic_linker="$host_os dld.sl"
19063     shlibpath_var=SHLIB_PATH
19064     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19066     soname_spec='${libname}${release}${shared_ext}$major'
19067     ;;
19068   esac
19069   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19070   postinstall_cmds='chmod 555 $lib'
19071   ;;
19072
19073 irix5* | irix6* | nonstopux*)
19074   case $host_os in
19075     nonstopux*) version_type=nonstopux ;;
19076     *)
19077         if test "$lt_cv_prog_gnu_ld" = yes; then
19078                 version_type=linux
19079         else
19080                 version_type=irix
19081         fi ;;
19082   esac
19083   need_lib_prefix=no
19084   need_version=no
19085   soname_spec='${libname}${release}${shared_ext}$major'
19086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19087   case $host_os in
19088   irix5* | nonstopux*)
19089     libsuff= shlibsuff=
19090     ;;
19091   *)
19092     case $LD in # libtool.m4 will add one of these switches to LD
19093     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19094       libsuff= shlibsuff= libmagic=32-bit;;
19095     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19096       libsuff=32 shlibsuff=N32 libmagic=N32;;
19097     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19098       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19099     *) libsuff= shlibsuff= libmagic=never-match;;
19100     esac
19101     ;;
19102   esac
19103   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19104   shlibpath_overrides_runpath=no
19105   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19106   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19107   hardcode_into_libs=yes
19108   ;;
19109
19110 # No shared lib support for Linux oldld, aout, or coff.
19111 linux*oldld* | linux*aout* | linux*coff*)
19112   dynamic_linker=no
19113   ;;
19114
19115 # This must be Linux ELF.
19116 linux*)
19117   version_type=linux
19118   need_lib_prefix=no
19119   need_version=no
19120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19121   soname_spec='${libname}${release}${shared_ext}$major'
19122   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19123   shlibpath_var=LD_LIBRARY_PATH
19124   shlibpath_overrides_runpath=no
19125   # This implies no fast_install, which is unacceptable.
19126   # Some rework will be needed to allow for fast_install
19127   # before this can be enabled.
19128   hardcode_into_libs=yes
19129
19130   # find out which ABI we are using
19131   libsuff=
19132   case "$host_cpu" in
19133   x86_64*|s390x*|powerpc64*)
19134     echo '#line 19134 "configure"' > conftest.$ac_ext
19135     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19136   (eval $ac_compile) 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); }; then
19140       case `/usr/bin/file conftest.$ac_objext` in
19141       *64-bit*)
19142         libsuff=64
19143         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19144         ;;
19145       esac
19146     fi
19147     rm -rf conftest*
19148     ;;
19149   esac
19150
19151   # Append ld.so.conf contents to the search path
19152   if test -f /etc/ld.so.conf; then
19153     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19154     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19155   fi
19156
19157   # We used to test for /lib/ld.so.1 and disable shared libraries on
19158   # powerpc, because MkLinux only supported shared libraries with the
19159   # GNU dynamic linker.  Since this was broken with cross compilers,
19160   # most powerpc-linux boxes support dynamic linking these days and
19161   # people can always --disable-shared, the test was removed, and we
19162   # assume the GNU/Linux dynamic linker is in use.
19163   dynamic_linker='GNU/Linux ld.so'
19164   ;;
19165
19166 knetbsd*-gnu)
19167   version_type=linux
19168   need_lib_prefix=no
19169   need_version=no
19170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19171   soname_spec='${libname}${release}${shared_ext}$major'
19172   shlibpath_var=LD_LIBRARY_PATH
19173   shlibpath_overrides_runpath=no
19174   hardcode_into_libs=yes
19175   dynamic_linker='GNU ld.so'
19176   ;;
19177
19178 netbsd*)
19179   version_type=sunos
19180   need_lib_prefix=no
19181   need_version=no
19182   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19184     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19185     dynamic_linker='NetBSD (a.out) ld.so'
19186   else
19187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19188     soname_spec='${libname}${release}${shared_ext}$major'
19189     dynamic_linker='NetBSD ld.elf_so'
19190   fi
19191   shlibpath_var=LD_LIBRARY_PATH
19192   shlibpath_overrides_runpath=yes
19193   hardcode_into_libs=yes
19194   ;;
19195
19196 newsos6)
19197   version_type=linux
19198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19199   shlibpath_var=LD_LIBRARY_PATH
19200   shlibpath_overrides_runpath=yes
19201   ;;
19202
19203 nto-qnx*)
19204   version_type=linux
19205   need_lib_prefix=no
19206   need_version=no
19207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19208   soname_spec='${libname}${release}${shared_ext}$major'
19209   shlibpath_var=LD_LIBRARY_PATH
19210   shlibpath_overrides_runpath=yes
19211   ;;
19212
19213 openbsd*)
19214   version_type=sunos
19215   need_lib_prefix=no
19216   need_version=yes
19217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19218   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19219   shlibpath_var=LD_LIBRARY_PATH
19220   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19221     case $host_os in
19222       openbsd2.[89] | openbsd2.[89].*)
19223         shlibpath_overrides_runpath=no
19224         ;;
19225       *)
19226         shlibpath_overrides_runpath=yes
19227         ;;
19228       esac
19229   else
19230     shlibpath_overrides_runpath=yes
19231   fi
19232   ;;
19233
19234 os2*)
19235   libname_spec='$name'
19236   shrext_cmds=".dll"
19237   need_lib_prefix=no
19238   library_names_spec='$libname${shared_ext} $libname.a'
19239   dynamic_linker='OS/2 ld.exe'
19240   shlibpath_var=LIBPATH
19241   ;;
19242
19243 osf3* | osf4* | osf5*)
19244   version_type=osf
19245   need_lib_prefix=no
19246   need_version=no
19247   soname_spec='${libname}${release}${shared_ext}$major'
19248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19249   shlibpath_var=LD_LIBRARY_PATH
19250   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19251   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19252   ;;
19253
19254 sco3.2v5*)
19255   version_type=osf
19256   soname_spec='${libname}${release}${shared_ext}$major'
19257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19258   shlibpath_var=LD_LIBRARY_PATH
19259   ;;
19260
19261 solaris*)
19262   version_type=linux
19263   need_lib_prefix=no
19264   need_version=no
19265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19266   soname_spec='${libname}${release}${shared_ext}$major'
19267   shlibpath_var=LD_LIBRARY_PATH
19268   shlibpath_overrides_runpath=yes
19269   hardcode_into_libs=yes
19270   # ldd complains unless libraries are executable
19271   postinstall_cmds='chmod +x $lib'
19272   ;;
19273
19274 sunos4*)
19275   version_type=sunos
19276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19277   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19278   shlibpath_var=LD_LIBRARY_PATH
19279   shlibpath_overrides_runpath=yes
19280   if test "$with_gnu_ld" = yes; then
19281     need_lib_prefix=no
19282   fi
19283   need_version=yes
19284   ;;
19285
19286 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19287   version_type=linux
19288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19289   soname_spec='${libname}${release}${shared_ext}$major'
19290   shlibpath_var=LD_LIBRARY_PATH
19291   case $host_vendor in
19292     sni)
19293       shlibpath_overrides_runpath=no
19294       need_lib_prefix=no
19295       export_dynamic_flag_spec='${wl}-Blargedynsym'
19296       runpath_var=LD_RUN_PATH
19297       ;;
19298     siemens)
19299       need_lib_prefix=no
19300       ;;
19301     motorola)
19302       need_lib_prefix=no
19303       need_version=no
19304       shlibpath_overrides_runpath=no
19305       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19306       ;;
19307   esac
19308   ;;
19309
19310 sysv4*MP*)
19311   if test -d /usr/nec ;then
19312     version_type=linux
19313     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19314     soname_spec='$libname${shared_ext}.$major'
19315     shlibpath_var=LD_LIBRARY_PATH
19316   fi
19317   ;;
19318
19319 uts4*)
19320   version_type=linux
19321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19322   soname_spec='${libname}${release}${shared_ext}$major'
19323   shlibpath_var=LD_LIBRARY_PATH
19324   ;;
19325
19326 *)
19327   dynamic_linker=no
19328   ;;
19329 esac
19330 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19331 echo "${ECHO_T}$dynamic_linker" >&6
19332 test "$dynamic_linker" = no && can_build_shared=no
19333
19334 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19335 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19336 hardcode_action_GCJ=
19337 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19338    test -n "$runpath_var GCJ" || \
19339    test "X$hardcode_automatic_GCJ"="Xyes" ; then
19340
19341   # We can hardcode non-existant directories.
19342   if test "$hardcode_direct_GCJ" != no &&
19343      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19344      # have to relink, otherwise we might link with an installed library
19345      # when we should be linking with a yet-to-be-installed one
19346      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19347      test "$hardcode_minus_L_GCJ" != no; then
19348     # Linking always hardcodes the temporary library directory.
19349     hardcode_action_GCJ=relink
19350   else
19351     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19352     hardcode_action_GCJ=immediate
19353   fi
19354 else
19355   # We cannot hardcode anything, or else we can only hardcode existing
19356   # directories.
19357   hardcode_action_GCJ=unsupported
19358 fi
19359 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19360 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19361
19362 if test "$hardcode_action_GCJ" = relink; then
19363   # Fast installation is not supported
19364   enable_fast_install=no
19365 elif test "$shlibpath_overrides_runpath" = yes ||
19366      test "$enable_shared" = no; then
19367   # Fast installation is not necessary
19368   enable_fast_install=needless
19369 fi
19370
19371 striplib=
19372 old_striplib=
19373 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19374 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19375 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19376   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19377   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19378   echo "$as_me:$LINENO: result: yes" >&5
19379 echo "${ECHO_T}yes" >&6
19380 else
19381 # FIXME - insert some real tests, host_os isn't really good enough
19382   case $host_os in
19383    darwin*)
19384        if test -n "$STRIP" ; then
19385          striplib="$STRIP -x"
19386          echo "$as_me:$LINENO: result: yes" >&5
19387 echo "${ECHO_T}yes" >&6
19388        else
19389   echo "$as_me:$LINENO: result: no" >&5
19390 echo "${ECHO_T}no" >&6
19391 fi
19392        ;;
19393    *)
19394   echo "$as_me:$LINENO: result: no" >&5
19395 echo "${ECHO_T}no" >&6
19396     ;;
19397   esac
19398 fi
19399
19400 if test "x$enable_dlopen" != xyes; then
19401   enable_dlopen=unknown
19402   enable_dlopen_self=unknown
19403   enable_dlopen_self_static=unknown
19404 else
19405   lt_cv_dlopen=no
19406   lt_cv_dlopen_libs=
19407
19408   case $host_os in
19409   beos*)
19410     lt_cv_dlopen="load_add_on"
19411     lt_cv_dlopen_libs=
19412     lt_cv_dlopen_self=yes
19413     ;;
19414
19415   mingw* | pw32*)
19416     lt_cv_dlopen="LoadLibrary"
19417     lt_cv_dlopen_libs=
19418    ;;
19419
19420   cygwin*)
19421     lt_cv_dlopen="dlopen"
19422     lt_cv_dlopen_libs=
19423    ;;
19424
19425   darwin*)
19426   # if libdl is installed we need to link against it
19427     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19428 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19429 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19430   echo $ECHO_N "(cached) $ECHO_C" >&6
19431 else
19432   ac_check_lib_save_LIBS=$LIBS
19433 LIBS="-ldl  $LIBS"
19434 cat >conftest.$ac_ext <<_ACEOF
19435 /* confdefs.h.  */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h.  */
19440
19441 /* Override any gcc2 internal prototype to avoid an error.  */
19442 #ifdef __cplusplus
19443 extern "C"
19444 #endif
19445 /* We use char because int might match the return type of a gcc2
19446    builtin and then its argument prototype would still apply.  */
19447 char dlopen ();
19448 int
19449 main ()
19450 {
19451 dlopen ();
19452   ;
19453   return 0;
19454 }
19455 _ACEOF
19456 rm -f conftest.$ac_objext conftest$ac_exeext
19457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19458   (eval $ac_link) 2>conftest.er1
19459   ac_status=$?
19460   grep -v '^ *+' conftest.er1 >conftest.err
19461   rm -f conftest.er1
19462   cat conftest.err >&5
19463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464   (exit $ac_status); } &&
19465          { ac_try='test -z "$ac_c_werror_flag"
19466                          || test ! -s conftest.err'
19467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468   (eval $ac_try) 2>&5
19469   ac_status=$?
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); }; } &&
19472          { ac_try='test -s conftest$ac_exeext'
19473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474   (eval $ac_try) 2>&5
19475   ac_status=$?
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); }; }; then
19478   ac_cv_lib_dl_dlopen=yes
19479 else
19480   echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483 ac_cv_lib_dl_dlopen=no
19484 fi
19485 rm -f conftest.err conftest.$ac_objext \
19486       conftest$ac_exeext conftest.$ac_ext
19487 LIBS=$ac_check_lib_save_LIBS
19488 fi
19489 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19490 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19491 if test $ac_cv_lib_dl_dlopen = yes; then
19492   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19493 else
19494
19495     lt_cv_dlopen="dyld"
19496     lt_cv_dlopen_libs=
19497     lt_cv_dlopen_self=yes
19498
19499 fi
19500
19501    ;;
19502
19503   *)
19504     echo "$as_me:$LINENO: checking for shl_load" >&5
19505 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19506 if test "${ac_cv_func_shl_load+set}" = set; then
19507   echo $ECHO_N "(cached) $ECHO_C" >&6
19508 else
19509   cat >conftest.$ac_ext <<_ACEOF
19510 /* confdefs.h.  */
19511 _ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h.  */
19515 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19517 #define shl_load innocuous_shl_load
19518
19519 /* System header to define __stub macros and hopefully few prototypes,
19520     which can conflict with char shl_load (); below.
19521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19522     <limits.h> exists even on freestanding compilers.  */
19523
19524 #ifdef __STDC__
19525 # include <limits.h>
19526 #else
19527 # include <assert.h>
19528 #endif
19529
19530 #undef shl_load
19531
19532 /* Override any gcc2 internal prototype to avoid an error.  */
19533 #ifdef __cplusplus
19534 extern "C"
19535 {
19536 #endif
19537 /* We use char because int might match the return type of a gcc2
19538    builtin and then its argument prototype would still apply.  */
19539 char shl_load ();
19540 /* The GNU C library defines this for functions which it implements
19541     to always fail with ENOSYS.  Some functions are actually named
19542     something starting with __ and the normal name is an alias.  */
19543 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19544 choke me
19545 #else
19546 char (*f) () = shl_load;
19547 #endif
19548 #ifdef __cplusplus
19549 }
19550 #endif
19551
19552 int
19553 main ()
19554 {
19555 return f != shl_load;
19556   ;
19557   return 0;
19558 }
19559 _ACEOF
19560 rm -f conftest.$ac_objext conftest$ac_exeext
19561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19562   (eval $ac_link) 2>conftest.er1
19563   ac_status=$?
19564   grep -v '^ *+' conftest.er1 >conftest.err
19565   rm -f conftest.er1
19566   cat conftest.err >&5
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); } &&
19569          { ac_try='test -z "$ac_c_werror_flag"
19570                          || test ! -s conftest.err'
19571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572   (eval $ac_try) 2>&5
19573   ac_status=$?
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); }; } &&
19576          { ac_try='test -s conftest$ac_exeext'
19577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578   (eval $ac_try) 2>&5
19579   ac_status=$?
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); }; }; then
19582   ac_cv_func_shl_load=yes
19583 else
19584   echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19586
19587 ac_cv_func_shl_load=no
19588 fi
19589 rm -f conftest.err conftest.$ac_objext \
19590       conftest$ac_exeext conftest.$ac_ext
19591 fi
19592 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19593 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19594 if test $ac_cv_func_shl_load = yes; then
19595   lt_cv_dlopen="shl_load"
19596 else
19597   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19598 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19599 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19600   echo $ECHO_N "(cached) $ECHO_C" >&6
19601 else
19602   ac_check_lib_save_LIBS=$LIBS
19603 LIBS="-ldld  $LIBS"
19604 cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h.  */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h.  */
19610
19611 /* Override any gcc2 internal prototype to avoid an error.  */
19612 #ifdef __cplusplus
19613 extern "C"
19614 #endif
19615 /* We use char because int might match the return type of a gcc2
19616    builtin and then its argument prototype would still apply.  */
19617 char shl_load ();
19618 int
19619 main ()
19620 {
19621 shl_load ();
19622   ;
19623   return 0;
19624 }
19625 _ACEOF
19626 rm -f conftest.$ac_objext conftest$ac_exeext
19627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19628   (eval $ac_link) 2>conftest.er1
19629   ac_status=$?
19630   grep -v '^ *+' conftest.er1 >conftest.err
19631   rm -f conftest.er1
19632   cat conftest.err >&5
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); } &&
19635          { ac_try='test -z "$ac_c_werror_flag"
19636                          || test ! -s conftest.err'
19637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638   (eval $ac_try) 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; } &&
19642          { ac_try='test -s conftest$ac_exeext'
19643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644   (eval $ac_try) 2>&5
19645   ac_status=$?
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); }; }; then
19648   ac_cv_lib_dld_shl_load=yes
19649 else
19650   echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653 ac_cv_lib_dld_shl_load=no
19654 fi
19655 rm -f conftest.err conftest.$ac_objext \
19656       conftest$ac_exeext conftest.$ac_ext
19657 LIBS=$ac_check_lib_save_LIBS
19658 fi
19659 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19660 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19661 if test $ac_cv_lib_dld_shl_load = yes; then
19662   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19663 else
19664   echo "$as_me:$LINENO: checking for dlopen" >&5
19665 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19666 if test "${ac_cv_func_dlopen+set}" = set; then
19667   echo $ECHO_N "(cached) $ECHO_C" >&6
19668 else
19669   cat >conftest.$ac_ext <<_ACEOF
19670 /* confdefs.h.  */
19671 _ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h.  */
19675 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19677 #define dlopen innocuous_dlopen
19678
19679 /* System header to define __stub macros and hopefully few prototypes,
19680     which can conflict with char dlopen (); below.
19681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19682     <limits.h> exists even on freestanding compilers.  */
19683
19684 #ifdef __STDC__
19685 # include <limits.h>
19686 #else
19687 # include <assert.h>
19688 #endif
19689
19690 #undef dlopen
19691
19692 /* Override any gcc2 internal prototype to avoid an error.  */
19693 #ifdef __cplusplus
19694 extern "C"
19695 {
19696 #endif
19697 /* We use char because int might match the return type of a gcc2
19698    builtin and then its argument prototype would still apply.  */
19699 char dlopen ();
19700 /* The GNU C library defines this for functions which it implements
19701     to always fail with ENOSYS.  Some functions are actually named
19702     something starting with __ and the normal name is an alias.  */
19703 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19704 choke me
19705 #else
19706 char (*f) () = dlopen;
19707 #endif
19708 #ifdef __cplusplus
19709 }
19710 #endif
19711
19712 int
19713 main ()
19714 {
19715 return f != dlopen;
19716   ;
19717   return 0;
19718 }
19719 _ACEOF
19720 rm -f conftest.$ac_objext conftest$ac_exeext
19721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19722   (eval $ac_link) 2>conftest.er1
19723   ac_status=$?
19724   grep -v '^ *+' conftest.er1 >conftest.err
19725   rm -f conftest.er1
19726   cat conftest.err >&5
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); } &&
19729          { ac_try='test -z "$ac_c_werror_flag"
19730                          || test ! -s conftest.err'
19731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732   (eval $ac_try) 2>&5
19733   ac_status=$?
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); }; } &&
19736          { ac_try='test -s conftest$ac_exeext'
19737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738   (eval $ac_try) 2>&5
19739   ac_status=$?
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); }; }; then
19742   ac_cv_func_dlopen=yes
19743 else
19744   echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747 ac_cv_func_dlopen=no
19748 fi
19749 rm -f conftest.err conftest.$ac_objext \
19750       conftest$ac_exeext conftest.$ac_ext
19751 fi
19752 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19753 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19754 if test $ac_cv_func_dlopen = yes; then
19755   lt_cv_dlopen="dlopen"
19756 else
19757   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19758 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19759 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19760   echo $ECHO_N "(cached) $ECHO_C" >&6
19761 else
19762   ac_check_lib_save_LIBS=$LIBS
19763 LIBS="-ldl  $LIBS"
19764 cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h.  */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h.  */
19770
19771 /* Override any gcc2 internal prototype to avoid an error.  */
19772 #ifdef __cplusplus
19773 extern "C"
19774 #endif
19775 /* We use char because int might match the return type of a gcc2
19776    builtin and then its argument prototype would still apply.  */
19777 char dlopen ();
19778 int
19779 main ()
19780 {
19781 dlopen ();
19782   ;
19783   return 0;
19784 }
19785 _ACEOF
19786 rm -f conftest.$ac_objext conftest$ac_exeext
19787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19788   (eval $ac_link) 2>conftest.er1
19789   ac_status=$?
19790   grep -v '^ *+' conftest.er1 >conftest.err
19791   rm -f conftest.er1
19792   cat conftest.err >&5
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); } &&
19795          { ac_try='test -z "$ac_c_werror_flag"
19796                          || test ! -s conftest.err'
19797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798   (eval $ac_try) 2>&5
19799   ac_status=$?
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); }; } &&
19802          { ac_try='test -s conftest$ac_exeext'
19803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804   (eval $ac_try) 2>&5
19805   ac_status=$?
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); }; }; then
19808   ac_cv_lib_dl_dlopen=yes
19809 else
19810   echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19812
19813 ac_cv_lib_dl_dlopen=no
19814 fi
19815 rm -f conftest.err conftest.$ac_objext \
19816       conftest$ac_exeext conftest.$ac_ext
19817 LIBS=$ac_check_lib_save_LIBS
19818 fi
19819 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19820 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19821 if test $ac_cv_lib_dl_dlopen = yes; then
19822   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19823 else
19824   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19825 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19826 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19827   echo $ECHO_N "(cached) $ECHO_C" >&6
19828 else
19829   ac_check_lib_save_LIBS=$LIBS
19830 LIBS="-lsvld  $LIBS"
19831 cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h.  */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h.  */
19837
19838 /* Override any gcc2 internal prototype to avoid an error.  */
19839 #ifdef __cplusplus
19840 extern "C"
19841 #endif
19842 /* We use char because int might match the return type of a gcc2
19843    builtin and then its argument prototype would still apply.  */
19844 char dlopen ();
19845 int
19846 main ()
19847 {
19848 dlopen ();
19849   ;
19850   return 0;
19851 }
19852 _ACEOF
19853 rm -f conftest.$ac_objext conftest$ac_exeext
19854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19855   (eval $ac_link) 2>conftest.er1
19856   ac_status=$?
19857   grep -v '^ *+' conftest.er1 >conftest.err
19858   rm -f conftest.er1
19859   cat conftest.err >&5
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); } &&
19862          { ac_try='test -z "$ac_c_werror_flag"
19863                          || test ! -s conftest.err'
19864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865   (eval $ac_try) 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); }; } &&
19869          { ac_try='test -s conftest$ac_exeext'
19870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871   (eval $ac_try) 2>&5
19872   ac_status=$?
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); }; }; then
19875   ac_cv_lib_svld_dlopen=yes
19876 else
19877   echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19879
19880 ac_cv_lib_svld_dlopen=no
19881 fi
19882 rm -f conftest.err conftest.$ac_objext \
19883       conftest$ac_exeext conftest.$ac_ext
19884 LIBS=$ac_check_lib_save_LIBS
19885 fi
19886 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19887 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19888 if test $ac_cv_lib_svld_dlopen = yes; then
19889   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19890 else
19891   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19892 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19893 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19894   echo $ECHO_N "(cached) $ECHO_C" >&6
19895 else
19896   ac_check_lib_save_LIBS=$LIBS
19897 LIBS="-ldld  $LIBS"
19898 cat >conftest.$ac_ext <<_ACEOF
19899 /* confdefs.h.  */
19900 _ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h.  */
19904
19905 /* Override any gcc2 internal prototype to avoid an error.  */
19906 #ifdef __cplusplus
19907 extern "C"
19908 #endif
19909 /* We use char because int might match the return type of a gcc2
19910    builtin and then its argument prototype would still apply.  */
19911 char dld_link ();
19912 int
19913 main ()
19914 {
19915 dld_link ();
19916   ;
19917   return 0;
19918 }
19919 _ACEOF
19920 rm -f conftest.$ac_objext conftest$ac_exeext
19921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19922   (eval $ac_link) 2>conftest.er1
19923   ac_status=$?
19924   grep -v '^ *+' conftest.er1 >conftest.err
19925   rm -f conftest.er1
19926   cat conftest.err >&5
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); } &&
19929          { ac_try='test -z "$ac_c_werror_flag"
19930                          || test ! -s conftest.err'
19931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932   (eval $ac_try) 2>&5
19933   ac_status=$?
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); }; } &&
19936          { ac_try='test -s conftest$ac_exeext'
19937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938   (eval $ac_try) 2>&5
19939   ac_status=$?
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); }; }; then
19942   ac_cv_lib_dld_dld_link=yes
19943 else
19944   echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19946
19947 ac_cv_lib_dld_dld_link=no
19948 fi
19949 rm -f conftest.err conftest.$ac_objext \
19950       conftest$ac_exeext conftest.$ac_ext
19951 LIBS=$ac_check_lib_save_LIBS
19952 fi
19953 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19954 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19955 if test $ac_cv_lib_dld_dld_link = yes; then
19956   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19957 fi
19958
19959
19960 fi
19961
19962
19963 fi
19964
19965
19966 fi
19967
19968
19969 fi
19970
19971
19972 fi
19973
19974     ;;
19975   esac
19976
19977   if test "x$lt_cv_dlopen" != xno; then
19978     enable_dlopen=yes
19979   else
19980     enable_dlopen=no
19981   fi
19982
19983   case $lt_cv_dlopen in
19984   dlopen)
19985     save_CPPFLAGS="$CPPFLAGS"
19986     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19987
19988     save_LDFLAGS="$LDFLAGS"
19989     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19990
19991     save_LIBS="$LIBS"
19992     LIBS="$lt_cv_dlopen_libs $LIBS"
19993
19994     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19995 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19996 if test "${lt_cv_dlopen_self+set}" = set; then
19997   echo $ECHO_N "(cached) $ECHO_C" >&6
19998 else
19999           if test "$cross_compiling" = yes; then :
20000   lt_cv_dlopen_self=cross
20001 else
20002   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20003   lt_status=$lt_dlunknown
20004   cat > conftest.$ac_ext <<EOF
20005 #line 20005 "configure"
20006 #include "confdefs.h"
20007
20008 #if HAVE_DLFCN_H
20009 #include <dlfcn.h>
20010 #endif
20011
20012 #include <stdio.h>
20013
20014 #ifdef RTLD_GLOBAL
20015 #  define LT_DLGLOBAL           RTLD_GLOBAL
20016 #else
20017 #  ifdef DL_GLOBAL
20018 #    define LT_DLGLOBAL         DL_GLOBAL
20019 #  else
20020 #    define LT_DLGLOBAL         0
20021 #  endif
20022 #endif
20023
20024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20025    find out it does not work in some platform. */
20026 #ifndef LT_DLLAZY_OR_NOW
20027 #  ifdef RTLD_LAZY
20028 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20029 #  else
20030 #    ifdef DL_LAZY
20031 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20032 #    else
20033 #      ifdef RTLD_NOW
20034 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20035 #      else
20036 #        ifdef DL_NOW
20037 #          define LT_DLLAZY_OR_NOW      DL_NOW
20038 #        else
20039 #          define LT_DLLAZY_OR_NOW      0
20040 #        endif
20041 #      endif
20042 #    endif
20043 #  endif
20044 #endif
20045
20046 #ifdef __cplusplus
20047 extern "C" void exit (int);
20048 #endif
20049
20050 void fnord() { int i=42;}
20051 int main ()
20052 {
20053   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20054   int status = $lt_dlunknown;
20055
20056   if (self)
20057     {
20058       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20059       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20060       /* dlclose (self); */
20061     }
20062
20063     exit (status);
20064 }
20065 EOF
20066   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20067   (eval $ac_link) 2>&5
20068   ac_status=$?
20069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20071     (./conftest; exit; ) 2>/dev/null
20072     lt_status=$?
20073     case x$lt_status in
20074       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20075       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20076       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20077     esac
20078   else :
20079     # compilation failed
20080     lt_cv_dlopen_self=no
20081   fi
20082 fi
20083 rm -fr conftest*
20084
20085
20086 fi
20087 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20088 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20089
20090     if test "x$lt_cv_dlopen_self" = xyes; then
20091       LDFLAGS="$LDFLAGS $link_static_flag"
20092       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20093 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20094 if test "${lt_cv_dlopen_self_static+set}" = set; then
20095   echo $ECHO_N "(cached) $ECHO_C" >&6
20096 else
20097           if test "$cross_compiling" = yes; then :
20098   lt_cv_dlopen_self_static=cross
20099 else
20100   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20101   lt_status=$lt_dlunknown
20102   cat > conftest.$ac_ext <<EOF
20103 #line 20103 "configure"
20104 #include "confdefs.h"
20105
20106 #if HAVE_DLFCN_H
20107 #include <dlfcn.h>
20108 #endif
20109
20110 #include <stdio.h>
20111
20112 #ifdef RTLD_GLOBAL
20113 #  define LT_DLGLOBAL           RTLD_GLOBAL
20114 #else
20115 #  ifdef DL_GLOBAL
20116 #    define LT_DLGLOBAL         DL_GLOBAL
20117 #  else
20118 #    define LT_DLGLOBAL         0
20119 #  endif
20120 #endif
20121
20122 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20123    find out it does not work in some platform. */
20124 #ifndef LT_DLLAZY_OR_NOW
20125 #  ifdef RTLD_LAZY
20126 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20127 #  else
20128 #    ifdef DL_LAZY
20129 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20130 #    else
20131 #      ifdef RTLD_NOW
20132 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20133 #      else
20134 #        ifdef DL_NOW
20135 #          define LT_DLLAZY_OR_NOW      DL_NOW
20136 #        else
20137 #          define LT_DLLAZY_OR_NOW      0
20138 #        endif
20139 #      endif
20140 #    endif
20141 #  endif
20142 #endif
20143
20144 #ifdef __cplusplus
20145 extern "C" void exit (int);
20146 #endif
20147
20148 void fnord() { int i=42;}
20149 int main ()
20150 {
20151   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20152   int status = $lt_dlunknown;
20153
20154   if (self)
20155     {
20156       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20157       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20158       /* dlclose (self); */
20159     }
20160
20161     exit (status);
20162 }
20163 EOF
20164   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20165   (eval $ac_link) 2>&5
20166   ac_status=$?
20167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20169     (./conftest; exit; ) 2>/dev/null
20170     lt_status=$?
20171     case x$lt_status in
20172       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20173       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20174       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20175     esac
20176   else :
20177     # compilation failed
20178     lt_cv_dlopen_self_static=no
20179   fi
20180 fi
20181 rm -fr conftest*
20182
20183
20184 fi
20185 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20186 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20187     fi
20188
20189     CPPFLAGS="$save_CPPFLAGS"
20190     LDFLAGS="$save_LDFLAGS"
20191     LIBS="$save_LIBS"
20192     ;;
20193   esac
20194
20195   case $lt_cv_dlopen_self in
20196   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20197   *) enable_dlopen_self=unknown ;;
20198   esac
20199
20200   case $lt_cv_dlopen_self_static in
20201   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20202   *) enable_dlopen_self_static=unknown ;;
20203   esac
20204 fi
20205
20206
20207 # The else clause should only fire when bootstrapping the
20208 # libtool distribution, otherwise you forgot to ship ltmain.sh
20209 # with your package, and you will get complaints that there are
20210 # no rules to generate ltmain.sh.
20211 if test -f "$ltmain"; then
20212   # See if we are running on zsh, and set the options which allow our commands through
20213   # without removal of \ escapes.
20214   if test -n "${ZSH_VERSION+set}" ; then
20215     setopt NO_GLOB_SUBST
20216   fi
20217   # Now quote all the things that may contain metacharacters while being
20218   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20219   # variables and quote the copies for generation of the libtool script.
20220   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20221     SED SHELL STRIP \
20222     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20223     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20224     deplibs_check_method reload_flag reload_cmds need_locks \
20225     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20226     lt_cv_sys_global_symbol_to_c_name_address \
20227     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20228     old_postinstall_cmds old_postuninstall_cmds \
20229     compiler_GCJ \
20230     CC_GCJ \
20231     LD_GCJ \
20232     lt_prog_compiler_wl_GCJ \
20233     lt_prog_compiler_pic_GCJ \
20234     lt_prog_compiler_static_GCJ \
20235     lt_prog_compiler_no_builtin_flag_GCJ \
20236     export_dynamic_flag_spec_GCJ \
20237     thread_safe_flag_spec_GCJ \
20238     whole_archive_flag_spec_GCJ \
20239     enable_shared_with_static_runtimes_GCJ \
20240     old_archive_cmds_GCJ \
20241     old_archive_from_new_cmds_GCJ \
20242     predep_objects_GCJ \
20243     postdep_objects_GCJ \
20244     predeps_GCJ \
20245     postdeps_GCJ \
20246     compiler_lib_search_path_GCJ \
20247     archive_cmds_GCJ \
20248     archive_expsym_cmds_GCJ \
20249     postinstall_cmds_GCJ \
20250     postuninstall_cmds_GCJ \
20251     old_archive_from_expsyms_cmds_GCJ \
20252     allow_undefined_flag_GCJ \
20253     no_undefined_flag_GCJ \
20254     export_symbols_cmds_GCJ \
20255     hardcode_libdir_flag_spec_GCJ \
20256     hardcode_libdir_flag_spec_ld_GCJ \
20257     hardcode_libdir_separator_GCJ \
20258     hardcode_automatic_GCJ \
20259     module_cmds_GCJ \
20260     module_expsym_cmds_GCJ \
20261     lt_cv_prog_compiler_c_o_GCJ \
20262     exclude_expsyms_GCJ \
20263     include_expsyms_GCJ; do
20264
20265     case $var in
20266     old_archive_cmds_GCJ | \
20267     old_archive_from_new_cmds_GCJ | \
20268     archive_cmds_GCJ | \
20269     archive_expsym_cmds_GCJ | \
20270     module_cmds_GCJ | \
20271     module_expsym_cmds_GCJ | \
20272     old_archive_from_expsyms_cmds_GCJ | \
20273     export_symbols_cmds_GCJ | \
20274     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20275     postinstall_cmds | postuninstall_cmds | \
20276     old_postinstall_cmds | old_postuninstall_cmds | \
20277     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20278       # Double-quote double-evaled strings.
20279       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20280       ;;
20281     *)
20282       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20283       ;;
20284     esac
20285   done
20286
20287   case $lt_echo in
20288   *'\$0 --fallback-echo"')
20289     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20290     ;;
20291   esac
20292
20293 cfgfile="$ofile"
20294
20295   cat <<__EOF__ >> "$cfgfile"
20296 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20297
20298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20299
20300 # Shell to use when invoking shell scripts.
20301 SHELL=$lt_SHELL
20302
20303 # Whether or not to build shared libraries.
20304 build_libtool_libs=$enable_shared
20305
20306 # Whether or not to build static libraries.
20307 build_old_libs=$enable_static
20308
20309 # Whether or not to add -lc for building shared libraries.
20310 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20311
20312 # Whether or not to disallow shared libs when runtime libs are static
20313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20314
20315 # Whether or not to optimize for fast installation.
20316 fast_install=$enable_fast_install
20317
20318 # The host system.
20319 host_alias=$host_alias
20320 host=$host
20321
20322 # An echo program that does not interpret backslashes.
20323 echo=$lt_echo
20324
20325 # The archiver.
20326 AR=$lt_AR
20327 AR_FLAGS=$lt_AR_FLAGS
20328
20329 # A C compiler.
20330 LTCC=$lt_LTCC
20331
20332 # A language-specific compiler.
20333 CC=$lt_compiler_GCJ
20334
20335 # Is the compiler the GNU C compiler?
20336 with_gcc=$GCC_GCJ
20337
20338 # An ERE matcher.
20339 EGREP=$lt_EGREP
20340
20341 # The linker used to build libraries.
20342 LD=$lt_LD_GCJ
20343
20344 # Whether we need hard or soft links.
20345 LN_S=$lt_LN_S
20346
20347 # A BSD-compatible nm program.
20348 NM=$lt_NM
20349
20350 # A symbol stripping program
20351 STRIP=$lt_STRIP
20352
20353 # Used to examine libraries when file_magic_cmd begins "file"
20354 MAGIC_CMD=$MAGIC_CMD
20355
20356 # Used on cygwin: DLL creation program.
20357 DLLTOOL="$DLLTOOL"
20358
20359 # Used on cygwin: object dumper.
20360 OBJDUMP="$OBJDUMP"
20361
20362 # Used on cygwin: assembler.
20363 AS="$AS"
20364
20365 # The name of the directory that contains temporary libtool files.
20366 objdir=$objdir
20367
20368 # How to create reloadable object files.
20369 reload_flag=$lt_reload_flag
20370 reload_cmds=$lt_reload_cmds
20371
20372 # How to pass a linker flag through the compiler.
20373 wl=$lt_lt_prog_compiler_wl_GCJ
20374
20375 # Object file suffix (normally "o").
20376 objext="$ac_objext"
20377
20378 # Old archive suffix (normally "a").
20379 libext="$libext"
20380
20381 # Shared library suffix (normally ".so").
20382 shrext_cmds='$shrext_cmds'
20383
20384 # Executable file suffix (normally "").
20385 exeext="$exeext"
20386
20387 # Additional compiler flags for building library objects.
20388 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20389 pic_mode=$pic_mode
20390
20391 # What is the maximum length of a command?
20392 max_cmd_len=$lt_cv_sys_max_cmd_len
20393
20394 # Does compiler simultaneously support -c and -o options?
20395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20396
20397 # Must we lock files when doing compilation ?
20398 need_locks=$lt_need_locks
20399
20400 # Do we need the lib prefix for modules?
20401 need_lib_prefix=$need_lib_prefix
20402
20403 # Do we need a version for libraries?
20404 need_version=$need_version
20405
20406 # Whether dlopen is supported.
20407 dlopen_support=$enable_dlopen
20408
20409 # Whether dlopen of programs is supported.
20410 dlopen_self=$enable_dlopen_self
20411
20412 # Whether dlopen of statically linked programs is supported.
20413 dlopen_self_static=$enable_dlopen_self_static
20414
20415 # Compiler flag to prevent dynamic linking.
20416 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20417
20418 # Compiler flag to turn off builtin functions.
20419 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20420
20421 # Compiler flag to allow reflexive dlopens.
20422 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20423
20424 # Compiler flag to generate shared objects directly from archives.
20425 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20426
20427 # Compiler flag to generate thread-safe objects.
20428 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20429
20430 # Library versioning type.
20431 version_type=$version_type
20432
20433 # Format of library name prefix.
20434 libname_spec=$lt_libname_spec
20435
20436 # List of archive names.  First name is the real one, the rest are links.
20437 # The last name is the one that the linker finds with -lNAME.
20438 library_names_spec=$lt_library_names_spec
20439
20440 # The coded name of the library, if different from the real name.
20441 soname_spec=$lt_soname_spec
20442
20443 # Commands used to build and install an old-style archive.
20444 RANLIB=$lt_RANLIB
20445 old_archive_cmds=$lt_old_archive_cmds_GCJ
20446 old_postinstall_cmds=$lt_old_postinstall_cmds
20447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20448
20449 # Create an old-style archive from a shared archive.
20450 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20451
20452 # Create a temporary old-style archive to link instead of a shared archive.
20453 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20454
20455 # Commands used to build and install a shared archive.
20456 archive_cmds=$lt_archive_cmds_GCJ
20457 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20458 postinstall_cmds=$lt_postinstall_cmds
20459 postuninstall_cmds=$lt_postuninstall_cmds
20460
20461 # Commands used to build a loadable module (assumed same as above if empty)
20462 module_cmds=$lt_module_cmds_GCJ
20463 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20464
20465 # Commands to strip libraries.
20466 old_striplib=$lt_old_striplib
20467 striplib=$lt_striplib
20468
20469 # Dependencies to place before the objects being linked to create a
20470 # shared library.
20471 predep_objects=$lt_predep_objects_GCJ
20472
20473 # Dependencies to place after the objects being linked to create a
20474 # shared library.
20475 postdep_objects=$lt_postdep_objects_GCJ
20476
20477 # Dependencies to place before the objects being linked to create a
20478 # shared library.
20479 predeps=$lt_predeps_GCJ
20480
20481 # Dependencies to place after the objects being linked to create a
20482 # shared library.
20483 postdeps=$lt_postdeps_GCJ
20484
20485 # The library search path used internally by the compiler when linking
20486 # a shared library.
20487 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20488
20489 # Method to check whether dependent libraries are shared objects.
20490 deplibs_check_method=$lt_deplibs_check_method
20491
20492 # Command to use when deplibs_check_method == file_magic.
20493 file_magic_cmd=$lt_file_magic_cmd
20494
20495 # Flag that allows shared libraries with undefined symbols to be built.
20496 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20497
20498 # Flag that forces no undefined symbols.
20499 no_undefined_flag=$lt_no_undefined_flag_GCJ
20500
20501 # Commands used to finish a libtool library installation in a directory.
20502 finish_cmds=$lt_finish_cmds
20503
20504 # Same as above, but a single script fragment to be evaled but not shown.
20505 finish_eval=$lt_finish_eval
20506
20507 # Take the output of nm and produce a listing of raw symbols and C names.
20508 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20509
20510 # Transform the output of nm in a proper C declaration
20511 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20512
20513 # Transform the output of nm in a C name address pair
20514 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20515
20516 # This is the shared library runtime path variable.
20517 runpath_var=$runpath_var
20518
20519 # This is the shared library path variable.
20520 shlibpath_var=$shlibpath_var
20521
20522 # Is shlibpath searched before the hard-coded library search path?
20523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20524
20525 # How to hardcode a shared library path into an executable.
20526 hardcode_action=$hardcode_action_GCJ
20527
20528 # Whether we should hardcode library paths into libraries.
20529 hardcode_into_libs=$hardcode_into_libs
20530
20531 # Flag to hardcode \$libdir into a binary during linking.
20532 # This must work even if \$libdir does not exist.
20533 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20534
20535 # If ld is used when linking, flag to hardcode \$libdir into
20536 # a binary during linking. This must work even if \$libdir does
20537 # not exist.
20538 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20539
20540 # Whether we need a single -rpath flag with a separated argument.
20541 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20542
20543 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20544 # resulting binary.
20545 hardcode_direct=$hardcode_direct_GCJ
20546
20547 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20548 # resulting binary.
20549 hardcode_minus_L=$hardcode_minus_L_GCJ
20550
20551 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20552 # the resulting binary.
20553 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20554
20555 # Set to yes if building a shared library automatically hardcodes DIR into the library
20556 # and all subsequent libraries and executables linked against it.
20557 hardcode_automatic=$hardcode_automatic_GCJ
20558
20559 # Variables whose values should be saved in libtool wrapper scripts and
20560 # restored at relink time.
20561 variables_saved_for_relink="$variables_saved_for_relink"
20562
20563 # Whether libtool must link a program against all its dependency libraries.
20564 link_all_deplibs=$link_all_deplibs_GCJ
20565
20566 # Compile-time system search path for libraries
20567 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20568
20569 # Run-time system search path for libraries
20570 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20571
20572 # Fix the shell variable \$srcfile for the compiler.
20573 fix_srcfile_path="$fix_srcfile_path_GCJ"
20574
20575 # Set to yes if exported symbols are required.
20576 always_export_symbols=$always_export_symbols_GCJ
20577
20578 # The commands to list exported symbols.
20579 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20580
20581 # The commands to extract the exported symbol list from a shared archive.
20582 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20583
20584 # Symbols that should not be listed in the preloaded symbols.
20585 exclude_expsyms=$lt_exclude_expsyms_GCJ
20586
20587 # Symbols that must always be exported.
20588 include_expsyms=$lt_include_expsyms_GCJ
20589
20590 # ### END LIBTOOL TAG CONFIG: $tagname
20591
20592 __EOF__
20593
20594
20595 else
20596   # If there is no Makefile yet, we rely on a make rule to execute
20597   # `config.status --recheck' to rerun these tests and create the
20598   # libtool script then.
20599   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20600   if test -f "$ltmain_in"; then
20601     test -f Makefile && make "$ltmain"
20602   fi
20603 fi
20604
20605
20606 ac_ext=c
20607 ac_cpp='$CPP $CPPFLAGS'
20608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20611
20612 CC="$lt_save_CC"
20613
20614         else
20615           tagname=""
20616         fi
20617         ;;
20618
20619       RC)
20620
20621
20622
20623 # Source file extension for RC test sources.
20624 ac_ext=rc
20625
20626 # Object file extension for compiled RC test sources.
20627 objext=o
20628 objext_RC=$objext
20629
20630 # Code to be used in simple compile tests
20631 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20632
20633 # Code to be used in simple link tests
20634 lt_simple_link_test_code="$lt_simple_compile_test_code"
20635
20636 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20637
20638 # If no C compiler was specified, use CC.
20639 LTCC=${LTCC-"$CC"}
20640
20641 # Allow CC to be a program name with arguments.
20642 compiler=$CC
20643
20644
20645 # Allow CC to be a program name with arguments.
20646 lt_save_CC="$CC"
20647 CC=${RC-"windres"}
20648 compiler=$CC
20649 compiler_RC=$CC
20650 lt_cv_prog_compiler_c_o_RC=yes
20651
20652 # The else clause should only fire when bootstrapping the
20653 # libtool distribution, otherwise you forgot to ship ltmain.sh
20654 # with your package, and you will get complaints that there are
20655 # no rules to generate ltmain.sh.
20656 if test -f "$ltmain"; then
20657   # See if we are running on zsh, and set the options which allow our commands through
20658   # without removal of \ escapes.
20659   if test -n "${ZSH_VERSION+set}" ; then
20660     setopt NO_GLOB_SUBST
20661   fi
20662   # Now quote all the things that may contain metacharacters while being
20663   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20664   # variables and quote the copies for generation of the libtool script.
20665   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20666     SED SHELL STRIP \
20667     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20668     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20669     deplibs_check_method reload_flag reload_cmds need_locks \
20670     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20671     lt_cv_sys_global_symbol_to_c_name_address \
20672     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20673     old_postinstall_cmds old_postuninstall_cmds \
20674     compiler_RC \
20675     CC_RC \
20676     LD_RC \
20677     lt_prog_compiler_wl_RC \
20678     lt_prog_compiler_pic_RC \
20679     lt_prog_compiler_static_RC \
20680     lt_prog_compiler_no_builtin_flag_RC \
20681     export_dynamic_flag_spec_RC \
20682     thread_safe_flag_spec_RC \
20683     whole_archive_flag_spec_RC \
20684     enable_shared_with_static_runtimes_RC \
20685     old_archive_cmds_RC \
20686     old_archive_from_new_cmds_RC \
20687     predep_objects_RC \
20688     postdep_objects_RC \
20689     predeps_RC \
20690     postdeps_RC \
20691     compiler_lib_search_path_RC \
20692     archive_cmds_RC \
20693     archive_expsym_cmds_RC \
20694     postinstall_cmds_RC \
20695     postuninstall_cmds_RC \
20696     old_archive_from_expsyms_cmds_RC \
20697     allow_undefined_flag_RC \
20698     no_undefined_flag_RC \
20699     export_symbols_cmds_RC \
20700     hardcode_libdir_flag_spec_RC \
20701     hardcode_libdir_flag_spec_ld_RC \
20702     hardcode_libdir_separator_RC \
20703     hardcode_automatic_RC \
20704     module_cmds_RC \
20705     module_expsym_cmds_RC \
20706     lt_cv_prog_compiler_c_o_RC \
20707     exclude_expsyms_RC \
20708     include_expsyms_RC; do
20709
20710     case $var in
20711     old_archive_cmds_RC | \
20712     old_archive_from_new_cmds_RC | \
20713     archive_cmds_RC | \
20714     archive_expsym_cmds_RC | \
20715     module_cmds_RC | \
20716     module_expsym_cmds_RC | \
20717     old_archive_from_expsyms_cmds_RC | \
20718     export_symbols_cmds_RC | \
20719     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20720     postinstall_cmds | postuninstall_cmds | \
20721     old_postinstall_cmds | old_postuninstall_cmds | \
20722     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20723       # Double-quote double-evaled strings.
20724       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20725       ;;
20726     *)
20727       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20728       ;;
20729     esac
20730   done
20731
20732   case $lt_echo in
20733   *'\$0 --fallback-echo"')
20734     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20735     ;;
20736   esac
20737
20738 cfgfile="$ofile"
20739
20740   cat <<__EOF__ >> "$cfgfile"
20741 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20742
20743 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20744
20745 # Shell to use when invoking shell scripts.
20746 SHELL=$lt_SHELL
20747
20748 # Whether or not to build shared libraries.
20749 build_libtool_libs=$enable_shared
20750
20751 # Whether or not to build static libraries.
20752 build_old_libs=$enable_static
20753
20754 # Whether or not to add -lc for building shared libraries.
20755 build_libtool_need_lc=$archive_cmds_need_lc_RC
20756
20757 # Whether or not to disallow shared libs when runtime libs are static
20758 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20759
20760 # Whether or not to optimize for fast installation.
20761 fast_install=$enable_fast_install
20762
20763 # The host system.
20764 host_alias=$host_alias
20765 host=$host
20766
20767 # An echo program that does not interpret backslashes.
20768 echo=$lt_echo
20769
20770 # The archiver.
20771 AR=$lt_AR
20772 AR_FLAGS=$lt_AR_FLAGS
20773
20774 # A C compiler.
20775 LTCC=$lt_LTCC
20776
20777 # A language-specific compiler.
20778 CC=$lt_compiler_RC
20779
20780 # Is the compiler the GNU C compiler?
20781 with_gcc=$GCC_RC
20782
20783 # An ERE matcher.
20784 EGREP=$lt_EGREP
20785
20786 # The linker used to build libraries.
20787 LD=$lt_LD_RC
20788
20789 # Whether we need hard or soft links.
20790 LN_S=$lt_LN_S
20791
20792 # A BSD-compatible nm program.
20793 NM=$lt_NM
20794
20795 # A symbol stripping program
20796 STRIP=$lt_STRIP
20797
20798 # Used to examine libraries when file_magic_cmd begins "file"
20799 MAGIC_CMD=$MAGIC_CMD
20800
20801 # Used on cygwin: DLL creation program.
20802 DLLTOOL="$DLLTOOL"
20803
20804 # Used on cygwin: object dumper.
20805 OBJDUMP="$OBJDUMP"
20806
20807 # Used on cygwin: assembler.
20808 AS="$AS"
20809
20810 # The name of the directory that contains temporary libtool files.
20811 objdir=$objdir
20812
20813 # How to create reloadable object files.
20814 reload_flag=$lt_reload_flag
20815 reload_cmds=$lt_reload_cmds
20816
20817 # How to pass a linker flag through the compiler.
20818 wl=$lt_lt_prog_compiler_wl_RC
20819
20820 # Object file suffix (normally "o").
20821 objext="$ac_objext"
20822
20823 # Old archive suffix (normally "a").
20824 libext="$libext"
20825
20826 # Shared library suffix (normally ".so").
20827 shrext_cmds='$shrext_cmds'
20828
20829 # Executable file suffix (normally "").
20830 exeext="$exeext"
20831
20832 # Additional compiler flags for building library objects.
20833 pic_flag=$lt_lt_prog_compiler_pic_RC
20834 pic_mode=$pic_mode
20835
20836 # What is the maximum length of a command?
20837 max_cmd_len=$lt_cv_sys_max_cmd_len
20838
20839 # Does compiler simultaneously support -c and -o options?
20840 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20841
20842 # Must we lock files when doing compilation ?
20843 need_locks=$lt_need_locks
20844
20845 # Do we need the lib prefix for modules?
20846 need_lib_prefix=$need_lib_prefix
20847
20848 # Do we need a version for libraries?
20849 need_version=$need_version
20850
20851 # Whether dlopen is supported.
20852 dlopen_support=$enable_dlopen
20853
20854 # Whether dlopen of programs is supported.
20855 dlopen_self=$enable_dlopen_self
20856
20857 # Whether dlopen of statically linked programs is supported.
20858 dlopen_self_static=$enable_dlopen_self_static
20859
20860 # Compiler flag to prevent dynamic linking.
20861 link_static_flag=$lt_lt_prog_compiler_static_RC
20862
20863 # Compiler flag to turn off builtin functions.
20864 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20865
20866 # Compiler flag to allow reflexive dlopens.
20867 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20868
20869 # Compiler flag to generate shared objects directly from archives.
20870 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20871
20872 # Compiler flag to generate thread-safe objects.
20873 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20874
20875 # Library versioning type.
20876 version_type=$version_type
20877
20878 # Format of library name prefix.
20879 libname_spec=$lt_libname_spec
20880
20881 # List of archive names.  First name is the real one, the rest are links.
20882 # The last name is the one that the linker finds with -lNAME.
20883 library_names_spec=$lt_library_names_spec
20884
20885 # The coded name of the library, if different from the real name.
20886 soname_spec=$lt_soname_spec
20887
20888 # Commands used to build and install an old-style archive.
20889 RANLIB=$lt_RANLIB
20890 old_archive_cmds=$lt_old_archive_cmds_RC
20891 old_postinstall_cmds=$lt_old_postinstall_cmds
20892 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20893
20894 # Create an old-style archive from a shared archive.
20895 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20896
20897 # Create a temporary old-style archive to link instead of a shared archive.
20898 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20899
20900 # Commands used to build and install a shared archive.
20901 archive_cmds=$lt_archive_cmds_RC
20902 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20903 postinstall_cmds=$lt_postinstall_cmds
20904 postuninstall_cmds=$lt_postuninstall_cmds
20905
20906 # Commands used to build a loadable module (assumed same as above if empty)
20907 module_cmds=$lt_module_cmds_RC
20908 module_expsym_cmds=$lt_module_expsym_cmds_RC
20909
20910 # Commands to strip libraries.
20911 old_striplib=$lt_old_striplib
20912 striplib=$lt_striplib
20913
20914 # Dependencies to place before the objects being linked to create a
20915 # shared library.
20916 predep_objects=$lt_predep_objects_RC
20917
20918 # Dependencies to place after the objects being linked to create a
20919 # shared library.
20920 postdep_objects=$lt_postdep_objects_RC
20921
20922 # Dependencies to place before the objects being linked to create a
20923 # shared library.
20924 predeps=$lt_predeps_RC
20925
20926 # Dependencies to place after the objects being linked to create a
20927 # shared library.
20928 postdeps=$lt_postdeps_RC
20929
20930 # The library search path used internally by the compiler when linking
20931 # a shared library.
20932 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20933
20934 # Method to check whether dependent libraries are shared objects.
20935 deplibs_check_method=$lt_deplibs_check_method
20936
20937 # Command to use when deplibs_check_method == file_magic.
20938 file_magic_cmd=$lt_file_magic_cmd
20939
20940 # Flag that allows shared libraries with undefined symbols to be built.
20941 allow_undefined_flag=$lt_allow_undefined_flag_RC
20942
20943 # Flag that forces no undefined symbols.
20944 no_undefined_flag=$lt_no_undefined_flag_RC
20945
20946 # Commands used to finish a libtool library installation in a directory.
20947 finish_cmds=$lt_finish_cmds
20948
20949 # Same as above, but a single script fragment to be evaled but not shown.
20950 finish_eval=$lt_finish_eval
20951
20952 # Take the output of nm and produce a listing of raw symbols and C names.
20953 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20954
20955 # Transform the output of nm in a proper C declaration
20956 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20957
20958 # Transform the output of nm in a C name address pair
20959 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20960
20961 # This is the shared library runtime path variable.
20962 runpath_var=$runpath_var
20963
20964 # This is the shared library path variable.
20965 shlibpath_var=$shlibpath_var
20966
20967 # Is shlibpath searched before the hard-coded library search path?
20968 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20969
20970 # How to hardcode a shared library path into an executable.
20971 hardcode_action=$hardcode_action_RC
20972
20973 # Whether we should hardcode library paths into libraries.
20974 hardcode_into_libs=$hardcode_into_libs
20975
20976 # Flag to hardcode \$libdir into a binary during linking.
20977 # This must work even if \$libdir does not exist.
20978 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20979
20980 # If ld is used when linking, flag to hardcode \$libdir into
20981 # a binary during linking. This must work even if \$libdir does
20982 # not exist.
20983 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20984
20985 # Whether we need a single -rpath flag with a separated argument.
20986 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20987
20988 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20989 # resulting binary.
20990 hardcode_direct=$hardcode_direct_RC
20991
20992 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20993 # resulting binary.
20994 hardcode_minus_L=$hardcode_minus_L_RC
20995
20996 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20997 # the resulting binary.
20998 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20999
21000 # Set to yes if building a shared library automatically hardcodes DIR into the library
21001 # and all subsequent libraries and executables linked against it.
21002 hardcode_automatic=$hardcode_automatic_RC
21003
21004 # Variables whose values should be saved in libtool wrapper scripts and
21005 # restored at relink time.
21006 variables_saved_for_relink="$variables_saved_for_relink"
21007
21008 # Whether libtool must link a program against all its dependency libraries.
21009 link_all_deplibs=$link_all_deplibs_RC
21010
21011 # Compile-time system search path for libraries
21012 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21013
21014 # Run-time system search path for libraries
21015 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21016
21017 # Fix the shell variable \$srcfile for the compiler.
21018 fix_srcfile_path="$fix_srcfile_path_RC"
21019
21020 # Set to yes if exported symbols are required.
21021 always_export_symbols=$always_export_symbols_RC
21022
21023 # The commands to list exported symbols.
21024 export_symbols_cmds=$lt_export_symbols_cmds_RC
21025
21026 # The commands to extract the exported symbol list from a shared archive.
21027 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21028
21029 # Symbols that should not be listed in the preloaded symbols.
21030 exclude_expsyms=$lt_exclude_expsyms_RC
21031
21032 # Symbols that must always be exported.
21033 include_expsyms=$lt_include_expsyms_RC
21034
21035 # ### END LIBTOOL TAG CONFIG: $tagname
21036
21037 __EOF__
21038
21039
21040 else
21041   # If there is no Makefile yet, we rely on a make rule to execute
21042   # `config.status --recheck' to rerun these tests and create the
21043   # libtool script then.
21044   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21045   if test -f "$ltmain_in"; then
21046     test -f Makefile && make "$ltmain"
21047   fi
21048 fi
21049
21050
21051 ac_ext=c
21052 ac_cpp='$CPP $CPPFLAGS'
21053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21056
21057 CC="$lt_save_CC"
21058
21059         ;;
21060
21061       *)
21062         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21063 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21064    { (exit 1); exit 1; }; }
21065         ;;
21066       esac
21067
21068       # Append the new tag name to the list of available tags.
21069       if test -n "$tagname" ; then
21070       available_tags="$available_tags $tagname"
21071     fi
21072     fi
21073   done
21074   IFS="$lt_save_ifs"
21075
21076   # Now substitute the updated list of available tags.
21077   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21078     mv "${ofile}T" "$ofile"
21079     chmod +x "$ofile"
21080   else
21081     rm -f "${ofile}T"
21082     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21083 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21084    { (exit 1); exit 1; }; }
21085   fi
21086 fi
21087
21088
21089
21090 # This can be used to rebuild libtool when needed
21091 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21092
21093 # Always use our own libtool.
21094 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21095
21096 # Prevent multiple expansion
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118 ac_ext=c
21119 ac_cpp='$CPP $CPPFLAGS'
21120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21123
21124
21125 # Checks for typedefs, structures, and compiler characteristics.
21126 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21127 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21128 if test "${ac_cv_c_const+set}" = set; then
21129   echo $ECHO_N "(cached) $ECHO_C" >&6
21130 else
21131   cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h.  */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h.  */
21137
21138 int
21139 main ()
21140 {
21141 /* FIXME: Include the comments suggested by Paul. */
21142 #ifndef __cplusplus
21143   /* Ultrix mips cc rejects this.  */
21144   typedef int charset[2];
21145   const charset x;
21146   /* SunOS 4.1.1 cc rejects this.  */
21147   char const *const *ccp;
21148   char **p;
21149   /* NEC SVR4.0.2 mips cc rejects this.  */
21150   struct point {int x, y;};
21151   static struct point const zero = {0,0};
21152   /* AIX XL C 1.02.0.0 rejects this.
21153      It does not let you subtract one const X* pointer from another in
21154      an arm of an if-expression whose if-part is not a constant
21155      expression */
21156   const char *g = "string";
21157   ccp = &g + (g ? g-g : 0);
21158   /* HPUX 7.0 cc rejects these. */
21159   ++ccp;
21160   p = (char**) ccp;
21161   ccp = (char const *const *) p;
21162   { /* SCO 3.2v4 cc rejects this.  */
21163     char *t;
21164     char const *s = 0 ? (char *) 0 : (char const *) 0;
21165
21166     *t++ = 0;
21167   }
21168   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21169     int x[] = {25, 17};
21170     const int *foo = &x[0];
21171     ++foo;
21172   }
21173   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21174     typedef const int *iptr;
21175     iptr p = 0;
21176     ++p;
21177   }
21178   { /* AIX XL C 1.02.0.0 rejects this saying
21179        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21180     struct s { int j; const int *ap[3]; };
21181     struct s *b; b->j = 5;
21182   }
21183   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21184     const int foo = 10;
21185   }
21186 #endif
21187
21188   ;
21189   return 0;
21190 }
21191 _ACEOF
21192 rm -f conftest.$ac_objext
21193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21194   (eval $ac_compile) 2>conftest.er1
21195   ac_status=$?
21196   grep -v '^ *+' conftest.er1 >conftest.err
21197   rm -f conftest.er1
21198   cat conftest.err >&5
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); } &&
21201          { ac_try='test -z "$ac_c_werror_flag"
21202                          || test ! -s conftest.err'
21203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204   (eval $ac_try) 2>&5
21205   ac_status=$?
21206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207   (exit $ac_status); }; } &&
21208          { ac_try='test -s conftest.$ac_objext'
21209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210   (eval $ac_try) 2>&5
21211   ac_status=$?
21212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213   (exit $ac_status); }; }; then
21214   ac_cv_c_const=yes
21215 else
21216   echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21218
21219 ac_cv_c_const=no
21220 fi
21221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21222 fi
21223 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21224 echo "${ECHO_T}$ac_cv_c_const" >&6
21225 if test $ac_cv_c_const = no; then
21226
21227 cat >>confdefs.h <<\_ACEOF
21228 #define const
21229 _ACEOF
21230
21231 fi
21232
21233 echo "$as_me:$LINENO: checking for size_t" >&5
21234 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21235 if test "${ac_cv_type_size_t+set}" = set; then
21236   echo $ECHO_N "(cached) $ECHO_C" >&6
21237 else
21238   cat >conftest.$ac_ext <<_ACEOF
21239 /* confdefs.h.  */
21240 _ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h.  */
21244 $ac_includes_default
21245 int
21246 main ()
21247 {
21248 if ((size_t *) 0)
21249   return 0;
21250 if (sizeof (size_t))
21251   return 0;
21252   ;
21253   return 0;
21254 }
21255 _ACEOF
21256 rm -f conftest.$ac_objext
21257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21258   (eval $ac_compile) 2>conftest.er1
21259   ac_status=$?
21260   grep -v '^ *+' conftest.er1 >conftest.err
21261   rm -f conftest.er1
21262   cat conftest.err >&5
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); } &&
21265          { ac_try='test -z "$ac_c_werror_flag"
21266                          || test ! -s conftest.err'
21267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268   (eval $ac_try) 2>&5
21269   ac_status=$?
21270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); }; } &&
21272          { ac_try='test -s conftest.$ac_objext'
21273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274   (eval $ac_try) 2>&5
21275   ac_status=$?
21276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277   (exit $ac_status); }; }; then
21278   ac_cv_type_size_t=yes
21279 else
21280   echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21282
21283 ac_cv_type_size_t=no
21284 fi
21285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21286 fi
21287 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21288 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21289 if test $ac_cv_type_size_t = yes; then
21290   :
21291 else
21292
21293 cat >>confdefs.h <<_ACEOF
21294 #define size_t unsigned
21295 _ACEOF
21296
21297 fi
21298
21299 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21300 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21301 if test "${ac_cv_struct_tm+set}" = set; then
21302   echo $ECHO_N "(cached) $ECHO_C" >&6
21303 else
21304   cat >conftest.$ac_ext <<_ACEOF
21305 /* confdefs.h.  */
21306 _ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h.  */
21310 #include <sys/types.h>
21311 #include <time.h>
21312
21313 int
21314 main ()
21315 {
21316 struct tm *tp; tp->tm_sec;
21317   ;
21318   return 0;
21319 }
21320 _ACEOF
21321 rm -f conftest.$ac_objext
21322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21323   (eval $ac_compile) 2>conftest.er1
21324   ac_status=$?
21325   grep -v '^ *+' conftest.er1 >conftest.err
21326   rm -f conftest.er1
21327   cat conftest.err >&5
21328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329   (exit $ac_status); } &&
21330          { ac_try='test -z "$ac_c_werror_flag"
21331                          || test ! -s conftest.err'
21332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333   (eval $ac_try) 2>&5
21334   ac_status=$?
21335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336   (exit $ac_status); }; } &&
21337          { ac_try='test -s conftest.$ac_objext'
21338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339   (eval $ac_try) 2>&5
21340   ac_status=$?
21341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342   (exit $ac_status); }; }; then
21343   ac_cv_struct_tm=time.h
21344 else
21345   echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21347
21348 ac_cv_struct_tm=sys/time.h
21349 fi
21350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21351 fi
21352 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21353 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21354 if test $ac_cv_struct_tm = sys/time.h; then
21355
21356 cat >>confdefs.h <<\_ACEOF
21357 #define TM_IN_SYS_TIME 1
21358 _ACEOF
21359
21360 fi
21361
21362
21363 # Checks for library functions.
21364
21365 for ac_func in strftime
21366 do
21367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21368 echo "$as_me:$LINENO: checking for $ac_func" >&5
21369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21370 if eval "test \"\${$as_ac_var+set}\" = set"; then
21371   echo $ECHO_N "(cached) $ECHO_C" >&6
21372 else
21373   cat >conftest.$ac_ext <<_ACEOF
21374 /* confdefs.h.  */
21375 _ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h.  */
21379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21381 #define $ac_func innocuous_$ac_func
21382
21383 /* System header to define __stub macros and hopefully few prototypes,
21384     which can conflict with char $ac_func (); below.
21385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21386     <limits.h> exists even on freestanding compilers.  */
21387
21388 #ifdef __STDC__
21389 # include <limits.h>
21390 #else
21391 # include <assert.h>
21392 #endif
21393
21394 #undef $ac_func
21395
21396 /* Override any gcc2 internal prototype to avoid an error.  */
21397 #ifdef __cplusplus
21398 extern "C"
21399 {
21400 #endif
21401 /* We use char because int might match the return type of a gcc2
21402    builtin and then its argument prototype would still apply.  */
21403 char $ac_func ();
21404 /* The GNU C library defines this for functions which it implements
21405     to always fail with ENOSYS.  Some functions are actually named
21406     something starting with __ and the normal name is an alias.  */
21407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21408 choke me
21409 #else
21410 char (*f) () = $ac_func;
21411 #endif
21412 #ifdef __cplusplus
21413 }
21414 #endif
21415
21416 int
21417 main ()
21418 {
21419 return f != $ac_func;
21420   ;
21421   return 0;
21422 }
21423 _ACEOF
21424 rm -f conftest.$ac_objext conftest$ac_exeext
21425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21426   (eval $ac_link) 2>conftest.er1
21427   ac_status=$?
21428   grep -v '^ *+' conftest.er1 >conftest.err
21429   rm -f conftest.er1
21430   cat conftest.err >&5
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); } &&
21433          { ac_try='test -z "$ac_c_werror_flag"
21434                          || test ! -s conftest.err'
21435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436   (eval $ac_try) 2>&5
21437   ac_status=$?
21438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439   (exit $ac_status); }; } &&
21440          { ac_try='test -s conftest$ac_exeext'
21441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442   (eval $ac_try) 2>&5
21443   ac_status=$?
21444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445   (exit $ac_status); }; }; then
21446   eval "$as_ac_var=yes"
21447 else
21448   echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21450
21451 eval "$as_ac_var=no"
21452 fi
21453 rm -f conftest.err conftest.$ac_objext \
21454       conftest$ac_exeext conftest.$ac_ext
21455 fi
21456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21458 if test `eval echo '${'$as_ac_var'}'` = yes; then
21459   cat >>confdefs.h <<_ACEOF
21460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21461 _ACEOF
21462
21463 else
21464   # strftime is in -lintl on SCO UNIX.
21465 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21466 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21467 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21468   echo $ECHO_N "(cached) $ECHO_C" >&6
21469 else
21470   ac_check_lib_save_LIBS=$LIBS
21471 LIBS="-lintl  $LIBS"
21472 cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h.  */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h.  */
21478
21479 /* Override any gcc2 internal prototype to avoid an error.  */
21480 #ifdef __cplusplus
21481 extern "C"
21482 #endif
21483 /* We use char because int might match the return type of a gcc2
21484    builtin and then its argument prototype would still apply.  */
21485 char strftime ();
21486 int
21487 main ()
21488 {
21489 strftime ();
21490   ;
21491   return 0;
21492 }
21493 _ACEOF
21494 rm -f conftest.$ac_objext conftest$ac_exeext
21495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21496   (eval $ac_link) 2>conftest.er1
21497   ac_status=$?
21498   grep -v '^ *+' conftest.er1 >conftest.err
21499   rm -f conftest.er1
21500   cat conftest.err >&5
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); } &&
21503          { ac_try='test -z "$ac_c_werror_flag"
21504                          || test ! -s conftest.err'
21505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506   (eval $ac_try) 2>&5
21507   ac_status=$?
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); }; } &&
21510          { ac_try='test -s conftest$ac_exeext'
21511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512   (eval $ac_try) 2>&5
21513   ac_status=$?
21514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515   (exit $ac_status); }; }; then
21516   ac_cv_lib_intl_strftime=yes
21517 else
21518   echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21520
21521 ac_cv_lib_intl_strftime=no
21522 fi
21523 rm -f conftest.err conftest.$ac_objext \
21524       conftest$ac_exeext conftest.$ac_ext
21525 LIBS=$ac_check_lib_save_LIBS
21526 fi
21527 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21528 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21529 if test $ac_cv_lib_intl_strftime = yes; then
21530   cat >>confdefs.h <<\_ACEOF
21531 #define HAVE_STRFTIME 1
21532 _ACEOF
21533
21534 LIBS="-lintl $LIBS"
21535 fi
21536
21537 fi
21538 done
21539
21540 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
21541 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
21542 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
21543   echo $ECHO_N "(cached) $ECHO_C" >&6
21544 else
21545   cat >conftest.$ac_ext <<_ACEOF
21546 /* confdefs.h.  */
21547 _ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h.  */
21551 $ac_includes_default
21552 int
21553 main ()
21554 {
21555 #ifndef strerror_r
21556   char *p = (char *) strerror_r;
21557 #endif
21558
21559   ;
21560   return 0;
21561 }
21562 _ACEOF
21563 rm -f conftest.$ac_objext
21564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21565   (eval $ac_compile) 2>conftest.er1
21566   ac_status=$?
21567   grep -v '^ *+' conftest.er1 >conftest.err
21568   rm -f conftest.er1
21569   cat conftest.err >&5
21570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571   (exit $ac_status); } &&
21572          { ac_try='test -z "$ac_c_werror_flag"
21573                          || test ! -s conftest.err'
21574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575   (eval $ac_try) 2>&5
21576   ac_status=$?
21577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578   (exit $ac_status); }; } &&
21579          { ac_try='test -s conftest.$ac_objext'
21580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581   (eval $ac_try) 2>&5
21582   ac_status=$?
21583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584   (exit $ac_status); }; }; then
21585   ac_cv_have_decl_strerror_r=yes
21586 else
21587   echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21589
21590 ac_cv_have_decl_strerror_r=no
21591 fi
21592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21593 fi
21594 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
21595 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
21596 if test $ac_cv_have_decl_strerror_r = yes; then
21597
21598 cat >>confdefs.h <<_ACEOF
21599 #define HAVE_DECL_STRERROR_R 1
21600 _ACEOF
21601
21602
21603 else
21604   cat >>confdefs.h <<_ACEOF
21605 #define HAVE_DECL_STRERROR_R 0
21606 _ACEOF
21607
21608
21609 fi
21610
21611
21612
21613 for ac_func in strerror_r
21614 do
21615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21616 echo "$as_me:$LINENO: checking for $ac_func" >&5
21617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21618 if eval "test \"\${$as_ac_var+set}\" = set"; then
21619   echo $ECHO_N "(cached) $ECHO_C" >&6
21620 else
21621   cat >conftest.$ac_ext <<_ACEOF
21622 /* confdefs.h.  */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h.  */
21627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21629 #define $ac_func innocuous_$ac_func
21630
21631 /* System header to define __stub macros and hopefully few prototypes,
21632     which can conflict with char $ac_func (); below.
21633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21634     <limits.h> exists even on freestanding compilers.  */
21635
21636 #ifdef __STDC__
21637 # include <limits.h>
21638 #else
21639 # include <assert.h>
21640 #endif
21641
21642 #undef $ac_func
21643
21644 /* Override any gcc2 internal prototype to avoid an error.  */
21645 #ifdef __cplusplus
21646 extern "C"
21647 {
21648 #endif
21649 /* We use char because int might match the return type of a gcc2
21650    builtin and then its argument prototype would still apply.  */
21651 char $ac_func ();
21652 /* The GNU C library defines this for functions which it implements
21653     to always fail with ENOSYS.  Some functions are actually named
21654     something starting with __ and the normal name is an alias.  */
21655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21656 choke me
21657 #else
21658 char (*f) () = $ac_func;
21659 #endif
21660 #ifdef __cplusplus
21661 }
21662 #endif
21663
21664 int
21665 main ()
21666 {
21667 return f != $ac_func;
21668   ;
21669   return 0;
21670 }
21671 _ACEOF
21672 rm -f conftest.$ac_objext conftest$ac_exeext
21673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21674   (eval $ac_link) 2>conftest.er1
21675   ac_status=$?
21676   grep -v '^ *+' conftest.er1 >conftest.err
21677   rm -f conftest.er1
21678   cat conftest.err >&5
21679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680   (exit $ac_status); } &&
21681          { ac_try='test -z "$ac_c_werror_flag"
21682                          || test ! -s conftest.err'
21683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684   (eval $ac_try) 2>&5
21685   ac_status=$?
21686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); }; } &&
21688          { ac_try='test -s conftest$ac_exeext'
21689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690   (eval $ac_try) 2>&5
21691   ac_status=$?
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); }; }; then
21694   eval "$as_ac_var=yes"
21695 else
21696   echo "$as_me: failed program was:" >&5
21697 sed 's/^/| /' conftest.$ac_ext >&5
21698
21699 eval "$as_ac_var=no"
21700 fi
21701 rm -f conftest.err conftest.$ac_objext \
21702       conftest$ac_exeext conftest.$ac_ext
21703 fi
21704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21706 if test `eval echo '${'$as_ac_var'}'` = yes; then
21707   cat >>confdefs.h <<_ACEOF
21708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21709 _ACEOF
21710
21711 fi
21712 done
21713
21714 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
21715 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
21716 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
21717   echo $ECHO_N "(cached) $ECHO_C" >&6
21718 else
21719
21720     ac_cv_func_strerror_r_char_p=no
21721     if test $ac_cv_have_decl_strerror_r = yes; then
21722       cat >conftest.$ac_ext <<_ACEOF
21723 /* confdefs.h.  */
21724 _ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h.  */
21728 $ac_includes_default
21729 int
21730 main ()
21731 {
21732
21733           char buf[100];
21734           char x = *strerror_r (0, buf, sizeof buf);
21735           char *p = strerror_r (0, buf, sizeof buf);
21736
21737   ;
21738   return 0;
21739 }
21740 _ACEOF
21741 rm -f conftest.$ac_objext
21742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21743   (eval $ac_compile) 2>conftest.er1
21744   ac_status=$?
21745   grep -v '^ *+' conftest.er1 >conftest.err
21746   rm -f conftest.er1
21747   cat conftest.err >&5
21748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749   (exit $ac_status); } &&
21750          { ac_try='test -z "$ac_c_werror_flag"
21751                          || test ! -s conftest.err'
21752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753   (eval $ac_try) 2>&5
21754   ac_status=$?
21755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756   (exit $ac_status); }; } &&
21757          { ac_try='test -s conftest.$ac_objext'
21758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759   (eval $ac_try) 2>&5
21760   ac_status=$?
21761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762   (exit $ac_status); }; }; then
21763   ac_cv_func_strerror_r_char_p=yes
21764 else
21765   echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21767
21768 fi
21769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21770     else
21771       # strerror_r is not declared.  Choose between
21772       # systems that have relatively inaccessible declarations for the
21773       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
21774       # former has a strerror_r that returns char*, while the latter
21775       # has a strerror_r that returns `int'.
21776       # This test should segfault on the DEC system.
21777       if test "$cross_compiling" = yes; then
21778   :
21779 else
21780   cat >conftest.$ac_ext <<_ACEOF
21781 /* confdefs.h.  */
21782 _ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h.  */
21786 $ac_includes_default
21787         extern char *strerror_r ();
21788 int
21789 main ()
21790 {
21791 char buf[100];
21792           char x = *strerror_r (0, buf, sizeof buf);
21793           exit (!isalpha (x));
21794   ;
21795   return 0;
21796 }
21797 _ACEOF
21798 rm -f conftest$ac_exeext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21800   (eval $ac_link) 2>&5
21801   ac_status=$?
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805   (eval $ac_try) 2>&5
21806   ac_status=$?
21807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808   (exit $ac_status); }; }; then
21809   ac_cv_func_strerror_r_char_p=yes
21810 else
21811   echo "$as_me: program exited with status $ac_status" >&5
21812 echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21814
21815 fi
21816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21817 fi
21818     fi
21819
21820 fi
21821 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
21822 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
21823 if test $ac_cv_func_strerror_r_char_p = yes; then
21824
21825 cat >>confdefs.h <<\_ACEOF
21826 #define STRERROR_R_CHAR_P 1
21827 _ACEOF
21828
21829 fi
21830
21831
21832
21833
21834
21835
21836
21837
21838 for ac_func in strchr strdup strstr timegm gmtime_r strtok_r strcasecmp
21839 do
21840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21841 echo "$as_me:$LINENO: checking for $ac_func" >&5
21842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21843 if eval "test \"\${$as_ac_var+set}\" = set"; then
21844   echo $ECHO_N "(cached) $ECHO_C" >&6
21845 else
21846   cat >conftest.$ac_ext <<_ACEOF
21847 /* confdefs.h.  */
21848 _ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h.  */
21852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21854 #define $ac_func innocuous_$ac_func
21855
21856 /* System header to define __stub macros and hopefully few prototypes,
21857     which can conflict with char $ac_func (); below.
21858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21859     <limits.h> exists even on freestanding compilers.  */
21860
21861 #ifdef __STDC__
21862 # include <limits.h>
21863 #else
21864 # include <assert.h>
21865 #endif
21866
21867 #undef $ac_func
21868
21869 /* Override any gcc2 internal prototype to avoid an error.  */
21870 #ifdef __cplusplus
21871 extern "C"
21872 {
21873 #endif
21874 /* We use char because int might match the return type of a gcc2
21875    builtin and then its argument prototype would still apply.  */
21876 char $ac_func ();
21877 /* The GNU C library defines this for functions which it implements
21878     to always fail with ENOSYS.  Some functions are actually named
21879     something starting with __ and the normal name is an alias.  */
21880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21881 choke me
21882 #else
21883 char (*f) () = $ac_func;
21884 #endif
21885 #ifdef __cplusplus
21886 }
21887 #endif
21888
21889 int
21890 main ()
21891 {
21892 return f != $ac_func;
21893   ;
21894   return 0;
21895 }
21896 _ACEOF
21897 rm -f conftest.$ac_objext conftest$ac_exeext
21898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21899   (eval $ac_link) 2>conftest.er1
21900   ac_status=$?
21901   grep -v '^ *+' conftest.er1 >conftest.err
21902   rm -f conftest.er1
21903   cat conftest.err >&5
21904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); } &&
21906          { ac_try='test -z "$ac_c_werror_flag"
21907                          || test ! -s conftest.err'
21908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909   (eval $ac_try) 2>&5
21910   ac_status=$?
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); }; } &&
21913          { ac_try='test -s conftest$ac_exeext'
21914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915   (eval $ac_try) 2>&5
21916   ac_status=$?
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); }; }; then
21919   eval "$as_ac_var=yes"
21920 else
21921   echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924 eval "$as_ac_var=no"
21925 fi
21926 rm -f conftest.err conftest.$ac_objext \
21927       conftest$ac_exeext conftest.$ac_ext
21928 fi
21929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21931 if test `eval echo '${'$as_ac_var'}'` = yes; then
21932   cat >>confdefs.h <<_ACEOF
21933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21934 _ACEOF
21935
21936 fi
21937 done
21938
21939
21940 # checks for pthreads
21941
21942
21943
21944
21945 ac_ext=c
21946 ac_cpp='$CPP $CPPFLAGS'
21947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21950
21951 acx_pthread_ok=no
21952
21953 # We used to check for pthread.h first, but this fails if pthread.h
21954 # requires special compiler flags (e.g. on True64 or Sequent).
21955 # It gets checked for in the link test anyway.
21956
21957 # First of all, check if the user has set any of the PTHREAD_LIBS,
21958 # etcetera environment variables, and if threads linking works using
21959 # them:
21960 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21961         save_CFLAGS="$CFLAGS"
21962         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21963         save_LIBS="$LIBS"
21964         LIBS="$PTHREAD_LIBS $LIBS"
21965         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21966 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
21967         cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h.  */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h.  */
21973
21974 /* Override any gcc2 internal prototype to avoid an error.  */
21975 #ifdef __cplusplus
21976 extern "C"
21977 #endif
21978 /* We use char because int might match the return type of a gcc2
21979    builtin and then its argument prototype would still apply.  */
21980 char pthread_join ();
21981 int
21982 main ()
21983 {
21984 pthread_join ();
21985   ;
21986   return 0;
21987 }
21988 _ACEOF
21989 rm -f conftest.$ac_objext conftest$ac_exeext
21990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21991   (eval $ac_link) 2>conftest.er1
21992   ac_status=$?
21993   grep -v '^ *+' conftest.er1 >conftest.err
21994   rm -f conftest.er1
21995   cat conftest.err >&5
21996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997   (exit $ac_status); } &&
21998          { ac_try='test -z "$ac_c_werror_flag"
21999                          || test ! -s conftest.err'
22000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001   (eval $ac_try) 2>&5
22002   ac_status=$?
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); }; } &&
22005          { ac_try='test -s conftest$ac_exeext'
22006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007   (eval $ac_try) 2>&5
22008   ac_status=$?
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); }; }; then
22011   acx_pthread_ok=yes
22012 else
22013   echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22015
22016 fi
22017 rm -f conftest.err conftest.$ac_objext \
22018       conftest$ac_exeext conftest.$ac_ext
22019         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22020 echo "${ECHO_T}$acx_pthread_ok" >&6
22021         if test x"$acx_pthread_ok" = xno; then
22022                 PTHREAD_LIBS=""
22023                 PTHREAD_CFLAGS=""
22024         fi
22025         LIBS="$save_LIBS"
22026         CFLAGS="$save_CFLAGS"
22027 fi
22028
22029 # We must check for the threads library under a number of different
22030 # names; the ordering is very important because some systems
22031 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22032 # libraries is broken (non-POSIX).
22033
22034 # Create a list of thread flags to try.  Items starting with a "-" are
22035 # C compiler flags, and other items are library names, except for "none"
22036 # which indicates that we try without any flags at all, and "pthread-config"
22037 # which is a program returning the flags for the Pth emulation library.
22038
22039 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22040
22041 # The ordering *is* (sometimes) important.  Some notes on the
22042 # individual items follow:
22043
22044 # pthreads: AIX (must check this before -lpthread)
22045 # none: in case threads are in libc; should be tried before -Kthread and
22046 #       other compiler flags to prevent continual compiler warnings
22047 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22048 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22049 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22050 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22051 # -pthreads: Solaris/gcc
22052 # -mthreads: Mingw32/gcc, Lynx/gcc
22053 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22054 #      doesn't hurt to check since this sometimes defines pthreads too;
22055 #      also defines -D_REENTRANT)
22056 #      ... -mt is also the pthreads flag for HP/aCC
22057 # pthread: Linux, etcetera
22058 # --thread-safe: KAI C++
22059 # pthread-config: use pthread-config program (for GNU Pth library)
22060
22061 case "${host_cpu}-${host_os}" in
22062         *solaris*)
22063
22064         # On Solaris (at least, for some versions), libc contains stubbed
22065         # (non-functional) versions of the pthreads routines, so link-based
22066         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
22067         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22068         # a function called by this macro, so we could check for that, but
22069         # who knows whether they'll stub that too in a future libc.)  So,
22070         # we'll just look for -pthreads and -lpthread first:
22071
22072         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
22073         ;;
22074 esac
22075
22076 if test x"$acx_pthread_ok" = xno; then
22077 for flag in $acx_pthread_flags; do
22078
22079         case $flag in
22080                 none)
22081                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22082 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
22083                 ;;
22084
22085                 -*)
22086                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22087 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
22088                 PTHREAD_CFLAGS="$flag"
22089                 ;;
22090
22091                 pthread-config)
22092                 # Extract the first word of "pthread-config", so it can be a program name with args.
22093 set dummy pthread-config; ac_word=$2
22094 echo "$as_me:$LINENO: checking for $ac_word" >&5
22095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22096 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22097   echo $ECHO_N "(cached) $ECHO_C" >&6
22098 else
22099   if test -n "$acx_pthread_config"; then
22100   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22101 else
22102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22103 for as_dir in $PATH
22104 do
22105   IFS=$as_save_IFS
22106   test -z "$as_dir" && as_dir=.
22107   for ac_exec_ext in '' $ac_executable_extensions; do
22108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22109     ac_cv_prog_acx_pthread_config="yes"
22110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22111     break 2
22112   fi
22113 done
22114 done
22115
22116   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22117 fi
22118 fi
22119 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22120 if test -n "$acx_pthread_config"; then
22121   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22122 echo "${ECHO_T}$acx_pthread_config" >&6
22123 else
22124   echo "$as_me:$LINENO: result: no" >&5
22125 echo "${ECHO_T}no" >&6
22126 fi
22127
22128                 if test x"$acx_pthread_config" = xno; then continue; fi
22129                 PTHREAD_CFLAGS="`pthread-config --cflags`"
22130                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22131                 ;;
22132
22133                 *)
22134                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22135 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
22136                 PTHREAD_LIBS="-l$flag"
22137                 ;;
22138         esac
22139
22140         save_LIBS="$LIBS"
22141         save_CFLAGS="$CFLAGS"
22142         LIBS="$PTHREAD_LIBS $LIBS"
22143         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22144
22145         # Check for various functions.  We must include pthread.h,
22146         # since some functions may be macros.  (On the Sequent, we
22147         # need a special flag -Kthread to make this header compile.)
22148         # We check for pthread_join because it is in -lpthread on IRIX
22149         # while pthread_create is in libc.  We check for pthread_attr_init
22150         # due to DEC craziness with -lpthreads.  We check for
22151         # pthread_cleanup_push because it is one of the few pthread
22152         # functions on Solaris that doesn't have a non-functional libc stub.
22153         # We try pthread_create on general principles.
22154         cat >conftest.$ac_ext <<_ACEOF
22155 /* confdefs.h.  */
22156 _ACEOF
22157 cat confdefs.h >>conftest.$ac_ext
22158 cat >>conftest.$ac_ext <<_ACEOF
22159 /* end confdefs.h.  */
22160 #include <pthread.h>
22161 int
22162 main ()
22163 {
22164 pthread_t th; pthread_join(th, 0);
22165                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22166                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22167   ;
22168   return 0;
22169 }
22170 _ACEOF
22171 rm -f conftest.$ac_objext conftest$ac_exeext
22172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22173   (eval $ac_link) 2>conftest.er1
22174   ac_status=$?
22175   grep -v '^ *+' conftest.er1 >conftest.err
22176   rm -f conftest.er1
22177   cat conftest.err >&5
22178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179   (exit $ac_status); } &&
22180          { ac_try='test -z "$ac_c_werror_flag"
22181                          || test ! -s conftest.err'
22182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22183   (eval $ac_try) 2>&5
22184   ac_status=$?
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); }; } &&
22187          { ac_try='test -s conftest$ac_exeext'
22188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22189   (eval $ac_try) 2>&5
22190   ac_status=$?
22191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192   (exit $ac_status); }; }; then
22193   acx_pthread_ok=yes
22194 else
22195   echo "$as_me: failed program was:" >&5
22196 sed 's/^/| /' conftest.$ac_ext >&5
22197
22198 fi
22199 rm -f conftest.err conftest.$ac_objext \
22200       conftest$ac_exeext conftest.$ac_ext
22201
22202         LIBS="$save_LIBS"
22203         CFLAGS="$save_CFLAGS"
22204
22205         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22206 echo "${ECHO_T}$acx_pthread_ok" >&6
22207         if test "x$acx_pthread_ok" = xyes; then
22208                 break;
22209         fi
22210
22211         PTHREAD_LIBS=""
22212         PTHREAD_CFLAGS=""
22213 done
22214 fi
22215
22216 # Various other checks:
22217 if test "x$acx_pthread_ok" = xyes; then
22218         save_LIBS="$LIBS"
22219         LIBS="$PTHREAD_LIBS $LIBS"
22220         save_CFLAGS="$CFLAGS"
22221         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22222
22223         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22224         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22225 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
22226         attr_name=unknown
22227         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22228             cat >conftest.$ac_ext <<_ACEOF
22229 /* confdefs.h.  */
22230 _ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h.  */
22234 #include <pthread.h>
22235 int
22236 main ()
22237 {
22238 int attr=$attr; return attr;
22239   ;
22240   return 0;
22241 }
22242 _ACEOF
22243 rm -f conftest.$ac_objext conftest$ac_exeext
22244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22245   (eval $ac_link) 2>conftest.er1
22246   ac_status=$?
22247   grep -v '^ *+' conftest.er1 >conftest.err
22248   rm -f conftest.er1
22249   cat conftest.err >&5
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); } &&
22252          { ac_try='test -z "$ac_c_werror_flag"
22253                          || test ! -s conftest.err'
22254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255   (eval $ac_try) 2>&5
22256   ac_status=$?
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); }; } &&
22259          { ac_try='test -s conftest$ac_exeext'
22260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261   (eval $ac_try) 2>&5
22262   ac_status=$?
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); }; }; then
22265   attr_name=$attr; break
22266 else
22267   echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22269
22270 fi
22271 rm -f conftest.err conftest.$ac_objext \
22272       conftest$ac_exeext conftest.$ac_ext
22273         done
22274         echo "$as_me:$LINENO: result: $attr_name" >&5
22275 echo "${ECHO_T}$attr_name" >&6
22276         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22277
22278 cat >>confdefs.h <<_ACEOF
22279 #define PTHREAD_CREATE_JOINABLE $attr_name
22280 _ACEOF
22281
22282         fi
22283
22284         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22285 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
22286         flag=no
22287         case "${host_cpu}-${host_os}" in
22288                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
22289                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
22290                 *solaris*)
22291                 if test "$GCC" = "yes"; then
22292                     flag="-D_REENTRANT"
22293                 else
22294                     flag="-mt -D_REENTRANT"
22295                 fi
22296                 ;;
22297         esac
22298         echo "$as_me:$LINENO: result: ${flag}" >&5
22299 echo "${ECHO_T}${flag}" >&6
22300         if test "x$flag" != xno; then
22301             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22302         fi
22303
22304         LIBS="$save_LIBS"
22305         CFLAGS="$save_CFLAGS"
22306
22307         # More AIX lossage: must compile with xlc_r or cc_r
22308         if test x"$GCC" != xyes; then
22309           for ac_prog in xlc_r cc_r
22310 do
22311   # Extract the first word of "$ac_prog", so it can be a program name with args.
22312 set dummy $ac_prog; ac_word=$2
22313 echo "$as_me:$LINENO: checking for $ac_word" >&5
22314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22315 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22316   echo $ECHO_N "(cached) $ECHO_C" >&6
22317 else
22318   if test -n "$PTHREAD_CC"; then
22319   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22320 else
22321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22322 for as_dir in $PATH
22323 do
22324   IFS=$as_save_IFS
22325   test -z "$as_dir" && as_dir=.
22326   for ac_exec_ext in '' $ac_executable_extensions; do
22327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22328     ac_cv_prog_PTHREAD_CC="$ac_prog"
22329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22330     break 2
22331   fi
22332 done
22333 done
22334
22335 fi
22336 fi
22337 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22338 if test -n "$PTHREAD_CC"; then
22339   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22340 echo "${ECHO_T}$PTHREAD_CC" >&6
22341 else
22342   echo "$as_me:$LINENO: result: no" >&5
22343 echo "${ECHO_T}no" >&6
22344 fi
22345
22346   test -n "$PTHREAD_CC" && break
22347 done
22348 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22349
22350         else
22351           PTHREAD_CC=$CC
22352         fi
22353 else
22354         PTHREAD_CC="$CC"
22355 fi
22356
22357
22358
22359
22360
22361 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22362 if test x"$acx_pthread_ok" = xyes; then
22363         enable_threads="pthread"
22364         :
22365 else
22366         acx_pthread_ok=no
22367         enable_threads="no"
22368 fi
22369 ac_ext=c
22370 ac_cpp='$CPP $CPPFLAGS'
22371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22374
22375
22376 if test $enable_threads != "pthread"; then
22377     { { echo "$as_me:$LINENO: error: unable to find pthreads, currently this is required" >&5
22378 echo "$as_me: error: unable to find pthreads, currently this is required" >&2;}
22379    { (exit 1); exit 1; }; }
22380 else
22381
22382 cat >>confdefs.h <<\_ACEOF
22383 #define HAVE_PTHREAD 1
22384 _ACEOF
22385
22386     LIBS="$PTHREAD_LIBS $LIBS"
22387     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
22388     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
22389 fi
22390
22391 # Thank you Solaris, really.
22392 echo "$as_me:$LINENO: checking for ctime_r" >&5
22393 echo $ECHO_N "checking for ctime_r... $ECHO_C" >&6
22394  if test -z "$ac_cv_ctime_args"; then
22395      cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h.  */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h.  */
22401 #include <time.h>
22402 int
22403 main ()
22404 {
22405
22406          time_t clock;
22407          char buf[26];
22408          ctime_r(&clock, buf);
22409
22410   ;
22411   return 0;
22412 }
22413 _ACEOF
22414 rm -f conftest.$ac_objext
22415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22416   (eval $ac_compile) 2>conftest.er1
22417   ac_status=$?
22418   grep -v '^ *+' conftest.er1 >conftest.err
22419   rm -f conftest.er1
22420   cat conftest.err >&5
22421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422   (exit $ac_status); } &&
22423          { ac_try='test -z "$ac_c_werror_flag"
22424                          || test ! -s conftest.err'
22425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426   (eval $ac_try) 2>&5
22427   ac_status=$?
22428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429   (exit $ac_status); }; } &&
22430          { ac_try='test -s conftest.$ac_objext'
22431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22432   (eval $ac_try) 2>&5
22433   ac_status=$?
22434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435   (exit $ac_status); }; }; then
22436   ac_cv_ctime_args=2
22437 else
22438   echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22440
22441 fi
22442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22443
22444      cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h.  */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h.  */
22450 #include <time.h>
22451 int
22452 main ()
22453 {
22454
22455          time_t clock;
22456          char buf[26];
22457          ctime_r(&clock, buf, 26);
22458
22459   ;
22460   return 0;
22461 }
22462 _ACEOF
22463 rm -f conftest.$ac_objext
22464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22465   (eval $ac_compile) 2>conftest.er1
22466   ac_status=$?
22467   grep -v '^ *+' conftest.er1 >conftest.err
22468   rm -f conftest.er1
22469   cat conftest.err >&5
22470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471   (exit $ac_status); } &&
22472          { ac_try='test -z "$ac_c_werror_flag"
22473                          || test ! -s conftest.err'
22474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475   (eval $ac_try) 2>&5
22476   ac_status=$?
22477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478   (exit $ac_status); }; } &&
22479          { ac_try='test -s conftest.$ac_objext'
22480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481   (eval $ac_try) 2>&5
22482   ac_status=$?
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); }; }; then
22485   ac_cv_ctime_args=3
22486 else
22487   echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22489
22490 fi
22491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22492  fi
22493  if test -z "$ac_cv_ctime_args"; then
22494      echo "$as_me:$LINENO: result: no" >&5
22495 echo "${ECHO_T}no" >&6
22496  else
22497      if test "$ac_cv_ctime_args" = 2; then
22498
22499 cat >>confdefs.h <<\_ACEOF
22500 #define HAVE_CTIME_R_2 1
22501 _ACEOF
22502
22503      elif test "$ac_cv_ctime_args" = 3; then
22504
22505 cat >>confdefs.h <<\_ACEOF
22506 #define HAVE_CTIME_R_3 1
22507 _ACEOF
22508
22509      fi
22510      echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_ctime_args arguments" >&5
22511 echo "${ECHO_T}yes, and it takes $ac_cv_ctime_args arguments" >&6
22512  fi
22513
22514 # OpenSSL settings
22515
22516 # Check whether --with-openssl or --without-openssl was given.
22517 if test "${with_openssl+set}" = set; then
22518   withval="$with_openssl"
22519   if test x_$with_openssl != x_/usr; then
22520         SSLFLAGS="-I${with_openssl}/include"
22521     fi
22522 fi;
22523
22524 if test "x$SSLFLAGS" = "x" ; then
22525     # Extract the first word of "pkg-config", so it can be a program name with args.
22526 set dummy pkg-config; ac_word=$2
22527 echo "$as_me:$LINENO: checking for $ac_word" >&5
22528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22529 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22530   echo $ECHO_N "(cached) $ECHO_C" >&6
22531 else
22532   case $PKG_CONFIG in
22533   [\\/]* | ?:[\\/]*)
22534   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22535   ;;
22536   *)
22537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22538 for as_dir in $PATH
22539 do
22540   IFS=$as_save_IFS
22541   test -z "$as_dir" && as_dir=.
22542   for ac_exec_ext in '' $ac_executable_extensions; do
22543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22544     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22546     break 2
22547   fi
22548 done
22549 done
22550
22551   ;;
22552 esac
22553 fi
22554 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22555
22556 if test -n "$PKG_CONFIG"; then
22557   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22558 echo "${ECHO_T}$PKG_CONFIG" >&6
22559 else
22560   echo "$as_me:$LINENO: result: no" >&5
22561 echo "${ECHO_T}no" >&6
22562 fi
22563
22564     if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
22565         if pkg-config openssl ; then
22566             SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
22567         else
22568             { { echo "$as_me:$LINENO: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
22569 echo "$as_me: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
22570    { (exit 1); exit 1; }; }
22571         fi
22572     fi
22573 fi
22574
22575 echo "$as_me:$LINENO: checking for OpenSSL cflags" >&5
22576 echo $ECHO_N "checking for OpenSSL cflags... $ECHO_C" >&6
22577 echo "$as_me:$LINENO: result: $SSLFLAGS" >&5
22578 echo "${ECHO_T}$SSLFLAGS" >&6
22579 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
22580
22581 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22582   echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22583 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22584 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22585   echo $ECHO_N "(cached) $ECHO_C" >&6
22586 fi
22587 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22588 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22589 else
22590   # Is the header compilable?
22591 echo "$as_me:$LINENO: checking openssl/x509.h usability" >&5
22592 echo $ECHO_N "checking openssl/x509.h usability... $ECHO_C" >&6
22593 cat >conftest.$ac_ext <<_ACEOF
22594 /* confdefs.h.  */
22595 _ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h.  */
22599 $ac_includes_default
22600 #include <openssl/x509.h>
22601 _ACEOF
22602 rm -f conftest.$ac_objext
22603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22604   (eval $ac_compile) 2>conftest.er1
22605   ac_status=$?
22606   grep -v '^ *+' conftest.er1 >conftest.err
22607   rm -f conftest.er1
22608   cat conftest.err >&5
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); } &&
22611          { ac_try='test -z "$ac_c_werror_flag"
22612                          || test ! -s conftest.err'
22613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614   (eval $ac_try) 2>&5
22615   ac_status=$?
22616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617   (exit $ac_status); }; } &&
22618          { ac_try='test -s conftest.$ac_objext'
22619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620   (eval $ac_try) 2>&5
22621   ac_status=$?
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); }; }; then
22624   ac_header_compiler=yes
22625 else
22626   echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22628
22629 ac_header_compiler=no
22630 fi
22631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22633 echo "${ECHO_T}$ac_header_compiler" >&6
22634
22635 # Is the header present?
22636 echo "$as_me:$LINENO: checking openssl/x509.h presence" >&5
22637 echo $ECHO_N "checking openssl/x509.h presence... $ECHO_C" >&6
22638 cat >conftest.$ac_ext <<_ACEOF
22639 /* confdefs.h.  */
22640 _ACEOF
22641 cat confdefs.h >>conftest.$ac_ext
22642 cat >>conftest.$ac_ext <<_ACEOF
22643 /* end confdefs.h.  */
22644 #include <openssl/x509.h>
22645 _ACEOF
22646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22648   ac_status=$?
22649   grep -v '^ *+' conftest.er1 >conftest.err
22650   rm -f conftest.er1
22651   cat conftest.err >&5
22652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653   (exit $ac_status); } >/dev/null; then
22654   if test -s conftest.err; then
22655     ac_cpp_err=$ac_c_preproc_warn_flag
22656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22657   else
22658     ac_cpp_err=
22659   fi
22660 else
22661   ac_cpp_err=yes
22662 fi
22663 if test -z "$ac_cpp_err"; then
22664   ac_header_preproc=yes
22665 else
22666   echo "$as_me: failed program was:" >&5
22667 sed 's/^/| /' conftest.$ac_ext >&5
22668
22669   ac_header_preproc=no
22670 fi
22671 rm -f conftest.err conftest.$ac_ext
22672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22673 echo "${ECHO_T}$ac_header_preproc" >&6
22674
22675 # So?  What about this header?
22676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22677   yes:no: )
22678     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&5
22679 echo "$as_me: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22680     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the compiler's result" >&5
22681 echo "$as_me: WARNING: openssl/x509.h: proceeding with the compiler's result" >&2;}
22682     ac_header_preproc=yes
22683     ;;
22684   no:yes:* )
22685     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: present but cannot be compiled" >&5
22686 echo "$as_me: WARNING: openssl/x509.h: present but cannot be compiled" >&2;}
22687     { echo "$as_me:$LINENO: WARNING: openssl/x509.h:     check for missing prerequisite headers?" >&5
22688 echo "$as_me: WARNING: openssl/x509.h:     check for missing prerequisite headers?" >&2;}
22689     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: see the Autoconf documentation" >&5
22690 echo "$as_me: WARNING: openssl/x509.h: see the Autoconf documentation" >&2;}
22691     { echo "$as_me:$LINENO: WARNING: openssl/x509.h:     section \"Present But Cannot Be Compiled\"" >&5
22692 echo "$as_me: WARNING: openssl/x509.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22693     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&5
22694 echo "$as_me: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&2;}
22695     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&5
22696 echo "$as_me: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&2;}
22697     (
22698       cat <<\_ASBOX
22699 ## --------------------------------------------- ##
22700 ## Report this to shibboleth-users@internet2.edu ##
22701 ## --------------------------------------------- ##
22702 _ASBOX
22703     ) |
22704       sed "s/^/$as_me: WARNING:     /" >&2
22705     ;;
22706 esac
22707 echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22708 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22709 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22710   echo $ECHO_N "(cached) $ECHO_C" >&6
22711 else
22712   ac_cv_header_openssl_x509_h=$ac_header_preproc
22713 fi
22714 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22715 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22716
22717 fi
22718 if test $ac_cv_header_openssl_x509_h = yes; then
22719   :
22720 else
22721   { { echo "$as_me:$LINENO: error: unable to find openssl header files" >&5
22722 echo "$as_me: error: unable to find openssl header files" >&2;}
22723    { (exit 1); exit 1; }; }
22724 fi
22725
22726
22727
22728 ac_ext=cc
22729 ac_cpp='$CXXCPP $CPPFLAGS'
22730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22733
22734
22735 # C++ requirements
22736 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22737 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22738 if test "${ac_cv_cxx_namespaces+set}" = set; then
22739   echo $ECHO_N "(cached) $ECHO_C" >&6
22740 else
22741
22742
22743  ac_ext=cc
22744 ac_cpp='$CXXCPP $CPPFLAGS'
22745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22748
22749  cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h.  */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h.  */
22755 namespace Outer { namespace Inner { int i = 0; }}
22756 int
22757 main ()
22758 {
22759 using namespace Outer::Inner; return i;
22760   ;
22761   return 0;
22762 }
22763 _ACEOF
22764 rm -f conftest.$ac_objext
22765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22766   (eval $ac_compile) 2>conftest.er1
22767   ac_status=$?
22768   grep -v '^ *+' conftest.er1 >conftest.err
22769   rm -f conftest.er1
22770   cat conftest.err >&5
22771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772   (exit $ac_status); } &&
22773          { ac_try='test -z "$ac_cxx_werror_flag"
22774                          || test ! -s conftest.err'
22775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776   (eval $ac_try) 2>&5
22777   ac_status=$?
22778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779   (exit $ac_status); }; } &&
22780          { ac_try='test -s conftest.$ac_objext'
22781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782   (eval $ac_try) 2>&5
22783   ac_status=$?
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); }; }; then
22786   ac_cv_cxx_namespaces=yes
22787 else
22788   echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22790
22791 ac_cv_cxx_namespaces=no
22792 fi
22793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22794  ac_ext=cc
22795 ac_cpp='$CXXCPP $CPPFLAGS'
22796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22799
22800
22801 fi
22802 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22803 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22804 if test "$ac_cv_cxx_namespaces" = yes; then
22805
22806 cat >>confdefs.h <<\_ACEOF
22807 #define HAVE_NAMESPACES 1
22808 _ACEOF
22809
22810 fi
22811
22812 echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
22813 echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
22814 if test "${ac_cv_cxx_have_stl+set}" = set; then
22815   echo $ECHO_N "(cached) $ECHO_C" >&6
22816 else
22817
22818
22819
22820  ac_ext=cc
22821 ac_cpp='$CXXCPP $CPPFLAGS'
22822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22825
22826  cat >conftest.$ac_ext <<_ACEOF
22827 /* confdefs.h.  */
22828 _ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h.  */
22832 #include <list>
22833 #include <deque>
22834 #ifdef HAVE_NAMESPACES
22835 using namespace std;
22836 #endif
22837 int
22838 main ()
22839 {
22840 list<int> x; x.push_back(5);
22841 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
22842   ;
22843   return 0;
22844 }
22845 _ACEOF
22846 rm -f conftest.$ac_objext
22847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22848   (eval $ac_compile) 2>conftest.er1
22849   ac_status=$?
22850   grep -v '^ *+' conftest.er1 >conftest.err
22851   rm -f conftest.er1
22852   cat conftest.err >&5
22853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854   (exit $ac_status); } &&
22855          { ac_try='test -z "$ac_cxx_werror_flag"
22856                          || test ! -s conftest.err'
22857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858   (eval $ac_try) 2>&5
22859   ac_status=$?
22860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861   (exit $ac_status); }; } &&
22862          { ac_try='test -s conftest.$ac_objext'
22863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22864   (eval $ac_try) 2>&5
22865   ac_status=$?
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); }; }; then
22868   ac_cv_cxx_have_stl=yes
22869 else
22870   echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22872
22873 ac_cv_cxx_have_stl=no
22874 fi
22875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22876  ac_ext=cc
22877 ac_cpp='$CXXCPP $CPPFLAGS'
22878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22881
22882
22883 fi
22884 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
22885 echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
22886 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
22887   { { echo "$as_me:$LINENO: error: C++ Standard Template Libary unsupported" >&5
22888 echo "$as_me: error: C++ Standard Template Libary unsupported" >&2;}
22889    { (exit 1); exit 1; }; }
22890 fi
22891
22892 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22893 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22894 if test "${ac_cv_cxx_namespaces+set}" = set; then
22895   echo $ECHO_N "(cached) $ECHO_C" >&6
22896 else
22897
22898
22899  ac_ext=cc
22900 ac_cpp='$CXXCPP $CPPFLAGS'
22901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22904
22905  cat >conftest.$ac_ext <<_ACEOF
22906 /* confdefs.h.  */
22907 _ACEOF
22908 cat confdefs.h >>conftest.$ac_ext
22909 cat >>conftest.$ac_ext <<_ACEOF
22910 /* end confdefs.h.  */
22911 namespace Outer { namespace Inner { int i = 0; }}
22912 int
22913 main ()
22914 {
22915 using namespace Outer::Inner; return i;
22916   ;
22917   return 0;
22918 }
22919 _ACEOF
22920 rm -f conftest.$ac_objext
22921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22922   (eval $ac_compile) 2>conftest.er1
22923   ac_status=$?
22924   grep -v '^ *+' conftest.er1 >conftest.err
22925   rm -f conftest.er1
22926   cat conftest.err >&5
22927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928   (exit $ac_status); } &&
22929          { ac_try='test -z "$ac_cxx_werror_flag"
22930                          || test ! -s conftest.err'
22931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22932   (eval $ac_try) 2>&5
22933   ac_status=$?
22934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935   (exit $ac_status); }; } &&
22936          { ac_try='test -s conftest.$ac_objext'
22937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938   (eval $ac_try) 2>&5
22939   ac_status=$?
22940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941   (exit $ac_status); }; }; then
22942   ac_cv_cxx_namespaces=yes
22943 else
22944   echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22946
22947 ac_cv_cxx_namespaces=no
22948 fi
22949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22950  ac_ext=cc
22951 ac_cpp='$CXXCPP $CPPFLAGS'
22952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22955
22956
22957 fi
22958 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22959 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22960 if test "$ac_cv_cxx_namespaces" = yes; then
22961
22962 cat >>confdefs.h <<\_ACEOF
22963 #define HAVE_NAMESPACES 1
22964 _ACEOF
22965
22966 fi
22967
22968
22969 # log4shib settings (favor this version over the log4cpp code)
22970 # Extract the first word of "log4shib-config", so it can be a program name with args.
22971 set dummy log4shib-config; ac_word=$2
22972 echo "$as_me:$LINENO: checking for $ac_word" >&5
22973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22974 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then
22975   echo $ECHO_N "(cached) $ECHO_C" >&6
22976 else
22977   case $LOG4SHIB_CONFIG in
22978   [\\/]* | ?:[\\/]*)
22979   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
22980   ;;
22981   *)
22982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22983 for as_dir in $PATH
22984 do
22985   IFS=$as_save_IFS
22986   test -z "$as_dir" && as_dir=.
22987   for ac_exec_ext in '' $ac_executable_extensions; do
22988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22989     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22991     break 2
22992   fi
22993 done
22994 done
22995
22996   ;;
22997 esac
22998 fi
22999 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
23000
23001 if test -n "$LOG4SHIB_CONFIG"; then
23002   echo "$as_me:$LINENO: result: $LOG4SHIB_CONFIG" >&5
23003 echo "${ECHO_T}$LOG4SHIB_CONFIG" >&6
23004 else
23005   echo "$as_me:$LINENO: result: no" >&5
23006 echo "${ECHO_T}no" >&6
23007 fi
23008
23009
23010 # Check whether --with-log4shib or --without-log4shib was given.
23011 if test "${with_log4shib+set}" = set; then
23012   withval="$with_log4shib"
23013
23014     LOG4SHIB_CONFIG="${with_log4shib}"
23015     if ! test -f "${LOG4SHIB_CONFIG}" ; then
23016         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
23017     fi
23018
23019 fi;
23020 if test -f "${LOG4SHIB_CONFIG}"; then
23021     LDFLAGS="`${LOG4SHIB_CONFIG} --libs` $LDFLAGS"
23022     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
23023
23024 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23025   echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23026 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23027 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23028   echo $ECHO_N "(cached) $ECHO_C" >&6
23029 fi
23030 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23031 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23032 else
23033   # Is the header compilable?
23034 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh usability" >&5
23035 echo $ECHO_N "checking log4shib/CategoryStream.hh usability... $ECHO_C" >&6
23036 cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h.  */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h.  */
23042 $ac_includes_default
23043 #include <log4shib/CategoryStream.hh>
23044 _ACEOF
23045 rm -f conftest.$ac_objext
23046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23047   (eval $ac_compile) 2>conftest.er1
23048   ac_status=$?
23049   grep -v '^ *+' conftest.er1 >conftest.err
23050   rm -f conftest.er1
23051   cat conftest.err >&5
23052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053   (exit $ac_status); } &&
23054          { ac_try='test -z "$ac_cxx_werror_flag"
23055                          || test ! -s conftest.err'
23056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057   (eval $ac_try) 2>&5
23058   ac_status=$?
23059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060   (exit $ac_status); }; } &&
23061          { ac_try='test -s conftest.$ac_objext'
23062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063   (eval $ac_try) 2>&5
23064   ac_status=$?
23065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); }; }; then
23067   ac_header_compiler=yes
23068 else
23069   echo "$as_me: failed program was:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23071
23072 ac_header_compiler=no
23073 fi
23074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23076 echo "${ECHO_T}$ac_header_compiler" >&6
23077
23078 # Is the header present?
23079 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh presence" >&5
23080 echo $ECHO_N "checking log4shib/CategoryStream.hh presence... $ECHO_C" >&6
23081 cat >conftest.$ac_ext <<_ACEOF
23082 /* confdefs.h.  */
23083 _ACEOF
23084 cat confdefs.h >>conftest.$ac_ext
23085 cat >>conftest.$ac_ext <<_ACEOF
23086 /* end confdefs.h.  */
23087 #include <log4shib/CategoryStream.hh>
23088 _ACEOF
23089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23090   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23091   ac_status=$?
23092   grep -v '^ *+' conftest.er1 >conftest.err
23093   rm -f conftest.er1
23094   cat conftest.err >&5
23095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096   (exit $ac_status); } >/dev/null; then
23097   if test -s conftest.err; then
23098     ac_cpp_err=$ac_cxx_preproc_warn_flag
23099     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23100   else
23101     ac_cpp_err=
23102   fi
23103 else
23104   ac_cpp_err=yes
23105 fi
23106 if test -z "$ac_cpp_err"; then
23107   ac_header_preproc=yes
23108 else
23109   echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23111
23112   ac_header_preproc=no
23113 fi
23114 rm -f conftest.err conftest.$ac_ext
23115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23116 echo "${ECHO_T}$ac_header_preproc" >&6
23117
23118 # So?  What about this header?
23119 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23120   yes:no: )
23121     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23122 echo "$as_me: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23123     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&5
23124 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23125     ac_header_preproc=yes
23126     ;;
23127   no:yes:* )
23128     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&5
23129 echo "$as_me: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&2;}
23130     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh:     check for missing prerequisite headers?" >&5
23131 echo "$as_me: WARNING: log4shib/CategoryStream.hh:     check for missing prerequisite headers?" >&2;}
23132     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&5
23133 echo "$as_me: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&2;}
23134     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&5
23135 echo "$as_me: WARNING: log4shib/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&2;}
23136     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23137 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23138     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23139 echo "$as_me: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23140     (
23141       cat <<\_ASBOX
23142 ## --------------------------------------------- ##
23143 ## Report this to shibboleth-users@internet2.edu ##
23144 ## --------------------------------------------- ##
23145 _ASBOX
23146     ) |
23147       sed "s/^/$as_me: WARNING:     /" >&2
23148     ;;
23149 esac
23150 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23151 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23152 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23153   echo $ECHO_N "(cached) $ECHO_C" >&6
23154 else
23155   ac_cv_header_log4shib_CategoryStream_hh=$ac_header_preproc
23156 fi
23157 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23158 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23159
23160 fi
23161 if test $ac_cv_header_log4shib_CategoryStream_hh = yes; then
23162   :
23163 else
23164   { { echo "$as_me:$LINENO: error: unable to find log4shib header files" >&5
23165 echo "$as_me: error: unable to find log4shib header files" >&2;}
23166    { (exit 1); exit 1; }; }
23167 fi
23168
23169
23170         cat >conftest.$ac_ext <<_ACEOF
23171 /* confdefs.h.  */
23172 _ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h.  */
23176 #include <log4shib/Category.hh>
23177 #include <log4shib/CategoryStream.hh>
23178 int
23179 main ()
23180 {
23181 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
23182   ;
23183   return 0;
23184 }
23185 _ACEOF
23186 rm -f conftest.$ac_objext conftest$ac_exeext
23187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23188   (eval $ac_link) 2>conftest.er1
23189   ac_status=$?
23190   grep -v '^ *+' conftest.er1 >conftest.err
23191   rm -f conftest.er1
23192   cat conftest.err >&5
23193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194   (exit $ac_status); } &&
23195          { ac_try='test -z "$ac_cxx_werror_flag"
23196                          || test ! -s conftest.err'
23197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198   (eval $ac_try) 2>&5
23199   ac_status=$?
23200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201   (exit $ac_status); }; } &&
23202          { ac_try='test -s conftest$ac_exeext'
23203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23204   (eval $ac_try) 2>&5
23205   ac_status=$?
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); }; }; then
23208
23209 cat >>confdefs.h <<\_ACEOF
23210 #define SHIBSP_LOG4SHIB 1
23211 _ACEOF
23212
23213 else
23214   echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23216
23217 { { echo "$as_me:$LINENO: error: unable to link with log4shib" >&5
23218 echo "$as_me: error: unable to link with log4shib" >&2;}
23219    { (exit 1); exit 1; }; }
23220 fi
23221 rm -f conftest.err conftest.$ac_objext \
23222       conftest$ac_exeext conftest.$ac_ext
23223 else
23224     { echo "$as_me:$LINENO: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
23225 echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
23226     { echo "$as_me:$LINENO: WARNING: will look for original log4cpp library" >&5
23227 echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
23228
23229         # log4cpp settings
23230         # Extract the first word of "log4cpp-config", so it can be a program name with args.
23231 set dummy log4cpp-config; ac_word=$2
23232 echo "$as_me:$LINENO: checking for $ac_word" >&5
23233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23234 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then
23235   echo $ECHO_N "(cached) $ECHO_C" >&6
23236 else
23237   case $LOG4CPP_CONFIG in
23238   [\\/]* | ?:[\\/]*)
23239   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
23240   ;;
23241   *)
23242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23243 for as_dir in $PATH
23244 do
23245   IFS=$as_save_IFS
23246   test -z "$as_dir" && as_dir=.
23247   for ac_exec_ext in '' $ac_executable_extensions; do
23248   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23249     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23251     break 2
23252   fi
23253 done
23254 done
23255
23256   ;;
23257 esac
23258 fi
23259 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
23260
23261 if test -n "$LOG4CPP_CONFIG"; then
23262   echo "$as_me:$LINENO: result: $LOG4CPP_CONFIG" >&5
23263 echo "${ECHO_T}$LOG4CPP_CONFIG" >&6
23264 else
23265   echo "$as_me:$LINENO: result: no" >&5
23266 echo "${ECHO_T}no" >&6
23267 fi
23268
23269
23270 # Check whether --with-log4cpp or --without-log4cpp was given.
23271 if test "${with_log4cpp+set}" = set; then
23272   withval="$with_log4cpp"
23273
23274             LOG4CPP_CONFIG="${with_log4cpp}"
23275             if ! test -f "${LOG4CPP_CONFIG}" ; then
23276                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
23277             fi
23278
23279 fi;
23280         if test -f "${LOG4CPP_CONFIG}"; then
23281                 { echo "$as_me:$LINENO: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
23282 echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
23283             LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS"
23284             CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
23285                 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23286   echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23287 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23288 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23289   echo $ECHO_N "(cached) $ECHO_C" >&6
23290 fi
23291 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23292 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23293 else
23294   # Is the header compilable?
23295 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh usability" >&5
23296 echo $ECHO_N "checking log4cpp/CategoryStream.hh usability... $ECHO_C" >&6
23297 cat >conftest.$ac_ext <<_ACEOF
23298 /* confdefs.h.  */
23299 _ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h.  */
23303 $ac_includes_default
23304 #include <log4cpp/CategoryStream.hh>
23305 _ACEOF
23306 rm -f conftest.$ac_objext
23307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23308   (eval $ac_compile) 2>conftest.er1
23309   ac_status=$?
23310   grep -v '^ *+' conftest.er1 >conftest.err
23311   rm -f conftest.er1
23312   cat conftest.err >&5
23313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314   (exit $ac_status); } &&
23315          { ac_try='test -z "$ac_cxx_werror_flag"
23316                          || test ! -s conftest.err'
23317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318   (eval $ac_try) 2>&5
23319   ac_status=$?
23320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321   (exit $ac_status); }; } &&
23322          { ac_try='test -s conftest.$ac_objext'
23323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324   (eval $ac_try) 2>&5
23325   ac_status=$?
23326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327   (exit $ac_status); }; }; then
23328   ac_header_compiler=yes
23329 else
23330   echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23332
23333 ac_header_compiler=no
23334 fi
23335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23337 echo "${ECHO_T}$ac_header_compiler" >&6
23338
23339 # Is the header present?
23340 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh presence" >&5
23341 echo $ECHO_N "checking log4cpp/CategoryStream.hh presence... $ECHO_C" >&6
23342 cat >conftest.$ac_ext <<_ACEOF
23343 /* confdefs.h.  */
23344 _ACEOF
23345 cat confdefs.h >>conftest.$ac_ext
23346 cat >>conftest.$ac_ext <<_ACEOF
23347 /* end confdefs.h.  */
23348 #include <log4cpp/CategoryStream.hh>
23349 _ACEOF
23350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23351   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23352   ac_status=$?
23353   grep -v '^ *+' conftest.er1 >conftest.err
23354   rm -f conftest.er1
23355   cat conftest.err >&5
23356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357   (exit $ac_status); } >/dev/null; then
23358   if test -s conftest.err; then
23359     ac_cpp_err=$ac_cxx_preproc_warn_flag
23360     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23361   else
23362     ac_cpp_err=
23363   fi
23364 else
23365   ac_cpp_err=yes
23366 fi
23367 if test -z "$ac_cpp_err"; then
23368   ac_header_preproc=yes
23369 else
23370   echo "$as_me: failed program was:" >&5
23371 sed 's/^/| /' conftest.$ac_ext >&5
23372
23373   ac_header_preproc=no
23374 fi
23375 rm -f conftest.err conftest.$ac_ext
23376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23377 echo "${ECHO_T}$ac_header_preproc" >&6
23378
23379 # So?  What about this header?
23380 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23381   yes:no: )
23382     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23383 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23384     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&5
23385 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23386     ac_header_preproc=yes
23387     ;;
23388   no:yes:* )
23389     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&5
23390 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&2;}
23391     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh:     check for missing prerequisite headers?" >&5
23392 echo "$as_me: WARNING: log4cpp/CategoryStream.hh:     check for missing prerequisite headers?" >&2;}
23393     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&5
23394 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&2;}
23395     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&5
23396 echo "$as_me: WARNING: log4cpp/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&2;}
23397     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23398 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23399     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23400 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23401     (
23402       cat <<\_ASBOX
23403 ## --------------------------------------------- ##
23404 ## Report this to shibboleth-users@internet2.edu ##
23405 ## --------------------------------------------- ##
23406 _ASBOX
23407     ) |
23408       sed "s/^/$as_me: WARNING:     /" >&2
23409     ;;
23410 esac
23411 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23412 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23413 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23414   echo $ECHO_N "(cached) $ECHO_C" >&6
23415 else
23416   ac_cv_header_log4cpp_CategoryStream_hh=$ac_header_preproc
23417 fi
23418 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23419 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23420
23421 fi
23422 if test $ac_cv_header_log4cpp_CategoryStream_hh = yes; then
23423   :
23424 else
23425   { { echo "$as_me:$LINENO: error: unable to find log4cpp header files" >&5
23426 echo "$as_me: error: unable to find log4cpp header files" >&2;}
23427    { (exit 1); exit 1; }; }
23428 fi
23429
23430
23431                 cat >conftest.$ac_ext <<_ACEOF
23432 /* confdefs.h.  */
23433 _ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h.  */
23437 #include <log4cpp/Category.hh>
23438 #include <log4cpp/CategoryStream.hh>
23439 int
23440 main ()
23441 {
23442 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
23443   ;
23444   return 0;
23445 }
23446 _ACEOF
23447 rm -f conftest.$ac_objext conftest$ac_exeext
23448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23449   (eval $ac_link) 2>conftest.er1
23450   ac_status=$?
23451   grep -v '^ *+' conftest.er1 >conftest.err
23452   rm -f conftest.er1
23453   cat conftest.err >&5
23454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455   (exit $ac_status); } &&
23456          { ac_try='test -z "$ac_cxx_werror_flag"
23457                          || test ! -s conftest.err'
23458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459   (eval $ac_try) 2>&5
23460   ac_status=$?
23461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462   (exit $ac_status); }; } &&
23463          { ac_try='test -s conftest$ac_exeext'
23464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23465   (eval $ac_try) 2>&5
23466   ac_status=$?
23467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468   (exit $ac_status); }; }; then
23469
23470 cat >>confdefs.h <<\_ACEOF
23471 #define SHIBSP_LOG4CPP 1
23472 _ACEOF
23473
23474 else
23475   echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.$ac_ext >&5
23477
23478 { { echo "$as_me:$LINENO: error: unable to link with log4cpp, need version 1.0 or later" >&5
23479 echo "$as_me: error: unable to link with log4cpp, need version 1.0 or later" >&2;}
23480    { (exit 1); exit 1; }; }
23481 fi
23482 rm -f conftest.err conftest.$ac_objext \
23483       conftest$ac_exeext conftest.$ac_ext
23484         else
23485             { { echo "$as_me:$LINENO: error: log4cpp-config not found, may need to use --with-log4cpp option" >&5
23486 echo "$as_me: error: log4cpp-config not found, may need to use --with-log4cpp option" >&2;}
23487    { (exit 1); exit 1; }; }
23488         fi
23489 fi
23490
23491 # Xerces settings
23492
23493 # Check whether --with-xerces or --without-xerces was given.
23494 if test "${with_xerces+set}" = set; then
23495   withval="$with_xerces"
23496   if test x_$with_xerces != x_/usr; then
23497                 LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
23498                 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
23499             fi
23500 fi;
23501 LIBS="-lxerces-c $LIBS"
23502 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23503   echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23504 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23505 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23506   echo $ECHO_N "(cached) $ECHO_C" >&6
23507 fi
23508 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23509 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23510 else
23511   # Is the header compilable?
23512 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp usability" >&5
23513 echo $ECHO_N "checking xercesc/dom/DOM.hpp usability... $ECHO_C" >&6
23514 cat >conftest.$ac_ext <<_ACEOF
23515 /* confdefs.h.  */
23516 _ACEOF
23517 cat confdefs.h >>conftest.$ac_ext
23518 cat >>conftest.$ac_ext <<_ACEOF
23519 /* end confdefs.h.  */
23520 $ac_includes_default
23521 #include <xercesc/dom/DOM.hpp>
23522 _ACEOF
23523 rm -f conftest.$ac_objext
23524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23525   (eval $ac_compile) 2>conftest.er1
23526   ac_status=$?
23527   grep -v '^ *+' conftest.er1 >conftest.err
23528   rm -f conftest.er1
23529   cat conftest.err >&5
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); } &&
23532          { ac_try='test -z "$ac_cxx_werror_flag"
23533                          || test ! -s conftest.err'
23534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535   (eval $ac_try) 2>&5
23536   ac_status=$?
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); }; } &&
23539          { ac_try='test -s conftest.$ac_objext'
23540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541   (eval $ac_try) 2>&5
23542   ac_status=$?
23543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544   (exit $ac_status); }; }; then
23545   ac_header_compiler=yes
23546 else
23547   echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23549
23550 ac_header_compiler=no
23551 fi
23552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23554 echo "${ECHO_T}$ac_header_compiler" >&6
23555
23556 # Is the header present?
23557 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp presence" >&5
23558 echo $ECHO_N "checking xercesc/dom/DOM.hpp presence... $ECHO_C" >&6
23559 cat >conftest.$ac_ext <<_ACEOF
23560 /* confdefs.h.  */
23561 _ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h.  */
23565 #include <xercesc/dom/DOM.hpp>
23566 _ACEOF
23567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23569   ac_status=$?
23570   grep -v '^ *+' conftest.er1 >conftest.err
23571   rm -f conftest.er1
23572   cat conftest.err >&5
23573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574   (exit $ac_status); } >/dev/null; then
23575   if test -s conftest.err; then
23576     ac_cpp_err=$ac_cxx_preproc_warn_flag
23577     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23578   else
23579     ac_cpp_err=
23580   fi
23581 else
23582   ac_cpp_err=yes
23583 fi
23584 if test -z "$ac_cpp_err"; then
23585   ac_header_preproc=yes
23586 else
23587   echo "$as_me: failed program was:" >&5
23588 sed 's/^/| /' conftest.$ac_ext >&5
23589
23590   ac_header_preproc=no
23591 fi
23592 rm -f conftest.err conftest.$ac_ext
23593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23594 echo "${ECHO_T}$ac_header_preproc" >&6
23595
23596 # So?  What about this header?
23597 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23598   yes:no: )
23599     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
23600 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
23601     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&5
23602 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&2;}
23603     ac_header_preproc=yes
23604     ;;
23605   no:yes:* )
23606     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&5
23607 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&2;}
23608     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp:     check for missing prerequisite headers?" >&5
23609 echo "$as_me: WARNING: xercesc/dom/DOM.hpp:     check for missing prerequisite headers?" >&2;}
23610     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&5
23611 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&2;}
23612     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp:     section \"Present But Cannot Be Compiled\"" >&5
23613 echo "$as_me: WARNING: xercesc/dom/DOM.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
23614     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&5
23615 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&2;}
23616     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&5
23617 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&2;}
23618     (
23619       cat <<\_ASBOX
23620 ## --------------------------------------------- ##
23621 ## Report this to shibboleth-users@internet2.edu ##
23622 ## --------------------------------------------- ##
23623 _ASBOX
23624     ) |
23625       sed "s/^/$as_me: WARNING:     /" >&2
23626     ;;
23627 esac
23628 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23629 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23630 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23631   echo $ECHO_N "(cached) $ECHO_C" >&6
23632 else
23633   ac_cv_header_xercesc_dom_DOM_hpp=$ac_header_preproc
23634 fi
23635 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23636 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23637
23638 fi
23639 if test $ac_cv_header_xercesc_dom_DOM_hpp = yes; then
23640   :
23641 else
23642   { { echo "$as_me:$LINENO: error: unable to find xerces header files" >&5
23643 echo "$as_me: error: unable to find xerces header files" >&2;}
23644    { (exit 1); exit 1; }; }
23645 fi
23646
23647
23648 echo "$as_me:$LINENO: checking Xerces version" >&5
23649 echo $ECHO_N "checking Xerces version... $ECHO_C" >&6
23650 cat >conftest.$ac_ext <<_ACEOF
23651 /* confdefs.h.  */
23652 _ACEOF
23653 cat confdefs.h >>conftest.$ac_ext
23654 cat >>conftest.$ac_ext <<_ACEOF
23655 /* end confdefs.h.  */
23656 #include <xercesc/util/XercesVersion.hpp>
23657 int
23658 main ()
23659 {
23660 #if  _XERCES_VERSION != 20600
23661 int i = 0;
23662 #else
23663 #error cannot use version 2.6.0
23664 #endif
23665   ;
23666   return 0;
23667 }
23668 _ACEOF
23669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23670   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23671   ac_status=$?
23672   grep -v '^ *+' conftest.er1 >conftest.err
23673   rm -f conftest.er1
23674   cat conftest.err >&5
23675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); } >/dev/null; then
23677   if test -s conftest.err; then
23678     ac_cpp_err=$ac_cxx_preproc_warn_flag
23679     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23680   else
23681     ac_cpp_err=
23682   fi
23683 else
23684   ac_cpp_err=yes
23685 fi
23686 if test -z "$ac_cpp_err"; then
23687   echo "$as_me:$LINENO: result: OK" >&5
23688 echo "${ECHO_T}OK" >&6
23689 else
23690   echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23692
23693   { { echo "$as_me:$LINENO: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23694 See \`config.log' for more details." >&5
23695 echo "$as_me: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23696 See \`config.log' for more details." >&2;}
23697    { (exit 1); exit 1; }; }
23698 fi
23699 rm -f conftest.err conftest.$ac_ext
23700 cat >conftest.$ac_ext <<_ACEOF
23701 /* confdefs.h.  */
23702 _ACEOF
23703 cat confdefs.h >>conftest.$ac_ext
23704 cat >>conftest.$ac_ext <<_ACEOF
23705 /* end confdefs.h.  */
23706 #include <xercesc/util/PlatformUtils.hpp>
23707 int
23708 main ()
23709 {
23710 xercesc::XMLPlatformUtils::Initialize()
23711   ;
23712   return 0;
23713 }
23714 _ACEOF
23715 rm -f conftest.$ac_objext conftest$ac_exeext
23716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23717   (eval $ac_link) 2>conftest.er1
23718   ac_status=$?
23719   grep -v '^ *+' conftest.er1 >conftest.err
23720   rm -f conftest.er1
23721   cat conftest.err >&5
23722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723   (exit $ac_status); } &&
23724          { ac_try='test -z "$ac_cxx_werror_flag"
23725                          || test ! -s conftest.err'
23726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727   (eval $ac_try) 2>&5
23728   ac_status=$?
23729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730   (exit $ac_status); }; } &&
23731          { ac_try='test -s conftest$ac_exeext'
23732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23733   (eval $ac_try) 2>&5
23734   ac_status=$?
23735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736   (exit $ac_status); }; }; then
23737
23738 cat >>confdefs.h <<\_ACEOF
23739 #define HAVE_LIBXERCESC 1
23740 _ACEOF
23741
23742 else
23743   echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23745
23746 { { echo "$as_me:$LINENO: error: unable to link with Xerces" >&5
23747 echo "$as_me: error: unable to link with Xerces" >&2;}
23748    { (exit 1); exit 1; }; }
23749 fi
23750 rm -f conftest.err conftest.$ac_objext \
23751       conftest$ac_exeext conftest.$ac_ext
23752
23753
23754 #XML-Tooling settings
23755
23756 # Check whether --with-xmltooling or --without-xmltooling was given.
23757 if test "${with_xmltooling+set}" = set; then
23758   withval="$with_xmltooling"
23759   if test x_$with_xmltooling != x_/usr; then
23760                 LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
23761                 CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
23762             fi
23763 fi;
23764 LITE_LIBS="-lxmltooling-lite"
23765 XMLSEC_LIBS="-lxmltooling"
23766 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23767   echo "$as_me:$LINENO: checking for xmltooling/base.h" >&5
23768 echo $ECHO_N "checking for xmltooling/base.h... $ECHO_C" >&6
23769 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23770   echo $ECHO_N "(cached) $ECHO_C" >&6
23771 fi
23772 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_base_h" >&5
23773 echo "${ECHO_T}$ac_cv_header_xmltooling_base_h" >&6
23774 else
23775   # Is the header compilable?
23776 echo "$as_me:$LINENO: checking xmltooling/base.h usability" >&5
23777 echo $ECHO_N "checking xmltooling/base.h usability... $ECHO_C" >&6
23778 cat >conftest.$ac_ext <<_ACEOF
23779 /* confdefs.h.  */
23780 _ACEOF
23781 cat confdefs.h >>conftest.$ac_ext
23782 cat >>conftest.$ac_ext <<_ACEOF
23783 /* end confdefs.h.  */
23784 $ac_includes_default
23785 #include <xmltooling/base.h>
23786 _ACEOF
23787 rm -f conftest.$ac_objext
23788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23789   (eval $ac_compile) 2>conftest.er1
23790   ac_status=$?
23791   grep -v '^ *+' conftest.er1 >conftest.err
23792   rm -f conftest.er1
23793   cat conftest.err >&5
23794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795   (exit $ac_status); } &&
23796          { ac_try='test -z "$ac_cxx_werror_flag"
23797                          || test ! -s conftest.err'
23798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23799   (eval $ac_try) 2>&5
23800   ac_status=$?
23801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802   (exit $ac_status); }; } &&
23803          { ac_try='test -s conftest.$ac_objext'
23804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23805   (eval $ac_try) 2>&5
23806   ac_status=$?
23807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808   (exit $ac_status); }; }; then
23809   ac_header_compiler=yes
23810 else
23811   echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23813
23814 ac_header_compiler=no
23815 fi
23816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23818 echo "${ECHO_T}$ac_header_compiler" >&6
23819
23820 # Is the header present?
23821 echo "$as_me:$LINENO: checking xmltooling/base.h presence" >&5
23822 echo $ECHO_N "checking xmltooling/base.h presence... $ECHO_C" >&6
23823 cat >conftest.$ac_ext <<_ACEOF
23824 /* confdefs.h.  */
23825 _ACEOF
23826 cat confdefs.h >>conftest.$ac_ext
23827 cat >>conftest.$ac_ext <<_ACEOF
23828 /* end confdefs.h.  */
23829 #include <xmltooling/base.h>
23830 _ACEOF
23831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23833   ac_status=$?
23834   grep -v '^ *+' conftest.er1 >conftest.err
23835   rm -f conftest.er1
23836   cat conftest.err >&5
23837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838   (exit $ac_status); } >/dev/null; then
23839   if test -s conftest.err; then
23840     ac_cpp_err=$ac_cxx_preproc_warn_flag
23841     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23842   else
23843     ac_cpp_err=
23844   fi
23845 else
23846   ac_cpp_err=yes
23847 fi
23848 if test -z "$ac_cpp_err"; then
23849   ac_header_preproc=yes
23850 else
23851   echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23853
23854   ac_header_preproc=no
23855 fi
23856 rm -f conftest.err conftest.$ac_ext
23857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23858 echo "${ECHO_T}$ac_header_preproc" >&6
23859
23860 # So?  What about this header?
23861 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23862   yes:no: )
23863     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: accepted by the compiler, rejected by the preprocessor!" >&5
23864 echo "$as_me: WARNING: xmltooling/base.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23865     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: proceeding with the compiler's result" >&5
23866 echo "$as_me: WARNING: xmltooling/base.h: proceeding with the compiler's result" >&2;}
23867     ac_header_preproc=yes
23868     ;;
23869   no:yes:* )
23870     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: present but cannot be compiled" >&5
23871 echo "$as_me: WARNING: xmltooling/base.h: present but cannot be compiled" >&2;}
23872     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h:     check for missing prerequisite headers?" >&5
23873 echo "$as_me: WARNING: xmltooling/base.h:     check for missing prerequisite headers?" >&2;}
23874     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: see the Autoconf documentation" >&5
23875 echo "$as_me: WARNING: xmltooling/base.h: see the Autoconf documentation" >&2;}
23876     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h:     section \"Present But Cannot Be Compiled\"" >&5
23877 echo "$as_me: WARNING: xmltooling/base.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23878     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: proceeding with the preprocessor's result" >&5
23879 echo "$as_me: WARNING: xmltooling/base.h: proceeding with the preprocessor's result" >&2;}
23880     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: in the future, the compiler will take precedence" >&5
23881 echo "$as_me: WARNING: xmltooling/base.h: in the future, the compiler will take precedence" >&2;}
23882     (
23883       cat <<\_ASBOX
23884 ## --------------------------------------------- ##
23885 ## Report this to shibboleth-users@internet2.edu ##
23886 ## --------------------------------------------- ##
23887 _ASBOX
23888     ) |
23889       sed "s/^/$as_me: WARNING:     /" >&2
23890     ;;
23891 esac
23892 echo "$as_me:$LINENO: checking for xmltooling/base.h" >&5
23893 echo $ECHO_N "checking for xmltooling/base.h... $ECHO_C" >&6
23894 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23895   echo $ECHO_N "(cached) $ECHO_C" >&6
23896 else
23897   ac_cv_header_xmltooling_base_h=$ac_header_preproc
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
23902 fi
23903 if test $ac_cv_header_xmltooling_base_h = yes; then
23904   :
23905 else
23906   { { echo "$as_me:$LINENO: error: unable to find xmltooling header files" >&5
23907 echo "$as_me: error: unable to find xmltooling header files" >&2;}
23908    { (exit 1); exit 1; }; }
23909 fi
23910
23911
23912
23913 # Establish location of xmltooling catalog.
23914 XMLTOOLINGXMLDIR=""
23915 if test "x$with_xmltooling" = "x" ; then
23916    with_xmltooling="/usr"
23917 fi
23918 if test -f $with_xmltooling/share/xml/xmltooling/catalog.xml ; then
23919     XMLTOOLINGXMLDIR="$with_xmltooling"
23920 elif test -f $with_xerces/share/xml/xmltooling/catalog.xml ; then
23921     XMLTOOLINGXMLDIR="$with_xerces"
23922 elif test -f $with_log4shib/share/xml/xmltooling/catalog.xml ; then
23923     XMLTOOLINGXMLDIR="$with_log4shib"
23924 fi
23925 if test "x$XMLTOOLINGXMLDIR" = "x" ; then
23926     { { echo "$as_me:$LINENO: error: xmltooling XML catalog not found, may need to use --with-xmltooling option" >&5
23927 echo "$as_me: error: xmltooling XML catalog not found, may need to use --with-xmltooling option" >&2;}
23928    { (exit 1); exit 1; }; }
23929 fi
23930 XMLTOOLINGXMLDIR="$XMLTOOLINGXMLDIR/share/xml/xmltooling"
23931
23932
23933 # XML-Security settings
23934
23935 # Check whether --with-xmlsec or --without-xmlsec was given.
23936 if test "${with_xmlsec+set}" = set; then
23937   withval="$with_xmlsec"
23938
23939 else
23940   with_xmlsec=/usr
23941 fi;
23942
23943 if test x_$with_xmlsec != x_/usr; then
23944     LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
23945     CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
23946 fi
23947 XMLSEC_LIBS="-lxml-security-c $XMLSEC_LIBS"
23948
23949 # save and append master libs
23950 save_LIBS="$LIBS"
23951 LIBS="$XMLSEC_LIBS $LIBS"
23952
23953 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23954   echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
23955 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
23956 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23957   echo $ECHO_N "(cached) $ECHO_C" >&6
23958 fi
23959 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
23960 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
23961 else
23962   # Is the header compilable?
23963 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp usability" >&5
23964 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp usability... $ECHO_C" >&6
23965 cat >conftest.$ac_ext <<_ACEOF
23966 /* confdefs.h.  */
23967 _ACEOF
23968 cat confdefs.h >>conftest.$ac_ext
23969 cat >>conftest.$ac_ext <<_ACEOF
23970 /* end confdefs.h.  */
23971 $ac_includes_default
23972 #include <xsec/utils/XSECPlatformUtils.hpp>
23973 _ACEOF
23974 rm -f conftest.$ac_objext
23975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23976   (eval $ac_compile) 2>conftest.er1
23977   ac_status=$?
23978   grep -v '^ *+' conftest.er1 >conftest.err
23979   rm -f conftest.er1
23980   cat conftest.err >&5
23981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982   (exit $ac_status); } &&
23983          { ac_try='test -z "$ac_cxx_werror_flag"
23984                          || test ! -s conftest.err'
23985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23986   (eval $ac_try) 2>&5
23987   ac_status=$?
23988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989   (exit $ac_status); }; } &&
23990          { ac_try='test -s conftest.$ac_objext'
23991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992   (eval $ac_try) 2>&5
23993   ac_status=$?
23994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995   (exit $ac_status); }; }; then
23996   ac_header_compiler=yes
23997 else
23998   echo "$as_me: failed program was:" >&5
23999 sed 's/^/| /' conftest.$ac_ext >&5
24000
24001 ac_header_compiler=no
24002 fi
24003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24005 echo "${ECHO_T}$ac_header_compiler" >&6
24006
24007 # Is the header present?
24008 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp presence" >&5
24009 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp presence... $ECHO_C" >&6
24010 cat >conftest.$ac_ext <<_ACEOF
24011 /* confdefs.h.  */
24012 _ACEOF
24013 cat confdefs.h >>conftest.$ac_ext
24014 cat >>conftest.$ac_ext <<_ACEOF
24015 /* end confdefs.h.  */
24016 #include <xsec/utils/XSECPlatformUtils.hpp>
24017 _ACEOF
24018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24020   ac_status=$?
24021   grep -v '^ *+' conftest.er1 >conftest.err
24022   rm -f conftest.er1
24023   cat conftest.err >&5
24024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025   (exit $ac_status); } >/dev/null; then
24026   if test -s conftest.err; then
24027     ac_cpp_err=$ac_cxx_preproc_warn_flag
24028     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24029   else
24030     ac_cpp_err=
24031   fi
24032 else
24033   ac_cpp_err=yes
24034 fi
24035 if test -z "$ac_cpp_err"; then
24036   ac_header_preproc=yes
24037 else
24038   echo "$as_me: failed program was:" >&5
24039 sed 's/^/| /' conftest.$ac_ext >&5
24040
24041   ac_header_preproc=no
24042 fi
24043 rm -f conftest.err conftest.$ac_ext
24044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24045 echo "${ECHO_T}$ac_header_preproc" >&6
24046
24047 # So?  What about this header?
24048 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24049   yes:no: )
24050     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
24051 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
24052     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&5
24053 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&2;}
24054     ac_header_preproc=yes
24055     ;;
24056   no:yes:* )
24057     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&5
24058 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&2;}
24059     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp:     check for missing prerequisite headers?" >&5
24060 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp:     check for missing prerequisite headers?" >&2;}
24061     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&5
24062 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&2;}
24063     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp:     section \"Present But Cannot Be Compiled\"" >&5
24064 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
24065     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&5
24066 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&2;}
24067     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&5
24068 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&2;}
24069     (
24070       cat <<\_ASBOX
24071 ## --------------------------------------------- ##
24072 ## Report this to shibboleth-users@internet2.edu ##
24073 ## --------------------------------------------- ##
24074 _ASBOX
24075     ) |
24076       sed "s/^/$as_me: WARNING:     /" >&2
24077     ;;
24078 esac
24079 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
24080 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
24081 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24082   echo $ECHO_N "(cached) $ECHO_C" >&6
24083 else
24084   ac_cv_header_xsec_utils_XSECPlatformUtils_hpp=$ac_header_preproc
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
24089 fi
24090 if test $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp = yes; then
24091   :
24092 else
24093   { { echo "$as_me:$LINENO: error: unable to find XML-Security header files" >&5
24094 echo "$as_me: error: unable to find XML-Security header files" >&2;}
24095    { (exit 1); exit 1; }; }
24096 fi
24097
24098
24099 echo "$as_me:$LINENO: checking XML-Security version" >&5
24100 echo $ECHO_N "checking XML-Security version... $ECHO_C" >&6
24101 cat >conftest.$ac_ext <<_ACEOF
24102 /* confdefs.h.  */
24103 _ACEOF
24104 cat confdefs.h >>conftest.$ac_ext
24105 cat >>conftest.$ac_ext <<_ACEOF
24106 /* end confdefs.h.  */
24107 #include <xsec/utils/XSECPlatformUtils.hpp>
24108 int
24109 main ()
24110 {
24111 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
24112 int i = 0;
24113 #else
24114 #error need version 1.4.0 or later
24115 #endif
24116   ;
24117   return 0;
24118 }
24119 _ACEOF
24120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24121   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24122   ac_status=$?
24123   grep -v '^ *+' conftest.er1 >conftest.err
24124   rm -f conftest.er1
24125   cat conftest.err >&5
24126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127   (exit $ac_status); } >/dev/null; then
24128   if test -s conftest.err; then
24129     ac_cpp_err=$ac_cxx_preproc_warn_flag
24130     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24131   else
24132     ac_cpp_err=
24133   fi
24134 else
24135   ac_cpp_err=yes
24136 fi
24137 if test -z "$ac_cpp_err"; then
24138   echo "$as_me:$LINENO: result: OK" >&5
24139 echo "${ECHO_T}OK" >&6
24140 else
24141   echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24143
24144   { { echo "$as_me:$LINENO: error: XML-Security version 1.4.0 or greater is required.
24145 See \`config.log' for more details." >&5
24146 echo "$as_me: error: XML-Security version 1.4.0 or greater is required.
24147 See \`config.log' for more details." >&2;}
24148    { (exit 1); exit 1; }; }
24149 fi
24150 rm -f conftest.err conftest.$ac_ext
24151 cat >conftest.$ac_ext <<_ACEOF
24152 /* confdefs.h.  */
24153 _ACEOF
24154 cat confdefs.h >>conftest.$ac_ext
24155 cat >>conftest.$ac_ext <<_ACEOF
24156 /* end confdefs.h.  */
24157 #include <xsec/utils/XSECPlatformUtils.hpp>
24158 int
24159 main ()
24160 {
24161 XSECPlatformUtils::Initialise()
24162   ;
24163   return 0;
24164 }
24165 _ACEOF
24166 rm -f conftest.$ac_objext conftest$ac_exeext
24167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24168   (eval $ac_link) 2>conftest.er1
24169   ac_status=$?
24170   grep -v '^ *+' conftest.er1 >conftest.err
24171   rm -f conftest.er1
24172   cat conftest.err >&5
24173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174   (exit $ac_status); } &&
24175          { ac_try='test -z "$ac_cxx_werror_flag"
24176                          || test ! -s conftest.err'
24177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178   (eval $ac_try) 2>&5
24179   ac_status=$?
24180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181   (exit $ac_status); }; } &&
24182          { ac_try='test -s conftest$ac_exeext'
24183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184   (eval $ac_try) 2>&5
24185   ac_status=$?
24186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187   (exit $ac_status); }; }; then
24188   :
24189 else
24190   echo "$as_me: failed program was:" >&5
24191 sed 's/^/| /' conftest.$ac_ext >&5
24192
24193 { { echo "$as_me:$LINENO: error: unable to link with XML-Security" >&5
24194 echo "$as_me: error: unable to link with XML-Security" >&2;}
24195    { (exit 1); exit 1; }; }
24196 fi
24197 rm -f conftest.err conftest.$ac_objext \
24198       conftest$ac_exeext conftest.$ac_ext
24199
24200 # restore master libs
24201 LIBS="$save_LIBS"
24202
24203 # OpenSAML settings
24204
24205 # Check whether --with-saml or --without-saml was given.
24206 if test "${with_saml+set}" = set; then
24207   withval="$with_saml"
24208   if test x_$with_saml != x_/usr; then
24209         LDFLAGS="-L${with_saml}/lib $LDFLAGS"
24210         CPPFLAGS="-I${with_saml}/include $CPPFLAGS"
24211     fi
24212 fi;
24213 XMLSEC_LIBS="-lsaml $XMLSEC_LIBS"
24214
24215 # save and append master libs
24216 save_LIBS="$LIBS"
24217 LIBS="$XMLSEC_LIBS $LIBS"
24218
24219 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24220   echo "$as_me:$LINENO: checking for saml/saml2/metadata/Metadata.h" >&5
24221 echo $ECHO_N "checking for saml/saml2/metadata/Metadata.h... $ECHO_C" >&6
24222 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24223   echo $ECHO_N "(cached) $ECHO_C" >&6
24224 fi
24225 echo "$as_me:$LINENO: result: $ac_cv_header_saml_saml2_metadata_Metadata_h" >&5
24226 echo "${ECHO_T}$ac_cv_header_saml_saml2_metadata_Metadata_h" >&6
24227 else
24228   # Is the header compilable?
24229 echo "$as_me:$LINENO: checking saml/saml2/metadata/Metadata.h usability" >&5
24230 echo $ECHO_N "checking saml/saml2/metadata/Metadata.h usability... $ECHO_C" >&6
24231 cat >conftest.$ac_ext <<_ACEOF
24232 /* confdefs.h.  */
24233 _ACEOF
24234 cat confdefs.h >>conftest.$ac_ext
24235 cat >>conftest.$ac_ext <<_ACEOF
24236 /* end confdefs.h.  */
24237 $ac_includes_default
24238 #include <saml/saml2/metadata/Metadata.h>
24239 _ACEOF
24240 rm -f conftest.$ac_objext
24241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24242   (eval $ac_compile) 2>conftest.er1
24243   ac_status=$?
24244   grep -v '^ *+' conftest.er1 >conftest.err
24245   rm -f conftest.er1
24246   cat conftest.err >&5
24247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248   (exit $ac_status); } &&
24249          { ac_try='test -z "$ac_cxx_werror_flag"
24250                          || test ! -s conftest.err'
24251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252   (eval $ac_try) 2>&5
24253   ac_status=$?
24254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255   (exit $ac_status); }; } &&
24256          { ac_try='test -s conftest.$ac_objext'
24257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258   (eval $ac_try) 2>&5
24259   ac_status=$?
24260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261   (exit $ac_status); }; }; then
24262   ac_header_compiler=yes
24263 else
24264   echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24266
24267 ac_header_compiler=no
24268 fi
24269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24271 echo "${ECHO_T}$ac_header_compiler" >&6
24272
24273 # Is the header present?
24274 echo "$as_me:$LINENO: checking saml/saml2/metadata/Metadata.h presence" >&5
24275 echo $ECHO_N "checking saml/saml2/metadata/Metadata.h presence... $ECHO_C" >&6
24276 cat >conftest.$ac_ext <<_ACEOF
24277 /* confdefs.h.  */
24278 _ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h.  */
24282 #include <saml/saml2/metadata/Metadata.h>
24283 _ACEOF
24284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24285   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24286   ac_status=$?
24287   grep -v '^ *+' conftest.er1 >conftest.err
24288   rm -f conftest.er1
24289   cat conftest.err >&5
24290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291   (exit $ac_status); } >/dev/null; then
24292   if test -s conftest.err; then
24293     ac_cpp_err=$ac_cxx_preproc_warn_flag
24294     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24295   else
24296     ac_cpp_err=
24297   fi
24298 else
24299   ac_cpp_err=yes
24300 fi
24301 if test -z "$ac_cpp_err"; then
24302   ac_header_preproc=yes
24303 else
24304   echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24306
24307   ac_header_preproc=no
24308 fi
24309 rm -f conftest.err conftest.$ac_ext
24310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24311 echo "${ECHO_T}$ac_header_preproc" >&6
24312
24313 # So?  What about this header?
24314 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24315   yes:no: )
24316     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: accepted by the compiler, rejected by the preprocessor!" >&5
24317 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24318     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the compiler's result" >&5
24319 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the compiler's result" >&2;}
24320     ac_header_preproc=yes
24321     ;;
24322   no:yes:* )
24323     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: present but cannot be compiled" >&5
24324 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: present but cannot be compiled" >&2;}
24325     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h:     check for missing prerequisite headers?" >&5
24326 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h:     check for missing prerequisite headers?" >&2;}
24327     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: see the Autoconf documentation" >&5
24328 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: see the Autoconf documentation" >&2;}
24329     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h:     section \"Present But Cannot Be Compiled\"" >&5
24330 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24331     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the preprocessor's result" >&5
24332 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the preprocessor's result" >&2;}
24333     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: in the future, the compiler will take precedence" >&5
24334 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: in the future, the compiler will take precedence" >&2;}
24335     (
24336       cat <<\_ASBOX
24337 ## --------------------------------------------- ##
24338 ## Report this to shibboleth-users@internet2.edu ##
24339 ## --------------------------------------------- ##
24340 _ASBOX
24341     ) |
24342       sed "s/^/$as_me: WARNING:     /" >&2
24343     ;;
24344 esac
24345 echo "$as_me:$LINENO: checking for saml/saml2/metadata/Metadata.h" >&5
24346 echo $ECHO_N "checking for saml/saml2/metadata/Metadata.h... $ECHO_C" >&6
24347 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24348   echo $ECHO_N "(cached) $ECHO_C" >&6
24349 else
24350   ac_cv_header_saml_saml2_metadata_Metadata_h=$ac_header_preproc
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
24355 fi
24356 if test $ac_cv_header_saml_saml2_metadata_Metadata_h = yes; then
24357   :
24358 else
24359   { { echo "$as_me:$LINENO: error: unable to find OpenSAML header files" >&5
24360 echo "$as_me: error: unable to find OpenSAML header files" >&2;}
24361    { (exit 1); exit 1; }; }
24362 fi
24363
24364
24365 cat >conftest.$ac_ext <<_ACEOF
24366 /* confdefs.h.  */
24367 _ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h.  */
24371 #include <saml/SAMLConfig.h>
24372 #include <saml/version.h>
24373 int
24374 main ()
24375 {
24376 #if _OPENSAML_VERSION >= 20000
24377 opensaml::SAMLConfig::getConfig();
24378 #else
24379 #error Need OpenSAML version 2.0 or higher
24380 #endif
24381   ;
24382   return 0;
24383 }
24384 _ACEOF
24385 rm -f conftest.$ac_objext conftest$ac_exeext
24386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24387   (eval $ac_link) 2>conftest.er1
24388   ac_status=$?
24389   grep -v '^ *+' conftest.er1 >conftest.err
24390   rm -f conftest.er1
24391   cat conftest.err >&5
24392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393   (exit $ac_status); } &&
24394          { ac_try='test -z "$ac_cxx_werror_flag"
24395                          || test ! -s conftest.err'
24396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24397   (eval $ac_try) 2>&5
24398   ac_status=$?
24399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400   (exit $ac_status); }; } &&
24401          { ac_try='test -s conftest$ac_exeext'
24402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24403   (eval $ac_try) 2>&5
24404   ac_status=$?
24405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406   (exit $ac_status); }; }; then
24407
24408 cat >>confdefs.h <<\_ACEOF
24409 #define HAVE_SAML 1
24410 _ACEOF
24411
24412 else
24413   echo "$as_me: failed program was:" >&5
24414 sed 's/^/| /' conftest.$ac_ext >&5
24415
24416 { { echo "$as_me:$LINENO: error: unable to link with OpenSAML, or version was too old" >&5
24417 echo "$as_me: error: unable to link with OpenSAML, or version was too old" >&2;}
24418    { (exit 1); exit 1; }; }
24419 fi
24420 rm -f conftest.err conftest.$ac_objext \
24421       conftest$ac_exeext conftest.$ac_ext
24422
24423 # restore master libs
24424 LIBS="$save_LIBS"
24425
24426 # Establish location of opensaml catalogs.
24427 OPENSAMLXMLDIR=""
24428 if test "x$with_saml" = "x" ; then
24429     with_saml="/usr"
24430 fi
24431 if test -f $with_saml/share/xml/opensaml/saml20-catalog.xml ; then
24432     OPENSAMLXMLDIR="$with_saml"
24433 elif test -f $with_xmltooling/share/xml/opensaml/saml20-catalog.xml ; then
24434     OPENSAMLXMLDIR="$with_xmltooling"
24435 elif test -f $with_xerces/share/xml/opensaml/saml20-catalog.xml ; then
24436     OPENSAMLXMLDIR="$with_xerces"
24437 elif test -f $with_log4shib/share/xml/opensaml/saml20-catalog.xml ; then
24438     OPENSAMLXMLDIR="$with_log4shib"
24439 fi
24440 if test "x$OPENSAMLXMLDIR" = "x" ; then
24441     { { echo "$as_me:$LINENO: error: opensaml XML catalogs not found, may need to use --with-saml option" >&5
24442 echo "$as_me: error: opensaml XML catalogs not found, may need to use --with-saml option" >&2;}
24443    { (exit 1); exit 1; }; }
24444 fi
24445 OPENSAMLXMLDIR="$OPENSAMLXMLDIR/share/xml/opensaml"
24446
24447
24448
24449
24450
24451 # output the underlying makefiles
24452 WANT_SUBDIRS="doc schemas configs shibsp shibd util"
24453                                                                                 ac_config_files="$ac_config_files Makefile doc/Makefile schemas/Makefile configs/Makefile shibsp/Makefile shibd/Makefile util/Makefile selinux/Makefile"
24454
24455
24456 ## ADFS?
24457           ac_config_files="$ac_config_files adfs/Makefile"
24458
24459 # Check whether --enable-adfs or --disable-adfs was given.
24460 if test "${enable_adfs+set}" = set; then
24461   enableval="$enable_adfs"
24462   adfs_enabled=$enableval
24463 else
24464   adfs_enabled=yes
24465 fi;
24466 if test "x$adfs_enabled" = "x" ; then
24467    adfs_enabled=yes
24468 fi
24469 echo "$as_me:$LINENO: checking whether to build the ADFS module" >&5
24470 echo $ECHO_N "checking whether to build the ADFS module... $ECHO_C" >&6
24471 if test "$adfs_enabled" = "no" ; then
24472    echo "$as_me:$LINENO: result: no" >&5
24473 echo "${ECHO_T}no" >&6
24474 else
24475    echo "$as_me:$LINENO: result: yes" >&5
24476 echo "${ECHO_T}yes" >&6
24477    WANT_SUBDIRS="$WANT_SUBDIRS adfs"
24478 fi
24479
24480
24481 #
24482 # Build NSAPI module?
24483 #
24484 echo "$as_me:$LINENO: checking for NSAPI module option" >&5
24485 echo $ECHO_N "checking for NSAPI module option... $ECHO_C" >&6
24486
24487 # Check whether --with-nsapi or --without-nsapi was given.
24488 if test "${with_nsapi+set}" = set; then
24489   withval="$with_nsapi"
24490   WANT_NSAPI=$withval
24491 else
24492   WANT_NSAPI=no
24493 fi;
24494 echo "$as_me:$LINENO: result: $WANT_NSAPI" >&5
24495 echo "${ECHO_T}$WANT_NSAPI" >&6
24496
24497 if test "$WANT_NSAPI" != "no"; then
24498   if test ! -d $WANT_NSAPI/bin ; then
24499     { { echo "$as_me:$LINENO: error: Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" >&5
24500 echo "$as_me: error: Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" >&2;}
24501    { (exit 1); exit 1; }; }
24502   fi
24503   echo "$as_me:$LINENO: checking for NSAPI include files" >&5
24504 echo $ECHO_N "checking for NSAPI include files... $ECHO_C" >&6
24505   if test -d $WANT_NSAPI/include ; then
24506     NSAPI_INCLUDE=$WANT_NSAPI/include
24507     echo "$as_me:$LINENO: result: Netscape-Enterprise 3.x style" >&5
24508 echo "${ECHO_T}Netscape-Enterprise 3.x style" >&6
24509
24510 for ac_header in $NSAPI_INCLUDE/nsapi.h
24511 do
24512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24513 echo "$as_me:$LINENO: checking for $ac_header" >&5
24514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24516   echo $ECHO_N "(cached) $ECHO_C" >&6
24517 else
24518   cat >conftest.$ac_ext <<_ACEOF
24519 /* confdefs.h.  */
24520 _ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h.  */
24524 #define XP_UNIX
24525
24526 #include <$ac_header>
24527 _ACEOF
24528 rm -f conftest.$ac_objext
24529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24530   (eval $ac_compile) 2>conftest.er1
24531   ac_status=$?
24532   grep -v '^ *+' conftest.er1 >conftest.err
24533   rm -f conftest.er1
24534   cat conftest.err >&5
24535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536   (exit $ac_status); } &&
24537          { ac_try='test -z "$ac_cxx_werror_flag"
24538                          || test ! -s conftest.err'
24539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24540   (eval $ac_try) 2>&5
24541   ac_status=$?
24542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543   (exit $ac_status); }; } &&
24544          { ac_try='test -s conftest.$ac_objext'
24545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24546   (eval $ac_try) 2>&5
24547   ac_status=$?
24548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549   (exit $ac_status); }; }; then
24550   eval "$as_ac_Header=yes"
24551 else
24552   echo "$as_me: failed program was:" >&5
24553 sed 's/^/| /' conftest.$ac_ext >&5
24554
24555 eval "$as_ac_Header=no"
24556 fi
24557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24558 fi
24559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24562   cat >>confdefs.h <<_ACEOF
24563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24564 _ACEOF
24565
24566 fi
24567
24568 done
24569
24570     NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
24571   fi
24572   if test -d $WANT_NSAPI/plugins/include ; then
24573     test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE"
24574     NSAPI_INCLUDE="$WANT_NSAPI/plugins/include"
24575     echo "$as_me:$LINENO: result: iPlanet 4.x / SunONE 6.x style" >&5
24576 echo "${ECHO_T}iPlanet 4.x / SunONE 6.x style" >&6
24577
24578 for ac_header in $NSAPI_INCLUDE/nsapi.h
24579 do
24580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24581 echo "$as_me:$LINENO: checking for $ac_header" >&5
24582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24584   echo $ECHO_N "(cached) $ECHO_C" >&6
24585 else
24586   cat >conftest.$ac_ext <<_ACEOF
24587 /* confdefs.h.  */
24588 _ACEOF
24589 cat confdefs.h >>conftest.$ac_ext
24590 cat >>conftest.$ac_ext <<_ACEOF
24591 /* end confdefs.h.  */
24592 #define XP_UNIX
24593
24594 #include <$ac_header>
24595 _ACEOF
24596 rm -f conftest.$ac_objext
24597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24598   (eval $ac_compile) 2>conftest.er1
24599   ac_status=$?
24600   grep -v '^ *+' conftest.er1 >conftest.err
24601   rm -f conftest.er1
24602   cat conftest.err >&5
24603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604   (exit $ac_status); } &&
24605          { ac_try='test -z "$ac_cxx_werror_flag"
24606                          || test ! -s conftest.err'
24607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608   (eval $ac_try) 2>&5
24609   ac_status=$?
24610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611   (exit $ac_status); }; } &&
24612          { ac_try='test -s conftest.$ac_objext'
24613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24614   (eval $ac_try) 2>&5
24615   ac_status=$?
24616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617   (exit $ac_status); }; }; then
24618   eval "$as_ac_Header=yes"
24619 else
24620   echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24622
24623 eval "$as_ac_Header=no"
24624 fi
24625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24626 fi
24627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24630   cat >>confdefs.h <<_ACEOF
24631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24632 _ACEOF
24633
24634 fi
24635
24636 done
24637
24638     NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
24639   fi
24640   if test "$NSAPI_INCLUDE" = ""; then
24641     { { echo "$as_me:$LINENO: error: Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" >&5
24642 echo "$as_me: error: Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" >&2;}
24643    { (exit 1); exit 1; }; }
24644   fi
24645 fi
24646
24647
24648
24649 # always output the Makefile, even if you don't use it
24650           ac_config_files="$ac_config_files nsapi_shib/Makefile"
24651
24652
24653
24654 if test ! "$WANT_NSAPI" = "no"; then
24655   BUILD_NSAPI_TRUE=
24656   BUILD_NSAPI_FALSE='#'
24657 else
24658   BUILD_NSAPI_TRUE='#'
24659   BUILD_NSAPI_FALSE=
24660 fi
24661
24662
24663 # add the NSAPI module to the list of wanted subdirs..
24664 if test ! "$WANT_NSAPI" = "no" ; then
24665     WANT_SUBDIRS="$WANT_SUBDIRS nsapi_shib"
24666 fi
24667
24668
24669 #
24670 # Build FastCGI support?
24671 #
24672 echo "$as_me:$LINENO: checking for FastCGI support" >&5
24673 echo $ECHO_N "checking for FastCGI support... $ECHO_C" >&6
24674
24675 # Check whether --with-fastcgi or --without-fastcgi was given.
24676 if test "${with_fastcgi+set}" = set; then
24677   withval="$with_fastcgi"
24678   WANT_FASTCGI=$withval
24679 else
24680   WANT_FASTCGI=no
24681 fi;
24682 echo "$as_me:$LINENO: result: $WANT_FASTCGI" >&5
24683 echo "${ECHO_T}$WANT_FASTCGI" >&6
24684
24685 if test "$WANT_FASTCGI" != "no"; then
24686     if test "$WANT_FASTCGI" != "yes"; then
24687         if test x_$WANT_FASTCGI != x_/usr; then
24688             FASTCGI_INCLUDE="-I$WANT_FASTCGI/include"
24689             FASTCGI_LDFLAGS="-L$WANT_FASTCGI/lib"
24690         fi
24691     fi
24692     if test "${ac_cv_header_fcgio_h+set}" = set; then
24693   echo "$as_me:$LINENO: checking for fcgio.h" >&5
24694 echo $ECHO_N "checking for fcgio.h... $ECHO_C" >&6
24695 if test "${ac_cv_header_fcgio_h+set}" = set; then
24696   echo $ECHO_N "(cached) $ECHO_C" >&6
24697 fi
24698 echo "$as_me:$LINENO: result: $ac_cv_header_fcgio_h" >&5
24699 echo "${ECHO_T}$ac_cv_header_fcgio_h" >&6
24700 else
24701   # Is the header compilable?
24702 echo "$as_me:$LINENO: checking fcgio.h usability" >&5
24703 echo $ECHO_N "checking fcgio.h usability... $ECHO_C" >&6
24704 cat >conftest.$ac_ext <<_ACEOF
24705 /* confdefs.h.  */
24706 _ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h.  */
24710 $ac_includes_default
24711 #include <fcgio.h>
24712 _ACEOF
24713 rm -f conftest.$ac_objext
24714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24715   (eval $ac_compile) 2>conftest.er1
24716   ac_status=$?
24717   grep -v '^ *+' conftest.er1 >conftest.err
24718   rm -f conftest.er1
24719   cat conftest.err >&5
24720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721   (exit $ac_status); } &&
24722          { ac_try='test -z "$ac_cxx_werror_flag"
24723                          || test ! -s conftest.err'
24724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24725   (eval $ac_try) 2>&5
24726   ac_status=$?
24727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728   (exit $ac_status); }; } &&
24729          { ac_try='test -s conftest.$ac_objext'
24730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731   (eval $ac_try) 2>&5
24732   ac_status=$?
24733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734   (exit $ac_status); }; }; then
24735   ac_header_compiler=yes
24736 else
24737   echo "$as_me: failed program was:" >&5
24738 sed 's/^/| /' conftest.$ac_ext >&5
24739
24740 ac_header_compiler=no
24741 fi
24742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24744 echo "${ECHO_T}$ac_header_compiler" >&6
24745
24746 # Is the header present?
24747 echo "$as_me:$LINENO: checking fcgio.h presence" >&5
24748 echo $ECHO_N "checking fcgio.h presence... $ECHO_C" >&6
24749 cat >conftest.$ac_ext <<_ACEOF
24750 /* confdefs.h.  */
24751 _ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h.  */
24755 #include <fcgio.h>
24756 _ACEOF
24757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24758   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24759   ac_status=$?
24760   grep -v '^ *+' conftest.er1 >conftest.err
24761   rm -f conftest.er1
24762   cat conftest.err >&5
24763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764   (exit $ac_status); } >/dev/null; then
24765   if test -s conftest.err; then
24766     ac_cpp_err=$ac_cxx_preproc_warn_flag
24767     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24768   else
24769     ac_cpp_err=
24770   fi
24771 else
24772   ac_cpp_err=yes
24773 fi
24774 if test -z "$ac_cpp_err"; then
24775   ac_header_preproc=yes
24776 else
24777   echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24779
24780   ac_header_preproc=no
24781 fi
24782 rm -f conftest.err conftest.$ac_ext
24783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24784 echo "${ECHO_T}$ac_header_preproc" >&6
24785
24786 # So?  What about this header?
24787 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24788   yes:no: )
24789     { echo "$as_me:$LINENO: WARNING: fcgio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24790 echo "$as_me: WARNING: fcgio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24791     { echo "$as_me:$LINENO: WARNING: fcgio.h: proceeding with the compiler's result" >&5
24792 echo "$as_me: WARNING: fcgio.h: proceeding with the compiler's result" >&2;}
24793     ac_header_preproc=yes
24794     ;;
24795   no:yes:* )
24796     { echo "$as_me:$LINENO: WARNING: fcgio.h: present but cannot be compiled" >&5
24797 echo "$as_me: WARNING: fcgio.h: present but cannot be compiled" >&2;}
24798     { echo "$as_me:$LINENO: WARNING: fcgio.h:     check for missing prerequisite headers?" >&5
24799 echo "$as_me: WARNING: fcgio.h:     check for missing prerequisite headers?" >&2;}
24800     { echo "$as_me:$LINENO: WARNING: fcgio.h: see the Autoconf documentation" >&5
24801 echo "$as_me: WARNING: fcgio.h: see the Autoconf documentation" >&2;}
24802     { echo "$as_me:$LINENO: WARNING: fcgio.h:     section \"Present But Cannot Be Compiled\"" >&5
24803 echo "$as_me: WARNING: fcgio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24804     { echo "$as_me:$LINENO: WARNING: fcgio.h: proceeding with the preprocessor's result" >&5
24805 echo "$as_me: WARNING: fcgio.h: proceeding with the preprocessor's result" >&2;}
24806     { echo "$as_me:$LINENO: WARNING: fcgio.h: in the future, the compiler will take precedence" >&5
24807 echo "$as_me: WARNING: fcgio.h: in the future, the compiler will take precedence" >&2;}
24808     (
24809       cat <<\_ASBOX
24810 ## --------------------------------------------- ##
24811 ## Report this to shibboleth-users@internet2.edu ##
24812 ## --------------------------------------------- ##
24813 _ASBOX
24814     ) |
24815       sed "s/^/$as_me: WARNING:     /" >&2
24816     ;;
24817 esac
24818 echo "$as_me:$LINENO: checking for fcgio.h" >&5
24819 echo $ECHO_N "checking for fcgio.h... $ECHO_C" >&6
24820 if test "${ac_cv_header_fcgio_h+set}" = set; then
24821   echo $ECHO_N "(cached) $ECHO_C" >&6
24822 else
24823   ac_cv_header_fcgio_h=$ac_header_preproc
24824 fi
24825 echo "$as_me:$LINENO: result: $ac_cv_header_fcgio_h" >&5
24826 echo "${ECHO_T}$ac_cv_header_fcgio_h" >&6
24827
24828 fi
24829 if test $ac_cv_header_fcgio_h = yes; then
24830   :
24831 else
24832   { { echo "$as_me:$LINENO: error: unable to find FastCGI header files" >&5
24833 echo "$as_me: error: unable to find FastCGI header files" >&2;}
24834    { (exit 1); exit 1; }; }
24835 fi
24836
24837
24838     FASTCGI_LIBS="-lfcgi -lfcgi++"
24839 fi
24840
24841
24842
24843
24844
24845 # always output the Makefile, even if you don't use it
24846           ac_config_files="$ac_config_files fastcgi/Makefile"
24847
24848
24849
24850 if test ! "$WANT_FASTCGI" = "no"; then
24851   BUILD_FASTCGI_TRUE=
24852   BUILD_FASTCGI_FALSE='#'
24853 else
24854   BUILD_FASTCGI_TRUE='#'
24855   BUILD_FASTCGI_FALSE=
24856 fi
24857
24858
24859 if test ! "$WANT_FASTCGI" = "no" ; then
24860     WANT_SUBDIRS="$WANT_SUBDIRS fastcgi"
24861 fi
24862
24863
24864 #
24865 # If no --enable-apache-xx specified
24866 # find a default and fake the specific parameters
24867 #
24868
24869 # simple macro to peek at an enable or a with
24870
24871
24872 echo "$as_me:$LINENO: checking if default apache needed" >&5
24873 echo $ECHO_N "checking if default apache needed... $ECHO_C" >&6
24874 need_default=yes
24875 if test "${enable_apache_13+set}" = set; then
24876   peekval="${enable_apache_13}"
24877   need_default=no
24878 fi;
24879 if test "${enable_apache_20+set}" = set; then
24880   peekval="${enable_apache_20}"
24881   need_default=no
24882 fi;
24883 if test "${enable_apache_22+set}" = set; then
24884   peekval="${enable_apache_22}"
24885   need_default=no
24886 fi;
24887 echo "$as_me:$LINENO: result: $need_default" >&5
24888 echo "${ECHO_T}$need_default" >&6
24889
24890 if test "$need_default" = "yes"; then
24891   # find an apxs, then the httpd
24892   xs=
24893   if test "${with_apxs+set}" = set; then
24894   peekval="${with_apxs}"
24895   xs="$peekval"
24896 fi;
24897   if test "${with_apxs2+set}" = set; then
24898   peekval="${with_apxs2}"
24899   xs="$peekval"
24900 fi;
24901   if test "${with_apxs22+set}" = set; then
24902   peekval="${with_apxs22}"
24903   xs="$peekval"
24904 fi;
24905   if test "x$xs" = "x"; then
24906      for ac_prog in apxs2 apxs
24907 do
24908   # Extract the first word of "$ac_prog", so it can be a program name with args.
24909 set dummy $ac_prog; ac_word=$2
24910 echo "$as_me:$LINENO: checking for $ac_word" >&5
24911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24912 if test "${ac_cv_path_xs+set}" = set; then
24913   echo $ECHO_N "(cached) $ECHO_C" >&6
24914 else
24915   case $xs in
24916   [\\/]* | ?:[\\/]*)
24917   ac_cv_path_xs="$xs" # Let the user override the test with a path.
24918   ;;
24919   *)
24920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24921 as_dummy="/usr/local/apache2/bin:/usr/local/apache/bin:/usr/sbin:$PATH"
24922 for as_dir in $as_dummy
24923 do
24924   IFS=$as_save_IFS
24925   test -z "$as_dir" && as_dir=.
24926   for ac_exec_ext in '' $ac_executable_extensions; do
24927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24928     ac_cv_path_xs="$as_dir/$ac_word$ac_exec_ext"
24929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24930     break 2
24931   fi
24932 done
24933 done
24934
24935   ;;
24936 esac
24937 fi
24938 xs=$ac_cv_path_xs
24939
24940 if test -n "$xs"; then
24941   echo "$as_me:$LINENO: result: $xs" >&5
24942 echo "${ECHO_T}$xs" >&6
24943 else
24944   echo "$as_me:$LINENO: result: no" >&5
24945 echo "${ECHO_T}no" >&6
24946 fi
24947
24948   test -n "$xs" && break
24949 done
24950 test -n "$xs" || xs="{ { echo "$as_me:$LINENO: error: No apxs" >&5
24951 echo "$as_me: error: No apxs" >&2;}
24952    { (exit no apache found.  Try --with-apxs); exit no apache found.  Try --with-apxs; }; }"
24953
24954   fi
24955   # ask the daemon for the version and set parameters
24956   echo "$as_me:$LINENO: checking default apache version" >&5
24957 echo $ECHO_N "checking default apache version... $ECHO_C" >&6
24958   httpd="`$xs -q SBINDIR`/`$xs -q TARGET`"
24959   if test "x$httpd" != "x" && test -f $httpd ; then
24960      v=`$httpd -v|$SED -n -e 's/.*Apache\/\.*//p'`
24961      case $v in
24962        1.3*)   enable_apache_13=yes
24963                with_apxs=$xs
24964                echo "$as_me:$LINENO: result: 1.3" >&5
24965 echo "${ECHO_T}1.3" >&6
24966                ;;
24967        2.0*)   enable_apache_20=yes
24968                with_apxs2=$xs
24969                echo "$as_me:$LINENO: result: 2.0" >&5
24970 echo "${ECHO_T}2.0" >&6
24971                ;;
24972        2.2*)   enable_apache_22=yes
24973                with_apxs22=$xs
24974                echo "$as_me:$LINENO: result: 2.2" >&5
24975 echo "${ECHO_T}2.2" >&6
24976                ;;
24977        *)      { { echo "$as_me:$LINENO: error: unusable apache versions: $v. Try setting --with-apxs" >&5
24978 echo "$as_me: error: unusable apache versions: $v. Try setting --with-apxs" >&2;}
24979    { (exit 1); exit 1; }; }
24980      esac
24981   else
24982      echo "$as_me:$LINENO: result: cannot determine version.  Try setting --with-apxs" >&5
24983 echo "${ECHO_T}cannot determine version.  Try setting --with-apxs" >&6
24984   fi
24985 fi
24986
24987 # Apache 1.3 (mod_shib_13)
24988 #   --enable-apache-13
24989 #   --with-apxs      (DSO build, the normal way, uses apxs to derive build flags)
24990
24991 # Check whether --enable-apache-13 or --disable-apache-13 was given.
24992 if test "${enable_apache_13+set}" = set; then
24993   enableval="$enable_apache_13"
24994    if test "x$enableval" = "x" ; then
24995               WANT_APACHE_13=yes
24996           else
24997               WANT_APACHE_13="$enableval"
24998           fi
24999
25000 else
25001    WANT_APACHE_13=no
25002 fi;
25003 echo "$as_me:$LINENO: checking whether to build Apache 1.3 module" >&5
25004 echo $ECHO_N "checking whether to build Apache 1.3 module... $ECHO_C" >&6
25005 if test "$WANT_APACHE_13" != yes && test "$WANT_APACHE_13" != no ; then
25006    WANT_APACHE_13=yes
25007 fi
25008 echo "$as_me:$LINENO: result: $WANT_APACHE_13" >&5
25009 echo "${ECHO_T}$WANT_APACHE_13" >&6
25010
25011 if test "$WANT_APACHE_13" = "yes" ; then
25012
25013 # Check whether --with-apxs or --without-apxs was given.
25014 if test "${with_apxs+set}" = set; then
25015   withval="$with_apxs"
25016
25017         echo "$as_me:$LINENO: checking for user-specified apxs name/location" >&5
25018 echo $ECHO_N "checking for user-specified apxs name/location... $ECHO_C" >&6
25019         if test "$withval" != "no" ; then
25020           if test "$withval" != "yes"; then
25021             APXS=$withval
25022             echo "$as_me:$LINENO: result: \"$withval\"" >&5
25023 echo "${ECHO_T}\"$withval\"" >&6
25024           fi
25025         fi
25026
25027 else
25028
25029         # Extract the first word of "apxs", so it can be a program name with args.
25030 set dummy apxs; ac_word=$2
25031 echo "$as_me:$LINENO: checking for $ac_word" >&5
25032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25033 if test "${ac_cv_path_APXS+set}" = set; then
25034   echo $ECHO_N "(cached) $ECHO_C" >&6
25035 else
25036   case $APXS in
25037   [\\/]* | ?:[\\/]*)
25038   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
25039   ;;
25040   *)
25041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25042 for as_dir in $PATH
25043 do
25044   IFS=$as_save_IFS
25045   test -z "$as_dir" && as_dir=.
25046   for ac_exec_ext in '' $ac_executable_extensions; do
25047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25048     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
25049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25050     break 2
25051   fi
25052 done
25053 done
25054
25055   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
25056   ;;
25057 esac
25058 fi
25059 APXS=$ac_cv_path_APXS
25060
25061 if test -n "$APXS"; then
25062   echo "$as_me:$LINENO: result: $APXS" >&5
25063 echo "${ECHO_T}$APXS" >&6
25064 else
25065   echo "$as_me:$LINENO: result: no" >&5
25066 echo "${ECHO_T}no" >&6
25067 fi
25068
25069         if test "$APXS" = "no" ; then
25070           for i in /usr/sbin /usr/local/apache/bin ; do
25071             if test "$APXS" = "no" && test -f "$i/apxs"; then
25072               APXS="$i/apxs"
25073             fi
25074           done
25075         fi
25076
25077 fi;
25078
25079     echo "$as_me:$LINENO: checking to see if apxs was located" >&5
25080 echo $ECHO_N "checking to see if apxs was located... $ECHO_C" >&6
25081     if test ! -f "$APXS" ; then
25082         echo "$as_me:$LINENO: result: no" >&5
25083 echo "${ECHO_T}no" >&6
25084         { { 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
25085 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;}
25086    { (exit 1); exit 1; }; }
25087     fi
25088     echo "$as_me:$LINENO: result: $APXS" >&5
25089 echo "${ECHO_T}$APXS" >&6
25090
25091
25092     # extract settings we need from APXS -q
25093     APXS_CC="`$APXS -q CC`"
25094     APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q CFLAGS_SHLIB`"
25095     APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
25096 fi
25097
25098
25099
25100
25101
25102 # Apache 2.0 (mod_shib_20)
25103 #   --enable-apache-20
25104 #   --with-apxs2      (DSO build, the normal way, uses apxs to derive build flags)
25105 #       --with-apr        (DSO build, APR development package installed separately)
25106
25107 # Check whether --enable-apache-20 or --disable-apache-20 was given.
25108 if test "${enable_apache_20+set}" = set; then
25109   enableval="$enable_apache_20"
25110    if test "x$enableval" = "x" ; then
25111               WANT_APACHE_20=yes
25112           else
25113               WANT_APACHE_20="$enableval"
25114           fi
25115
25116 else
25117    WANT_APACHE_20=no
25118 fi;
25119 echo "$as_me:$LINENO: checking whether to build Apache 2.0 module" >&5
25120 echo $ECHO_N "checking whether to build Apache 2.0 module... $ECHO_C" >&6
25121 if test "$WANT_APACHE_20" != yes && test "$WANT_APACHE_20" != no ; then
25122    WANT_APACHE_20=yes
25123 fi
25124 echo "$as_me:$LINENO: result: $WANT_APACHE_20" >&5
25125 echo "${ECHO_T}$WANT_APACHE_20" >&6
25126
25127 if test "$WANT_APACHE_20" = "yes" ; then
25128
25129 # Check whether --with-apxs2 or --without-apxs2 was given.
25130 if test "${with_apxs2+set}" = set; then
25131   withval="$with_apxs2"
25132
25133         echo "$as_me:$LINENO: checking for user-specified Apache2 apxs name/location" >&5
25134 echo $ECHO_N "checking for user-specified Apache2 apxs name/location... $ECHO_C" >&6
25135         if test "$withval" != "no" ; then
25136           if test "$withval" != "yes"; then
25137             APXS2=$withval
25138             echo "$as_me:$LINENO: result: \"$withval\"" >&5
25139 echo "${ECHO_T}\"$withval\"" >&6
25140           fi
25141         fi
25142
25143 else
25144
25145         # Extract the first word of "apxs2", so it can be a program name with args.
25146 set dummy apxs2; ac_word=$2
25147 echo "$as_me:$LINENO: checking for $ac_word" >&5
25148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25149 if test "${ac_cv_path_APXS2+set}" = set; then
25150   echo $ECHO_N "(cached) $ECHO_C" >&6
25151 else
25152   case $APXS2 in
25153   [\\/]* | ?:[\\/]*)
25154   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
25155   ;;
25156   *)
25157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25158 for as_dir in $PATH
25159 do
25160   IFS=$as_save_IFS
25161   test -z "$as_dir" && as_dir=.
25162   for ac_exec_ext in '' $ac_executable_extensions; do
25163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25164     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
25165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25166     break 2
25167   fi
25168 done
25169 done
25170
25171   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
25172   ;;
25173 esac
25174 fi
25175 APXS2=$ac_cv_path_APXS2
25176
25177 if test -n "$APXS2"; then
25178   echo "$as_me:$LINENO: result: $APXS2" >&5
25179 echo "${ECHO_T}$APXS2" >&6
25180 else
25181   echo "$as_me:$LINENO: result: no" >&5
25182 echo "${ECHO_T}no" >&6
25183 fi
25184
25185         if test "$APXS2" = "no" ; then
25186             # Extract the first word of "apxs", so it can be a program name with args.
25187 set dummy apxs; ac_word=$2
25188 echo "$as_me:$LINENO: checking for $ac_word" >&5
25189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25190 if test "${ac_cv_path_APXS2+set}" = set; then
25191   echo $ECHO_N "(cached) $ECHO_C" >&6
25192 else
25193   case $APXS2 in
25194   [\\/]* | ?:[\\/]*)
25195   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
25196   ;;
25197   *)
25198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25199 for as_dir in $PATH
25200 do
25201   IFS=$as_save_IFS
25202   test -z "$as_dir" && as_dir=.
25203   for ac_exec_ext in '' $ac_executable_extensions; do
25204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25205     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
25206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25207     break 2
25208   fi
25209 done
25210 done
25211
25212   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
25213   ;;
25214 esac
25215 fi
25216 APXS2=$ac_cv_path_APXS2
25217
25218 if test -n "$APXS2"; then
25219   echo "$as_me:$LINENO: result: $APXS2" >&5
25220 echo "${ECHO_T}$APXS2" >&6
25221 else
25222   echo "$as_me:$LINENO: result: no" >&5
25223 echo "${ECHO_T}no" >&6
25224 fi
25225
25226         fi
25227         if test "$APXS2" = "no" ; then
25228           for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25229             if test "$APXS2" = "no" && test -f "$i/apxs2" ; then
25230               APXS2="$i/apxs2"
25231             fi
25232           done
25233           if test "$APXS2" = "no" ; then
25234             for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25235               if test "$APXS2" = "no" && test -f "$i/apxs" ; then
25236                 APXS2="$i/apxs"
25237               fi
25238             done
25239           fi
25240         fi
25241
25242 fi;
25243
25244     echo "$as_me:$LINENO: checking to see if Apache2 apxs was located" >&5
25245 echo $ECHO_N "checking to see if Apache2 apxs was located... $ECHO_C" >&6
25246     if test ! -f "$APXS2" ; then
25247         echo "$as_me:$LINENO: result: no" >&5
25248 echo "${ECHO_T}no" >&6
25249         { { 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
25250 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;}
25251    { (exit 1); exit 1; }; }
25252     fi
25253     echo "$as_me:$LINENO: result: $APXS2" >&5
25254 echo "${ECHO_T}$APXS2" >&6
25255
25256
25257     # APR settings
25258
25259 # Check whether --with-apr or --without-apr was given.
25260 if test "${with_apr+set}" = set; then
25261   withval="$with_apr"
25262
25263         echo "$as_me:$LINENO: checking for user-specified apr-config name/location" >&5
25264 echo $ECHO_N "checking for user-specified apr-config name/location... $ECHO_C" >&6
25265         if test "$withval" != "no" ; then
25266             if test "$withval" != "yes"; then
25267                 APR_CONFIG=$withval
25268                 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25269 echo "${ECHO_T}\"$withval\"" >&6
25270             fi
25271         fi
25272
25273 else
25274
25275         # Extract the first word of "apr-config", so it can be a program name with args.
25276 set dummy apr-config; ac_word=$2
25277 echo "$as_me:$LINENO: checking for $ac_word" >&5
25278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25279 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
25280   echo $ECHO_N "(cached) $ECHO_C" >&6
25281 else
25282   case $APR_CONFIG in
25283   [\\/]* | ?:[\\/]*)
25284   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
25285   ;;
25286   *)
25287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25288 as_dummy="`$APXS2 -q SBINDIR`:$PATH"
25289 for as_dir in $as_dummy
25290 do
25291   IFS=$as_save_IFS
25292   test -z "$as_dir" && as_dir=.
25293   for ac_exec_ext in '' $ac_executable_extensions; do
25294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25295     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25297     break 2
25298   fi
25299 done
25300 done
25301
25302   ;;
25303 esac
25304 fi
25305 APR_CONFIG=$ac_cv_path_APR_CONFIG
25306
25307 if test -n "$APR_CONFIG"; then
25308   echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
25309 echo "${ECHO_T}$APR_CONFIG" >&6
25310 else
25311   echo "$as_me:$LINENO: result: no" >&5
25312 echo "${ECHO_T}no" >&6
25313 fi
25314
25315
25316 fi;
25317         if test -f "${APR_CONFIG}"; then
25318         APR_CFLAGS="`${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags` `${APR_CONFIG} --includes`"
25319     else
25320         { { echo "$as_me:$LINENO: error: Unable to locate apr-config, may need --with-apr option." >&5
25321 echo "$as_me: error: Unable to locate apr-config, may need --with-apr option." >&2;}
25322    { (exit 1); exit 1; }; }
25323     fi
25324
25325     # extract settings we need from APXS2 -q
25326     APXS2_CC="`$APXS2 -q CC`"
25327     APXS2_CFLAGS="`$APXS2 -q CPPFLAGS` `$APXS2 -q CFLAGS` $APR_CFLAGS"
25328     APXS2_INCLUDE="`$APXS2 -q INCLUDEDIR`"
25329 fi
25330
25331
25332
25333
25334
25335 # Apache 2.2 (mod_shib_22)
25336 #   --enable-apache-22
25337 #   --with-apxs22     (DSO build, the normal way, uses apxs to derive build flags)
25338 #       --with-apr1       (DSO build, APR development package installed separately)
25339
25340 # Check whether --enable-apache-22 or --disable-apache-22 was given.
25341 if test "${enable_apache_22+set}" = set; then
25342   enableval="$enable_apache_22"
25343    if test "x$enableval" = "x" ; then
25344               WANT_APACHE_22=yes
25345           else
25346               WANT_APACHE_22="$enableval"
25347           fi
25348
25349 else
25350    WANT_APACHE_22=no
25351 fi;
25352 echo "$as_me:$LINENO: checking whether to build Apache 2.2 module" >&5
25353 echo $ECHO_N "checking whether to build Apache 2.2 module... $ECHO_C" >&6
25354 if test "$WANT_APACHE_22" != yes && test "$WANT_APACHE_22" != no ; then
25355    WANT_APACHE_22=yes
25356 fi
25357 echo "$as_me:$LINENO: result: $WANT_APACHE_22" >&5
25358 echo "${ECHO_T}$WANT_APACHE_22" >&6
25359
25360 if test "$WANT_APACHE_22" = "yes" ; then
25361
25362 # Check whether --with-apxs22 or --without-apxs22 was given.
25363 if test "${with_apxs22+set}" = set; then
25364   withval="$with_apxs22"
25365
25366         echo "$as_me:$LINENO: checking for user-specified Apache2.2 apxs name/location" >&5
25367 echo $ECHO_N "checking for user-specified Apache2.2 apxs name/location... $ECHO_C" >&6
25368         if test "$withval" != "no" ; then
25369           if test "$withval" != "yes"; then
25370             APXS22=$withval
25371             echo "$as_me:$LINENO: result: \"$withval\"" >&5
25372 echo "${ECHO_T}\"$withval\"" >&6
25373           fi
25374         fi
25375
25376 else
25377
25378         # Extract the first word of "apxs2", so it can be a program name with args.
25379 set dummy apxs2; ac_word=$2
25380 echo "$as_me:$LINENO: checking for $ac_word" >&5
25381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25382 if test "${ac_cv_path_APXS22+set}" = set; then
25383   echo $ECHO_N "(cached) $ECHO_C" >&6
25384 else
25385   case $APXS22 in
25386   [\\/]* | ?:[\\/]*)
25387   ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
25388   ;;
25389   *)
25390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25391 for as_dir in $PATH
25392 do
25393   IFS=$as_save_IFS
25394   test -z "$as_dir" && as_dir=.
25395   for ac_exec_ext in '' $ac_executable_extensions; do
25396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25397     ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
25398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25399     break 2
25400   fi
25401 done
25402 done
25403
25404   test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
25405   ;;
25406 esac
25407 fi
25408 APXS22=$ac_cv_path_APXS22
25409
25410 if test -n "$APXS22"; then
25411   echo "$as_me:$LINENO: result: $APXS22" >&5
25412 echo "${ECHO_T}$APXS22" >&6
25413 else
25414   echo "$as_me:$LINENO: result: no" >&5
25415 echo "${ECHO_T}no" >&6
25416 fi
25417
25418         if test "$APXS22" = "no" ; then
25419             # Extract the first word of "apxs", so it can be a program name with args.
25420 set dummy apxs; ac_word=$2
25421 echo "$as_me:$LINENO: checking for $ac_word" >&5
25422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25423 if test "${ac_cv_path_APXS22+set}" = set; then
25424   echo $ECHO_N "(cached) $ECHO_C" >&6
25425 else
25426   case $APXS22 in
25427   [\\/]* | ?:[\\/]*)
25428   ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
25429   ;;
25430   *)
25431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25432 for as_dir in $PATH
25433 do
25434   IFS=$as_save_IFS
25435   test -z "$as_dir" && as_dir=.
25436   for ac_exec_ext in '' $ac_executable_extensions; do
25437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25438     ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
25439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25440     break 2
25441   fi
25442 done
25443 done
25444
25445   test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
25446   ;;
25447 esac
25448 fi
25449 APXS22=$ac_cv_path_APXS22
25450
25451 if test -n "$APXS22"; then
25452   echo "$as_me:$LINENO: result: $APXS22" >&5
25453 echo "${ECHO_T}$APXS22" >&6
25454 else
25455   echo "$as_me:$LINENO: result: no" >&5
25456 echo "${ECHO_T}no" >&6
25457 fi
25458
25459         fi
25460         if test "$APXS22" = "no" ; then
25461           for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25462             if test "$APXS22" = "no" && test -f "$i/apxs2" ; then
25463               APXS22="$i/apxs2"
25464             fi
25465           done
25466           if test "$APXS22" = "no" ; then
25467             for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25468               if test "$APXS22" = "no" && test -f "$i/apxs" ; then
25469                 APXS22="$i/apxs"
25470               fi
25471             done
25472           fi
25473         fi
25474
25475 fi;
25476
25477     echo "$as_me:$LINENO: checking to see if Apache2.2 apxs was located" >&5
25478 echo $ECHO_N "checking to see if Apache2.2 apxs was located... $ECHO_C" >&6
25479     if test ! -f "$APXS22" ; then
25480         echo "$as_me:$LINENO: result: no" >&5
25481 echo "${ECHO_T}no" >&6
25482         { { 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
25483 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;}
25484    { (exit 1); exit 1; }; }
25485     fi
25486     echo "$as_me:$LINENO: result: $APXS22" >&5
25487 echo "${ECHO_T}$APXS22" >&6
25488
25489
25490     # APR1 settings
25491
25492 # Check whether --with-apr1 or --without-apr1 was given.
25493 if test "${with_apr1+set}" = set; then
25494   withval="$with_apr1"
25495
25496         echo "$as_me:$LINENO: checking for user-specified apr-1-config name/location" >&5
25497 echo $ECHO_N "checking for user-specified apr-1-config name/location... $ECHO_C" >&6
25498         if test "$withval" != "no" ; then
25499             if test "$withval" != "yes"; then
25500                 APR1_CONFIG=$withval
25501                 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25502 echo "${ECHO_T}\"$withval\"" >&6
25503             fi
25504         fi
25505
25506 else
25507
25508         # Extract the first word of "apr-1-config", so it can be a program name with args.
25509 set dummy apr-1-config; ac_word=$2
25510 echo "$as_me:$LINENO: checking for $ac_word" >&5
25511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25512 if test "${ac_cv_path_APR1_CONFIG+set}" = set; then
25513   echo $ECHO_N "(cached) $ECHO_C" >&6
25514 else
25515   case $APR1_CONFIG in
25516   [\\/]* | ?:[\\/]*)
25517   ac_cv_path_APR1_CONFIG="$APR1_CONFIG" # Let the user override the test with a path.
25518   ;;
25519   *)
25520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25521 as_dummy="`$APXS22 -q SBINDIR`:$PATH"
25522 for as_dir in $as_dummy
25523 do
25524   IFS=$as_save_IFS
25525   test -z "$as_dir" && as_dir=.
25526   for ac_exec_ext in '' $ac_executable_extensions; do
25527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25528     ac_cv_path_APR1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25530     break 2
25531   fi
25532 done
25533 done
25534
25535   ;;
25536 esac
25537 fi
25538 APR1_CONFIG=$ac_cv_path_APR1_CONFIG
25539
25540 if test -n "$APR1_CONFIG"; then
25541   echo "$as_me:$LINENO: result: $APR1_CONFIG" >&5
25542 echo "${ECHO_T}$APR1_CONFIG" >&6
25543 else
25544   echo "$as_me:$LINENO: result: no" >&5
25545 echo "${ECHO_T}no" >&6
25546 fi
25547
25548
25549 fi;
25550         if test -f "${APR1_CONFIG}"; then
25551         APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags` `${APR1_CONFIG} --includes`"
25552     else
25553         { { echo "$as_me:$LINENO: error: Unable to locate apr-1-config, may need --with-apr1 option." >&5
25554 echo "$as_me: error: Unable to locate apr-1-config, may need --with-apr1 option." >&2;}
25555    { (exit 1); exit 1; }; }
25556     fi
25557
25558     # extract settings we need from APXS22 -q
25559     APXS22_CC="`$APXS22 -q CC`"
25560     APXS22_CFLAGS="`$APXS22 -q CPPFLAGS` `$APXS22 -q CFLAGS` $APR1_CFLAGS"
25561     APXS22_INCLUDE="`$APXS22 -q INCLUDEDIR`"
25562 fi
25563
25564
25565
25566
25567 # always output the Makefile, even if you don't use it
25568           ac_config_files="$ac_config_files apache/Makefile"
25569
25570
25571
25572 if test "$WANT_APACHE_13" = "yes"; then
25573   BUILD_AP13_TRUE=
25574   BUILD_AP13_FALSE='#'
25575 else
25576   BUILD_AP13_TRUE='#'
25577   BUILD_AP13_FALSE=
25578 fi
25579
25580
25581
25582 if test "$WANT_APACHE_20" = "yes"; then
25583   BUILD_AP20_TRUE=
25584   BUILD_AP20_FALSE='#'
25585 else
25586   BUILD_AP20_TRUE='#'
25587   BUILD_AP20_FALSE=
25588 fi
25589
25590
25591
25592 if test "$WANT_APACHE_22" = "yes"; then
25593   BUILD_AP22_TRUE=
25594   BUILD_AP22_FALSE='#'
25595 else
25596   BUILD_AP22_TRUE='#'
25597   BUILD_AP22_FALSE=
25598 fi
25599
25600
25601 # add the apache module to the list of wanted subdirs..
25602 if test "$WANT_APACHE_13" = "yes" || test "$WANT_APACHE_20" = "yes" || test "$WANT_APACHE_22" = "yes" ; then
25603     WANT_SUBDIRS="$WANT_SUBDIRS apache"
25604 fi
25605
25606
25607 #
25608 # Implement the checks of the ODBC Storage Service
25609 #
25610 # 1) Assume the user wants ODBC; if it's not found then just continue without
25611 # 2) If the user specifically requested odbc, look for it and ERROR if not found
25612 # 3) If the user specifically requested no odbc, don't build it.
25613 #
25614
25615           ac_config_files="$ac_config_files odbc-store/Makefile"
25616
25617
25618 # determine whether we should enable the odbc ccache
25619 # Check whether --enable-odbc or --disable-odbc was given.
25620 if test "${enable_odbc+set}" = set; then
25621   enableval="$enable_odbc"
25622   odbc_enabled=$enableval
25623 else
25624   odbc_enabled=default
25625 fi;
25626
25627 if test "x$odbc_enabled" = "x" ; then
25628    odbc_enabled=yes
25629 fi
25630
25631 # Are we trying to build ODBC?
25632 echo "$as_me:$LINENO: checking whether to build the ODBC storage service" >&5
25633 echo $ECHO_N "checking whether to build the ODBC storage service... $ECHO_C" >&6
25634 if test "$odbc_enabled" = "yes" ; then
25635    build_odbc=yes
25636    echo "$as_me:$LINENO: result: yes" >&5
25637 echo "${ECHO_T}yes" >&6
25638 elif test "$odbc_enabled" = "default" ; then
25639    build_odbc=yes
25640    echo "$as_me:$LINENO: result: yes, if it can be found" >&5
25641 echo "${ECHO_T}yes, if it can be found" >&6
25642 else
25643    build_odbc=no
25644    echo "$as_me:$LINENO: result: no" >&5
25645 echo "${ECHO_T}no" >&6
25646 fi
25647
25648 # If we're trying to build ODBC, try to find the odbc_config program.
25649 if test "$build_odbc" = "yes" ; then
25650    odbc_dir=""
25651
25652 # Check whether --with-odbc or --without-odbc was given.
25653 if test "${with_odbc+set}" = set; then
25654   withval="$with_odbc"
25655   if test "$with_odbc" = no ; then
25656                { { echo "$as_me:$LINENO: error: Try running --disable-odbc instead." >&5
25657 echo "$as_me: error: Try running --disable-odbc instead." >&2;}
25658    { (exit 1); exit 1; }; }
25659              elif test "$with_odbc" != yes ; then
25660                odbc_dir="$with_odbc/bin"
25661                if test "$with_odbc" != /usr ; then
25662                  ODBC_CFLAGS="-I$with_odbc/include"
25663                  ODBC_LIBS="-L$with_odbc/lib"
25664                fi
25665              fi
25666 fi;
25667
25668    # Extract the first word of "odbc_config", so it can be a program name with args.
25669 set dummy odbc_config; ac_word=$2
25670 echo "$as_me:$LINENO: checking for $ac_word" >&5
25671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25672 if test "${ac_cv_path_ODBC_CONFIG+set}" = set; then
25673   echo $ECHO_N "(cached) $ECHO_C" >&6
25674 else
25675   case $ODBC_CONFIG in
25676   [\\/]* | ?:[\\/]*)
25677   ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path.
25678   ;;
25679   *)
25680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25681 for as_dir in $odbc_dir $PATH
25682 do
25683   IFS=$as_save_IFS
25684   test -z "$as_dir" && as_dir=.
25685   for ac_exec_ext in '' $ac_executable_extensions; do
25686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25687     ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25689     break 2
25690   fi
25691 done
25692 done
25693
25694   test -z "$ac_cv_path_ODBC_CONFIG" && ac_cv_path_ODBC_CONFIG="no"
25695   ;;
25696 esac
25697 fi
25698 ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG
25699
25700 if test -n "$ODBC_CONFIG"; then
25701   echo "$as_me:$LINENO: result: $ODBC_CONFIG" >&5
25702 echo "${ECHO_T}$ODBC_CONFIG" >&6
25703 else
25704   echo "$as_me:$LINENO: result: no" >&5
25705 echo "${ECHO_T}no" >&6
25706 fi
25707
25708    if test "$ODBC_CONFIG" = no ; then
25709       { echo "$as_me:$LINENO: WARNING: Cannot find odbc_config, will try to guess settings." >&5
25710 echo "$as_me: WARNING: Cannot find odbc_config, will try to guess settings." >&2;}
25711       ODBC_LIBS="$ODBC_LIBS -lodbc"
25712    else
25713       ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
25714       ODBC_LIBS=`$ODBC_CONFIG --libs`
25715    fi
25716
25717    save_CPPFLAGS="$CPPFLAGS"
25718    CPPFLAGS="$CPPFLAGS $ODBC_CFLAGS"
25719
25720    if test "${ac_cv_header_sql_h+set}" = set; then
25721   echo "$as_me:$LINENO: checking for sql.h" >&5
25722 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25723 if test "${ac_cv_header_sql_h+set}" = set; then
25724   echo $ECHO_N "(cached) $ECHO_C" >&6
25725 fi
25726 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25727 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25728 else
25729   # Is the header compilable?
25730 echo "$as_me:$LINENO: checking sql.h usability" >&5
25731 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
25732 cat >conftest.$ac_ext <<_ACEOF
25733 /* confdefs.h.  */
25734 _ACEOF
25735 cat confdefs.h >>conftest.$ac_ext
25736 cat >>conftest.$ac_ext <<_ACEOF
25737 /* end confdefs.h.  */
25738 $ac_includes_default
25739 #include <sql.h>
25740 _ACEOF
25741 rm -f conftest.$ac_objext
25742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25743   (eval $ac_compile) 2>conftest.er1
25744   ac_status=$?
25745   grep -v '^ *+' conftest.er1 >conftest.err
25746   rm -f conftest.er1
25747   cat conftest.err >&5
25748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749   (exit $ac_status); } &&
25750          { ac_try='test -z "$ac_cxx_werror_flag"
25751                          || test ! -s conftest.err'
25752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25753   (eval $ac_try) 2>&5
25754   ac_status=$?
25755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756   (exit $ac_status); }; } &&
25757          { ac_try='test -s conftest.$ac_objext'
25758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25759   (eval $ac_try) 2>&5
25760   ac_status=$?
25761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762   (exit $ac_status); }; }; then
25763   ac_header_compiler=yes
25764 else
25765   echo "$as_me: failed program was:" >&5
25766 sed 's/^/| /' conftest.$ac_ext >&5
25767
25768 ac_header_compiler=no
25769 fi
25770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25772 echo "${ECHO_T}$ac_header_compiler" >&6
25773
25774 # Is the header present?
25775 echo "$as_me:$LINENO: checking sql.h presence" >&5
25776 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
25777 cat >conftest.$ac_ext <<_ACEOF
25778 /* confdefs.h.  */
25779 _ACEOF
25780 cat confdefs.h >>conftest.$ac_ext
25781 cat >>conftest.$ac_ext <<_ACEOF
25782 /* end confdefs.h.  */
25783 #include <sql.h>
25784 _ACEOF
25785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25787   ac_status=$?
25788   grep -v '^ *+' conftest.er1 >conftest.err
25789   rm -f conftest.er1
25790   cat conftest.err >&5
25791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792   (exit $ac_status); } >/dev/null; then
25793   if test -s conftest.err; then
25794     ac_cpp_err=$ac_cxx_preproc_warn_flag
25795     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25796   else
25797     ac_cpp_err=
25798   fi
25799 else
25800   ac_cpp_err=yes
25801 fi
25802 if test -z "$ac_cpp_err"; then
25803   ac_header_preproc=yes
25804 else
25805   echo "$as_me: failed program was:" >&5
25806 sed 's/^/| /' conftest.$ac_ext >&5
25807
25808   ac_header_preproc=no
25809 fi
25810 rm -f conftest.err conftest.$ac_ext
25811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25812 echo "${ECHO_T}$ac_header_preproc" >&6
25813
25814 # So?  What about this header?
25815 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25816   yes:no: )
25817     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
25818 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25819     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
25820 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
25821     ac_header_preproc=yes
25822     ;;
25823   no:yes:* )
25824     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
25825 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
25826     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
25827 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
25828     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
25829 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
25830     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
25831 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25832     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25833 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
25834     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
25835 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
25836     (
25837       cat <<\_ASBOX
25838 ## --------------------------------------------- ##
25839 ## Report this to shibboleth-users@internet2.edu ##
25840 ## --------------------------------------------- ##
25841 _ASBOX
25842     ) |
25843       sed "s/^/$as_me: WARNING:     /" >&2
25844     ;;
25845 esac
25846 echo "$as_me:$LINENO: checking for sql.h" >&5
25847 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25848 if test "${ac_cv_header_sql_h+set}" = set; then
25849   echo $ECHO_N "(cached) $ECHO_C" >&6
25850 else
25851   ac_cv_header_sql_h=$ac_header_preproc
25852 fi
25853 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25854 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25855
25856 fi
25857 if test $ac_cv_header_sql_h = yes; then
25858   have_sql_h=yes
25859 else
25860   have_sql_h=no
25861 fi
25862
25863
25864    if test "$have_sql_h" = no -a "$odbc_enabled" = "yes" ; then
25865      { { echo "$as_me:$LINENO: error: unable to find ODBC header files" >&5
25866 echo "$as_me: error: unable to find ODBC header files" >&2;}
25867    { (exit 1); exit 1; }; }
25868    fi
25869
25870    if test "$have_sql_h" = yes ; then
25871       save_LIBS="$LIBS"
25872       LIBS="$LIBS $ODBC_LIBS"
25873       echo "$as_me:$LINENO: checking if we can link againt ODBC" >&5
25874 echo $ECHO_N "checking if we can link againt ODBC... $ECHO_C" >&6
25875       cat >conftest.$ac_ext <<_ACEOF
25876 /* confdefs.h.  */
25877 _ACEOF
25878 cat confdefs.h >>conftest.$ac_ext
25879 cat >>conftest.$ac_ext <<_ACEOF
25880 /* end confdefs.h.  */
25881 #include <sql.h>
25882          #include <sqlext.h>
25883          #include <stdio.h>
25884 int
25885 main ()
25886 {
25887 SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)SQL_CP_ONE_PER_HENV, 0)
25888   ;
25889   return 0;
25890 }
25891 _ACEOF
25892 rm -f conftest.$ac_objext conftest$ac_exeext
25893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25894   (eval $ac_link) 2>conftest.er1
25895   ac_status=$?
25896   grep -v '^ *+' conftest.er1 >conftest.err
25897   rm -f conftest.er1
25898   cat conftest.err >&5
25899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900   (exit $ac_status); } &&
25901          { ac_try='test -z "$ac_cxx_werror_flag"
25902                          || test ! -s conftest.err'
25903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25904   (eval $ac_try) 2>&5
25905   ac_status=$?
25906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907   (exit $ac_status); }; } &&
25908          { ac_try='test -s conftest$ac_exeext'
25909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25910   (eval $ac_try) 2>&5
25911   ac_status=$?
25912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913   (exit $ac_status); }; }; then
25914   have_odbc_libs=yes
25915 else
25916   echo "$as_me: failed program was:" >&5
25917 sed 's/^/| /' conftest.$ac_ext >&5
25918
25919 have_odbc_libs=no
25920 fi
25921 rm -f conftest.err conftest.$ac_objext \
25922       conftest$ac_exeext conftest.$ac_ext
25923       LIBS="$save_LIBS"
25924
25925       if test "$have_odbc_libs" = no ; then
25926          if test "$odbc_enabled" = "yes" ; then
25927             { { echo "$as_me:$LINENO: error: unable to link with ODBC Library" >&5
25928 echo "$as_me: error: unable to link with ODBC Library" >&2;}
25929    { (exit 1); exit 1; }; }
25930          else
25931             echo "$as_me:$LINENO: result: no" >&5
25932 echo "${ECHO_T}no" >&6
25933          fi
25934       fi
25935    fi
25936
25937    CPPFLAGS="$save_CPPFLAGS"
25938 fi
25939
25940 # if have_odbc_libs=yes then go ahead with building ODBC
25941 if test "$have_odbc_libs" = yes ; then
25942    # this AC_MSG_RESULT is from above!
25943    echo "$as_me:$LINENO: result: yes" >&5
25944 echo "${ECHO_T}yes" >&6
25945    WANT_SUBDIRS="$WANT_SUBDIRS odbc-store"
25946
25947
25948 fi
25949
25950
25951
25952
25953 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
25954   echo "=================================================================="
25955   echo "WARNING: You have chosen to compile Apache-1.3 modules with a different"
25956   echo "         compiler than the one used to compile Apache."
25957   echo ""
25958   echo "    Current compiler:      $CC"
25959   echo "   Apache's compiler:      $APXS_CC"
25960   echo ""
25961   echo "This could cause problems."
25962   echo "=================================================================="
25963 fi
25964
25965 if test -n "$APXS2_CC" && test "$APXS2_CC" != "$CC" ; then
25966   echo "=================================================================="
25967   echo "WARNING: You have chosen to compile Apache-2.0 modules with a different"
25968   echo "         compiler than the one used to compile Apache."
25969   echo ""
25970   echo "    Current compiler:      $CC"
25971   echo "   Apache's compiler:      $APXS2_CC"
25972   echo ""
25973   echo "This could cause problems."
25974   echo "=================================================================="
25975 fi
25976
25977 if test -n "$APXS22_CC" && test "$APXS22_CC" != "$CC" ; then
25978   echo "=================================================================="
25979   echo "WARNING: You have chosen to compile Apache-2.2 modules with a different"
25980   echo "         compiler than the one used to compile Apache."
25981   echo ""
25982   echo "    Current compiler:      $CC"
25983   echo "   Apache's compiler:      $APXS22_CC"
25984   echo ""
25985   echo "This could cause problems."
25986   echo "=================================================================="
25987 fi
25988
25989 LIBTOOL="$LIBTOOL --silent"
25990
25991 cat >confcache <<\_ACEOF
25992 # This file is a shell script that caches the results of configure
25993 # tests run on this system so they can be shared between configure
25994 # scripts and configure runs, see configure's option --config-cache.
25995 # It is not useful on other systems.  If it contains results you don't
25996 # want to keep, you may remove or edit it.
25997 #
25998 # config.status only pays attention to the cache file if you give it
25999 # the --recheck option to rerun configure.
26000 #
26001 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26002 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26003 # following values.
26004
26005 _ACEOF
26006
26007 # The following way of writing the cache mishandles newlines in values,
26008 # but we know of no workaround that is simple, portable, and efficient.
26009 # So, don't put newlines in cache variables' values.
26010 # Ultrix sh set writes to stderr and can't be redirected directly,
26011 # and sets the high bit in the cache file unless we assign to the vars.
26012 {
26013   (set) 2>&1 |
26014     case `(ac_space=' '; set | grep ac_space) 2>&1` in
26015     *ac_space=\ *)
26016       # `set' does not quote correctly, so add quotes (double-quote
26017       # substitution turns \\\\ into \\, and sed turns \\ into \).
26018       sed -n \
26019         "s/'/'\\\\''/g;
26020           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26021       ;;
26022     *)
26023       # `set' quotes correctly as required by POSIX, so do not add quotes.
26024       sed -n \
26025         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26026       ;;
26027     esac;
26028 } |
26029   sed '
26030      t clear
26031      : clear
26032      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26033      t end
26034      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26035      : end' >>confcache
26036 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26037   if test -w $cache_file; then
26038     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26039     cat confcache >$cache_file
26040   else
26041     echo "not updating unwritable cache $cache_file"
26042   fi
26043 fi
26044 rm -f confcache
26045
26046 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26047 # Let make expand exec_prefix.
26048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26049
26050 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26051 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26052 # trailing colons and then remove the whole line if VPATH becomes empty
26053 # (actually we leave an empty line to preserve line numbers).
26054 if test "x$srcdir" = x.; then
26055   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26056 s/:*\$(srcdir):*/:/;
26057 s/:*\${srcdir}:*/:/;
26058 s/:*@srcdir@:*/:/;
26059 s/^\([^=]*=[     ]*\):*/\1/;
26060 s/:*$//;
26061 s/^[^=]*=[       ]*$//;
26062 }'
26063 fi
26064
26065 DEFS=-DHAVE_CONFIG_H
26066
26067 ac_libobjs=
26068 ac_ltlibobjs=
26069 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26070   # 1. Remove the extension, and $U if already installed.
26071   ac_i=`echo "$ac_i" |
26072          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26073   # 2. Add them.
26074   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26075   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26076 done
26077 LIBOBJS=$ac_libobjs
26078
26079 LTLIBOBJS=$ac_ltlibobjs
26080
26081
26082 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
26083   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
26084 Usually this means the macro was only invoked conditionally." >&5
26085 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
26086 Usually this means the macro was only invoked conditionally." >&2;}
26087    { (exit 1); exit 1; }; }
26088 fi
26089 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
26090   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
26091 Usually this means the macro was only invoked conditionally." >&5
26092 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
26093 Usually this means the macro was only invoked conditionally." >&2;}
26094    { (exit 1); exit 1; }; }
26095 fi
26096 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
26097   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
26098 Usually this means the macro was only invoked conditionally." >&5
26099 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
26100 Usually this means the macro was only invoked conditionally." >&2;}
26101    { (exit 1); exit 1; }; }
26102 fi
26103 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
26104   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
26105 Usually this means the macro was only invoked conditionally." >&5
26106 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
26107 Usually this means the macro was only invoked conditionally." >&2;}
26108    { (exit 1); exit 1; }; }
26109 fi
26110 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
26111   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
26112 Usually this means the macro was only invoked conditionally." >&5
26113 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
26114 Usually this means the macro was only invoked conditionally." >&2;}
26115    { (exit 1); exit 1; }; }
26116 fi
26117 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
26118   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
26119 Usually this means the macro was only invoked conditionally." >&5
26120 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
26121 Usually this means the macro was only invoked conditionally." >&2;}
26122    { (exit 1); exit 1; }; }
26123 fi
26124 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
26125   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
26126 Usually this means the macro was only invoked conditionally." >&5
26127 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
26128 Usually this means the macro was only invoked conditionally." >&2;}
26129    { (exit 1); exit 1; }; }
26130 fi
26131 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
26132   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
26133 Usually this means the macro was only invoked conditionally." >&5
26134 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
26135 Usually this means the macro was only invoked conditionally." >&2;}
26136    { (exit 1); exit 1; }; }
26137 fi
26138 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
26139   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
26140 Usually this means the macro was only invoked conditionally." >&5
26141 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
26142 Usually this means the macro was only invoked conditionally." >&2;}
26143    { (exit 1); exit 1; }; }
26144 fi
26145 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
26146   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
26147 Usually this means the macro was only invoked conditionally." >&5
26148 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
26149 Usually this means the macro was only invoked conditionally." >&2;}
26150    { (exit 1); exit 1; }; }
26151 fi
26152 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
26153   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
26154 Usually this means the macro was only invoked conditionally." >&5
26155 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
26156 Usually this means the macro was only invoked conditionally." >&2;}
26157    { (exit 1); exit 1; }; }
26158 fi
26159 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
26160   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
26161 Usually this means the macro was only invoked conditionally." >&5
26162 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
26163 Usually this means the macro was only invoked conditionally." >&2;}
26164    { (exit 1); exit 1; }; }
26165 fi
26166 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
26167   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
26168 Usually this means the macro was only invoked conditionally." >&5
26169 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
26170 Usually this means the macro was only invoked conditionally." >&2;}
26171    { (exit 1); exit 1; }; }
26172 fi
26173 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
26174   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
26175 Usually this means the macro was only invoked conditionally." >&5
26176 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
26177 Usually this means the macro was only invoked conditionally." >&2;}
26178    { (exit 1); exit 1; }; }
26179 fi
26180 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
26181   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
26182 Usually this means the macro was only invoked conditionally." >&5
26183 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
26184 Usually this means the macro was only invoked conditionally." >&2;}
26185    { (exit 1); exit 1; }; }
26186 fi
26187 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
26188   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
26189 Usually this means the macro was only invoked conditionally." >&5
26190 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
26191 Usually this means the macro was only invoked conditionally." >&2;}
26192    { (exit 1); exit 1; }; }
26193 fi
26194 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
26195   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
26196 Usually this means the macro was only invoked conditionally." >&5
26197 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
26198 Usually this means the macro was only invoked conditionally." >&2;}
26199    { (exit 1); exit 1; }; }
26200 fi
26201 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
26202   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
26203 Usually this means the macro was only invoked conditionally." >&5
26204 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
26205 Usually this means the macro was only invoked conditionally." >&2;}
26206    { (exit 1); exit 1; }; }
26207 fi
26208 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
26209   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
26210 Usually this means the macro was only invoked conditionally." >&5
26211 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
26212 Usually this means the macro was only invoked conditionally." >&2;}
26213    { (exit 1); exit 1; }; }
26214 fi
26215 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
26216   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
26217 Usually this means the macro was only invoked conditionally." >&5
26218 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
26219 Usually this means the macro was only invoked conditionally." >&2;}
26220    { (exit 1); exit 1; }; }
26221 fi
26222 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
26223   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
26224 Usually this means the macro was only invoked conditionally." >&5
26225 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
26226 Usually this means the macro was only invoked conditionally." >&2;}
26227    { (exit 1); exit 1; }; }
26228 fi
26229 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
26230   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
26231 Usually this means the macro was only invoked conditionally." >&5
26232 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
26233 Usually this means the macro was only invoked conditionally." >&2;}
26234    { (exit 1); exit 1; }; }
26235 fi
26236 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26237   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26238 Usually this means the macro was only invoked conditionally." >&5
26239 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26240 Usually this means the macro was only invoked conditionally." >&2;}
26241    { (exit 1); exit 1; }; }
26242 fi
26243 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26244   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26245 Usually this means the macro was only invoked conditionally." >&5
26246 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26247 Usually this means the macro was only invoked conditionally." >&2;}
26248    { (exit 1); exit 1; }; }
26249 fi
26250 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26251   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26252 Usually this means the macro was only invoked conditionally." >&5
26253 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26254 Usually this means the macro was only invoked conditionally." >&2;}
26255    { (exit 1); exit 1; }; }
26256 fi
26257 if test -z "${BUILD_NSAPI_TRUE}" && test -z "${BUILD_NSAPI_FALSE}"; then
26258   { { echo "$as_me:$LINENO: error: conditional \"BUILD_NSAPI\" was never defined.
26259 Usually this means the macro was only invoked conditionally." >&5
26260 echo "$as_me: error: conditional \"BUILD_NSAPI\" was never defined.
26261 Usually this means the macro was only invoked conditionally." >&2;}
26262    { (exit 1); exit 1; }; }
26263 fi
26264 if test -z "${BUILD_FASTCGI_TRUE}" && test -z "${BUILD_FASTCGI_FALSE}"; then
26265   { { echo "$as_me:$LINENO: error: conditional \"BUILD_FASTCGI\" was never defined.
26266 Usually this means the macro was only invoked conditionally." >&5
26267 echo "$as_me: error: conditional \"BUILD_FASTCGI\" was never defined.
26268 Usually this means the macro was only invoked conditionally." >&2;}
26269    { (exit 1); exit 1; }; }
26270 fi
26271 if test -z "${BUILD_AP13_TRUE}" && test -z "${BUILD_AP13_FALSE}"; then
26272   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP13\" was never defined.
26273 Usually this means the macro was only invoked conditionally." >&5
26274 echo "$as_me: error: conditional \"BUILD_AP13\" was never defined.
26275 Usually this means the macro was only invoked conditionally." >&2;}
26276    { (exit 1); exit 1; }; }
26277 fi
26278 if test -z "${BUILD_AP20_TRUE}" && test -z "${BUILD_AP20_FALSE}"; then
26279   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP20\" was never defined.
26280 Usually this means the macro was only invoked conditionally." >&5
26281 echo "$as_me: error: conditional \"BUILD_AP20\" was never defined.
26282 Usually this means the macro was only invoked conditionally." >&2;}
26283    { (exit 1); exit 1; }; }
26284 fi
26285 if test -z "${BUILD_AP22_TRUE}" && test -z "${BUILD_AP22_FALSE}"; then
26286   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP22\" was never defined.
26287 Usually this means the macro was only invoked conditionally." >&5
26288 echo "$as_me: error: conditional \"BUILD_AP22\" was never defined.
26289 Usually this means the macro was only invoked conditionally." >&2;}
26290    { (exit 1); exit 1; }; }
26291 fi
26292
26293 : ${CONFIG_STATUS=./config.status}
26294 ac_clean_files_save=$ac_clean_files
26295 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26296 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26297 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26298 cat >$CONFIG_STATUS <<_ACEOF
26299 #! $SHELL
26300 # Generated by $as_me.
26301 # Run this file to recreate the current configuration.
26302 # Compiler output produced by configure, useful for debugging
26303 # configure, is in config.log if it exists.
26304
26305 debug=false
26306 ac_cs_recheck=false
26307 ac_cs_silent=false
26308 SHELL=\${CONFIG_SHELL-$SHELL}
26309 _ACEOF
26310
26311 cat >>$CONFIG_STATUS <<\_ACEOF
26312 ## --------------------- ##
26313 ## M4sh Initialization.  ##
26314 ## --------------------- ##
26315
26316 # Be Bourne compatible
26317 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26318   emulate sh
26319   NULLCMD=:
26320   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26321   # is contrary to our usage.  Disable this feature.
26322   alias -g '${1+"$@"}'='"$@"'
26323 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26324   set -o posix
26325 fi
26326 DUALCASE=1; export DUALCASE # for MKS sh
26327
26328 # Support unset when possible.
26329 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26330   as_unset=unset
26331 else
26332   as_unset=false
26333 fi
26334
26335
26336 # Work around bugs in pre-3.0 UWIN ksh.
26337 $as_unset ENV MAIL MAILPATH
26338 PS1='$ '
26339 PS2='> '
26340 PS4='+ '
26341
26342 # NLS nuisances.
26343 for as_var in \
26344   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26345   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26346   LC_TELEPHONE LC_TIME
26347 do
26348   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26349     eval $as_var=C; export $as_var
26350   else
26351     $as_unset $as_var
26352   fi
26353 done
26354
26355 # Required to use basename.
26356 if expr a : '\(a\)' >/dev/null 2>&1; then
26357   as_expr=expr
26358 else
26359   as_expr=false
26360 fi
26361
26362 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26363   as_basename=basename
26364 else
26365   as_basename=false
26366 fi
26367
26368
26369 # Name of the executable.
26370 as_me=`$as_basename "$0" ||
26371 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26372          X"$0" : 'X\(//\)$' \| \
26373          X"$0" : 'X\(/\)$' \| \
26374          .     : '\(.\)' 2>/dev/null ||
26375 echo X/"$0" |
26376     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26377           /^X\/\(\/\/\)$/{ s//\1/; q; }
26378           /^X\/\(\/\).*/{ s//\1/; q; }
26379           s/.*/./; q'`
26380
26381
26382 # PATH needs CR, and LINENO needs CR and PATH.
26383 # Avoid depending upon Character Ranges.
26384 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26385 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26386 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26387 as_cr_digits='0123456789'
26388 as_cr_alnum=$as_cr_Letters$as_cr_digits
26389
26390 # The user is always right.
26391 if test "${PATH_SEPARATOR+set}" != set; then
26392   echo "#! /bin/sh" >conf$$.sh
26393   echo  "exit 0"   >>conf$$.sh
26394   chmod +x conf$$.sh
26395   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26396     PATH_SEPARATOR=';'
26397   else
26398     PATH_SEPARATOR=:
26399   fi
26400   rm -f conf$$.sh
26401 fi
26402
26403
26404   as_lineno_1=$LINENO
26405   as_lineno_2=$LINENO
26406   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26407   test "x$as_lineno_1" != "x$as_lineno_2" &&
26408   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26409   # Find who we are.  Look in the path if we contain no path at all
26410   # relative or not.
26411   case $0 in
26412     *[\\/]* ) as_myself=$0 ;;
26413     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26414 for as_dir in $PATH
26415 do
26416   IFS=$as_save_IFS
26417   test -z "$as_dir" && as_dir=.
26418   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26419 done
26420
26421        ;;
26422   esac
26423   # We did not find ourselves, most probably we were run as `sh COMMAND'
26424   # in which case we are not to be found in the path.
26425   if test "x$as_myself" = x; then
26426     as_myself=$0
26427   fi
26428   if test ! -f "$as_myself"; then
26429     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26430 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26431    { (exit 1); exit 1; }; }
26432   fi
26433   case $CONFIG_SHELL in
26434   '')
26435     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26436 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26437 do
26438   IFS=$as_save_IFS
26439   test -z "$as_dir" && as_dir=.
26440   for as_base in sh bash ksh sh5; do
26441          case $as_dir in
26442          /*)
26443            if ("$as_dir/$as_base" -c '
26444   as_lineno_1=$LINENO
26445   as_lineno_2=$LINENO
26446   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26447   test "x$as_lineno_1" != "x$as_lineno_2" &&
26448   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26449              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26450              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26451              CONFIG_SHELL=$as_dir/$as_base
26452              export CONFIG_SHELL
26453              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26454            fi;;
26455          esac
26456        done
26457 done
26458 ;;
26459   esac
26460
26461   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26462   # uniformly replaced by the line number.  The first 'sed' inserts a
26463   # line-number line before each line; the second 'sed' does the real
26464   # work.  The second script uses 'N' to pair each line-number line
26465   # with the numbered line, and appends trailing '-' during
26466   # substitution so that $LINENO is not a special case at line end.
26467   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26468   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26469   sed '=' <$as_myself |
26470     sed '
26471       N
26472       s,$,-,
26473       : loop
26474       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26475       t loop
26476       s,-$,,
26477       s,^['$as_cr_digits']*\n,,
26478     ' >$as_me.lineno &&
26479   chmod +x $as_me.lineno ||
26480     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26481 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26482    { (exit 1); exit 1; }; }
26483
26484   # Don't try to exec as it changes $[0], causing all sort of problems
26485   # (the dirname of $[0] is not the place where we might find the
26486   # original and so on.  Autoconf is especially sensible to this).
26487   . ./$as_me.lineno
26488   # Exit status is that of the last command.
26489   exit
26490 }
26491
26492
26493 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26494   *c*,-n*) ECHO_N= ECHO_C='
26495 ' ECHO_T='      ' ;;
26496   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26497   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26498 esac
26499
26500 if expr a : '\(a\)' >/dev/null 2>&1; then
26501   as_expr=expr
26502 else
26503   as_expr=false
26504 fi
26505
26506 rm -f conf$$ conf$$.exe conf$$.file
26507 echo >conf$$.file
26508 if ln -s conf$$.file conf$$ 2>/dev/null; then
26509   # We could just check for DJGPP; but this test a) works b) is more generic
26510   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26511   if test -f conf$$.exe; then
26512     # Don't use ln at all; we don't have any links
26513     as_ln_s='cp -p'
26514   else
26515     as_ln_s='ln -s'
26516   fi
26517 elif ln conf$$.file conf$$ 2>/dev/null; then
26518   as_ln_s=ln
26519 else
26520   as_ln_s='cp -p'
26521 fi
26522 rm -f conf$$ conf$$.exe conf$$.file
26523
26524 if mkdir -p . 2>/dev/null; then
26525   as_mkdir_p=:
26526 else
26527   test -d ./-p && rmdir ./-p
26528   as_mkdir_p=false
26529 fi
26530
26531 as_executable_p="test -f"
26532
26533 # Sed expression to map a string onto a valid CPP name.
26534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26535
26536 # Sed expression to map a string onto a valid variable name.
26537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26538
26539
26540 # IFS
26541 # We need space, tab and new line, in precisely that order.
26542 as_nl='
26543 '
26544 IFS="   $as_nl"
26545
26546 # CDPATH.
26547 $as_unset CDPATH
26548
26549 exec 6>&1
26550
26551 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26552 # report actual input values of CONFIG_FILES etc. instead of their
26553 # values after options handling.  Logging --version etc. is OK.
26554 exec 5>>config.log
26555 {
26556   echo
26557   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26558 ## Running $as_me. ##
26559 _ASBOX
26560 } >&5
26561 cat >&5 <<_CSEOF
26562
26563 This file was extended by shibboleth $as_me 2.0, which was
26564 generated by GNU Autoconf 2.59.  Invocation command line was
26565
26566   CONFIG_FILES    = $CONFIG_FILES
26567   CONFIG_HEADERS  = $CONFIG_HEADERS
26568   CONFIG_LINKS    = $CONFIG_LINKS
26569   CONFIG_COMMANDS = $CONFIG_COMMANDS
26570   $ $0 $@
26571
26572 _CSEOF
26573 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26574 echo >&5
26575 _ACEOF
26576
26577 # Files that config.status was made for.
26578 if test -n "$ac_config_files"; then
26579   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26580 fi
26581
26582 if test -n "$ac_config_headers"; then
26583   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26584 fi
26585
26586 if test -n "$ac_config_links"; then
26587   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26588 fi
26589
26590 if test -n "$ac_config_commands"; then
26591   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26592 fi
26593
26594 cat >>$CONFIG_STATUS <<\_ACEOF
26595
26596 ac_cs_usage="\
26597 \`$as_me' instantiates files from templates according to the
26598 current configuration.
26599
26600 Usage: $0 [OPTIONS] [FILE]...
26601
26602   -h, --help       print this help, then exit
26603   -V, --version    print version number, then exit
26604   -q, --quiet      do not print progress messages
26605   -d, --debug      don't remove temporary files
26606       --recheck    update $as_me by reconfiguring in the same conditions
26607   --file=FILE[:TEMPLATE]
26608                    instantiate the configuration file FILE
26609   --header=FILE[:TEMPLATE]
26610                    instantiate the configuration header FILE
26611
26612 Configuration files:
26613 $config_files
26614
26615 Configuration headers:
26616 $config_headers
26617
26618 Configuration commands:
26619 $config_commands
26620
26621 Report bugs to <bug-autoconf@gnu.org>."
26622 _ACEOF
26623
26624 cat >>$CONFIG_STATUS <<_ACEOF
26625 ac_cs_version="\\
26626 shibboleth config.status 2.0
26627 configured by $0, generated by GNU Autoconf 2.59,
26628   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26629
26630 Copyright (C) 2003 Free Software Foundation, Inc.
26631 This config.status script is free software; the Free Software Foundation
26632 gives unlimited permission to copy, distribute and modify it."
26633 srcdir=$srcdir
26634 INSTALL="$INSTALL"
26635 _ACEOF
26636
26637 cat >>$CONFIG_STATUS <<\_ACEOF
26638 # If no file are specified by the user, then we need to provide default
26639 # value.  By we need to know if files were specified by the user.
26640 ac_need_defaults=:
26641 while test $# != 0
26642 do
26643   case $1 in
26644   --*=*)
26645     ac_option=`expr "x$1" : 'x\([^=]*\)='`
26646     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26647     ac_shift=:
26648     ;;
26649   -*)
26650     ac_option=$1
26651     ac_optarg=$2
26652     ac_shift=shift
26653     ;;
26654   *) # This is not an option, so the user has probably given explicit
26655      # arguments.
26656      ac_option=$1
26657      ac_need_defaults=false;;
26658   esac
26659
26660   case $ac_option in
26661   # Handling of the options.
26662 _ACEOF
26663 cat >>$CONFIG_STATUS <<\_ACEOF
26664   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26665     ac_cs_recheck=: ;;
26666   --version | --vers* | -V )
26667     echo "$ac_cs_version"; exit 0 ;;
26668   --he | --h)
26669     # Conflict between --help and --header
26670     { { echo "$as_me:$LINENO: error: ambiguous option: $1
26671 Try \`$0 --help' for more information." >&5
26672 echo "$as_me: error: ambiguous option: $1
26673 Try \`$0 --help' for more information." >&2;}
26674    { (exit 1); exit 1; }; };;
26675   --help | --hel | -h )
26676     echo "$ac_cs_usage"; exit 0 ;;
26677   --debug | --d* | -d )
26678     debug=: ;;
26679   --file | --fil | --fi | --f )
26680     $ac_shift
26681     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26682     ac_need_defaults=false;;
26683   --header | --heade | --head | --hea )
26684     $ac_shift
26685     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26686     ac_need_defaults=false;;
26687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26688   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26689     ac_cs_silent=: ;;
26690
26691   # This is an error.
26692   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26693 Try \`$0 --help' for more information." >&5
26694 echo "$as_me: error: unrecognized option: $1
26695 Try \`$0 --help' for more information." >&2;}
26696    { (exit 1); exit 1; }; } ;;
26697
26698   *) ac_config_targets="$ac_config_targets $1" ;;
26699
26700   esac
26701   shift
26702 done
26703
26704 ac_configure_extra_args=
26705
26706 if $ac_cs_silent; then
26707   exec 6>/dev/null
26708   ac_configure_extra_args="$ac_configure_extra_args --silent"
26709 fi
26710
26711 _ACEOF
26712 cat >>$CONFIG_STATUS <<_ACEOF
26713 if \$ac_cs_recheck; then
26714   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26715   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26716 fi
26717
26718 _ACEOF
26719
26720 cat >>$CONFIG_STATUS <<_ACEOF
26721 #
26722 # INIT-COMMANDS section.
26723 #
26724
26725 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26726
26727 _ACEOF
26728
26729
26730
26731 cat >>$CONFIG_STATUS <<\_ACEOF
26732 for ac_config_target in $ac_config_targets
26733 do
26734   case "$ac_config_target" in
26735   # Handling of arguments.
26736   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26737   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26738   "schemas/Makefile" ) CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
26739   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
26740   "shibsp/Makefile" ) CONFIG_FILES="$CONFIG_FILES shibsp/Makefile" ;;
26741   "shibd/Makefile" ) CONFIG_FILES="$CONFIG_FILES shibd/Makefile" ;;
26742   "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
26743   "selinux/Makefile" ) CONFIG_FILES="$CONFIG_FILES selinux/Makefile" ;;
26744   "adfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES adfs/Makefile" ;;
26745   "nsapi_shib/Makefile" ) CONFIG_FILES="$CONFIG_FILES nsapi_shib/Makefile" ;;
26746   "fastcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES fastcgi/Makefile" ;;
26747   "apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES apache/Makefile" ;;
26748   "odbc-store/Makefile" ) CONFIG_FILES="$CONFIG_FILES odbc-store/Makefile" ;;
26749   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26750   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26751   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26752 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26753    { (exit 1); exit 1; }; };;
26754   esac
26755 done
26756
26757 # If the user did not use the arguments to specify the items to instantiate,
26758 # then the envvar interface is used.  Set only those that are not.
26759 # We use the long form for the default assignment because of an extremely
26760 # bizarre bug on SunOS 4.1.3.
26761 if $ac_need_defaults; then
26762   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26763   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26764   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26765 fi
26766
26767 # Have a temporary directory for convenience.  Make it in the build tree
26768 # simply because there is no reason to put it here, and in addition,
26769 # creating and moving files from /tmp can sometimes cause problems.
26770 # Create a temporary directory, and hook for its removal unless debugging.
26771 $debug ||
26772 {
26773   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26774   trap '{ (exit 1); exit 1; }' 1 2 13 15
26775 }
26776
26777 # Create a (secure) tmp directory for tmp files.
26778
26779 {
26780   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26781   test -n "$tmp" && test -d "$tmp"
26782 }  ||
26783 {
26784   tmp=./confstat$$-$RANDOM
26785   (umask 077 && mkdir $tmp)
26786 } ||
26787 {
26788    echo "$me: cannot create a temporary directory in ." >&2
26789    { (exit 1); exit 1; }
26790 }
26791
26792 _ACEOF
26793
26794 cat >>$CONFIG_STATUS <<_ACEOF
26795
26796 #
26797 # CONFIG_FILES section.
26798 #
26799
26800 # No need to generate the scripts if there are no CONFIG_FILES.
26801 # This happens for instance when ./config.status config.h
26802 if test -n "\$CONFIG_FILES"; then
26803   # Protect against being on the right side of a sed subst in config.status.
26804   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26805    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26806 s,@SHELL@,$SHELL,;t t
26807 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26808 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26809 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26810 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26811 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26812 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26813 s,@exec_prefix@,$exec_prefix,;t t
26814 s,@prefix@,$prefix,;t t
26815 s,@program_transform_name@,$program_transform_name,;t t
26816 s,@bindir@,$bindir,;t t
26817 s,@sbindir@,$sbindir,;t t
26818 s,@libexecdir@,$libexecdir,;t t
26819 s,@datadir@,$datadir,;t t
26820 s,@sysconfdir@,$sysconfdir,;t t
26821 s,@sharedstatedir@,$sharedstatedir,;t t
26822 s,@localstatedir@,$localstatedir,;t t
26823 s,@libdir@,$libdir,;t t
26824 s,@includedir@,$includedir,;t t
26825 s,@oldincludedir@,$oldincludedir,;t t
26826 s,@infodir@,$infodir,;t t
26827 s,@mandir@,$mandir,;t t
26828 s,@build_alias@,$build_alias,;t t
26829 s,@host_alias@,$host_alias,;t t
26830 s,@target_alias@,$target_alias,;t t
26831 s,@DEFS@,$DEFS,;t t
26832 s,@ECHO_C@,$ECHO_C,;t t
26833 s,@ECHO_N@,$ECHO_N,;t t
26834 s,@ECHO_T@,$ECHO_T,;t t
26835 s,@LIBS@,$LIBS,;t t
26836 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26837 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26838 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26839 s,@CYGPATH_W@,$CYGPATH_W,;t t
26840 s,@PACKAGE@,$PACKAGE,;t t
26841 s,@VERSION@,$VERSION,;t t
26842 s,@ACLOCAL@,$ACLOCAL,;t t
26843 s,@AUTOCONF@,$AUTOCONF,;t t
26844 s,@AUTOMAKE@,$AUTOMAKE,;t t
26845 s,@AUTOHEADER@,$AUTOHEADER,;t t
26846 s,@MAKEINFO@,$MAKEINFO,;t t
26847 s,@install_sh@,$install_sh,;t t
26848 s,@STRIP@,$STRIP,;t t
26849 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26850 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26851 s,@mkdir_p@,$mkdir_p,;t t
26852 s,@AWK@,$AWK,;t t
26853 s,@SET_MAKE@,$SET_MAKE,;t t
26854 s,@am__leading_dot@,$am__leading_dot,;t t
26855 s,@AMTAR@,$AMTAR,;t t
26856 s,@am__tar@,$am__tar,;t t
26857 s,@am__untar@,$am__untar,;t t
26858 s,@DX_PROJECT@,$DX_PROJECT,;t t
26859 s,@DX_CONFIG@,$DX_CONFIG,;t t
26860 s,@DX_DOCDIR@,$DX_DOCDIR,;t t
26861 s,@DX_ENV@,$DX_ENV,;t t
26862 s,@DX_FLAG_doc@,$DX_FLAG_doc,;t t
26863 s,@DX_DOXYGEN@,$DX_DOXYGEN,;t t
26864 s,@ac_pt_DX_DOXYGEN@,$ac_pt_DX_DOXYGEN,;t t
26865 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26866 s,@DX_PERL@,$DX_PERL,;t t
26867 s,@ac_pt_DX_PERL@,$ac_pt_DX_PERL,;t t
26868 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26869 s,@DX_COND_doc_TRUE@,$DX_COND_doc_TRUE,;t t
26870 s,@DX_COND_doc_FALSE@,$DX_COND_doc_FALSE,;t t
26871 s,@DX_FLAG_dot@,$DX_FLAG_dot,;t t
26872 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26873 s,@DX_DOT@,$DX_DOT,;t t
26874 s,@ac_pt_DX_DOT@,$ac_pt_DX_DOT,;t t
26875 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26876 s,@DX_COND_dot_TRUE@,$DX_COND_dot_TRUE,;t t
26877 s,@DX_COND_dot_FALSE@,$DX_COND_dot_FALSE,;t t
26878 s,@DX_FLAG_man@,$DX_FLAG_man,;t t
26879 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26880 s,@DX_COND_man_TRUE@,$DX_COND_man_TRUE,;t t
26881 s,@DX_COND_man_FALSE@,$DX_COND_man_FALSE,;t t
26882 s,@DX_FLAG_rtf@,$DX_FLAG_rtf,;t t
26883 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26884 s,@DX_COND_rtf_TRUE@,$DX_COND_rtf_TRUE,;t t
26885 s,@DX_COND_rtf_FALSE@,$DX_COND_rtf_FALSE,;t t
26886 s,@DX_FLAG_xml@,$DX_FLAG_xml,;t t
26887 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26888 s,@DX_COND_xml_TRUE@,$DX_COND_xml_TRUE,;t t
26889 s,@DX_COND_xml_FALSE@,$DX_COND_xml_FALSE,;t t
26890 s,@DX_FLAG_chm@,$DX_FLAG_chm,;t t
26891 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26892 s,@DX_HHC@,$DX_HHC,;t t
26893 s,@ac_pt_DX_HHC@,$ac_pt_DX_HHC,;t t
26894 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26895 s,@DX_COND_chm_TRUE@,$DX_COND_chm_TRUE,;t t
26896 s,@DX_COND_chm_FALSE@,$DX_COND_chm_FALSE,;t t
26897 s,@DX_FLAG_chi@,$DX_FLAG_chi,;t t
26898 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26899 s,@DX_COND_chi_TRUE@,$DX_COND_chi_TRUE,;t t
26900 s,@DX_COND_chi_FALSE@,$DX_COND_chi_FALSE,;t t
26901 s,@DX_FLAG_html@,$DX_FLAG_html,;t t
26902 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26903 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26904 s,@DX_COND_html_TRUE@,$DX_COND_html_TRUE,;t t
26905 s,@DX_COND_html_FALSE@,$DX_COND_html_FALSE,;t t
26906 s,@DX_FLAG_ps@,$DX_FLAG_ps,;t t
26907 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26908 s,@DX_LATEX@,$DX_LATEX,;t t
26909 s,@ac_pt_DX_LATEX@,$ac_pt_DX_LATEX,;t t
26910 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26911 s,@DX_MAKEINDEX@,$DX_MAKEINDEX,;t t
26912 s,@ac_pt_DX_MAKEINDEX@,$ac_pt_DX_MAKEINDEX,;t t
26913 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26914 s,@DX_DVIPS@,$DX_DVIPS,;t t
26915 s,@ac_pt_DX_DVIPS@,$ac_pt_DX_DVIPS,;t t
26916 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26917 s,@DX_EGREP@,$DX_EGREP,;t t
26918 s,@ac_pt_DX_EGREP@,$ac_pt_DX_EGREP,;t t
26919 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26920 s,@DX_COND_ps_TRUE@,$DX_COND_ps_TRUE,;t t
26921 s,@DX_COND_ps_FALSE@,$DX_COND_ps_FALSE,;t t
26922 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26923 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26924 s,@DX_PDFLATEX@,$DX_PDFLATEX,;t t
26925 s,@ac_pt_DX_PDFLATEX@,$ac_pt_DX_PDFLATEX,;t t
26926 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26927 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26928 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
26929 s,@DX_COND_pdf_TRUE@,$DX_COND_pdf_TRUE,;t t
26930 s,@DX_COND_pdf_FALSE@,$DX_COND_pdf_FALSE,;t t
26931 s,@DX_COND_latex_TRUE@,$DX_COND_latex_TRUE,;t t
26932 s,@DX_COND_latex_FALSE@,$DX_COND_latex_FALSE,;t t
26933 s,@DOXYGEN_PAPER_SIZE@,$DOXYGEN_PAPER_SIZE,;t t
26934 s,@CC@,$CC,;t t
26935 s,@CFLAGS@,$CFLAGS,;t t
26936 s,@LDFLAGS@,$LDFLAGS,;t t
26937 s,@CPPFLAGS@,$CPPFLAGS,;t t
26938 s,@ac_ct_CC@,$ac_ct_CC,;t t
26939 s,@EXEEXT@,$EXEEXT,;t t
26940 s,@OBJEXT@,$OBJEXT,;t t
26941 s,@DEPDIR@,$DEPDIR,;t t
26942 s,@am__include@,$am__include,;t t
26943 s,@am__quote@,$am__quote,;t t
26944 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26945 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26946 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26947 s,@CCDEPMODE@,$CCDEPMODE,;t t
26948 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26949 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26950 s,@CXX@,$CXX,;t t
26951 s,@CXXFLAGS@,$CXXFLAGS,;t t
26952 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26953 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26954 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26955 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26956 s,@build@,$build,;t t
26957 s,@build_cpu@,$build_cpu,;t t
26958 s,@build_vendor@,$build_vendor,;t t
26959 s,@build_os@,$build_os,;t t
26960 s,@host@,$host,;t t
26961 s,@host_cpu@,$host_cpu,;t t
26962 s,@host_vendor@,$host_vendor,;t t
26963 s,@host_os@,$host_os,;t t
26964 s,@EGREP@,$EGREP,;t t
26965 s,@LN_S@,$LN_S,;t t
26966 s,@ECHO@,$ECHO,;t t
26967 s,@AR@,$AR,;t t
26968 s,@ac_ct_AR@,$ac_ct_AR,;t t
26969 s,@RANLIB@,$RANLIB,;t t
26970 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26971 s,@CPP@,$CPP,;t t
26972 s,@CXXCPP@,$CXXCPP,;t t
26973 s,@F77@,$F77,;t t
26974 s,@FFLAGS@,$FFLAGS,;t t
26975 s,@ac_ct_F77@,$ac_ct_F77,;t t
26976 s,@LIBTOOL@,$LIBTOOL,;t t
26977 s,@acx_pthread_config@,$acx_pthread_config,;t t
26978 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
26979 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
26980 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
26981 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
26982 s,@LOG4SHIB_CONFIG@,$LOG4SHIB_CONFIG,;t t
26983 s,@LOG4CPP_CONFIG@,$LOG4CPP_CONFIG,;t t
26984 s,@XMLTOOLINGXMLDIR@,$XMLTOOLINGXMLDIR,;t t
26985 s,@OPENSAMLXMLDIR@,$OPENSAMLXMLDIR,;t t
26986 s,@LITE_LIBS@,$LITE_LIBS,;t t
26987 s,@XMLSEC_LIBS@,$XMLSEC_LIBS,;t t
26988 s,@NSAPI_INCLUDE@,$NSAPI_INCLUDE,;t t
26989 s,@BUILD_NSAPI_TRUE@,$BUILD_NSAPI_TRUE,;t t
26990 s,@BUILD_NSAPI_FALSE@,$BUILD_NSAPI_FALSE,;t t
26991 s,@FASTCGI_INCLUDE@,$FASTCGI_INCLUDE,;t t
26992 s,@FASTCGI_LDFLAGS@,$FASTCGI_LDFLAGS,;t t
26993 s,@FASTCGI_LIBS@,$FASTCGI_LIBS,;t t
26994 s,@BUILD_FASTCGI_TRUE@,$BUILD_FASTCGI_TRUE,;t t
26995 s,@BUILD_FASTCGI_FALSE@,$BUILD_FASTCGI_FALSE,;t t
26996 s,@xs@,$xs,;t t
26997 s,@APXS@,$APXS,;t t
26998 s,@APXS_CFLAGS@,$APXS_CFLAGS,;t t
26999 s,@APXS_INCLUDE@,$APXS_INCLUDE,;t t
27000 s,@APXS2@,$APXS2,;t t
27001 s,@APR_CONFIG@,$APR_CONFIG,;t t
27002 s,@APXS2_CFLAGS@,$APXS2_CFLAGS,;t t
27003 s,@APXS2_INCLUDE@,$APXS2_INCLUDE,;t t
27004 s,@APXS22@,$APXS22,;t t
27005 s,@APR1_CONFIG@,$APR1_CONFIG,;t t
27006 s,@APXS22_CFLAGS@,$APXS22_CFLAGS,;t t
27007 s,@APXS22_INCLUDE@,$APXS22_INCLUDE,;t t
27008 s,@BUILD_AP13_TRUE@,$BUILD_AP13_TRUE,;t t
27009 s,@BUILD_AP13_FALSE@,$BUILD_AP13_FALSE,;t t
27010 s,@BUILD_AP20_TRUE@,$BUILD_AP20_TRUE,;t t
27011 s,@BUILD_AP20_FALSE@,$BUILD_AP20_FALSE,;t t
27012 s,@BUILD_AP22_TRUE@,$BUILD_AP22_TRUE,;t t
27013 s,@BUILD_AP22_FALSE@,$BUILD_AP22_FALSE,;t t
27014 s,@ODBC_CONFIG@,$ODBC_CONFIG,;t t
27015 s,@ODBC_CFLAGS@,$ODBC_CFLAGS,;t t
27016 s,@ODBC_LIBS@,$ODBC_LIBS,;t t
27017 s,@WANT_SUBDIRS@,$WANT_SUBDIRS,;t t
27018 s,@LIBOBJS@,$LIBOBJS,;t t
27019 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27020 CEOF
27021
27022 _ACEOF
27023
27024   cat >>$CONFIG_STATUS <<\_ACEOF
27025   # Split the substitutions into bite-sized pieces for seds with
27026   # small command number limits, like on Digital OSF/1 and HP-UX.
27027   ac_max_sed_lines=48
27028   ac_sed_frag=1 # Number of current file.
27029   ac_beg=1 # First line for current file.
27030   ac_end=$ac_max_sed_lines # Line after last line for current file.
27031   ac_more_lines=:
27032   ac_sed_cmds=
27033   while $ac_more_lines; do
27034     if test $ac_beg -gt 1; then
27035       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27036     else
27037       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27038     fi
27039     if test ! -s $tmp/subs.frag; then
27040       ac_more_lines=false
27041     else
27042       # The purpose of the label and of the branching condition is to
27043       # speed up the sed processing (if there are no `@' at all, there
27044       # is no need to browse any of the substitutions).
27045       # These are the two extra sed commands mentioned above.
27046       (echo ':t
27047   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27048       if test -z "$ac_sed_cmds"; then
27049         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27050       else
27051         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27052       fi
27053       ac_sed_frag=`expr $ac_sed_frag + 1`
27054       ac_beg=$ac_end
27055       ac_end=`expr $ac_end + $ac_max_sed_lines`
27056     fi
27057   done
27058   if test -z "$ac_sed_cmds"; then
27059     ac_sed_cmds=cat
27060   fi
27061 fi # test -n "$CONFIG_FILES"
27062
27063 _ACEOF
27064 cat >>$CONFIG_STATUS <<\_ACEOF
27065 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27066   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27067   case $ac_file in
27068   - | *:- | *:-:* ) # input from stdin
27069         cat >$tmp/stdin
27070         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27071         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27072   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27073         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27074   * )   ac_file_in=$ac_file.in ;;
27075   esac
27076
27077   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27078   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27080          X"$ac_file" : 'X\(//\)[^/]' \| \
27081          X"$ac_file" : 'X\(//\)$' \| \
27082          X"$ac_file" : 'X\(/\)' \| \
27083          .     : '\(.\)' 2>/dev/null ||
27084 echo X"$ac_file" |
27085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27087           /^X\(\/\/\)$/{ s//\1/; q; }
27088           /^X\(\/\).*/{ s//\1/; q; }
27089           s/.*/./; q'`
27090   { if $as_mkdir_p; then
27091     mkdir -p "$ac_dir"
27092   else
27093     as_dir="$ac_dir"
27094     as_dirs=
27095     while test ! -d "$as_dir"; do
27096       as_dirs="$as_dir $as_dirs"
27097       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27099          X"$as_dir" : 'X\(//\)[^/]' \| \
27100          X"$as_dir" : 'X\(//\)$' \| \
27101          X"$as_dir" : 'X\(/\)' \| \
27102          .     : '\(.\)' 2>/dev/null ||
27103 echo X"$as_dir" |
27104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27105           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27106           /^X\(\/\/\)$/{ s//\1/; q; }
27107           /^X\(\/\).*/{ s//\1/; q; }
27108           s/.*/./; q'`
27109     done
27110     test ! -n "$as_dirs" || mkdir $as_dirs
27111   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27112 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27113    { (exit 1); exit 1; }; }; }
27114
27115   ac_builddir=.
27116
27117 if test "$ac_dir" != .; then
27118   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27119   # A "../" for each directory in $ac_dir_suffix.
27120   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27121 else
27122   ac_dir_suffix= ac_top_builddir=
27123 fi
27124
27125 case $srcdir in
27126   .)  # No --srcdir option.  We are building in place.
27127     ac_srcdir=.
27128     if test -z "$ac_top_builddir"; then
27129        ac_top_srcdir=.
27130     else
27131        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27132     fi ;;
27133   [\\/]* | ?:[\\/]* )  # Absolute path.
27134     ac_srcdir=$srcdir$ac_dir_suffix;
27135     ac_top_srcdir=$srcdir ;;
27136   *) # Relative path.
27137     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27138     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27139 esac
27140
27141 # Do not use `cd foo && pwd` to compute absolute paths, because
27142 # the directories may not exist.
27143 case `pwd` in
27144 .) ac_abs_builddir="$ac_dir";;
27145 *)
27146   case "$ac_dir" in
27147   .) ac_abs_builddir=`pwd`;;
27148   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27149   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27150   esac;;
27151 esac
27152 case $ac_abs_builddir in
27153 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27154 *)
27155   case ${ac_top_builddir}. in
27156   .) ac_abs_top_builddir=$ac_abs_builddir;;
27157   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27158   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27159   esac;;
27160 esac
27161 case $ac_abs_builddir in
27162 .) ac_abs_srcdir=$ac_srcdir;;
27163 *)
27164   case $ac_srcdir in
27165   .) ac_abs_srcdir=$ac_abs_builddir;;
27166   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27167   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27168   esac;;
27169 esac
27170 case $ac_abs_builddir in
27171 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27172 *)
27173   case $ac_top_srcdir in
27174   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27175   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27176   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27177   esac;;
27178 esac
27179
27180
27181   case $INSTALL in
27182   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27183   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27184   esac
27185
27186   if test x"$ac_file" != x-; then
27187     { echo "$as_me:$LINENO: creating $ac_file" >&5
27188 echo "$as_me: creating $ac_file" >&6;}
27189     rm -f "$ac_file"
27190   fi
27191   # Let's still pretend it is `configure' which instantiates (i.e., don't
27192   # use $as_me), people would be surprised to read:
27193   #    /* config.h.  Generated by config.status.  */
27194   if test x"$ac_file" = x-; then
27195     configure_input=
27196   else
27197     configure_input="$ac_file.  "
27198   fi
27199   configure_input=$configure_input"Generated from `echo $ac_file_in |
27200                                      sed 's,.*/,,'` by configure."
27201
27202   # First look for the input files in the build tree, otherwise in the
27203   # src tree.
27204   ac_file_inputs=`IFS=:
27205     for f in $ac_file_in; do
27206       case $f in
27207       -) echo $tmp/stdin ;;
27208       [\\/$]*)
27209          # Absolute (can't be DOS-style, as IFS=:)
27210          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27211 echo "$as_me: error: cannot find input file: $f" >&2;}
27212    { (exit 1); exit 1; }; }
27213          echo "$f";;
27214       *) # Relative
27215          if test -f "$f"; then
27216            # Build tree
27217            echo "$f"
27218          elif test -f "$srcdir/$f"; then
27219            # Source tree
27220            echo "$srcdir/$f"
27221          else
27222            # /dev/null tree
27223            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27224 echo "$as_me: error: cannot find input file: $f" >&2;}
27225    { (exit 1); exit 1; }; }
27226          fi;;
27227       esac
27228     done` || { (exit 1); exit 1; }
27229 _ACEOF
27230 cat >>$CONFIG_STATUS <<_ACEOF
27231   sed "$ac_vpsub
27232 $extrasub
27233 _ACEOF
27234 cat >>$CONFIG_STATUS <<\_ACEOF
27235 :t
27236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27237 s,@configure_input@,$configure_input,;t t
27238 s,@srcdir@,$ac_srcdir,;t t
27239 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27240 s,@top_srcdir@,$ac_top_srcdir,;t t
27241 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27242 s,@builddir@,$ac_builddir,;t t
27243 s,@abs_builddir@,$ac_abs_builddir,;t t
27244 s,@top_builddir@,$ac_top_builddir,;t t
27245 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27246 s,@INSTALL@,$ac_INSTALL,;t t
27247 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27248   rm -f $tmp/stdin
27249   if test x"$ac_file" != x-; then
27250     mv $tmp/out $ac_file
27251   else
27252     cat $tmp/out
27253     rm -f $tmp/out
27254   fi
27255
27256 done
27257 _ACEOF
27258 cat >>$CONFIG_STATUS <<\_ACEOF
27259
27260 #
27261 # CONFIG_HEADER section.
27262 #
27263
27264 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27265 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27266 #
27267 # ac_d sets the value in "#define NAME VALUE" lines.
27268 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27269 ac_dB='[         ].*$,\1#\2'
27270 ac_dC=' '
27271 ac_dD=',;t'
27272 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27273 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27274 ac_uB='$,\1#\2define\3'
27275 ac_uC=' '
27276 ac_uD=',;t'
27277
27278 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27279   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27280   case $ac_file in
27281   - | *:- | *:-:* ) # input from stdin
27282         cat >$tmp/stdin
27283         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27284         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27285   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27286         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27287   * )   ac_file_in=$ac_file.in ;;
27288   esac
27289
27290   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27291 echo "$as_me: creating $ac_file" >&6;}
27292
27293   # First look for the input files in the build tree, otherwise in the
27294   # src tree.
27295   ac_file_inputs=`IFS=:
27296     for f in $ac_file_in; do
27297       case $f in
27298       -) echo $tmp/stdin ;;
27299       [\\/$]*)
27300          # Absolute (can't be DOS-style, as IFS=:)
27301          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27302 echo "$as_me: error: cannot find input file: $f" >&2;}
27303    { (exit 1); exit 1; }; }
27304          # Do quote $f, to prevent DOS paths from being IFS'd.
27305          echo "$f";;
27306       *) # Relative
27307          if test -f "$f"; then
27308            # Build tree
27309            echo "$f"
27310          elif test -f "$srcdir/$f"; then
27311            # Source tree
27312            echo "$srcdir/$f"
27313          else
27314            # /dev/null tree
27315            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27316 echo "$as_me: error: cannot find input file: $f" >&2;}
27317    { (exit 1); exit 1; }; }
27318          fi;;
27319       esac
27320     done` || { (exit 1); exit 1; }
27321   # Remove the trailing spaces.
27322   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27323
27324 _ACEOF
27325
27326 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27327 # `conftest.undefs', that substitutes the proper values into
27328 # config.h.in to produce config.h.  The first handles `#define'
27329 # templates, and the second `#undef' templates.
27330 # And first: Protect against being on the right side of a sed subst in
27331 # config.status.  Protect against being in an unquoted here document
27332 # in config.status.
27333 rm -f conftest.defines conftest.undefs
27334 # Using a here document instead of a string reduces the quoting nightmare.
27335 # Putting comments in sed scripts is not portable.
27336 #
27337 # `end' is used to avoid that the second main sed command (meant for
27338 # 0-ary CPP macros) applies to n-ary macro definitions.
27339 # See the Autoconf documentation for `clear'.
27340 cat >confdef2sed.sed <<\_ACEOF
27341 s/[\\&,]/\\&/g
27342 s,[\\$`],\\&,g
27343 t clear
27344 : clear
27345 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27346 t end
27347 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27348 : end
27349 _ACEOF
27350 # If some macros were called several times there might be several times
27351 # the same #defines, which is useless.  Nevertheless, we may not want to
27352 # sort them, since we want the *last* AC-DEFINE to be honored.
27353 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27354 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27355 rm -f confdef2sed.sed
27356
27357 # This sed command replaces #undef with comments.  This is necessary, for
27358 # example, in the case of _POSIX_SOURCE, which is predefined and required
27359 # on some systems where configure will not decide to define it.
27360 cat >>conftest.undefs <<\_ACEOF
27361 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27362 _ACEOF
27363
27364 # Break up conftest.defines because some shells have a limit on the size
27365 # of here documents, and old seds have small limits too (100 cmds).
27366 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27367 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27368 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27369 echo '  :' >>$CONFIG_STATUS
27370 rm -f conftest.tail
27371 while grep . conftest.defines >/dev/null
27372 do
27373   # Write a limited-size here document to $tmp/defines.sed.
27374   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27375   # Speed up: don't consider the non `#define' lines.
27376   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27377   # Work around the forget-to-reset-the-flag bug.
27378   echo 't clr' >>$CONFIG_STATUS
27379   echo ': clr' >>$CONFIG_STATUS
27380   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27381   echo 'CEOF
27382   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27383   rm -f $tmp/in
27384   mv $tmp/out $tmp/in
27385 ' >>$CONFIG_STATUS
27386   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27387   rm -f conftest.defines
27388   mv conftest.tail conftest.defines
27389 done
27390 rm -f conftest.defines
27391 echo '  fi # grep' >>$CONFIG_STATUS
27392 echo >>$CONFIG_STATUS
27393
27394 # Break up conftest.undefs because some shells have a limit on the size
27395 # of here documents, and old seds have small limits too (100 cmds).
27396 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27397 rm -f conftest.tail
27398 while grep . conftest.undefs >/dev/null
27399 do
27400   # Write a limited-size here document to $tmp/undefs.sed.
27401   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27402   # Speed up: don't consider the non `#undef'
27403   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27404   # Work around the forget-to-reset-the-flag bug.
27405   echo 't clr' >>$CONFIG_STATUS
27406   echo ': clr' >>$CONFIG_STATUS
27407   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27408   echo 'CEOF
27409   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27410   rm -f $tmp/in
27411   mv $tmp/out $tmp/in
27412 ' >>$CONFIG_STATUS
27413   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27414   rm -f conftest.undefs
27415   mv conftest.tail conftest.undefs
27416 done
27417 rm -f conftest.undefs
27418
27419 cat >>$CONFIG_STATUS <<\_ACEOF
27420   # Let's still pretend it is `configure' which instantiates (i.e., don't
27421   # use $as_me), people would be surprised to read:
27422   #    /* config.h.  Generated by config.status.  */
27423   if test x"$ac_file" = x-; then
27424     echo "/* Generated by configure.  */" >$tmp/config.h
27425   else
27426     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27427   fi
27428   cat $tmp/in >>$tmp/config.h
27429   rm -f $tmp/in
27430   if test x"$ac_file" != x-; then
27431     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27432       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27433 echo "$as_me: $ac_file is unchanged" >&6;}
27434     else
27435       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27436 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27437          X"$ac_file" : 'X\(//\)[^/]' \| \
27438          X"$ac_file" : 'X\(//\)$' \| \
27439          X"$ac_file" : 'X\(/\)' \| \
27440          .     : '\(.\)' 2>/dev/null ||
27441 echo X"$ac_file" |
27442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27443           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27444           /^X\(\/\/\)$/{ s//\1/; q; }
27445           /^X\(\/\).*/{ s//\1/; q; }
27446           s/.*/./; q'`
27447       { if $as_mkdir_p; then
27448     mkdir -p "$ac_dir"
27449   else
27450     as_dir="$ac_dir"
27451     as_dirs=
27452     while test ! -d "$as_dir"; do
27453       as_dirs="$as_dir $as_dirs"
27454       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27456          X"$as_dir" : 'X\(//\)[^/]' \| \
27457          X"$as_dir" : 'X\(//\)$' \| \
27458          X"$as_dir" : 'X\(/\)' \| \
27459          .     : '\(.\)' 2>/dev/null ||
27460 echo X"$as_dir" |
27461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27462           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27463           /^X\(\/\/\)$/{ s//\1/; q; }
27464           /^X\(\/\).*/{ s//\1/; q; }
27465           s/.*/./; q'`
27466     done
27467     test ! -n "$as_dirs" || mkdir $as_dirs
27468   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27469 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27470    { (exit 1); exit 1; }; }; }
27471
27472       rm -f $ac_file
27473       mv $tmp/config.h $ac_file
27474     fi
27475   else
27476     cat $tmp/config.h
27477     rm -f $tmp/config.h
27478   fi
27479 # Compute $ac_file's index in $config_headers.
27480 _am_stamp_count=1
27481 for _am_header in $config_headers :; do
27482   case $_am_header in
27483     $ac_file | $ac_file:* )
27484       break ;;
27485     * )
27486       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27487   esac
27488 done
27489 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27490 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27491          X$ac_file : 'X\(//\)[^/]' \| \
27492          X$ac_file : 'X\(//\)$' \| \
27493          X$ac_file : 'X\(/\)' \| \
27494          .     : '\(.\)' 2>/dev/null ||
27495 echo X$ac_file |
27496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27497           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27498           /^X\(\/\/\)$/{ s//\1/; q; }
27499           /^X\(\/\).*/{ s//\1/; q; }
27500           s/.*/./; q'`/stamp-h$_am_stamp_count
27501 done
27502 _ACEOF
27503 cat >>$CONFIG_STATUS <<\_ACEOF
27504
27505 #
27506 # CONFIG_COMMANDS section.
27507 #
27508 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27509   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27510   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27511   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27512 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27513          X"$ac_dest" : 'X\(//\)[^/]' \| \
27514          X"$ac_dest" : 'X\(//\)$' \| \
27515          X"$ac_dest" : 'X\(/\)' \| \
27516          .     : '\(.\)' 2>/dev/null ||
27517 echo X"$ac_dest" |
27518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27519           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27520           /^X\(\/\/\)$/{ s//\1/; q; }
27521           /^X\(\/\).*/{ s//\1/; q; }
27522           s/.*/./; q'`
27523   { if $as_mkdir_p; then
27524     mkdir -p "$ac_dir"
27525   else
27526     as_dir="$ac_dir"
27527     as_dirs=
27528     while test ! -d "$as_dir"; do
27529       as_dirs="$as_dir $as_dirs"
27530       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27532          X"$as_dir" : 'X\(//\)[^/]' \| \
27533          X"$as_dir" : 'X\(//\)$' \| \
27534          X"$as_dir" : 'X\(/\)' \| \
27535          .     : '\(.\)' 2>/dev/null ||
27536 echo X"$as_dir" |
27537     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27538           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27539           /^X\(\/\/\)$/{ s//\1/; q; }
27540           /^X\(\/\).*/{ s//\1/; q; }
27541           s/.*/./; q'`
27542     done
27543     test ! -n "$as_dirs" || mkdir $as_dirs
27544   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27545 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27546    { (exit 1); exit 1; }; }; }
27547
27548   ac_builddir=.
27549
27550 if test "$ac_dir" != .; then
27551   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27552   # A "../" for each directory in $ac_dir_suffix.
27553   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27554 else
27555   ac_dir_suffix= ac_top_builddir=
27556 fi
27557
27558 case $srcdir in
27559   .)  # No --srcdir option.  We are building in place.
27560     ac_srcdir=.
27561     if test -z "$ac_top_builddir"; then
27562        ac_top_srcdir=.
27563     else
27564        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27565     fi ;;
27566   [\\/]* | ?:[\\/]* )  # Absolute path.
27567     ac_srcdir=$srcdir$ac_dir_suffix;
27568     ac_top_srcdir=$srcdir ;;
27569   *) # Relative path.
27570     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27571     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27572 esac
27573
27574 # Do not use `cd foo && pwd` to compute absolute paths, because
27575 # the directories may not exist.
27576 case `pwd` in
27577 .) ac_abs_builddir="$ac_dir";;
27578 *)
27579   case "$ac_dir" in
27580   .) ac_abs_builddir=`pwd`;;
27581   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27582   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27583   esac;;
27584 esac
27585 case $ac_abs_builddir in
27586 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27587 *)
27588   case ${ac_top_builddir}. in
27589   .) ac_abs_top_builddir=$ac_abs_builddir;;
27590   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27591   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27592   esac;;
27593 esac
27594 case $ac_abs_builddir in
27595 .) ac_abs_srcdir=$ac_srcdir;;
27596 *)
27597   case $ac_srcdir in
27598   .) ac_abs_srcdir=$ac_abs_builddir;;
27599   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27600   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27601   esac;;
27602 esac
27603 case $ac_abs_builddir in
27604 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27605 *)
27606   case $ac_top_srcdir in
27607   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27608   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27609   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27610   esac;;
27611 esac
27612
27613
27614   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27615 echo "$as_me: executing $ac_dest commands" >&6;}
27616   case $ac_dest in
27617     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27618   # Strip MF so we end up with the name of the file.
27619   mf=`echo "$mf" | sed -e 's/:.*$//'`
27620   # Check whether this is an Automake generated Makefile or not.
27621   # We used to match only the files named `Makefile.in', but
27622   # some people rename them; so instead we look at the file content.
27623   # Grep'ing the first line is not enough: some people post-process
27624   # each Makefile.in and add a new line on top of each file to say so.
27625   # So let's grep whole file.
27626   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27627     dirpart=`(dirname "$mf") 2>/dev/null ||
27628 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27629          X"$mf" : 'X\(//\)[^/]' \| \
27630          X"$mf" : 'X\(//\)$' \| \
27631          X"$mf" : 'X\(/\)' \| \
27632          .     : '\(.\)' 2>/dev/null ||
27633 echo X"$mf" |
27634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27635           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27636           /^X\(\/\/\)$/{ s//\1/; q; }
27637           /^X\(\/\).*/{ s//\1/; q; }
27638           s/.*/./; q'`
27639   else
27640     continue
27641   fi
27642   # Extract the definition of DEPDIR, am__include, and am__quote
27643   # from the Makefile without running `make'.
27644   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27645   test -z "$DEPDIR" && continue
27646   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27647   test -z "am__include" && continue
27648   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27649   # When using ansi2knr, U may be empty or an underscore; expand it
27650   U=`sed -n 's/^U = //p' < "$mf"`
27651   # Find all dependency output files, they are included files with
27652   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27653   # simplest approach to changing $(DEPDIR) to its actual value in the
27654   # expansion.
27655   for file in `sed -n "
27656     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27657        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27658     # Make sure the directory exists.
27659     test -f "$dirpart/$file" && continue
27660     fdir=`(dirname "$file") 2>/dev/null ||
27661 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27662          X"$file" : 'X\(//\)[^/]' \| \
27663          X"$file" : 'X\(//\)$' \| \
27664          X"$file" : 'X\(/\)' \| \
27665          .     : '\(.\)' 2>/dev/null ||
27666 echo X"$file" |
27667     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27668           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27669           /^X\(\/\/\)$/{ s//\1/; q; }
27670           /^X\(\/\).*/{ s//\1/; q; }
27671           s/.*/./; q'`
27672     { if $as_mkdir_p; then
27673     mkdir -p $dirpart/$fdir
27674   else
27675     as_dir=$dirpart/$fdir
27676     as_dirs=
27677     while test ! -d "$as_dir"; do
27678       as_dirs="$as_dir $as_dirs"
27679       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27680 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27681          X"$as_dir" : 'X\(//\)[^/]' \| \
27682          X"$as_dir" : 'X\(//\)$' \| \
27683          X"$as_dir" : 'X\(/\)' \| \
27684          .     : '\(.\)' 2>/dev/null ||
27685 echo X"$as_dir" |
27686     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27687           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27688           /^X\(\/\/\)$/{ s//\1/; q; }
27689           /^X\(\/\).*/{ s//\1/; q; }
27690           s/.*/./; q'`
27691     done
27692     test ! -n "$as_dirs" || mkdir $as_dirs
27693   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27694 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27695    { (exit 1); exit 1; }; }; }
27696
27697     # echo "creating $dirpart/$file"
27698     echo '# dummy' > "$dirpart/$file"
27699   done
27700 done
27701  ;;
27702   esac
27703 done
27704 _ACEOF
27705
27706 cat >>$CONFIG_STATUS <<\_ACEOF
27707
27708 { (exit 0); exit 0; }
27709 _ACEOF
27710 chmod +x $CONFIG_STATUS
27711 ac_clean_files=$ac_clean_files_save
27712
27713
27714 # configure is writing to config.log, and then calls config.status.
27715 # config.status does its own redirection, appending to config.log.
27716 # Unfortunately, on DOS this fails, as config.log is still kept open
27717 # by configure, so config.status won't be able to write to it; its
27718 # output is simply discarded.  So we exec the FD to /dev/null,
27719 # effectively closing config.log, so it can be properly (re)opened and
27720 # appended to by config.status.  When coming back to configure, we
27721 # need to make the FD available again.
27722 if test "$no_create" != yes; then
27723   ac_cs_success=:
27724   ac_config_status_args=
27725   test "$silent" = yes &&
27726     ac_config_status_args="$ac_config_status_args --quiet"
27727   exec 5>/dev/null
27728   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27729   exec 5>>config.log
27730   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27731   # would make configure fail if this is the last instruction.
27732   $ac_cs_success || { (exit 1); exit 1; }
27733 fi
27734
27735