Add changelog entry for additional init script fixes
[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.1.
4 #
5 # Report bugs to <shibboleth-users@internet2.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='shibboleth'
425 PACKAGE_TARNAME='shibboleth'
426 PACKAGE_VERSION='2.1'
427 PACKAGE_STRING='shibboleth 2.1'
428 PACKAGE_BUGREPORT='shibboleth-users@internet2.edu'
429
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DX_PROJECT DX_CONFIG DX_DOCDIR DX_ENV DX_FLAG_doc DX_DOXYGEN ac_pt_DX_DOXYGEN DX_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 MEMCACHED_INCLUDE MEMCACHED_LDFLAGS MEMCACHED_LIBS BUILD_MEMCACHED_TRUE BUILD_MEMCACHED_FALSE xs APXS APXS_CFLAGS APXS_INCLUDE APXS2 APR_CONFIG APXS2_CFLAGS APXS2_INCLUDE APXS22 APR1_CONFIG APXS22_CFLAGS APXS22_INCLUDE BUILD_AP13_TRUE BUILD_AP13_FALSE BUILD_AP20_TRUE BUILD_AP20_FALSE BUILD_AP22_TRUE BUILD_AP22_FALSE ODBC_CONFIG ODBC_CFLAGS ODBC_LIBS WANT_SUBDIRS LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_DOXYGEN_PAPER_SIZE_set=${DOXYGEN_PAPER_SIZE+set}
909 ac_env_DOXYGEN_PAPER_SIZE_value=$DOXYGEN_PAPER_SIZE
910 ac_cv_env_DOXYGEN_PAPER_SIZE_set=${DOXYGEN_PAPER_SIZE+set}
911 ac_cv_env_DOXYGEN_PAPER_SIZE_value=$DOXYGEN_PAPER_SIZE
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXXCPP_set=${CXXCPP+set}
941 ac_env_CXXCPP_value=$CXXCPP
942 ac_cv_env_CXXCPP_set=${CXXCPP+set}
943 ac_cv_env_CXXCPP_value=$CXXCPP
944 ac_env_F77_set=${F77+set}
945 ac_env_F77_value=$F77
946 ac_cv_env_F77_set=${F77+set}
947 ac_cv_env_F77_value=$F77
948 ac_env_FFLAGS_set=${FFLAGS+set}
949 ac_env_FFLAGS_value=$FFLAGS
950 ac_cv_env_FFLAGS_set=${FFLAGS+set}
951 ac_cv_env_FFLAGS_value=$FFLAGS
952
953 #
954 # Report the --help message.
955 #
956 if test "$ac_init_help" = "long"; then
957   # Omit some internal or obsolete options to make the list less imposing.
958   # This message is too long to be a string in the A/UX 3.1 sh.
959   cat <<_ACEOF
960 \`configure' configures shibboleth 2.1 to adapt to many kinds of systems.
961
962 Usage: $0 [OPTION]... [VAR=VALUE]...
963
964 To assign environment variables (e.g., CC, CFLAGS...), specify them as
965 VAR=VALUE.  See below for descriptions of some of the useful variables.
966
967 Defaults for the options are specified in brackets.
968
969 Configuration:
970   -h, --help              display this help and exit
971       --help=short        display options specific to this package
972       --help=recursive    display the short help of all the included packages
973   -V, --version           display version information and exit
974   -q, --quiet, --silent   do not print \`checking...' messages
975       --cache-file=FILE   cache test results in FILE [disabled]
976   -C, --config-cache      alias for \`--cache-file=config.cache'
977   -n, --no-create         do not create output files
978       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
979
980 _ACEOF
981
982   cat <<_ACEOF
983 Installation directories:
984   --prefix=PREFIX         install architecture-independent files in PREFIX
985                           [$ac_default_prefix]
986   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
987                           [PREFIX]
988
989 By default, \`make install' will install all the files in
990 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
991 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
992 for instance \`--prefix=\$HOME'.
993
994 For better control, use the options below.
995
996 Fine tuning of the installation directories:
997   --bindir=DIR           user executables [EPREFIX/bin]
998   --sbindir=DIR          system admin executables [EPREFIX/sbin]
999   --libexecdir=DIR       program executables [EPREFIX/libexec]
1000   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1001   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1002   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1003   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1004   --libdir=DIR           object code libraries [EPREFIX/lib]
1005   --includedir=DIR       C header files [PREFIX/include]
1006   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1007   --infodir=DIR          info documentation [PREFIX/info]
1008   --mandir=DIR           man documentation [PREFIX/man]
1009 _ACEOF
1010
1011   cat <<\_ACEOF
1012
1013 Program names:
1014   --program-prefix=PREFIX            prepend PREFIX to installed program names
1015   --program-suffix=SUFFIX            append SUFFIX to installed program names
1016   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1017
1018 System types:
1019   --build=BUILD     configure for building on BUILD [guessed]
1020   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1021 _ACEOF
1022 fi
1023
1024 if test -n "$ac_init_help"; then
1025   case $ac_init_help in
1026      short | recursive ) echo "Configuration of shibboleth 2.1:";;
1027    esac
1028   cat <<\_ACEOF
1029
1030 Optional Features:
1031   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1032   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1033   --disable-doxygen-doc   don't generate any doxygen documentation
1034   --disable-doxygen-dot   don't generate graphics for doxygen documentation
1035   --enable-doxygen-man    generate doxygen manual pages
1036   --enable-doxygen-rtf    generate doxygen RTF documentation
1037   --enable-doxygen-xml    generate doxygen XML documentation
1038   --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1039   --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1040                           file
1041   --disable-doxygen-html  don't generate doxygen plain HTML documentation
1042   --enable-doxygen-ps     generate doxygen PostScript documentation
1043   --enable-doxygen-pdf    generate doxygen PDF documentation
1044   --enable-debug          Have GCC compile with symbols (Default = no)
1045   --disable-dependency-tracking  speeds up one-time build
1046   --enable-dependency-tracking   do not reject slow dependency extractors
1047   --enable-static[=PKGS]
1048                           build static libraries [default=no]
1049   --enable-shared[=PKGS]
1050                           build shared libraries [default=yes]
1051   --enable-fast-install[=PKGS]
1052                           optimize for fast installation [default=yes]
1053   --disable-libtool-lock  avoid locking (might break parallel builds)
1054   --disable-adfs          don't build the ADFS module
1055   --enable-apache-13      enable the Apache 1.3 module
1056   --enable-apache-20      enable the Apache 2.0 module
1057   --enable-apache-22      enable the Apache 2.2 module
1058   --disable-odbc          disable the ODBC Storage Service
1059
1060 Optional Packages:
1061   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1062   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1063   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1064   --with-pic              try to use only PIC/non-PIC objects [default=use
1065                           both]
1066   --with-tags[=TAGS]
1067                           include additional configurations [automatic]
1068   --with-openssl=PATH     where openssl is installed
1069   --with-log4shib=PATH    where log4shib-config is installed
1070   --with-log4cpp=PATH     where log4cpp-config is installed
1071   --with-xerces=PATH      where xerces-c is installed
1072   --with-xmltooling=PATH  where xmltooling-c is installed
1073   --with-xmlsec=PATH      where xmlsec is installed
1074   --with-saml=PATH        where saml is installed
1075   --with-nsapi=DIR        Build NSAPI module for Netscape/iPlanet/SunONE
1076   --with-fastcgi=DIR      Build FastCGI support
1077   --with-memcached=DIR    Build Memcached support
1078   --with-apxs=FILE        Specifies where to find the Apache 1.3 apxs script.
1079   --with-apxs2=FILE       Specifies where to find the Apache 2.0 apxs script.
1080   --with-apr=PATH         where apr-config is installed
1081   --with-apxs22=FILE      Specifies where to find the Apache 2.2 apxs script.
1082   --with-apr1=PATH        where apr-1-config is installed
1083   --with-odbc=PATH        directory where odbc is installed
1084
1085 Some influential environment variables:
1086   DOXYGEN_PAPER_SIZE
1087               a4wide (default), a4, letter, legal or executive
1088   CC          C compiler command
1089   CFLAGS      C compiler flags
1090   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1091               nonstandard directory <lib dir>
1092   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1093               headers in a nonstandard directory <include dir>
1094   CXX         C++ compiler command
1095   CXXFLAGS    C++ compiler flags
1096   CPP         C preprocessor
1097   CXXCPP      C++ preprocessor
1098   F77         Fortran 77 compiler command
1099   FFLAGS      Fortran 77 compiler flags
1100
1101 Use these variables to override the choices made by `configure' or to help
1102 it to find libraries and programs with nonstandard names/locations.
1103
1104 Report bugs to <shibboleth-users@internet2.edu>.
1105 _ACEOF
1106 fi
1107
1108 if test "$ac_init_help" = "recursive"; then
1109   # If there are subdirs, report their specific --help.
1110   ac_popdir=`pwd`
1111   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1112     test -d $ac_dir || continue
1113     ac_builddir=.
1114
1115 if test "$ac_dir" != .; then
1116   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1117   # A "../" for each directory in $ac_dir_suffix.
1118   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1119 else
1120   ac_dir_suffix= ac_top_builddir=
1121 fi
1122
1123 case $srcdir in
1124   .)  # No --srcdir option.  We are building in place.
1125     ac_srcdir=.
1126     if test -z "$ac_top_builddir"; then
1127        ac_top_srcdir=.
1128     else
1129        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1130     fi ;;
1131   [\\/]* | ?:[\\/]* )  # Absolute path.
1132     ac_srcdir=$srcdir$ac_dir_suffix;
1133     ac_top_srcdir=$srcdir ;;
1134   *) # Relative path.
1135     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1136     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1137 esac
1138
1139 # Do not use `cd foo && pwd` to compute absolute paths, because
1140 # the directories may not exist.
1141 case `pwd` in
1142 .) ac_abs_builddir="$ac_dir";;
1143 *)
1144   case "$ac_dir" in
1145   .) ac_abs_builddir=`pwd`;;
1146   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1147   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1148   esac;;
1149 esac
1150 case $ac_abs_builddir in
1151 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1152 *)
1153   case ${ac_top_builddir}. in
1154   .) ac_abs_top_builddir=$ac_abs_builddir;;
1155   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1156   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1157   esac;;
1158 esac
1159 case $ac_abs_builddir in
1160 .) ac_abs_srcdir=$ac_srcdir;;
1161 *)
1162   case $ac_srcdir in
1163   .) ac_abs_srcdir=$ac_abs_builddir;;
1164   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1165   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1166   esac;;
1167 esac
1168 case $ac_abs_builddir in
1169 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1170 *)
1171   case $ac_top_srcdir in
1172   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1173   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1174   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1175   esac;;
1176 esac
1177
1178     cd $ac_dir
1179     # Check for guested configure; otherwise get Cygnus style configure.
1180     if test -f $ac_srcdir/configure.gnu; then
1181       echo
1182       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1183     elif test -f $ac_srcdir/configure; then
1184       echo
1185       $SHELL $ac_srcdir/configure  --help=recursive
1186     elif test -f $ac_srcdir/configure.ac ||
1187            test -f $ac_srcdir/configure.in; then
1188       echo
1189       $ac_configure --help
1190     else
1191       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1192     fi
1193     cd $ac_popdir
1194   done
1195 fi
1196
1197 test -n "$ac_init_help" && exit 0
1198 if $ac_init_version; then
1199   cat <<\_ACEOF
1200 shibboleth configure 2.1
1201 generated by GNU Autoconf 2.59
1202
1203 Copyright (C) 2003 Free Software Foundation, Inc.
1204 This configure script is free software; the Free Software Foundation
1205 gives unlimited permission to copy, distribute and modify it.
1206 _ACEOF
1207   exit 0
1208 fi
1209 exec 5>config.log
1210 cat >&5 <<_ACEOF
1211 This file contains any messages produced by compilers while
1212 running configure, to aid debugging if configure makes a mistake.
1213
1214 It was created by shibboleth $as_me 2.1, which was
1215 generated by GNU Autoconf 2.59.  Invocation command line was
1216
1217   $ $0 $@
1218
1219 _ACEOF
1220 {
1221 cat <<_ASUNAME
1222 ## --------- ##
1223 ## Platform. ##
1224 ## --------- ##
1225
1226 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1231
1232 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1234
1235 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1236 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1237 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1239 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1240 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1241 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1242
1243 _ASUNAME
1244
1245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246 for as_dir in $PATH
1247 do
1248   IFS=$as_save_IFS
1249   test -z "$as_dir" && as_dir=.
1250   echo "PATH: $as_dir"
1251 done
1252
1253 } >&5
1254
1255 cat >&5 <<_ACEOF
1256
1257
1258 ## ----------- ##
1259 ## Core tests. ##
1260 ## ----------- ##
1261
1262 _ACEOF
1263
1264
1265 # Keep a trace of the command line.
1266 # Strip out --no-create and --no-recursion so they do not pile up.
1267 # Strip out --silent because we don't want to record it for future runs.
1268 # Also quote any args containing shell meta-characters.
1269 # Make two passes to allow for proper duplicate-argument suppression.
1270 ac_configure_args=
1271 ac_configure_args0=
1272 ac_configure_args1=
1273 ac_sep=
1274 ac_must_keep_next=false
1275 for ac_pass in 1 2
1276 do
1277   for ac_arg
1278   do
1279     case $ac_arg in
1280     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282     | -silent | --silent | --silen | --sile | --sil)
1283       continue ;;
1284     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1286     esac
1287     case $ac_pass in
1288     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1289     2)
1290       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291       if test $ac_must_keep_next = true; then
1292         ac_must_keep_next=false # Got value, back to normal.
1293       else
1294         case $ac_arg in
1295           *=* | --config-cache | -C | -disable-* | --disable-* \
1296           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298           | -with-* | --with-* | -without-* | --without-* | --x)
1299             case "$ac_configure_args0 " in
1300               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1301             esac
1302             ;;
1303           -* ) ac_must_keep_next=true ;;
1304         esac
1305       fi
1306       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1307       # Get rid of the leading space.
1308       ac_sep=" "
1309       ;;
1310     esac
1311   done
1312 done
1313 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1315
1316 # When interrupted or exit'd, cleanup temporary files, and complete
1317 # config.log.  We remove comments because anyway the quotes in there
1318 # would cause problems or look ugly.
1319 # WARNING: Be sure not to use single quotes in there, as some shells,
1320 # such as our DU 5.0 friend, will then `close' the trap.
1321 trap 'exit_status=$?
1322   # Save into config.log some information that might help in debugging.
1323   {
1324     echo
1325
1326     cat <<\_ASBOX
1327 ## ---------------- ##
1328 ## Cache variables. ##
1329 ## ---------------- ##
1330 _ASBOX
1331     echo
1332     # The following way of writing the cache mishandles newlines in values,
1333 {
1334   (set) 2>&1 |
1335     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1336     *ac_space=\ *)
1337       sed -n \
1338         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1340       ;;
1341     *)
1342       sed -n \
1343         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1344       ;;
1345     esac;
1346 }
1347     echo
1348
1349     cat <<\_ASBOX
1350 ## ----------------- ##
1351 ## Output variables. ##
1352 ## ----------------- ##
1353 _ASBOX
1354     echo
1355     for ac_var in $ac_subst_vars
1356     do
1357       eval ac_val=$`echo $ac_var`
1358       echo "$ac_var='"'"'$ac_val'"'"'"
1359     done | sort
1360     echo
1361
1362     if test -n "$ac_subst_files"; then
1363       cat <<\_ASBOX
1364 ## ------------- ##
1365 ## Output files. ##
1366 ## ------------- ##
1367 _ASBOX
1368       echo
1369       for ac_var in $ac_subst_files
1370       do
1371         eval ac_val=$`echo $ac_var`
1372         echo "$ac_var='"'"'$ac_val'"'"'"
1373       done | sort
1374       echo
1375     fi
1376
1377     if test -s confdefs.h; then
1378       cat <<\_ASBOX
1379 ## ----------- ##
1380 ## confdefs.h. ##
1381 ## ----------- ##
1382 _ASBOX
1383       echo
1384       sed "/^$/d" confdefs.h | sort
1385       echo
1386     fi
1387     test "$ac_signal" != 0 &&
1388       echo "$as_me: caught signal $ac_signal"
1389     echo "$as_me: exit $exit_status"
1390   } >&5
1391   rm -f core *.core &&
1392   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1393     exit $exit_status
1394      ' 0
1395 for ac_signal in 1 2 13 15; do
1396   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1397 done
1398 ac_signal=0
1399
1400 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1401 rm -rf conftest* confdefs.h
1402 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403 echo >confdefs.h
1404
1405 # Predefined preprocessor variables.
1406
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_NAME "$PACKAGE_NAME"
1409 _ACEOF
1410
1411
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1414 _ACEOF
1415
1416
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1419 _ACEOF
1420
1421
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_STRING "$PACKAGE_STRING"
1424 _ACEOF
1425
1426
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1429 _ACEOF
1430
1431
1432 # Let the site file select an alternate cache file if it wants to.
1433 # Prefer explicitly selected file to automatically selected ones.
1434 if test -z "$CONFIG_SITE"; then
1435   if test "x$prefix" != xNONE; then
1436     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1437   else
1438     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1439   fi
1440 fi
1441 for ac_site_file in $CONFIG_SITE; do
1442   if test -r "$ac_site_file"; then
1443     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1444 echo "$as_me: loading site script $ac_site_file" >&6;}
1445     sed 's/^/| /' "$ac_site_file" >&5
1446     . "$ac_site_file"
1447   fi
1448 done
1449
1450 if test -r "$cache_file"; then
1451   # Some versions of bash will fail to source /dev/null (special
1452   # files actually), so we avoid doing that.
1453   if test -f "$cache_file"; then
1454     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1455 echo "$as_me: loading cache $cache_file" >&6;}
1456     case $cache_file in
1457       [\\/]* | ?:[\\/]* ) . $cache_file;;
1458       *)                      . ./$cache_file;;
1459     esac
1460   fi
1461 else
1462   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1463 echo "$as_me: creating cache $cache_file" >&6;}
1464   >$cache_file
1465 fi
1466
1467 # Check that the precious variables saved in the cache have kept the same
1468 # value.
1469 ac_cache_corrupted=false
1470 for ac_var in `(set) 2>&1 |
1471                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1472   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473   eval ac_new_set=\$ac_env_${ac_var}_set
1474   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475   eval ac_new_val="\$ac_env_${ac_var}_value"
1476   case $ac_old_set,$ac_new_set in
1477     set,)
1478       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1479 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480       ac_cache_corrupted=: ;;
1481     ,set)
1482       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1483 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484       ac_cache_corrupted=: ;;
1485     ,);;
1486     *)
1487       if test "x$ac_old_val" != "x$ac_new_val"; then
1488         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1489 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1490         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1491 echo "$as_me:   former value:  $ac_old_val" >&2;}
1492         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1493 echo "$as_me:   current value: $ac_new_val" >&2;}
1494         ac_cache_corrupted=:
1495       fi;;
1496   esac
1497   # Pass precious variables to config.status.
1498   if test "$ac_new_set" = set; then
1499     case $ac_new_val in
1500     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1501       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502     *) ac_arg=$ac_var=$ac_new_val ;;
1503     esac
1504     case " $ac_configure_args " in
1505       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1506       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1507     esac
1508   fi
1509 done
1510 if $ac_cache_corrupted; then
1511   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1512 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1513   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1514 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515    { (exit 1); exit 1; }; }
1516 fi
1517
1518 ac_ext=c
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550           ac_config_headers="$ac_config_headers config.h"
1551
1552 am__api_version="1.9"
1553 ac_aux_dir=
1554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555   if test -f $ac_dir/install-sh; then
1556     ac_aux_dir=$ac_dir
1557     ac_install_sh="$ac_aux_dir/install-sh -c"
1558     break
1559   elif test -f $ac_dir/install.sh; then
1560     ac_aux_dir=$ac_dir
1561     ac_install_sh="$ac_aux_dir/install.sh -c"
1562     break
1563   elif test -f $ac_dir/shtool; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/shtool install -c"
1566     break
1567   fi
1568 done
1569 if test -z "$ac_aux_dir"; then
1570   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572    { (exit 1); exit 1; }; }
1573 fi
1574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578 # Find a good install program.  We prefer a C program (faster),
1579 # so one script is as good as another.  But avoid the broken or
1580 # incompatible versions:
1581 # SysV /etc/install, /usr/sbin/install
1582 # SunOS /usr/etc/install
1583 # IRIX /sbin/install
1584 # AIX /bin/install
1585 # AmigaOS /C/install, which installs bootblocks on floppy discs
1586 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1587 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1588 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1589 # OS/2's system install, which has a completely different semantic
1590 # ./install, which can be erroneously created by make from ./install.sh.
1591 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1592 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1593 if test -z "$INSTALL"; then
1594 if test "${ac_cv_path_install+set}" = set; then
1595   echo $ECHO_N "(cached) $ECHO_C" >&6
1596 else
1597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 for as_dir in $PATH
1599 do
1600   IFS=$as_save_IFS
1601   test -z "$as_dir" && as_dir=.
1602   # Account for people who put trailing slashes in PATH elements.
1603 case $as_dir/ in
1604   ./ | .// | /cC/* | \
1605   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1606   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1607   /usr/ucb/* ) ;;
1608   *)
1609     # OSF1 and SCO ODT 3.0 have their own names for install.
1610     # Don't use installbsd from OSF since it installs stuff as root
1611     # by default.
1612     for ac_prog in ginstall scoinst install; do
1613       for ac_exec_ext in '' $ac_executable_extensions; do
1614         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1615           if test $ac_prog = install &&
1616             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1617             # AIX install.  It has an incompatible calling convention.
1618             :
1619           elif test $ac_prog = install &&
1620             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1621             # program-specific install script used by HP pwplus--don't use.
1622             :
1623           else
1624             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1625             break 3
1626           fi
1627         fi
1628       done
1629     done
1630     ;;
1631 esac
1632 done
1633
1634
1635 fi
1636   if test "${ac_cv_path_install+set}" = set; then
1637     INSTALL=$ac_cv_path_install
1638   else
1639     # As a last resort, use the slow shell script.  We don't cache a
1640     # path for INSTALL within a source directory, because that will
1641     # break other packages using the cache if that directory is
1642     # removed, or if the path is relative.
1643     INSTALL=$ac_install_sh
1644   fi
1645 fi
1646 echo "$as_me:$LINENO: result: $INSTALL" >&5
1647 echo "${ECHO_T}$INSTALL" >&6
1648
1649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1650 # It thinks the first close brace ends the variable substitution.
1651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1652
1653 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1654
1655 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1656
1657 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1658 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1659 # Just in case
1660 sleep 1
1661 echo timestamp > conftest.file
1662 # Do `set' in a subshell so we don't clobber the current shell's
1663 # arguments.  Must try -L first in case configure is actually a
1664 # symlink; some systems play weird games with the mod time of symlinks
1665 # (eg FreeBSD returns the mod time of the symlink's containing
1666 # directory).
1667 if (
1668    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1669    if test "$*" = "X"; then
1670       # -L didn't work.
1671       set X `ls -t $srcdir/configure conftest.file`
1672    fi
1673    rm -f conftest.file
1674    if test "$*" != "X $srcdir/configure conftest.file" \
1675       && test "$*" != "X conftest.file $srcdir/configure"; then
1676
1677       # If neither matched, then we have a broken ls.  This can happen
1678       # if, for instance, CONFIG_SHELL is bash and it inherits a
1679       # broken ls alias from the environment.  This has actually
1680       # happened.  Such a system could not be considered "sane".
1681       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1682 alias in your environment" >&5
1683 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1684 alias in your environment" >&2;}
1685    { (exit 1); exit 1; }; }
1686    fi
1687
1688    test "$2" = conftest.file
1689    )
1690 then
1691    # Ok.
1692    :
1693 else
1694    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1695 Check your system clock" >&5
1696 echo "$as_me: error: newly created file is older than distributed files!
1697 Check your system clock" >&2;}
1698    { (exit 1); exit 1; }; }
1699 fi
1700 echo "$as_me:$LINENO: result: yes" >&5
1701 echo "${ECHO_T}yes" >&6
1702 test "$program_prefix" != NONE &&
1703   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1704 # Use a double $ so make ignores it.
1705 test "$program_suffix" != NONE &&
1706   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1707 # Double any \ or $.  echo might interpret backslashes.
1708 # By default was `s,x,x', remove it if useless.
1709 cat <<\_ACEOF >conftest.sed
1710 s/[\\$]/&&/g;s/;s,x,x,$//
1711 _ACEOF
1712 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1713 rm conftest.sed
1714
1715 # expand $ac_aux_dir to an absolute path
1716 am_aux_dir=`cd $ac_aux_dir && pwd`
1717
1718 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1719 # Use eval to expand $SHELL
1720 if eval "$MISSING --run true"; then
1721   am_missing_run="$MISSING --run "
1722 else
1723   am_missing_run=
1724   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1725 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1726 fi
1727
1728 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1729   # We used to keeping the `.' as first argument, in order to
1730   # allow $(mkdir_p) to be used without argument.  As in
1731   #   $(mkdir_p) $(somedir)
1732   # where $(somedir) is conditionally defined.  However this is wrong
1733   # for two reasons:
1734   #  1. if the package is installed by a user who cannot write `.'
1735   #     make install will fail,
1736   #  2. the above comment should most certainly read
1737   #     $(mkdir_p) $(DESTDIR)$(somedir)
1738   #     so it does not work when $(somedir) is undefined and
1739   #     $(DESTDIR) is not.
1740   #  To support the latter case, we have to write
1741   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1742   #  so the `.' trick is pointless.
1743   mkdir_p='mkdir -p --'
1744 else
1745   # On NextStep and OpenStep, the `mkdir' command does not
1746   # recognize any option.  It will interpret all options as
1747   # directories to create, and then abort because `.' already
1748   # exists.
1749   for d in ./-p ./--version;
1750   do
1751     test -d $d && rmdir $d
1752   done
1753   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1754   if test -f "$ac_aux_dir/mkinstalldirs"; then
1755     mkdir_p='$(mkinstalldirs)'
1756   else
1757     mkdir_p='$(install_sh) -d'
1758   fi
1759 fi
1760
1761 for ac_prog in gawk mawk nawk awk
1762 do
1763   # Extract the first word of "$ac_prog", so it can be a program name with args.
1764 set dummy $ac_prog; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_AWK+set}" = set; then
1768   echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770   if test -n "$AWK"; then
1771   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1772 else
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776   IFS=$as_save_IFS
1777   test -z "$as_dir" && as_dir=.
1778   for ac_exec_ext in '' $ac_executable_extensions; do
1779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780     ac_cv_prog_AWK="$ac_prog"
1781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782     break 2
1783   fi
1784 done
1785 done
1786
1787 fi
1788 fi
1789 AWK=$ac_cv_prog_AWK
1790 if test -n "$AWK"; then
1791   echo "$as_me:$LINENO: result: $AWK" >&5
1792 echo "${ECHO_T}$AWK" >&6
1793 else
1794   echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
1798   test -n "$AWK" && break
1799 done
1800
1801 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1802 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1803 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1804 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1805   echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807   cat >conftest.make <<\_ACEOF
1808 all:
1809         @echo 'ac_maketemp="$(MAKE)"'
1810 _ACEOF
1811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1812 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1813 if test -n "$ac_maketemp"; then
1814   eval ac_cv_prog_make_${ac_make}_set=yes
1815 else
1816   eval ac_cv_prog_make_${ac_make}_set=no
1817 fi
1818 rm -f conftest.make
1819 fi
1820 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1821   echo "$as_me:$LINENO: result: yes" >&5
1822 echo "${ECHO_T}yes" >&6
1823   SET_MAKE=
1824 else
1825   echo "$as_me:$LINENO: result: no" >&5
1826 echo "${ECHO_T}no" >&6
1827   SET_MAKE="MAKE=${MAKE-make}"
1828 fi
1829
1830 rm -rf .tst 2>/dev/null
1831 mkdir .tst 2>/dev/null
1832 if test -d .tst; then
1833   am__leading_dot=.
1834 else
1835   am__leading_dot=_
1836 fi
1837 rmdir .tst 2>/dev/null
1838
1839 # test to see if srcdir already configured
1840 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1841    test -f $srcdir/config.status; then
1842   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1843 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1844    { (exit 1); exit 1; }; }
1845 fi
1846
1847 # test whether we have cygpath
1848 if test -z "$CYGPATH_W"; then
1849   if (cygpath --version) >/dev/null 2>/dev/null; then
1850     CYGPATH_W='cygpath -w'
1851   else
1852     CYGPATH_W=echo
1853   fi
1854 fi
1855
1856
1857 # Define the identity of the package.
1858  PACKAGE=shibboleth
1859  VERSION=2.1
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE "$PACKAGE"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define VERSION "$VERSION"
1869 _ACEOF
1870
1871 # Some tools Automake needs.
1872
1873 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1874
1875
1876 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1877
1878
1879 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1880
1881
1882 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1883
1884
1885 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1886
1887 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1888
1889 # Installed binaries are usually stripped using `strip' when the user
1890 # run `make install-strip'.  However `strip' might not be the right
1891 # tool to use in cross-compilation environments, therefore Automake
1892 # will honor the `STRIP' environment variable to overrule this program.
1893 if test "$cross_compiling" != no; then
1894   if test -n "$ac_tool_prefix"; then
1895   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1896 set dummy ${ac_tool_prefix}strip; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_STRIP+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   if test -n "$STRIP"; then
1903   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908   IFS=$as_save_IFS
1909   test -z "$as_dir" && as_dir=.
1910   for ac_exec_ext in '' $ac_executable_extensions; do
1911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914     break 2
1915   fi
1916 done
1917 done
1918
1919 fi
1920 fi
1921 STRIP=$ac_cv_prog_STRIP
1922 if test -n "$STRIP"; then
1923   echo "$as_me:$LINENO: result: $STRIP" >&5
1924 echo "${ECHO_T}$STRIP" >&6
1925 else
1926   echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1928 fi
1929
1930 fi
1931 if test -z "$ac_cv_prog_STRIP"; then
1932   ac_ct_STRIP=$STRIP
1933   # Extract the first word of "strip", so it can be a program name with args.
1934 set dummy strip; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   if test -n "$ac_ct_STRIP"; then
1941   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
1947   test -z "$as_dir" && as_dir=.
1948   for ac_exec_ext in '' $ac_executable_extensions; do
1949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950     ac_cv_prog_ac_ct_STRIP="strip"
1951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952     break 2
1953   fi
1954 done
1955 done
1956
1957   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1958 fi
1959 fi
1960 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1961 if test -n "$ac_ct_STRIP"; then
1962   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1963 echo "${ECHO_T}$ac_ct_STRIP" >&6
1964 else
1965   echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1967 fi
1968
1969   STRIP=$ac_ct_STRIP
1970 else
1971   STRIP="$ac_cv_prog_STRIP"
1972 fi
1973
1974 fi
1975 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1976
1977 # We need awk for the "check" target.  The system "awk" is bad on
1978 # some platforms.
1979 # Always define AMTAR for backward compatibility.
1980
1981 AMTAR=${AMTAR-"${am_missing_run}tar"}
1982
1983 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1984
1985
1986
1987
1988
1989
1990 # This file is part of Autoconf.                       -*- Autoconf -*-
1991
1992 # Copyright (C) 2004 Oren Ben-Kiki
1993 # This file is distributed under the same terms as the Autoconf macro files.
1994
1995 # Generate automatic documentation using Doxygen. Works in concert with the
1996 # aminclude.m4 file and a compatible doxygen configuration file. Defines the
1997 # following public macros:
1998 #
1999 # DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
2000 # Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
2001 # 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
2002 # for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
2003 # 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
2004 # variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
2005 # paper size.
2006 #
2007 # By default, HTML, PDF and PS documentation is generated as this seems to be
2008 # the most popular and portable combination. MAN pages created by Doxygen are
2009 # usually problematic, though by picking an appropriate subset and doing some
2010 # massaging they might be better than nothing. CHM and RTF are specific for MS
2011 # (note that you can't generate both HTML and CHM at the same time). The XML is
2012 # rather useless unless you apply specialized post-processing to it.
2013 #
2014 # The macro mainly controls the default state of the feature. The use can
2015 # override the default by specifying --enable or --disable. The macros ensure
2016 # that contradictory flags are not given (e.g., --enable-doxygen-html and
2017 # --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
2018 # Finally, each feature will be automatically disabled (with a warning) if the
2019 # required programs are missing.
2020 #
2021 # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
2022 # the following parameters: a one-word name for the project for use as a
2023 # filename base etc., an optional configuration file name (the default is
2024 # 'Doxyfile', the same as Doxygen's default), and an optional output directory
2025 # name (the default is 'doxygen-doc').
2026
2027 ## ----------##
2028 ## Defaults. ##
2029 ## ----------##
2030
2031 DX_ENV=""
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043 ## --------------- ##
2044 ## Private macros. ##
2045 ## --------------- ##
2046
2047 # DX_ENV_APPEND(VARIABLE, VALUE)
2048 # ------------------------------
2049 # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
2050
2051
2052 # DX_DIRNAME_EXPR
2053 # ---------------
2054 # Expand into a shell expression prints the directory part of a path.
2055
2056
2057 # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
2058 # -------------------------------------
2059 # Expands according to the M4 (static) status of the feature.
2060
2061
2062 # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
2063 # ----------------------------------
2064 # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
2065
2066
2067 # DX_TEST_FEATURE(FEATURE)
2068 # ------------------------
2069 # Expand to a shell expression testing whether the feature is active.
2070
2071
2072 # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
2073 # -------------------------------------------------
2074 # Verify that a required features has the right state before trying to turn on
2075 # the DX_CURRENT_FEATURE.
2076
2077
2078 # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
2079 # ----------------------------------------------------------
2080 # Turn off the DX_CURRENT_FEATURE if the required feature is off.
2081
2082
2083 # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
2084 #                CHECK_DEPEND, CLEAR_DEPEND,
2085 #                REQUIRE, DO-IF-ON, DO-IF-OFF)
2086 # --------------------------------------------
2087 # Parse the command-line option controlling a feature. CHECK_DEPEND is called
2088 # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
2089 # otherwise CLEAR_DEPEND is called to turn off the default state if a required
2090 # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
2091 # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
2092 # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
2093
2094
2095 ## -------------- ##
2096 ## Public macros. ##
2097 ## -------------- ##
2098
2099 # DX_XXX_FEATURE(DEFAULT_STATE)
2100 # -----------------------------
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112 # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
2113 # ---------------------------------------------------------
2114 # PROJECT also serves as the base name for the documentation files.
2115 # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
2116
2117
2118 ##### http://autoconf-archive.cryp.to/acx_pthread.html
2119 #
2120 # SYNOPSIS
2121 #
2122 #   ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
2123 #
2124 # DESCRIPTION
2125 #
2126 #   This macro figures out how to build C programs using POSIX threads.
2127 #   It sets the PTHREAD_LIBS output variable to the threads library and
2128 #   linker flags, and the PTHREAD_CFLAGS output variable to any special
2129 #   C compiler flags that are needed. (The user can also force certain
2130 #   compiler flags/libs to be tested by setting these environment
2131 #   variables.)
2132 #
2133 #   Also sets PTHREAD_CC to any special C compiler that is needed for
2134 #   multi-threaded programs (defaults to the value of CC otherwise).
2135 #   (This is necessary on AIX to use the special cc_r compiler alias.)
2136 #
2137 #   NOTE: You are assumed to not only compile your program with these
2138 #   flags, but also link it with them as well. e.g. you should link
2139 #   with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
2140 #   $LIBS
2141 #
2142 #   If you are only building threads programs, you may wish to use
2143 #   these variables in your default LIBS, CFLAGS, and CC:
2144 #
2145 #          LIBS="$PTHREAD_LIBS $LIBS"
2146 #          CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2147 #          CC="$PTHREAD_CC"
2148 #
2149 #   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
2150 #   constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
2151 #   that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
2152 #
2153 #   ACTION-IF-FOUND is a list of shell commands to run if a threads
2154 #   library is found, and ACTION-IF-NOT-FOUND is a list of commands to
2155 #   run it if it is not found. If ACTION-IF-FOUND is not specified, the
2156 #   default action will define HAVE_PTHREAD.
2157 #
2158 #   Please let the authors know if this macro fails on any platform, or
2159 #   if you have any other suggestions or comments. This macro was based
2160 #   on work by SGJ on autoconf scripts for FFTW (http://www.fftw.org/)
2161 #   (with help from M. Frigo), as well as ac_pthread and hb_pthread
2162 #   macros posted by Alejandro Forero Cuervo to the autoconf macro
2163 #   repository. We are also grateful for the helpful feedback of
2164 #   numerous users.
2165 #
2166 # LAST MODIFICATION
2167 #
2168 #   2006-05-29
2169 #
2170 # COPYLEFT
2171 #
2172 #   Copyright (c) 2006 Steven G. Johnson <stevenj@alum.mit.edu>
2173 #
2174 #   This program is free software; you can redistribute it and/or
2175 #   modify it under the terms of the GNU General Public License as
2176 #   published by the Free Software Foundation; either version 2 of the
2177 #   License, or (at your option) any later version.
2178 #
2179 #   This program is distributed in the hope that it will be useful, but
2180 #   WITHOUT ANY WARRANTY; without even the implied warranty of
2181 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2182 #   General Public License for more details.
2183 #
2184 #   You should have received a copy of the GNU General Public License
2185 #   along with this program; if not, write to the Free Software
2186 #   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2187 #   02111-1307, USA.
2188 #
2189 #   As a special exception, the respective Autoconf Macro's copyright
2190 #   owner gives unlimited permission to copy, distribute and modify the
2191 #   configure scripts that are the output of Autoconf when processing
2192 #   the Macro. You need not follow the terms of the GNU General Public
2193 #   License when using or distributing such scripts, even though
2194 #   portions of the text of the Macro appear in them. The GNU General
2195 #   Public License (GPL) does govern all other use of the material that
2196 #   constitutes the Autoconf Macro.
2197 #
2198 #   This special exception to the GPL applies to versions of the
2199 #   Autoconf Macro released by the Autoconf Macro Archive. When you
2200 #   make and distribute a modified version of the Autoconf Macro, you
2201 #   may extend this special exception to the GPL to apply to your
2202 #   modified version as well.
2203
2204
2205
2206 # Docygen features
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217 # Files:
2218 DX_PROJECT=shibboleth
2219
2220 DX_CONFIG=doxygen.cfg
2221
2222 DX_DOCDIR=doc/api
2223
2224
2225 # Environment variables used inside doxygen.cfg:
2226 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
2227
2228 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
2229
2230 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
2231
2232 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
2233
2234
2235 # Doxygen itself:
2236
2237
2238
2239     # Check whether --enable-doxygen-doc or --disable-doxygen-doc was given.
2240 if test "${enable_doxygen_doc+set}" = set; then
2241   enableval="$enable_doxygen_doc"
2242
2243 case "$enableval" in
2244 #(
2245 y|Y|yes|Yes|YES)
2246     DX_FLAG_doc=1
2247
2248
2249 ;; #(
2250 n|N|no|No|NO)
2251     DX_FLAG_doc=0
2252
2253 ;; #(
2254 *)
2255     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-doc" >&5
2256 echo "$as_me: error: invalid value '$enableval' given to doxygen-doc" >&2;}
2257    { (exit 1); exit 1; }; }
2258 ;;
2259 esac
2260
2261 else
2262
2263 DX_FLAG_doc=1
2264
2265
2266
2267 fi;
2268 if test "$DX_FLAG_doc" = 1; then
2269
2270 if test -n "$ac_tool_prefix"; then
2271   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
2272 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
2273 echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then
2276   echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278   case $DX_DOXYGEN in
2279   [\\/]* | ?:[\\/]*)
2280   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
2281   ;;
2282   *)
2283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288   for ac_exec_ext in '' $ac_executable_extensions; do
2289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292     break 2
2293   fi
2294 done
2295 done
2296
2297   ;;
2298 esac
2299 fi
2300 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
2301
2302 if test -n "$DX_DOXYGEN"; then
2303   echo "$as_me:$LINENO: result: $DX_DOXYGEN" >&5
2304 echo "${ECHO_T}$DX_DOXYGEN" >&6
2305 else
2306   echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6
2308 fi
2309
2310 fi
2311 if test -z "$ac_cv_path_DX_DOXYGEN"; then
2312   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
2313   # Extract the first word of "doxygen", so it can be a program name with args.
2314 set dummy doxygen; ac_word=$2
2315 echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then
2318   echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320   case $ac_pt_DX_DOXYGEN in
2321   [\\/]* | ?:[\\/]*)
2322   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
2323   ;;
2324   *)
2325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328   IFS=$as_save_IFS
2329   test -z "$as_dir" && as_dir=.
2330   for ac_exec_ext in '' $ac_executable_extensions; do
2331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334     break 2
2335   fi
2336 done
2337 done
2338
2339   ;;
2340 esac
2341 fi
2342 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
2343
2344 if test -n "$ac_pt_DX_DOXYGEN"; then
2345   echo "$as_me:$LINENO: result: $ac_pt_DX_DOXYGEN" >&5
2346 echo "${ECHO_T}$ac_pt_DX_DOXYGEN" >&6
2347 else
2348   echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6
2350 fi
2351
2352   DX_DOXYGEN=$ac_pt_DX_DOXYGEN
2353 else
2354   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
2355 fi
2356
2357 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
2358     { echo "$as_me:$LINENO: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
2359 echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
2360     DX_FLAG_doc=0
2361
2362 fi
2363
2364
2365 if test -n "$ac_tool_prefix"; then
2366   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
2367 set dummy ${ac_tool_prefix}perl; ac_word=$2
2368 echo "$as_me:$LINENO: checking for $ac_word" >&5
2369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2370 if test "${ac_cv_path_DX_PERL+set}" = set; then
2371   echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373   case $DX_PERL in
2374   [\\/]* | ?:[\\/]*)
2375   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
2376   ;;
2377   *)
2378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 for as_dir in $PATH
2380 do
2381   IFS=$as_save_IFS
2382   test -z "$as_dir" && as_dir=.
2383   for ac_exec_ext in '' $ac_executable_extensions; do
2384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2385     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387     break 2
2388   fi
2389 done
2390 done
2391
2392   ;;
2393 esac
2394 fi
2395 DX_PERL=$ac_cv_path_DX_PERL
2396
2397 if test -n "$DX_PERL"; then
2398   echo "$as_me:$LINENO: result: $DX_PERL" >&5
2399 echo "${ECHO_T}$DX_PERL" >&6
2400 else
2401   echo "$as_me:$LINENO: result: no" >&5
2402 echo "${ECHO_T}no" >&6
2403 fi
2404
2405 fi
2406 if test -z "$ac_cv_path_DX_PERL"; then
2407   ac_pt_DX_PERL=$DX_PERL
2408   # Extract the first word of "perl", so it can be a program name with args.
2409 set dummy perl; ac_word=$2
2410 echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2412 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then
2413   echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415   case $ac_pt_DX_PERL in
2416   [\\/]* | ?:[\\/]*)
2417   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
2418   ;;
2419   *)
2420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2422 do
2423   IFS=$as_save_IFS
2424   test -z "$as_dir" && as_dir=.
2425   for ac_exec_ext in '' $ac_executable_extensions; do
2426   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2427     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429     break 2
2430   fi
2431 done
2432 done
2433
2434   ;;
2435 esac
2436 fi
2437 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
2438
2439 if test -n "$ac_pt_DX_PERL"; then
2440   echo "$as_me:$LINENO: result: $ac_pt_DX_PERL" >&5
2441 echo "${ECHO_T}$ac_pt_DX_PERL" >&6
2442 else
2443   echo "$as_me:$LINENO: result: no" >&5
2444 echo "${ECHO_T}no" >&6
2445 fi
2446
2447   DX_PERL=$ac_pt_DX_PERL
2448 else
2449   DX_PERL="$ac_cv_path_DX_PERL"
2450 fi
2451
2452 if test "$DX_FLAG_doc$DX_PERL" = 1; then
2453     { echo "$as_me:$LINENO: WARNING: perl not found - will not generate any doxygen documentation" >&5
2454 echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
2455     DX_FLAG_doc=0
2456
2457 fi
2458
2459     :
2460 fi
2461 if test "$DX_FLAG_doc" = 1; then
2462
2463
2464 if :; then
2465   DX_COND_doc_TRUE=
2466   DX_COND_doc_FALSE='#'
2467 else
2468   DX_COND_doc_TRUE='#'
2469   DX_COND_doc_FALSE=
2470 fi
2471
2472     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
2473
2474     :
2475 else
2476
2477
2478 if false; then
2479   DX_COND_doc_TRUE=
2480   DX_COND_doc_FALSE='#'
2481 else
2482   DX_COND_doc_TRUE='#'
2483   DX_COND_doc_FALSE=
2484 fi
2485
2486
2487     :
2488 fi
2489
2490
2491 # Dot for graphics:
2492
2493
2494
2495     # Check whether --enable-doxygen-dot or --disable-doxygen-dot was given.
2496 if test "${enable_doxygen_dot+set}" = set; then
2497   enableval="$enable_doxygen_dot"
2498
2499 case "$enableval" in
2500 #(
2501 y|Y|yes|Yes|YES)
2502     DX_FLAG_dot=1
2503
2504
2505 test "$DX_FLAG_doc" = "1" \
2506 || { { echo "$as_me:$LINENO: error: doxygen-dot requires doxygen-dot" >&5
2507 echo "$as_me: error: doxygen-dot requires doxygen-dot" >&2;}
2508    { (exit 1); exit 1; }; }
2509
2510 ;; #(
2511 n|N|no|No|NO)
2512     DX_FLAG_dot=0
2513
2514 ;; #(
2515 *)
2516     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-dot" >&5
2517 echo "$as_me: error: invalid value '$enableval' given to doxygen-dot" >&2;}
2518    { (exit 1); exit 1; }; }
2519 ;;
2520 esac
2521
2522 else
2523
2524 DX_FLAG_dot=1
2525
2526
2527 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
2528
2529
2530
2531 fi;
2532 if test "$DX_FLAG_dot" = 1; then
2533
2534 if test -n "$ac_tool_prefix"; then
2535   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
2536 set dummy ${ac_tool_prefix}dot; ac_word=$2
2537 echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2539 if test "${ac_cv_path_DX_DOT+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   case $DX_DOT in
2543   [\\/]* | ?:[\\/]*)
2544   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
2545   ;;
2546   *)
2547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552   for ac_exec_ext in '' $ac_executable_extensions; do
2553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559 done
2560
2561   ;;
2562 esac
2563 fi
2564 DX_DOT=$ac_cv_path_DX_DOT
2565
2566 if test -n "$DX_DOT"; then
2567   echo "$as_me:$LINENO: result: $DX_DOT" >&5
2568 echo "${ECHO_T}$DX_DOT" >&6
2569 else
2570   echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2572 fi
2573
2574 fi
2575 if test -z "$ac_cv_path_DX_DOT"; then
2576   ac_pt_DX_DOT=$DX_DOT
2577   # Extract the first word of "dot", so it can be a program name with args.
2578 set dummy dot; ac_word=$2
2579 echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   case $ac_pt_DX_DOT in
2585   [\\/]* | ?:[\\/]*)
2586   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
2587   ;;
2588   *)
2589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592   IFS=$as_save_IFS
2593   test -z "$as_dir" && as_dir=.
2594   for ac_exec_ext in '' $ac_executable_extensions; do
2595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598     break 2
2599   fi
2600 done
2601 done
2602
2603   ;;
2604 esac
2605 fi
2606 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
2607
2608 if test -n "$ac_pt_DX_DOT"; then
2609   echo "$as_me:$LINENO: result: $ac_pt_DX_DOT" >&5
2610 echo "${ECHO_T}$ac_pt_DX_DOT" >&6
2611 else
2612   echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6
2614 fi
2615
2616   DX_DOT=$ac_pt_DX_DOT
2617 else
2618   DX_DOT="$ac_cv_path_DX_DOT"
2619 fi
2620
2621 if test "$DX_FLAG_dot$DX_DOT" = 1; then
2622     { echo "$as_me:$LINENO: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
2623 echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
2624     DX_FLAG_dot=0
2625
2626 fi
2627
2628     :
2629 fi
2630 if test "$DX_FLAG_dot" = 1; then
2631
2632
2633 if :; then
2634   DX_COND_dot_TRUE=
2635   DX_COND_dot_FALSE='#'
2636 else
2637   DX_COND_dot_TRUE='#'
2638   DX_COND_dot_FALSE=
2639 fi
2640
2641     DX_ENV="$DX_ENV HAVE_DOT='YES'"
2642
2643              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
2644
2645     :
2646 else
2647
2648
2649 if false; then
2650   DX_COND_dot_TRUE=
2651   DX_COND_dot_FALSE='#'
2652 else
2653   DX_COND_dot_TRUE='#'
2654   DX_COND_dot_FALSE=
2655 fi
2656
2657     DX_ENV="$DX_ENV HAVE_DOT='NO'"
2658
2659     :
2660 fi
2661
2662
2663 # Man pages generation:
2664
2665
2666
2667     # Check whether --enable-doxygen-man or --disable-doxygen-man was given.
2668 if test "${enable_doxygen_man+set}" = set; then
2669   enableval="$enable_doxygen_man"
2670
2671 case "$enableval" in
2672 #(
2673 y|Y|yes|Yes|YES)
2674     DX_FLAG_man=1
2675
2676
2677 test "$DX_FLAG_doc" = "1" \
2678 || { { echo "$as_me:$LINENO: error: doxygen-man requires doxygen-man" >&5
2679 echo "$as_me: error: doxygen-man requires doxygen-man" >&2;}
2680    { (exit 1); exit 1; }; }
2681
2682 ;; #(
2683 n|N|no|No|NO)
2684     DX_FLAG_man=0
2685
2686 ;; #(
2687 *)
2688     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-man" >&5
2689 echo "$as_me: error: invalid value '$enableval' given to doxygen-man" >&2;}
2690    { (exit 1); exit 1; }; }
2691 ;;
2692 esac
2693
2694 else
2695
2696 DX_FLAG_man=0
2697
2698
2699 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
2700
2701
2702
2703 fi;
2704 if test "$DX_FLAG_man" = 1; then
2705
2706     :
2707 fi
2708 if test "$DX_FLAG_man" = 1; then
2709
2710
2711 if :; then
2712   DX_COND_man_TRUE=
2713   DX_COND_man_FALSE='#'
2714 else
2715   DX_COND_man_TRUE='#'
2716   DX_COND_man_FALSE=
2717 fi
2718
2719     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
2720
2721     :
2722 else
2723
2724
2725 if false; then
2726   DX_COND_man_TRUE=
2727   DX_COND_man_FALSE='#'
2728 else
2729   DX_COND_man_TRUE='#'
2730   DX_COND_man_FALSE=
2731 fi
2732
2733     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
2734
2735     :
2736 fi
2737
2738
2739 # RTF file generation:
2740
2741
2742
2743     # Check whether --enable-doxygen-rtf or --disable-doxygen-rtf was given.
2744 if test "${enable_doxygen_rtf+set}" = set; then
2745   enableval="$enable_doxygen_rtf"
2746
2747 case "$enableval" in
2748 #(
2749 y|Y|yes|Yes|YES)
2750     DX_FLAG_rtf=1
2751
2752
2753 test "$DX_FLAG_doc" = "1" \
2754 || { { echo "$as_me:$LINENO: error: doxygen-rtf requires doxygen-rtf" >&5
2755 echo "$as_me: error: doxygen-rtf requires doxygen-rtf" >&2;}
2756    { (exit 1); exit 1; }; }
2757
2758 ;; #(
2759 n|N|no|No|NO)
2760     DX_FLAG_rtf=0
2761
2762 ;; #(
2763 *)
2764     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-rtf" >&5
2765 echo "$as_me: error: invalid value '$enableval' given to doxygen-rtf" >&2;}
2766    { (exit 1); exit 1; }; }
2767 ;;
2768 esac
2769
2770 else
2771
2772 DX_FLAG_rtf=0
2773
2774
2775 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
2776
2777
2778
2779 fi;
2780 if test "$DX_FLAG_rtf" = 1; then
2781
2782     :
2783 fi
2784 if test "$DX_FLAG_rtf" = 1; then
2785
2786
2787 if :; then
2788   DX_COND_rtf_TRUE=
2789   DX_COND_rtf_FALSE='#'
2790 else
2791   DX_COND_rtf_TRUE='#'
2792   DX_COND_rtf_FALSE=
2793 fi
2794
2795     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
2796
2797     :
2798 else
2799
2800
2801 if false; then
2802   DX_COND_rtf_TRUE=
2803   DX_COND_rtf_FALSE='#'
2804 else
2805   DX_COND_rtf_TRUE='#'
2806   DX_COND_rtf_FALSE=
2807 fi
2808
2809     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
2810
2811     :
2812 fi
2813
2814
2815 # XML file generation:
2816
2817
2818
2819     # Check whether --enable-doxygen-xml or --disable-doxygen-xml was given.
2820 if test "${enable_doxygen_xml+set}" = set; then
2821   enableval="$enable_doxygen_xml"
2822
2823 case "$enableval" in
2824 #(
2825 y|Y|yes|Yes|YES)
2826     DX_FLAG_xml=1
2827
2828
2829 test "$DX_FLAG_doc" = "1" \
2830 || { { echo "$as_me:$LINENO: error: doxygen-xml requires doxygen-xml" >&5
2831 echo "$as_me: error: doxygen-xml requires doxygen-xml" >&2;}
2832    { (exit 1); exit 1; }; }
2833
2834 ;; #(
2835 n|N|no|No|NO)
2836     DX_FLAG_xml=0
2837
2838 ;; #(
2839 *)
2840     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-xml" >&5
2841 echo "$as_me: error: invalid value '$enableval' given to doxygen-xml" >&2;}
2842    { (exit 1); exit 1; }; }
2843 ;;
2844 esac
2845
2846 else
2847
2848 DX_FLAG_xml=0
2849
2850
2851 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
2852
2853
2854
2855 fi;
2856 if test "$DX_FLAG_xml" = 1; then
2857
2858     :
2859 fi
2860 if test "$DX_FLAG_xml" = 1; then
2861
2862
2863 if :; then
2864   DX_COND_xml_TRUE=
2865   DX_COND_xml_FALSE='#'
2866 else
2867   DX_COND_xml_TRUE='#'
2868   DX_COND_xml_FALSE=
2869 fi
2870
2871     DX_ENV="$DX_ENV GENERATE_XML='YES'"
2872
2873     :
2874 else
2875
2876
2877 if false; then
2878   DX_COND_xml_TRUE=
2879   DX_COND_xml_FALSE='#'
2880 else
2881   DX_COND_xml_TRUE='#'
2882   DX_COND_xml_FALSE=
2883 fi
2884
2885     DX_ENV="$DX_ENV GENERATE_XML='NO'"
2886
2887     :
2888 fi
2889
2890
2891 # (Compressed) HTML help generation:
2892
2893
2894
2895     # Check whether --enable-doxygen-chm or --disable-doxygen-chm was given.
2896 if test "${enable_doxygen_chm+set}" = set; then
2897   enableval="$enable_doxygen_chm"
2898
2899 case "$enableval" in
2900 #(
2901 y|Y|yes|Yes|YES)
2902     DX_FLAG_chm=1
2903
2904
2905 test "$DX_FLAG_doc" = "1" \
2906 || { { echo "$as_me:$LINENO: error: doxygen-chm requires doxygen-chm" >&5
2907 echo "$as_me: error: doxygen-chm requires doxygen-chm" >&2;}
2908    { (exit 1); exit 1; }; }
2909
2910 ;; #(
2911 n|N|no|No|NO)
2912     DX_FLAG_chm=0
2913
2914 ;; #(
2915 *)
2916     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chm" >&5
2917 echo "$as_me: error: invalid value '$enableval' given to doxygen-chm" >&2;}
2918    { (exit 1); exit 1; }; }
2919 ;;
2920 esac
2921
2922 else
2923
2924 DX_FLAG_chm=0
2925
2926
2927 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
2928
2929
2930
2931 fi;
2932 if test "$DX_FLAG_chm" = 1; then
2933
2934 if test -n "$ac_tool_prefix"; then
2935   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
2936 set dummy ${ac_tool_prefix}hhc; ac_word=$2
2937 echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2939 if test "${ac_cv_path_DX_HHC+set}" = set; then
2940   echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942   case $DX_HHC in
2943   [\\/]* | ?:[\\/]*)
2944   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
2945   ;;
2946   *)
2947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950   IFS=$as_save_IFS
2951   test -z "$as_dir" && as_dir=.
2952   for ac_exec_ext in '' $ac_executable_extensions; do
2953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956     break 2
2957   fi
2958 done
2959 done
2960
2961   ;;
2962 esac
2963 fi
2964 DX_HHC=$ac_cv_path_DX_HHC
2965
2966 if test -n "$DX_HHC"; then
2967   echo "$as_me:$LINENO: result: $DX_HHC" >&5
2968 echo "${ECHO_T}$DX_HHC" >&6
2969 else
2970   echo "$as_me:$LINENO: result: no" >&5
2971 echo "${ECHO_T}no" >&6
2972 fi
2973
2974 fi
2975 if test -z "$ac_cv_path_DX_HHC"; then
2976   ac_pt_DX_HHC=$DX_HHC
2977   # Extract the first word of "hhc", so it can be a program name with args.
2978 set dummy hhc; ac_word=$2
2979 echo "$as_me:$LINENO: checking for $ac_word" >&5
2980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2981 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then
2982   echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984   case $ac_pt_DX_HHC in
2985   [\\/]* | ?:[\\/]*)
2986   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
2987   ;;
2988   *)
2989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992   IFS=$as_save_IFS
2993   test -z "$as_dir" && as_dir=.
2994   for ac_exec_ext in '' $ac_executable_extensions; do
2995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998     break 2
2999   fi
3000 done
3001 done
3002
3003   ;;
3004 esac
3005 fi
3006 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
3007
3008 if test -n "$ac_pt_DX_HHC"; then
3009   echo "$as_me:$LINENO: result: $ac_pt_DX_HHC" >&5
3010 echo "${ECHO_T}$ac_pt_DX_HHC" >&6
3011 else
3012   echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3014 fi
3015
3016   DX_HHC=$ac_pt_DX_HHC
3017 else
3018   DX_HHC="$ac_cv_path_DX_HHC"
3019 fi
3020
3021 if test "$DX_FLAG_chm$DX_HHC" = 1; then
3022     { echo "$as_me:$LINENO: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
3023 echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
3024     DX_FLAG_chm=0
3025
3026 fi
3027
3028     :
3029 fi
3030 if test "$DX_FLAG_chm" = 1; then
3031
3032
3033 if :; then
3034   DX_COND_chm_TRUE=
3035   DX_COND_chm_FALSE='#'
3036 else
3037   DX_COND_chm_TRUE='#'
3038   DX_COND_chm_FALSE=
3039 fi
3040
3041     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
3042
3043              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3044
3045              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
3046
3047     :
3048 else
3049
3050
3051 if false; then
3052   DX_COND_chm_TRUE=
3053   DX_COND_chm_FALSE='#'
3054 else
3055   DX_COND_chm_TRUE='#'
3056   DX_COND_chm_FALSE=
3057 fi
3058
3059     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
3060
3061     :
3062 fi
3063
3064
3065 # Seperate CHI file generation.
3066
3067
3068
3069     # Check whether --enable-doxygen-chi or --disable-doxygen-chi was given.
3070 if test "${enable_doxygen_chi+set}" = set; then
3071   enableval="$enable_doxygen_chi"
3072
3073 case "$enableval" in
3074 #(
3075 y|Y|yes|Yes|YES)
3076     DX_FLAG_chi=1
3077
3078
3079 test "$DX_FLAG_chm" = "1" \
3080 || { { echo "$as_me:$LINENO: error: doxygen-chi requires doxygen-chi" >&5
3081 echo "$as_me: error: doxygen-chi requires doxygen-chi" >&2;}
3082    { (exit 1); exit 1; }; }
3083
3084 ;; #(
3085 n|N|no|No|NO)
3086     DX_FLAG_chi=0
3087
3088 ;; #(
3089 *)
3090     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chi" >&5
3091 echo "$as_me: error: invalid value '$enableval' given to doxygen-chi" >&2;}
3092    { (exit 1); exit 1; }; }
3093 ;;
3094 esac
3095
3096 else
3097
3098 DX_FLAG_chi=0
3099
3100
3101 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
3102
3103
3104
3105 fi;
3106 if test "$DX_FLAG_chi" = 1; then
3107
3108     :
3109 fi
3110 if test "$DX_FLAG_chi" = 1; then
3111
3112
3113 if :; then
3114   DX_COND_chi_TRUE=
3115   DX_COND_chi_FALSE='#'
3116 else
3117   DX_COND_chi_TRUE='#'
3118   DX_COND_chi_FALSE=
3119 fi
3120
3121     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
3122
3123     :
3124 else
3125
3126
3127 if false; then
3128   DX_COND_chi_TRUE=
3129   DX_COND_chi_FALSE='#'
3130 else
3131   DX_COND_chi_TRUE='#'
3132   DX_COND_chi_FALSE=
3133 fi
3134
3135     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
3136
3137     :
3138 fi
3139
3140
3141 # Plain HTML pages generation:
3142
3143
3144
3145     # Check whether --enable-doxygen-html or --disable-doxygen-html was given.
3146 if test "${enable_doxygen_html+set}" = set; then
3147   enableval="$enable_doxygen_html"
3148
3149 case "$enableval" in
3150 #(
3151 y|Y|yes|Yes|YES)
3152     DX_FLAG_html=1
3153
3154
3155 test "$DX_FLAG_doc" = "1" \
3156 || { { echo "$as_me:$LINENO: error: doxygen-html requires doxygen-html" >&5
3157 echo "$as_me: error: doxygen-html requires doxygen-html" >&2;}
3158    { (exit 1); exit 1; }; }
3159
3160 test "$DX_FLAG_chm" = "0" \
3161 || { { echo "$as_me:$LINENO: error: doxygen-html contradicts doxygen-html" >&5
3162 echo "$as_me: error: doxygen-html contradicts doxygen-html" >&2;}
3163    { (exit 1); exit 1; }; }
3164
3165 ;; #(
3166 n|N|no|No|NO)
3167     DX_FLAG_html=0
3168
3169 ;; #(
3170 *)
3171     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-html" >&5
3172 echo "$as_me: error: invalid value '$enableval' given to doxygen-html" >&2;}
3173    { (exit 1); exit 1; }; }
3174 ;;
3175 esac
3176
3177 else
3178
3179 DX_FLAG_html=1
3180
3181
3182 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
3183
3184
3185 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
3186
3187
3188
3189 fi;
3190 if test "$DX_FLAG_html" = 1; then
3191
3192     :
3193 fi
3194 if test "$DX_FLAG_html" = 1; then
3195
3196
3197 if :; then
3198   DX_COND_html_TRUE=
3199   DX_COND_html_FALSE='#'
3200 else
3201   DX_COND_html_TRUE='#'
3202   DX_COND_html_FALSE=
3203 fi
3204
3205     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3206
3207     :
3208 else
3209
3210
3211 if false; then
3212   DX_COND_html_TRUE=
3213   DX_COND_html_FALSE='#'
3214 else
3215   DX_COND_html_TRUE='#'
3216   DX_COND_html_FALSE=
3217 fi
3218
3219     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
3220
3221     :
3222 fi
3223
3224
3225 # PostScript file generation:
3226
3227
3228
3229     # Check whether --enable-doxygen-ps or --disable-doxygen-ps was given.
3230 if test "${enable_doxygen_ps+set}" = set; then
3231   enableval="$enable_doxygen_ps"
3232
3233 case "$enableval" in
3234 #(
3235 y|Y|yes|Yes|YES)
3236     DX_FLAG_ps=1
3237
3238
3239 test "$DX_FLAG_doc" = "1" \
3240 || { { echo "$as_me:$LINENO: error: doxygen-ps requires doxygen-ps" >&5
3241 echo "$as_me: error: doxygen-ps requires doxygen-ps" >&2;}
3242    { (exit 1); exit 1; }; }
3243
3244 ;; #(
3245 n|N|no|No|NO)
3246     DX_FLAG_ps=0
3247
3248 ;; #(
3249 *)
3250     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-ps" >&5
3251 echo "$as_me: error: invalid value '$enableval' given to doxygen-ps" >&2;}
3252    { (exit 1); exit 1; }; }
3253 ;;
3254 esac
3255
3256 else
3257
3258 DX_FLAG_ps=0
3259
3260
3261 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
3262
3263
3264
3265 fi;
3266 if test "$DX_FLAG_ps" = 1; then
3267
3268 if test -n "$ac_tool_prefix"; then
3269   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
3270 set dummy ${ac_tool_prefix}latex; ac_word=$2
3271 echo "$as_me:$LINENO: checking for $ac_word" >&5
3272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3273 if test "${ac_cv_path_DX_LATEX+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   case $DX_LATEX in
3277   [\\/]* | ?:[\\/]*)
3278   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
3279   ;;
3280   *)
3281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284   IFS=$as_save_IFS
3285   test -z "$as_dir" && as_dir=.
3286   for ac_exec_ext in '' $ac_executable_extensions; do
3287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290     break 2
3291   fi
3292 done
3293 done
3294
3295   ;;
3296 esac
3297 fi
3298 DX_LATEX=$ac_cv_path_DX_LATEX
3299
3300 if test -n "$DX_LATEX"; then
3301   echo "$as_me:$LINENO: result: $DX_LATEX" >&5
3302 echo "${ECHO_T}$DX_LATEX" >&6
3303 else
3304   echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3306 fi
3307
3308 fi
3309 if test -z "$ac_cv_path_DX_LATEX"; then
3310   ac_pt_DX_LATEX=$DX_LATEX
3311   # Extract the first word of "latex", so it can be a program name with args.
3312 set dummy latex; ac_word=$2
3313 echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then
3316   echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318   case $ac_pt_DX_LATEX in
3319   [\\/]* | ?:[\\/]*)
3320   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
3321   ;;
3322   *)
3323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326   IFS=$as_save_IFS
3327   test -z "$as_dir" && as_dir=.
3328   for ac_exec_ext in '' $ac_executable_extensions; do
3329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332     break 2
3333   fi
3334 done
3335 done
3336
3337   ;;
3338 esac
3339 fi
3340 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
3341
3342 if test -n "$ac_pt_DX_LATEX"; then
3343   echo "$as_me:$LINENO: result: $ac_pt_DX_LATEX" >&5
3344 echo "${ECHO_T}$ac_pt_DX_LATEX" >&6
3345 else
3346   echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3348 fi
3349
3350   DX_LATEX=$ac_pt_DX_LATEX
3351 else
3352   DX_LATEX="$ac_cv_path_DX_LATEX"
3353 fi
3354
3355 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
3356     { echo "$as_me:$LINENO: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
3357 echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
3358     DX_FLAG_ps=0
3359
3360 fi
3361
3362
3363 if test -n "$ac_tool_prefix"; then
3364   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3365 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3366 echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3368 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3369   echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371   case $DX_MAKEINDEX in
3372   [\\/]* | ?:[\\/]*)
3373   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3374   ;;
3375   *)
3376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3378 do
3379   IFS=$as_save_IFS
3380   test -z "$as_dir" && as_dir=.
3381   for ac_exec_ext in '' $ac_executable_extensions; do
3382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385     break 2
3386   fi
3387 done
3388 done
3389
3390   ;;
3391 esac
3392 fi
3393 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3394
3395 if test -n "$DX_MAKEINDEX"; then
3396   echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3397 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3398 else
3399   echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6
3401 fi
3402
3403 fi
3404 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3405   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3406   # Extract the first word of "makeindex", so it can be a program name with args.
3407 set dummy makeindex; ac_word=$2
3408 echo "$as_me:$LINENO: checking for $ac_word" >&5
3409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3410 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413   case $ac_pt_DX_MAKEINDEX in
3414   [\\/]* | ?:[\\/]*)
3415   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3416   ;;
3417   *)
3418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423   for ac_exec_ext in '' $ac_executable_extensions; do
3424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427     break 2
3428   fi
3429 done
3430 done
3431
3432   ;;
3433 esac
3434 fi
3435 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3436
3437 if test -n "$ac_pt_DX_MAKEINDEX"; then
3438   echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3439 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3440 else
3441   echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443 fi
3444
3445   DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3446 else
3447   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3448 fi
3449
3450 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
3451     { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
3452 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
3453     DX_FLAG_ps=0
3454
3455 fi
3456
3457
3458 if test -n "$ac_tool_prefix"; then
3459   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}dvips; ac_word=$2
3461 echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_path_DX_DVIPS+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   case $DX_DVIPS in
3467   [\\/]* | ?:[\\/]*)
3468   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
3469   ;;
3470   *)
3471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474   IFS=$as_save_IFS
3475   test -z "$as_dir" && as_dir=.
3476   for ac_exec_ext in '' $ac_executable_extensions; do
3477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480     break 2
3481   fi
3482 done
3483 done
3484
3485   ;;
3486 esac
3487 fi
3488 DX_DVIPS=$ac_cv_path_DX_DVIPS
3489
3490 if test -n "$DX_DVIPS"; then
3491   echo "$as_me:$LINENO: result: $DX_DVIPS" >&5
3492 echo "${ECHO_T}$DX_DVIPS" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498 fi
3499 if test -z "$ac_cv_path_DX_DVIPS"; then
3500   ac_pt_DX_DVIPS=$DX_DVIPS
3501   # Extract the first word of "dvips", so it can be a program name with args.
3502 set dummy dvips; ac_word=$2
3503 echo "$as_me:$LINENO: checking for $ac_word" >&5
3504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3505 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then
3506   echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508   case $ac_pt_DX_DVIPS in
3509   [\\/]* | ?:[\\/]*)
3510   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
3511   ;;
3512   *)
3513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516   IFS=$as_save_IFS
3517   test -z "$as_dir" && as_dir=.
3518   for ac_exec_ext in '' $ac_executable_extensions; do
3519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3522     break 2
3523   fi
3524 done
3525 done
3526
3527   ;;
3528 esac
3529 fi
3530 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
3531
3532 if test -n "$ac_pt_DX_DVIPS"; then
3533   echo "$as_me:$LINENO: result: $ac_pt_DX_DVIPS" >&5
3534 echo "${ECHO_T}$ac_pt_DX_DVIPS" >&6
3535 else
3536   echo "$as_me:$LINENO: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3538 fi
3539
3540   DX_DVIPS=$ac_pt_DX_DVIPS
3541 else
3542   DX_DVIPS="$ac_cv_path_DX_DVIPS"
3543 fi
3544
3545 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
3546     { echo "$as_me:$LINENO: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
3547 echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
3548     DX_FLAG_ps=0
3549
3550 fi
3551
3552
3553 if test -n "$ac_tool_prefix"; then
3554   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3555 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3556 echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3559   echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561   case $DX_EGREP in
3562   [\\/]* | ?:[\\/]*)
3563   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3564   ;;
3565   *)
3566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569   IFS=$as_save_IFS
3570   test -z "$as_dir" && as_dir=.
3571   for ac_exec_ext in '' $ac_executable_extensions; do
3572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575     break 2
3576   fi
3577 done
3578 done
3579
3580   ;;
3581 esac
3582 fi
3583 DX_EGREP=$ac_cv_path_DX_EGREP
3584
3585 if test -n "$DX_EGREP"; then
3586   echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3587 echo "${ECHO_T}$DX_EGREP" >&6
3588 else
3589   echo "$as_me:$LINENO: result: no" >&5
3590 echo "${ECHO_T}no" >&6
3591 fi
3592
3593 fi
3594 if test -z "$ac_cv_path_DX_EGREP"; then
3595   ac_pt_DX_EGREP=$DX_EGREP
3596   # Extract the first word of "egrep", so it can be a program name with args.
3597 set dummy egrep; ac_word=$2
3598 echo "$as_me:$LINENO: checking for $ac_word" >&5
3599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3600 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3601   echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603   case $ac_pt_DX_EGREP in
3604   [\\/]* | ?:[\\/]*)
3605   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3606   ;;
3607   *)
3608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611   IFS=$as_save_IFS
3612   test -z "$as_dir" && as_dir=.
3613   for ac_exec_ext in '' $ac_executable_extensions; do
3614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3617     break 2
3618   fi
3619 done
3620 done
3621
3622   ;;
3623 esac
3624 fi
3625 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3626
3627 if test -n "$ac_pt_DX_EGREP"; then
3628   echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3629 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3630 else
3631   echo "$as_me:$LINENO: result: no" >&5
3632 echo "${ECHO_T}no" >&6
3633 fi
3634
3635   DX_EGREP=$ac_pt_DX_EGREP
3636 else
3637   DX_EGREP="$ac_cv_path_DX_EGREP"
3638 fi
3639
3640 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
3641     { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
3642 echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
3643     DX_FLAG_ps=0
3644
3645 fi
3646
3647     :
3648 fi
3649 if test "$DX_FLAG_ps" = 1; then
3650
3651
3652 if :; then
3653   DX_COND_ps_TRUE=
3654   DX_COND_ps_FALSE='#'
3655 else
3656   DX_COND_ps_TRUE='#'
3657   DX_COND_ps_FALSE=
3658 fi
3659
3660
3661     :
3662 else
3663
3664
3665 if false; then
3666   DX_COND_ps_TRUE=
3667   DX_COND_ps_FALSE='#'
3668 else
3669   DX_COND_ps_TRUE='#'
3670   DX_COND_ps_FALSE=
3671 fi
3672
3673
3674     :
3675 fi
3676
3677
3678 # PDF file generation:
3679
3680
3681
3682     # Check whether --enable-doxygen-pdf or --disable-doxygen-pdf was given.
3683 if test "${enable_doxygen_pdf+set}" = set; then
3684   enableval="$enable_doxygen_pdf"
3685
3686 case "$enableval" in
3687 #(
3688 y|Y|yes|Yes|YES)
3689     DX_FLAG_pdf=1
3690
3691
3692 test "$DX_FLAG_doc" = "1" \
3693 || { { echo "$as_me:$LINENO: error: doxygen-pdf requires doxygen-pdf" >&5
3694 echo "$as_me: error: doxygen-pdf requires doxygen-pdf" >&2;}
3695    { (exit 1); exit 1; }; }
3696
3697 ;; #(
3698 n|N|no|No|NO)
3699     DX_FLAG_pdf=0
3700
3701 ;; #(
3702 *)
3703     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-pdf" >&5
3704 echo "$as_me: error: invalid value '$enableval' given to doxygen-pdf" >&2;}
3705    { (exit 1); exit 1; }; }
3706 ;;
3707 esac
3708
3709 else
3710
3711 DX_FLAG_pdf=0
3712
3713
3714 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
3715
3716
3717
3718 fi;
3719 if test "$DX_FLAG_pdf" = 1; then
3720
3721 if test -n "$ac_tool_prefix"; then
3722   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
3723 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
3724 echo "$as_me:$LINENO: checking for $ac_word" >&5
3725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3726 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then
3727   echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729   case $DX_PDFLATEX in
3730   [\\/]* | ?:[\\/]*)
3731   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
3732   ;;
3733   *)
3734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737   IFS=$as_save_IFS
3738   test -z "$as_dir" && as_dir=.
3739   for ac_exec_ext in '' $ac_executable_extensions; do
3740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743     break 2
3744   fi
3745 done
3746 done
3747
3748   ;;
3749 esac
3750 fi
3751 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
3752
3753 if test -n "$DX_PDFLATEX"; then
3754   echo "$as_me:$LINENO: result: $DX_PDFLATEX" >&5
3755 echo "${ECHO_T}$DX_PDFLATEX" >&6
3756 else
3757   echo "$as_me:$LINENO: result: no" >&5
3758 echo "${ECHO_T}no" >&6
3759 fi
3760
3761 fi
3762 if test -z "$ac_cv_path_DX_PDFLATEX"; then
3763   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
3764   # Extract the first word of "pdflatex", so it can be a program name with args.
3765 set dummy pdflatex; ac_word=$2
3766 echo "$as_me:$LINENO: checking for $ac_word" >&5
3767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3768 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   case $ac_pt_DX_PDFLATEX in
3772   [\\/]* | ?:[\\/]*)
3773   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
3774   ;;
3775   *)
3776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3778 do
3779   IFS=$as_save_IFS
3780   test -z "$as_dir" && as_dir=.
3781   for ac_exec_ext in '' $ac_executable_extensions; do
3782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785     break 2
3786   fi
3787 done
3788 done
3789
3790   ;;
3791 esac
3792 fi
3793 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
3794
3795 if test -n "$ac_pt_DX_PDFLATEX"; then
3796   echo "$as_me:$LINENO: result: $ac_pt_DX_PDFLATEX" >&5
3797 echo "${ECHO_T}$ac_pt_DX_PDFLATEX" >&6
3798 else
3799   echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3801 fi
3802
3803   DX_PDFLATEX=$ac_pt_DX_PDFLATEX
3804 else
3805   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
3806 fi
3807
3808 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
3809     { echo "$as_me:$LINENO: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
3810 echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
3811     DX_FLAG_pdf=0
3812
3813 fi
3814
3815
3816 if test -n "$ac_tool_prefix"; then
3817   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3818 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3819 echo "$as_me:$LINENO: checking for $ac_word" >&5
3820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3821 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3822   echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824   case $DX_MAKEINDEX in
3825   [\\/]* | ?:[\\/]*)
3826   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3827   ;;
3828   *)
3829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3831 do
3832   IFS=$as_save_IFS
3833   test -z "$as_dir" && as_dir=.
3834   for ac_exec_ext in '' $ac_executable_extensions; do
3835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3836     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3838     break 2
3839   fi
3840 done
3841 done
3842
3843   ;;
3844 esac
3845 fi
3846 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3847
3848 if test -n "$DX_MAKEINDEX"; then
3849   echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3850 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3851 else
3852   echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3854 fi
3855
3856 fi
3857 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3858   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3859   # Extract the first word of "makeindex", so it can be a program name with args.
3860 set dummy makeindex; ac_word=$2
3861 echo "$as_me:$LINENO: checking for $ac_word" >&5
3862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3863 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3864   echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866   case $ac_pt_DX_MAKEINDEX in
3867   [\\/]* | ?:[\\/]*)
3868   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3869   ;;
3870   *)
3871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874   IFS=$as_save_IFS
3875   test -z "$as_dir" && as_dir=.
3876   for ac_exec_ext in '' $ac_executable_extensions; do
3877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880     break 2
3881   fi
3882 done
3883 done
3884
3885   ;;
3886 esac
3887 fi
3888 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3889
3890 if test -n "$ac_pt_DX_MAKEINDEX"; then
3891   echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3892 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3893 else
3894   echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3896 fi
3897
3898   DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3899 else
3900   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3901 fi
3902
3903 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
3904     { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
3905 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
3906     DX_FLAG_pdf=0
3907
3908 fi
3909
3910
3911 if test -n "$ac_tool_prefix"; then
3912   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3913 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3914 echo "$as_me:$LINENO: checking for $ac_word" >&5
3915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3916 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   case $DX_EGREP in
3920   [\\/]* | ?:[\\/]*)
3921   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3922   ;;
3923   *)
3924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 for as_dir in $PATH
3926 do
3927   IFS=$as_save_IFS
3928   test -z "$as_dir" && as_dir=.
3929   for ac_exec_ext in '' $ac_executable_extensions; do
3930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3931     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3933     break 2
3934   fi
3935 done
3936 done
3937
3938   ;;
3939 esac
3940 fi
3941 DX_EGREP=$ac_cv_path_DX_EGREP
3942
3943 if test -n "$DX_EGREP"; then
3944   echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3945 echo "${ECHO_T}$DX_EGREP" >&6
3946 else
3947   echo "$as_me:$LINENO: result: no" >&5
3948 echo "${ECHO_T}no" >&6
3949 fi
3950
3951 fi
3952 if test -z "$ac_cv_path_DX_EGREP"; then
3953   ac_pt_DX_EGREP=$DX_EGREP
3954   # Extract the first word of "egrep", so it can be a program name with args.
3955 set dummy egrep; ac_word=$2
3956 echo "$as_me:$LINENO: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   case $ac_pt_DX_EGREP in
3962   [\\/]* | ?:[\\/]*)
3963   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3964   ;;
3965   *)
3966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH
3968 do
3969   IFS=$as_save_IFS
3970   test -z "$as_dir" && as_dir=.
3971   for ac_exec_ext in '' $ac_executable_extensions; do
3972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975     break 2
3976   fi
3977 done
3978 done
3979
3980   ;;
3981 esac
3982 fi
3983 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3984
3985 if test -n "$ac_pt_DX_EGREP"; then
3986   echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3987 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3988 else
3989   echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3991 fi
3992
3993   DX_EGREP=$ac_pt_DX_EGREP
3994 else
3995   DX_EGREP="$ac_cv_path_DX_EGREP"
3996 fi
3997
3998 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
3999     { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
4000 echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
4001     DX_FLAG_pdf=0
4002
4003 fi
4004
4005     :
4006 fi
4007 if test "$DX_FLAG_pdf" = 1; then
4008
4009
4010 if :; then
4011   DX_COND_pdf_TRUE=
4012   DX_COND_pdf_FALSE='#'
4013 else
4014   DX_COND_pdf_TRUE='#'
4015   DX_COND_pdf_FALSE=
4016 fi
4017
4018
4019     :
4020 else
4021
4022
4023 if false; then
4024   DX_COND_pdf_TRUE=
4025   DX_COND_pdf_FALSE='#'
4026 else
4027   DX_COND_pdf_TRUE='#'
4028   DX_COND_pdf_FALSE=
4029 fi
4030
4031
4032     :
4033 fi
4034
4035
4036 # LaTeX generation for PS and/or PDF:
4037 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
4038
4039
4040 if :; then
4041   DX_COND_latex_TRUE=
4042   DX_COND_latex_FALSE='#'
4043 else
4044   DX_COND_latex_TRUE='#'
4045   DX_COND_latex_FALSE=
4046 fi
4047
4048     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
4049
4050 else
4051
4052
4053 if false; then
4054   DX_COND_latex_TRUE=
4055   DX_COND_latex_FALSE='#'
4056 else
4057   DX_COND_latex_TRUE='#'
4058   DX_COND_latex_FALSE=
4059 fi
4060
4061     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
4062
4063 fi
4064
4065 # Paper size for PS and/or PDF:
4066
4067 case "$DOXYGEN_PAPER_SIZE" in
4068 #(
4069 "")
4070     DOXYGEN_PAPER_SIZE=""
4071
4072 ;; #(
4073 a4wide|a4|letter|legal|executive)
4074     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
4075
4076 ;; #(
4077 *)
4078     { { echo "$as_me:$LINENO: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&5
4079 echo "$as_me: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&2;}
4080    { (exit 1); exit 1; }; }
4081 ;;
4082 esac
4083
4084 #For debugging:
4085 #echo DX_FLAG_doc=$DX_FLAG_doc
4086 #echo DX_FLAG_dot=$DX_FLAG_dot
4087 #echo DX_FLAG_man=$DX_FLAG_man
4088 #echo DX_FLAG_html=$DX_FLAG_html
4089 #echo DX_FLAG_chm=$DX_FLAG_chm
4090 #echo DX_FLAG_chi=$DX_FLAG_chi
4091 #echo DX_FLAG_rtf=$DX_FLAG_rtf
4092 #echo DX_FLAG_xml=$DX_FLAG_xml
4093 #echo DX_FLAG_pdf=$DX_FLAG_pdf
4094 #echo DX_FLAG_ps=$DX_FLAG_ps
4095 #echo DX_ENV=$DX_ENV
4096
4097 DX_INCLUDE=
4098
4099 # Check whether --enable-debug or --disable-debug was given.
4100 if test "${enable_debug+set}" = set; then
4101   enableval="$enable_debug"
4102   enable_debug=$enableval
4103 else
4104   enable_debug=no
4105 fi;
4106
4107 if test "$enable_debug" = "yes" ; then
4108     GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
4109     GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
4110 else
4111     GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
4112     GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
4113 fi
4114
4115 ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120 if test -n "$ac_tool_prefix"; then
4121   for ac_prog in gcc gcc3 cc
4122   do
4123     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4125 echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4127 if test "${ac_cv_prog_CC+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   if test -n "$CC"; then
4131   ac_cv_prog_CC="$CC" # Let the user override the test.
4132 else
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4135 do
4136   IFS=$as_save_IFS
4137   test -z "$as_dir" && as_dir=.
4138   for ac_exec_ext in '' $ac_executable_extensions; do
4139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142     break 2
4143   fi
4144 done
4145 done
4146
4147 fi
4148 fi
4149 CC=$ac_cv_prog_CC
4150 if test -n "$CC"; then
4151   echo "$as_me:$LINENO: result: $CC" >&5
4152 echo "${ECHO_T}$CC" >&6
4153 else
4154   echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6
4156 fi
4157
4158     test -n "$CC" && break
4159   done
4160 fi
4161 if test -z "$CC"; then
4162   ac_ct_CC=$CC
4163   for ac_prog in gcc gcc3 cc
4164 do
4165   # Extract the first word of "$ac_prog", so it can be a program name with args.
4166 set dummy $ac_prog; ac_word=$2
4167 echo "$as_me:$LINENO: checking for $ac_word" >&5
4168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172   if test -n "$ac_ct_CC"; then
4173   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178   IFS=$as_save_IFS
4179   test -z "$as_dir" && as_dir=.
4180   for ac_exec_ext in '' $ac_executable_extensions; do
4181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182     ac_cv_prog_ac_ct_CC="$ac_prog"
4183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184     break 2
4185   fi
4186 done
4187 done
4188
4189 fi
4190 fi
4191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4192 if test -n "$ac_ct_CC"; then
4193   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4194 echo "${ECHO_T}$ac_ct_CC" >&6
4195 else
4196   echo "$as_me:$LINENO: result: no" >&5
4197 echo "${ECHO_T}no" >&6
4198 fi
4199
4200   test -n "$ac_ct_CC" && break
4201 done
4202
4203   CC=$ac_ct_CC
4204 fi
4205
4206
4207 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4208 See \`config.log' for more details." >&5
4209 echo "$as_me: error: no acceptable C compiler found in \$PATH
4210 See \`config.log' for more details." >&2;}
4211    { (exit 1); exit 1; }; }
4212
4213 # Provide some information about the compiler.
4214 echo "$as_me:$LINENO:" \
4215      "checking for C compiler version" >&5
4216 ac_compiler=`set X $ac_compile; echo $2`
4217 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4218   (eval $ac_compiler --version </dev/null >&5) 2>&5
4219   ac_status=$?
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); }
4222 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4223   (eval $ac_compiler -v </dev/null >&5) 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); }
4227 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4228   (eval $ac_compiler -V </dev/null >&5) 2>&5
4229   ac_status=$?
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); }
4232
4233 cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h.  */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h.  */
4239
4240 int
4241 main ()
4242 {
4243
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 ac_clean_files_save=$ac_clean_files
4249 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4250 # Try to create an executable without -o first, disregard a.out.
4251 # It will help us diagnose broken compilers, and finding out an intuition
4252 # of exeext.
4253 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4254 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4255 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4256 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4257   (eval $ac_link_default) 2>&5
4258   ac_status=$?
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); }; then
4261   # Find the output, starting from the most likely.  This scheme is
4262 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4263 # resort.
4264
4265 # Be careful to initialize this variable, since it used to be cached.
4266 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4267 ac_cv_exeext=
4268 # b.out is created by i960 compilers.
4269 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4270 do
4271   test -f "$ac_file" || continue
4272   case $ac_file in
4273     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4274         ;;
4275     conftest.$ac_ext )
4276         # This is the source file.
4277         ;;
4278     [ab].out )
4279         # We found the default executable, but exeext='' is most
4280         # certainly right.
4281         break;;
4282     *.* )
4283         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4284         # FIXME: I believe we export ac_cv_exeext for Libtool,
4285         # but it would be cool to find out if it's true.  Does anybody
4286         # maintain Libtool? --akim.
4287         export ac_cv_exeext
4288         break;;
4289     * )
4290         break;;
4291   esac
4292 done
4293 else
4294   echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4296
4297 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4298 See \`config.log' for more details." >&5
4299 echo "$as_me: error: C compiler cannot create executables
4300 See \`config.log' for more details." >&2;}
4301    { (exit 77); exit 77; }; }
4302 fi
4303
4304 ac_exeext=$ac_cv_exeext
4305 echo "$as_me:$LINENO: result: $ac_file" >&5
4306 echo "${ECHO_T}$ac_file" >&6
4307
4308 # Check the compiler produces executables we can run.  If not, either
4309 # the compiler is broken, or we cross compile.
4310 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4311 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4312 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4313 # If not cross compiling, check that we can run a simple program.
4314 if test "$cross_compiling" != yes; then
4315   if { ac_try='./$ac_file'
4316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317   (eval $ac_try) 2>&5
4318   ac_status=$?
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); }; }; then
4321     cross_compiling=no
4322   else
4323     if test "$cross_compiling" = maybe; then
4324         cross_compiling=yes
4325     else
4326         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4327 If you meant to cross compile, use \`--host'.
4328 See \`config.log' for more details." >&5
4329 echo "$as_me: error: cannot run C compiled programs.
4330 If you meant to cross compile, use \`--host'.
4331 See \`config.log' for more details." >&2;}
4332    { (exit 1); exit 1; }; }
4333     fi
4334   fi
4335 fi
4336 echo "$as_me:$LINENO: result: yes" >&5
4337 echo "${ECHO_T}yes" >&6
4338
4339 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4340 ac_clean_files=$ac_clean_files_save
4341 # Check the compiler produces executables we can run.  If not, either
4342 # the compiler is broken, or we cross compile.
4343 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4344 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4345 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4346 echo "${ECHO_T}$cross_compiling" >&6
4347
4348 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4349 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4351   (eval $ac_link) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; then
4355   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4356 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4357 # work properly (i.e., refer to `conftest.exe'), while it won't with
4358 # `rm'.
4359 for ac_file in conftest.exe conftest conftest.*; do
4360   test -f "$ac_file" || continue
4361   case $ac_file in
4362     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4363     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4364           export ac_cv_exeext
4365           break;;
4366     * ) break;;
4367   esac
4368 done
4369 else
4370   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4371 See \`config.log' for more details." >&5
4372 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4373 See \`config.log' for more details." >&2;}
4374    { (exit 1); exit 1; }; }
4375 fi
4376
4377 rm -f conftest$ac_cv_exeext
4378 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4379 echo "${ECHO_T}$ac_cv_exeext" >&6
4380
4381 rm -f conftest.$ac_ext
4382 EXEEXT=$ac_cv_exeext
4383 ac_exeext=$EXEEXT
4384 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4385 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4386 if test "${ac_cv_objext+set}" = set; then
4387   echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389   cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h.  */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h.  */
4395
4396 int
4397 main ()
4398 {
4399
4400   ;
4401   return 0;
4402 }
4403 _ACEOF
4404 rm -f conftest.o conftest.obj
4405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406   (eval $ac_compile) 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; then
4410   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4411   case $ac_file in
4412     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4413     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4414        break;;
4415   esac
4416 done
4417 else
4418   echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4420
4421 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4422 See \`config.log' for more details." >&5
4423 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4424 See \`config.log' for more details." >&2;}
4425    { (exit 1); exit 1; }; }
4426 fi
4427
4428 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4429 fi
4430 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4431 echo "${ECHO_T}$ac_cv_objext" >&6
4432 OBJEXT=$ac_cv_objext
4433 ac_objext=$OBJEXT
4434 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4435 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4436 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h.  */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h.  */
4445
4446 int
4447 main ()
4448 {
4449 #ifndef __GNUC__
4450        choke me
4451 #endif
4452
4453   ;
4454   return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest.$ac_objext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4459   (eval $ac_compile) 2>conftest.er1
4460   ac_status=$?
4461   grep -v '^ *+' conftest.er1 >conftest.err
4462   rm -f conftest.er1
4463   cat conftest.err >&5
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); } &&
4466          { ac_try='test -z "$ac_c_werror_flag"
4467                          || test ! -s conftest.err'
4468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469   (eval $ac_try) 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; } &&
4473          { ac_try='test -s conftest.$ac_objext'
4474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475   (eval $ac_try) 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; }; then
4479   ac_compiler_gnu=yes
4480 else
4481   echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 ac_compiler_gnu=no
4485 fi
4486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4488
4489 fi
4490 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4491 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4492 GCC=`test $ac_compiler_gnu = yes && echo yes`
4493 ac_test_CFLAGS=${CFLAGS+set}
4494 ac_save_CFLAGS=$CFLAGS
4495 CFLAGS="-g"
4496 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4497 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4498 if test "${ac_cv_prog_cc_g+set}" = set; then
4499   echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501   cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507
4508 int
4509 main ()
4510 {
4511
4512   ;
4513   return 0;
4514 }
4515 _ACEOF
4516 rm -f conftest.$ac_objext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518   (eval $ac_compile) 2>conftest.er1
4519   ac_status=$?
4520   grep -v '^ *+' conftest.er1 >conftest.err
4521   rm -f conftest.er1
4522   cat conftest.err >&5
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); } &&
4525          { ac_try='test -z "$ac_c_werror_flag"
4526                          || test ! -s conftest.err'
4527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528   (eval $ac_try) 2>&5
4529   ac_status=$?
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); }; } &&
4532          { ac_try='test -s conftest.$ac_objext'
4533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534   (eval $ac_try) 2>&5
4535   ac_status=$?
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); }; }; then
4538   ac_cv_prog_cc_g=yes
4539 else
4540   echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4542
4543 ac_cv_prog_cc_g=no
4544 fi
4545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4546 fi
4547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4548 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4549 if test "$ac_test_CFLAGS" = set; then
4550   CFLAGS=$ac_save_CFLAGS
4551 elif test $ac_cv_prog_cc_g = yes; then
4552   if test "$GCC" = yes; then
4553     CFLAGS="-g -O2"
4554   else
4555     CFLAGS="-g"
4556   fi
4557 else
4558   if test "$GCC" = yes; then
4559     CFLAGS="-O2"
4560   else
4561     CFLAGS=
4562   fi
4563 fi
4564 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4565 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4566 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4567   echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569   ac_cv_prog_cc_stdc=no
4570 ac_save_CC=$CC
4571 cat >conftest.$ac_ext <<_ACEOF
4572 /* confdefs.h.  */
4573 _ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h.  */
4577 #include <stdarg.h>
4578 #include <stdio.h>
4579 #include <sys/types.h>
4580 #include <sys/stat.h>
4581 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4582 struct buf { int x; };
4583 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4584 static char *e (p, i)
4585      char **p;
4586      int i;
4587 {
4588   return p[i];
4589 }
4590 static char *f (char * (*g) (char **, int), char **p, ...)
4591 {
4592   char *s;
4593   va_list v;
4594   va_start (v,p);
4595   s = g (p, va_arg (v,int));
4596   va_end (v);
4597   return s;
4598 }
4599
4600 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4601    function prototypes and stuff, but not '\xHH' hex character constants.
4602    These don't provoke an error unfortunately, instead are silently treated
4603    as 'x'.  The following induces an error, until -std1 is added to get
4604    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4605    array size at least.  It's necessary to write '\x00'==0 to get something
4606    that's true only with -std1.  */
4607 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4608
4609 int test (int i, double x);
4610 struct s1 {int (*f) (int a);};
4611 struct s2 {int (*f) (double a);};
4612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4613 int argc;
4614 char **argv;
4615 int
4616 main ()
4617 {
4618 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4619   ;
4620   return 0;
4621 }
4622 _ACEOF
4623 # Don't try gcc -ansi; that turns off useful extensions and
4624 # breaks some systems' header files.
4625 # AIX                   -qlanglvl=ansi
4626 # Ultrix and OSF/1      -std1
4627 # HP-UX 10.20 and later -Ae
4628 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4629 # SVR4                  -Xc -D__EXTENSIONS__
4630 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4631 do
4632   CC="$ac_save_CC $ac_arg"
4633   rm -f conftest.$ac_objext
4634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4635   (eval $ac_compile) 2>conftest.er1
4636   ac_status=$?
4637   grep -v '^ *+' conftest.er1 >conftest.err
4638   rm -f conftest.er1
4639   cat conftest.err >&5
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); } &&
4642          { ac_try='test -z "$ac_c_werror_flag"
4643                          || test ! -s conftest.err'
4644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645   (eval $ac_try) 2>&5
4646   ac_status=$?
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); }; } &&
4649          { ac_try='test -s conftest.$ac_objext'
4650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651   (eval $ac_try) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); }; }; then
4655   ac_cv_prog_cc_stdc=$ac_arg
4656 break
4657 else
4658   echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 fi
4662 rm -f conftest.err conftest.$ac_objext
4663 done
4664 rm -f conftest.$ac_ext conftest.$ac_objext
4665 CC=$ac_save_CC
4666
4667 fi
4668
4669 case "x$ac_cv_prog_cc_stdc" in
4670   x|xno)
4671     echo "$as_me:$LINENO: result: none needed" >&5
4672 echo "${ECHO_T}none needed" >&6 ;;
4673   *)
4674     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4675 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4676     CC="$CC $ac_cv_prog_cc_stdc" ;;
4677 esac
4678
4679 # Some people use a C++ compiler to compile C.  Since we use `exit',
4680 # in C++ we need to declare it.  In case someone uses the same compiler
4681 # for both compiling C and C++ we need to have the C++ compiler decide
4682 # the declaration of exit, since it's the most demanding environment.
4683 cat >conftest.$ac_ext <<_ACEOF
4684 #ifndef __cplusplus
4685   choke me
4686 #endif
4687 _ACEOF
4688 rm -f conftest.$ac_objext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690   (eval $ac_compile) 2>conftest.er1
4691   ac_status=$?
4692   grep -v '^ *+' conftest.er1 >conftest.err
4693   rm -f conftest.er1
4694   cat conftest.err >&5
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); } &&
4697          { ac_try='test -z "$ac_c_werror_flag"
4698                          || test ! -s conftest.err'
4699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700   (eval $ac_try) 2>&5
4701   ac_status=$?
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); }; } &&
4704          { ac_try='test -s conftest.$ac_objext'
4705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706   (eval $ac_try) 2>&5
4707   ac_status=$?
4708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709   (exit $ac_status); }; }; then
4710   for ac_declaration in \
4711    '' \
4712    'extern "C" void std::exit (int) throw (); using std::exit;' \
4713    'extern "C" void std::exit (int); using std::exit;' \
4714    'extern "C" void exit (int) throw ();' \
4715    'extern "C" void exit (int);' \
4716    'void exit (int);'
4717 do
4718   cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h.  */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h.  */
4724 $ac_declaration
4725 #include <stdlib.h>
4726 int
4727 main ()
4728 {
4729 exit (42);
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest.$ac_objext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4736   (eval $ac_compile) 2>conftest.er1
4737   ac_status=$?
4738   grep -v '^ *+' conftest.er1 >conftest.err
4739   rm -f conftest.er1
4740   cat conftest.err >&5
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); } &&
4743          { ac_try='test -z "$ac_c_werror_flag"
4744                          || test ! -s conftest.err'
4745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746   (eval $ac_try) 2>&5
4747   ac_status=$?
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); }; } &&
4750          { ac_try='test -s conftest.$ac_objext'
4751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752   (eval $ac_try) 2>&5
4753   ac_status=$?
4754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); }; }; then
4756   :
4757 else
4758   echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4760
4761 continue
4762 fi
4763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4764   cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h.  */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h.  */
4770 $ac_declaration
4771 int
4772 main ()
4773 {
4774 exit (42);
4775   ;
4776   return 0;
4777 }
4778 _ACEOF
4779 rm -f conftest.$ac_objext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4781   (eval $ac_compile) 2>conftest.er1
4782   ac_status=$?
4783   grep -v '^ *+' conftest.er1 >conftest.err
4784   rm -f conftest.er1
4785   cat conftest.err >&5
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); } &&
4788          { ac_try='test -z "$ac_c_werror_flag"
4789                          || test ! -s conftest.err'
4790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791   (eval $ac_try) 2>&5
4792   ac_status=$?
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); }; } &&
4795          { ac_try='test -s conftest.$ac_objext'
4796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797   (eval $ac_try) 2>&5
4798   ac_status=$?
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); }; }; then
4801   break
4802 else
4803   echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4805
4806 fi
4807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4808 done
4809 rm -f conftest*
4810 if test -n "$ac_declaration"; then
4811   echo '#ifdef __cplusplus' >>confdefs.h
4812   echo $ac_declaration      >>confdefs.h
4813   echo '#endif'             >>confdefs.h
4814 fi
4815
4816 else
4817   echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4819
4820 fi
4821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4822 ac_ext=c
4823 ac_cpp='$CPP $CPPFLAGS'
4824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4827 DEPDIR="${am__leading_dot}deps"
4828
4829           ac_config_commands="$ac_config_commands depfiles"
4830
4831
4832 am_make=${MAKE-make}
4833 cat > confinc << 'END'
4834 am__doit:
4835         @echo done
4836 .PHONY: am__doit
4837 END
4838 # If we don't find an include directive, just comment out the code.
4839 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4840 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4841 am__include="#"
4842 am__quote=
4843 _am_result=none
4844 # First try GNU make style include.
4845 echo "include confinc" > confmf
4846 # We grep out `Entering directory' and `Leaving directory'
4847 # messages which can occur if `w' ends up in MAKEFLAGS.
4848 # In particular we don't look at `^make:' because GNU make might
4849 # be invoked under some other name (usually "gmake"), in which
4850 # case it prints its new name instead of `make'.
4851 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4852    am__include=include
4853    am__quote=
4854    _am_result=GNU
4855 fi
4856 # Now try BSD make style include.
4857 if test "$am__include" = "#"; then
4858    echo '.include "confinc"' > confmf
4859    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4860       am__include=.include
4861       am__quote="\""
4862       _am_result=BSD
4863    fi
4864 fi
4865
4866
4867 echo "$as_me:$LINENO: result: $_am_result" >&5
4868 echo "${ECHO_T}$_am_result" >&6
4869 rm -f confinc confmf
4870
4871 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4872 if test "${enable_dependency_tracking+set}" = set; then
4873   enableval="$enable_dependency_tracking"
4874
4875 fi;
4876 if test "x$enable_dependency_tracking" != xno; then
4877   am_depcomp="$ac_aux_dir/depcomp"
4878   AMDEPBACKSLASH='\'
4879 fi
4880
4881
4882 if test "x$enable_dependency_tracking" != xno; then
4883   AMDEP_TRUE=
4884   AMDEP_FALSE='#'
4885 else
4886   AMDEP_TRUE='#'
4887   AMDEP_FALSE=
4888 fi
4889
4890
4891
4892
4893 depcc="$CC"   am_compiler_list=
4894
4895 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4896 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4897 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4901   # We make a subdir and do the tests there.  Otherwise we can end up
4902   # making bogus files that we don't know about and never remove.  For
4903   # instance it was reported that on HP-UX the gcc test will end up
4904   # making a dummy file named `D' -- because `-MD' means `put the output
4905   # in D'.
4906   mkdir conftest.dir
4907   # Copy depcomp to subdir because otherwise we won't find it if we're
4908   # using a relative directory.
4909   cp "$am_depcomp" conftest.dir
4910   cd conftest.dir
4911   # We will build objects and dependencies in a subdirectory because
4912   # it helps to detect inapplicable dependency modes.  For instance
4913   # both Tru64's cc and ICC support -MD to output dependencies as a
4914   # side effect of compilation, but ICC will put the dependencies in
4915   # the current directory while Tru64 will put them in the object
4916   # directory.
4917   mkdir sub
4918
4919   am_cv_CC_dependencies_compiler_type=none
4920   if test "$am_compiler_list" = ""; then
4921      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4922   fi
4923   for depmode in $am_compiler_list; do
4924     # Setup a source with many dependencies, because some compilers
4925     # like to wrap large dependency lists on column 80 (with \), and
4926     # we should not choose a depcomp mode which is confused by this.
4927     #
4928     # We need to recreate these files for each test, as the compiler may
4929     # overwrite some of them when testing with obscure command lines.
4930     # This happens at least with the AIX C compiler.
4931     : > sub/conftest.c
4932     for i in 1 2 3 4 5 6; do
4933       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4934       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4935       # Solaris 8's {/usr,}/bin/sh.
4936       touch sub/conftst$i.h
4937     done
4938     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4939
4940     case $depmode in
4941     nosideeffect)
4942       # after this tag, mechanisms are not by side-effect, so they'll
4943       # only be used when explicitly requested
4944       if test "x$enable_dependency_tracking" = xyes; then
4945         continue
4946       else
4947         break
4948       fi
4949       ;;
4950     none) break ;;
4951     esac
4952     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4953     # mode.  It turns out that the SunPro C++ compiler does not properly
4954     # handle `-M -o', and we need to detect this.
4955     if depmode=$depmode \
4956        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4957        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4958        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4959          >/dev/null 2>conftest.err &&
4960        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4961        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4962        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4963       # icc doesn't choke on unknown options, it will just issue warnings
4964       # or remarks (even with -Werror).  So we grep stderr for any message
4965       # that says an option was ignored or not supported.
4966       # When given -MP, icc 7.0 and 7.1 complain thusly:
4967       #   icc: Command line warning: ignoring option '-M'; no argument required
4968       # The diagnosis changed in icc 8.0:
4969       #   icc: Command line remark: option '-MP' not supported
4970       if (grep 'ignoring option' conftest.err ||
4971           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4972         am_cv_CC_dependencies_compiler_type=$depmode
4973         break
4974       fi
4975     fi
4976   done
4977
4978   cd ..
4979   rm -rf conftest.dir
4980 else
4981   am_cv_CC_dependencies_compiler_type=none
4982 fi
4983
4984 fi
4985 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4986 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4987 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4988
4989
4990
4991 if
4992   test "x$enable_dependency_tracking" != xno \
4993   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4994   am__fastdepCC_TRUE=
4995   am__fastdepCC_FALSE='#'
4996 else
4997   am__fastdepCC_TRUE='#'
4998   am__fastdepCC_FALSE=
4999 fi
5000
5001
5002 ac_ext=cc
5003 ac_cpp='$CXXCPP $CPPFLAGS'
5004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5007 if test -n "$ac_tool_prefix"; then
5008   for ac_prog in $CCC g++ g++3 c++ CC
5009   do
5010     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5012 echo "$as_me:$LINENO: checking for $ac_word" >&5
5013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5014 if test "${ac_cv_prog_CXX+set}" = set; then
5015   echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017   if test -n "$CXX"; then
5018   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5019 else
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5022 do
5023   IFS=$as_save_IFS
5024   test -z "$as_dir" && as_dir=.
5025   for ac_exec_ext in '' $ac_executable_extensions; do
5026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029     break 2
5030   fi
5031 done
5032 done
5033
5034 fi
5035 fi
5036 CXX=$ac_cv_prog_CXX
5037 if test -n "$CXX"; then
5038   echo "$as_me:$LINENO: result: $CXX" >&5
5039 echo "${ECHO_T}$CXX" >&6
5040 else
5041   echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6
5043 fi
5044
5045     test -n "$CXX" && break
5046   done
5047 fi
5048 if test -z "$CXX"; then
5049   ac_ct_CXX=$CXX
5050   for ac_prog in $CCC g++ g++3 c++ CC
5051 do
5052   # Extract the first word of "$ac_prog", so it can be a program name with args.
5053 set dummy $ac_prog; ac_word=$2
5054 echo "$as_me:$LINENO: checking for $ac_word" >&5
5055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5056 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5057   echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059   if test -n "$ac_ct_CXX"; then
5060   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5064 do
5065   IFS=$as_save_IFS
5066   test -z "$as_dir" && as_dir=.
5067   for ac_exec_ext in '' $ac_executable_extensions; do
5068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069     ac_cv_prog_ac_ct_CXX="$ac_prog"
5070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071     break 2
5072   fi
5073 done
5074 done
5075
5076 fi
5077 fi
5078 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5079 if test -n "$ac_ct_CXX"; then
5080   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5081 echo "${ECHO_T}$ac_ct_CXX" >&6
5082 else
5083   echo "$as_me:$LINENO: result: no" >&5
5084 echo "${ECHO_T}no" >&6
5085 fi
5086
5087   test -n "$ac_ct_CXX" && break
5088 done
5089 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5090
5091   CXX=$ac_ct_CXX
5092 fi
5093
5094
5095 # Provide some information about the compiler.
5096 echo "$as_me:$LINENO:" \
5097      "checking for C++ compiler version" >&5
5098 ac_compiler=`set X $ac_compile; echo $2`
5099 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5100   (eval $ac_compiler --version </dev/null >&5) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); }
5104 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5105   (eval $ac_compiler -v </dev/null >&5) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }
5109 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5110   (eval $ac_compiler -V </dev/null >&5) 2>&5
5111   ac_status=$?
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); }
5114
5115 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5116 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5117 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5118   echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120   cat >conftest.$ac_ext <<_ACEOF
5121 /* confdefs.h.  */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h.  */
5126
5127 int
5128 main ()
5129 {
5130 #ifndef __GNUC__
5131        choke me
5132 #endif
5133
5134   ;
5135   return 0;
5136 }
5137 _ACEOF
5138 rm -f conftest.$ac_objext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140   (eval $ac_compile) 2>conftest.er1
5141   ac_status=$?
5142   grep -v '^ *+' conftest.er1 >conftest.err
5143   rm -f conftest.er1
5144   cat conftest.err >&5
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); } &&
5147          { ac_try='test -z "$ac_cxx_werror_flag"
5148                          || test ! -s conftest.err'
5149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150   (eval $ac_try) 2>&5
5151   ac_status=$?
5152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153   (exit $ac_status); }; } &&
5154          { ac_try='test -s conftest.$ac_objext'
5155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156   (eval $ac_try) 2>&5
5157   ac_status=$?
5158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159   (exit $ac_status); }; }; then
5160   ac_compiler_gnu=yes
5161 else
5162   echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5164
5165 ac_compiler_gnu=no
5166 fi
5167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5168 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5169
5170 fi
5171 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5172 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5173 GXX=`test $ac_compiler_gnu = yes && echo yes`
5174 ac_test_CXXFLAGS=${CXXFLAGS+set}
5175 ac_save_CXXFLAGS=$CXXFLAGS
5176 CXXFLAGS="-g"
5177 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5178 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5179 if test "${ac_cv_prog_cxx_g+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h.  */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h.  */
5188
5189 int
5190 main ()
5191 {
5192
5193   ;
5194   return 0;
5195 }
5196 _ACEOF
5197 rm -f conftest.$ac_objext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5199   (eval $ac_compile) 2>conftest.er1
5200   ac_status=$?
5201   grep -v '^ *+' conftest.er1 >conftest.err
5202   rm -f conftest.er1
5203   cat conftest.err >&5
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); } &&
5206          { ac_try='test -z "$ac_cxx_werror_flag"
5207                          || test ! -s conftest.err'
5208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209   (eval $ac_try) 2>&5
5210   ac_status=$?
5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); }; } &&
5213          { ac_try='test -s conftest.$ac_objext'
5214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215   (eval $ac_try) 2>&5
5216   ac_status=$?
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); }; }; then
5219   ac_cv_prog_cxx_g=yes
5220 else
5221   echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224 ac_cv_prog_cxx_g=no
5225 fi
5226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5227 fi
5228 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5229 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5230 if test "$ac_test_CXXFLAGS" = set; then
5231   CXXFLAGS=$ac_save_CXXFLAGS
5232 elif test $ac_cv_prog_cxx_g = yes; then
5233   if test "$GXX" = yes; then
5234     CXXFLAGS="-g -O2"
5235   else
5236     CXXFLAGS="-g"
5237   fi
5238 else
5239   if test "$GXX" = yes; then
5240     CXXFLAGS="-O2"
5241   else
5242     CXXFLAGS=
5243   fi
5244 fi
5245 for ac_declaration in \
5246    '' \
5247    'extern "C" void std::exit (int) throw (); using std::exit;' \
5248    'extern "C" void std::exit (int); using std::exit;' \
5249    'extern "C" void exit (int) throw ();' \
5250    'extern "C" void exit (int);' \
5251    'void exit (int);'
5252 do
5253   cat >conftest.$ac_ext <<_ACEOF
5254 /* confdefs.h.  */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h.  */
5259 $ac_declaration
5260 #include <stdlib.h>
5261 int
5262 main ()
5263 {
5264 exit (42);
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 rm -f conftest.$ac_objext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5271   (eval $ac_compile) 2>conftest.er1
5272   ac_status=$?
5273   grep -v '^ *+' conftest.er1 >conftest.err
5274   rm -f conftest.er1
5275   cat conftest.err >&5
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); } &&
5278          { ac_try='test -z "$ac_cxx_werror_flag"
5279                          || test ! -s conftest.err'
5280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281   (eval $ac_try) 2>&5
5282   ac_status=$?
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); }; } &&
5285          { ac_try='test -s conftest.$ac_objext'
5286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287   (eval $ac_try) 2>&5
5288   ac_status=$?
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); }; }; then
5291   :
5292 else
5293   echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5295
5296 continue
5297 fi
5298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5299   cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h.  */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h.  */
5305 $ac_declaration
5306 int
5307 main ()
5308 {
5309 exit (42);
5310   ;
5311   return 0;
5312 }
5313 _ACEOF
5314 rm -f conftest.$ac_objext
5315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5316   (eval $ac_compile) 2>conftest.er1
5317   ac_status=$?
5318   grep -v '^ *+' conftest.er1 >conftest.err
5319   rm -f conftest.er1
5320   cat conftest.err >&5
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); } &&
5323          { ac_try='test -z "$ac_cxx_werror_flag"
5324                          || test ! -s conftest.err'
5325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326   (eval $ac_try) 2>&5
5327   ac_status=$?
5328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); }; } &&
5330          { ac_try='test -s conftest.$ac_objext'
5331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332   (eval $ac_try) 2>&5
5333   ac_status=$?
5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335   (exit $ac_status); }; }; then
5336   break
5337 else
5338   echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5340
5341 fi
5342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5343 done
5344 rm -f conftest*
5345 if test -n "$ac_declaration"; then
5346   echo '#ifdef __cplusplus' >>confdefs.h
5347   echo $ac_declaration      >>confdefs.h
5348   echo '#endif'             >>confdefs.h
5349 fi
5350
5351 ac_ext=c
5352 ac_cpp='$CPP $CPPFLAGS'
5353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356
5357 depcc="$CXX"  am_compiler_list=
5358
5359 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5360 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5361 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5362   echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5365   # We make a subdir and do the tests there.  Otherwise we can end up
5366   # making bogus files that we don't know about and never remove.  For
5367   # instance it was reported that on HP-UX the gcc test will end up
5368   # making a dummy file named `D' -- because `-MD' means `put the output
5369   # in D'.
5370   mkdir conftest.dir
5371   # Copy depcomp to subdir because otherwise we won't find it if we're
5372   # using a relative directory.
5373   cp "$am_depcomp" conftest.dir
5374   cd conftest.dir
5375   # We will build objects and dependencies in a subdirectory because
5376   # it helps to detect inapplicable dependency modes.  For instance
5377   # both Tru64's cc and ICC support -MD to output dependencies as a
5378   # side effect of compilation, but ICC will put the dependencies in
5379   # the current directory while Tru64 will put them in the object
5380   # directory.
5381   mkdir sub
5382
5383   am_cv_CXX_dependencies_compiler_type=none
5384   if test "$am_compiler_list" = ""; then
5385      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5386   fi
5387   for depmode in $am_compiler_list; do
5388     # Setup a source with many dependencies, because some compilers
5389     # like to wrap large dependency lists on column 80 (with \), and
5390     # we should not choose a depcomp mode which is confused by this.
5391     #
5392     # We need to recreate these files for each test, as the compiler may
5393     # overwrite some of them when testing with obscure command lines.
5394     # This happens at least with the AIX C compiler.
5395     : > sub/conftest.c
5396     for i in 1 2 3 4 5 6; do
5397       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5398       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5399       # Solaris 8's {/usr,}/bin/sh.
5400       touch sub/conftst$i.h
5401     done
5402     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5403
5404     case $depmode in
5405     nosideeffect)
5406       # after this tag, mechanisms are not by side-effect, so they'll
5407       # only be used when explicitly requested
5408       if test "x$enable_dependency_tracking" = xyes; then
5409         continue
5410       else
5411         break
5412       fi
5413       ;;
5414     none) break ;;
5415     esac
5416     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5417     # mode.  It turns out that the SunPro C++ compiler does not properly
5418     # handle `-M -o', and we need to detect this.
5419     if depmode=$depmode \
5420        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5421        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5422        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5423          >/dev/null 2>conftest.err &&
5424        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5425        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5426        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5427       # icc doesn't choke on unknown options, it will just issue warnings
5428       # or remarks (even with -Werror).  So we grep stderr for any message
5429       # that says an option was ignored or not supported.
5430       # When given -MP, icc 7.0 and 7.1 complain thusly:
5431       #   icc: Command line warning: ignoring option '-M'; no argument required
5432       # The diagnosis changed in icc 8.0:
5433       #   icc: Command line remark: option '-MP' not supported
5434       if (grep 'ignoring option' conftest.err ||
5435           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5436         am_cv_CXX_dependencies_compiler_type=$depmode
5437         break
5438       fi
5439     fi
5440   done
5441
5442   cd ..
5443   rm -rf conftest.dir
5444 else
5445   am_cv_CXX_dependencies_compiler_type=none
5446 fi
5447
5448 fi
5449 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5450 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5451 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5452
5453
5454
5455 if
5456   test "x$enable_dependency_tracking" != xno \
5457   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5458   am__fastdepCXX_TRUE=
5459   am__fastdepCXX_FALSE='#'
5460 else
5461   am__fastdepCXX_TRUE='#'
5462   am__fastdepCXX_FALSE=
5463 fi
5464
5465
5466 # Make sure we can run config.sub.
5467 $ac_config_sub sun4 >/dev/null 2>&1 ||
5468   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5469 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5470    { (exit 1); exit 1; }; }
5471
5472 echo "$as_me:$LINENO: checking build system type" >&5
5473 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5474 if test "${ac_cv_build+set}" = set; then
5475   echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477   ac_cv_build_alias=$build_alias
5478 test -z "$ac_cv_build_alias" &&
5479   ac_cv_build_alias=`$ac_config_guess`
5480 test -z "$ac_cv_build_alias" &&
5481   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5482 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5483    { (exit 1); exit 1; }; }
5484 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5485   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5486 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5487    { (exit 1); exit 1; }; }
5488
5489 fi
5490 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5491 echo "${ECHO_T}$ac_cv_build" >&6
5492 build=$ac_cv_build
5493 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5494 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5495 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5496
5497
5498 echo "$as_me:$LINENO: checking host system type" >&5
5499 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5500 if test "${ac_cv_host+set}" = set; then
5501   echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503   ac_cv_host_alias=$host_alias
5504 test -z "$ac_cv_host_alias" &&
5505   ac_cv_host_alias=$ac_cv_build_alias
5506 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5507   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5508 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5509    { (exit 1); exit 1; }; }
5510
5511 fi
5512 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5513 echo "${ECHO_T}$ac_cv_host" >&6
5514 host=$ac_cv_host
5515 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5516 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5517 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5518
5519
5520
5521 if test "$GCC" = "yes" ; then
5522 #    AC_HAVE_GCC_VERSION(4,0,0,0,
5523 #        [
5524 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
5525 #            [Define to enable class visibility control in gcc.])
5526 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5527 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5528 #        ])
5529     CFLAGS="-Wall $GCC_CFLAGS"
5530     CXXFLAGS="-Wall $GCC_CXXFLAGS"
5531 else
5532 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
5533         case "${host_cpu}-${host_os}" in
5534                 *solaris*)
5535                         if test "$CXX" = "CC" ; then
5536                                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
5537                         fi
5538                         ;;
5539                 *osf*)
5540                         CXXFLAGS="$CXXFLAGS -D_POSIX_PII_SOCKET"
5541                         ;;
5542         esac
5543 fi
5544
5545 # Check whether --enable-static or --disable-static was given.
5546 if test "${enable_static+set}" = set; then
5547   enableval="$enable_static"
5548   p=${PACKAGE-default}
5549     case $enableval in
5550     yes) enable_static=yes ;;
5551     no) enable_static=no ;;
5552     *)
5553      enable_static=no
5554       # Look at the argument we got.  We use all the common list separators.
5555       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5556       for pkg in $enableval; do
5557         IFS="$lt_save_ifs"
5558         if test "X$pkg" = "X$p"; then
5559           enable_static=yes
5560         fi
5561       done
5562       IFS="$lt_save_ifs"
5563       ;;
5564     esac
5565 else
5566   enable_static=no
5567 fi;
5568
5569
5570 # Check whether --enable-shared or --disable-shared was given.
5571 if test "${enable_shared+set}" = set; then
5572   enableval="$enable_shared"
5573   p=${PACKAGE-default}
5574     case $enableval in
5575     yes) enable_shared=yes ;;
5576     no) enable_shared=no ;;
5577     *)
5578       enable_shared=no
5579       # Look at the argument we got.  We use all the common list separators.
5580       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5581       for pkg in $enableval; do
5582         IFS="$lt_save_ifs"
5583         if test "X$pkg" = "X$p"; then
5584           enable_shared=yes
5585         fi
5586       done
5587       IFS="$lt_save_ifs"
5588       ;;
5589     esac
5590 else
5591   enable_shared=yes
5592 fi;
5593
5594 # Check whether --enable-fast-install or --disable-fast-install was given.
5595 if test "${enable_fast_install+set}" = set; then
5596   enableval="$enable_fast_install"
5597   p=${PACKAGE-default}
5598     case $enableval in
5599     yes) enable_fast_install=yes ;;
5600     no) enable_fast_install=no ;;
5601     *)
5602       enable_fast_install=no
5603       # Look at the argument we got.  We use all the common list separators.
5604       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5605       for pkg in $enableval; do
5606         IFS="$lt_save_ifs"
5607         if test "X$pkg" = "X$p"; then
5608           enable_fast_install=yes
5609         fi
5610       done
5611       IFS="$lt_save_ifs"
5612       ;;
5613     esac
5614 else
5615   enable_fast_install=yes
5616 fi;
5617
5618 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5619 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5620 if test "${lt_cv_path_SED+set}" = set; then
5621   echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623   # Loop through the user's path and test for sed and gsed.
5624 # Then use that list of sed's as ones to test for truncation.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   test -z "$as_dir" && as_dir=.
5630   for lt_ac_prog in sed gsed; do
5631     for ac_exec_ext in '' $ac_executable_extensions; do
5632       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5633         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5634       fi
5635     done
5636   done
5637 done
5638 lt_ac_max=0
5639 lt_ac_count=0
5640 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5641 # along with /bin/sed that truncates output.
5642 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5643   test ! -f $lt_ac_sed && break
5644   cat /dev/null > conftest.in
5645   lt_ac_count=0
5646   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5647   # Check for GNU sed and select it if it is found.
5648   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5649     lt_cv_path_SED=$lt_ac_sed
5650     break
5651   fi
5652   while true; do
5653     cat conftest.in conftest.in >conftest.tmp
5654     mv conftest.tmp conftest.in
5655     cp conftest.in conftest.nl
5656     echo >>conftest.nl
5657     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5658     cmp -s conftest.out conftest.nl || break
5659     # 10000 chars as input seems more than enough
5660     test $lt_ac_count -gt 10 && break
5661     lt_ac_count=`expr $lt_ac_count + 1`
5662     if test $lt_ac_count -gt $lt_ac_max; then
5663       lt_ac_max=$lt_ac_count
5664       lt_cv_path_SED=$lt_ac_sed
5665     fi
5666   done
5667 done
5668 SED=$lt_cv_path_SED
5669
5670 fi
5671
5672 echo "$as_me:$LINENO: result: $SED" >&5
5673 echo "${ECHO_T}$SED" >&6
5674
5675 echo "$as_me:$LINENO: checking for egrep" >&5
5676 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5677 if test "${ac_cv_prog_egrep+set}" = set; then
5678   echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5681     then ac_cv_prog_egrep='grep -E'
5682     else ac_cv_prog_egrep='egrep'
5683     fi
5684 fi
5685 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5686 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5687  EGREP=$ac_cv_prog_egrep
5688
5689
5690
5691 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5692 if test "${with_gnu_ld+set}" = set; then
5693   withval="$with_gnu_ld"
5694   test "$withval" = no || with_gnu_ld=yes
5695 else
5696   with_gnu_ld=no
5697 fi;
5698 ac_prog=ld
5699 if test "$GCC" = yes; then
5700   # Check if gcc -print-prog-name=ld gives a path.
5701   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5702 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5703   case $host in
5704   *-*-mingw*)
5705     # gcc leaves a trailing carriage return which upsets mingw
5706     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5707   *)
5708     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5709   esac
5710   case $ac_prog in
5711     # Accept absolute paths.
5712     [\\/]* | ?:[\\/]*)
5713       re_direlt='/[^/][^/]*/\.\./'
5714       # Canonicalize the pathname of ld
5715       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5716       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5717         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5718       done
5719       test -z "$LD" && LD="$ac_prog"
5720       ;;
5721   "")
5722     # If it fails, then pretend we aren't using GCC.
5723     ac_prog=ld
5724     ;;
5725   *)
5726     # If it is relative, then search for the first ld in PATH.
5727     with_gnu_ld=unknown
5728     ;;
5729   esac
5730 elif test "$with_gnu_ld" = yes; then
5731   echo "$as_me:$LINENO: checking for GNU ld" >&5
5732 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5733 else
5734   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5735 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5736 fi
5737 if test "${lt_cv_path_LD+set}" = set; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740   if test -z "$LD"; then
5741   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5742   for ac_dir in $PATH; do
5743     IFS="$lt_save_ifs"
5744     test -z "$ac_dir" && ac_dir=.
5745     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5746       lt_cv_path_LD="$ac_dir/$ac_prog"
5747       # Check to see if the program is GNU ld.  I'd rather use --version,
5748       # but apparently some GNU ld's only accept -v.
5749       # Break only if it was the GNU/non-GNU ld that we prefer.
5750       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5751       *GNU* | *'with BFD'*)
5752         test "$with_gnu_ld" != no && break
5753         ;;
5754       *)
5755         test "$with_gnu_ld" != yes && break
5756         ;;
5757       esac
5758     fi
5759   done
5760   IFS="$lt_save_ifs"
5761 else
5762   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5763 fi
5764 fi
5765
5766 LD="$lt_cv_path_LD"
5767 if test -n "$LD"; then
5768   echo "$as_me:$LINENO: result: $LD" >&5
5769 echo "${ECHO_T}$LD" >&6
5770 else
5771   echo "$as_me:$LINENO: result: no" >&5
5772 echo "${ECHO_T}no" >&6
5773 fi
5774 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5775 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5776    { (exit 1); exit 1; }; }
5777 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5778 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5779 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5783 case `$LD -v 2>&1 </dev/null` in
5784 *GNU* | *'with BFD'*)
5785   lt_cv_prog_gnu_ld=yes
5786   ;;
5787 *)
5788   lt_cv_prog_gnu_ld=no
5789   ;;
5790 esac
5791 fi
5792 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5793 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5794 with_gnu_ld=$lt_cv_prog_gnu_ld
5795
5796
5797 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5798 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5799 if test "${lt_cv_ld_reload_flag+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   lt_cv_ld_reload_flag='-r'
5803 fi
5804 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5805 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5806 reload_flag=$lt_cv_ld_reload_flag
5807 case $reload_flag in
5808 "" | " "*) ;;
5809 *) reload_flag=" $reload_flag" ;;
5810 esac
5811 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5812
5813 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5814 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5815 if test "${lt_cv_path_NM+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   if test -n "$NM"; then
5819   # Let the user override the test.
5820   lt_cv_path_NM="$NM"
5821 else
5822   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5823   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5824     IFS="$lt_save_ifs"
5825     test -z "$ac_dir" && ac_dir=.
5826     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5827     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5828       # Check to see if the nm accepts a BSD-compat flag.
5829       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5830       #   nm: unknown option "B" ignored
5831       # Tru64's nm complains that /dev/null is an invalid object file
5832       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5833       */dev/null* | *'Invalid file or object type'*)
5834         lt_cv_path_NM="$tmp_nm -B"
5835         break
5836         ;;
5837       *)
5838         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5839         */dev/null*)
5840           lt_cv_path_NM="$tmp_nm -p"
5841           break
5842           ;;
5843         *)
5844           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5845           continue # so that we can try to find one that supports BSD flags
5846           ;;
5847         esac
5848       esac
5849     fi
5850   done
5851   IFS="$lt_save_ifs"
5852   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5853 fi
5854 fi
5855 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5856 echo "${ECHO_T}$lt_cv_path_NM" >&6
5857 NM="$lt_cv_path_NM"
5858
5859 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5860 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5861 LN_S=$as_ln_s
5862 if test "$LN_S" = "ln -s"; then
5863   echo "$as_me:$LINENO: result: yes" >&5
5864 echo "${ECHO_T}yes" >&6
5865 else
5866   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5867 echo "${ECHO_T}no, using $LN_S" >&6
5868 fi
5869
5870 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5871 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5872 if test "${lt_cv_deplibs_check_method+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   lt_cv_file_magic_cmd='$MAGIC_CMD'
5876 lt_cv_file_magic_test_file=
5877 lt_cv_deplibs_check_method='unknown'
5878 # Need to set the preceding variable on all platforms that support
5879 # interlibrary dependencies.
5880 # 'none' -- dependencies not supported.
5881 # `unknown' -- same as none, but documents that we really don't know.
5882 # 'pass_all' -- all dependencies passed with no checks.
5883 # 'test_compile' -- check by making test program.
5884 # 'file_magic [[regex]]' -- check by looking for files in library path
5885 # which responds to the $file_magic_cmd with a given extended regex.
5886 # If you have `file' or equivalent on your system and you're not sure
5887 # whether `pass_all' will *always* work, you probably want this one.
5888
5889 case $host_os in
5890 aix4* | aix5*)
5891   lt_cv_deplibs_check_method=pass_all
5892   ;;
5893
5894 beos*)
5895   lt_cv_deplibs_check_method=pass_all
5896   ;;
5897
5898 bsdi4*)
5899   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5900   lt_cv_file_magic_cmd='/usr/bin/file -L'
5901   lt_cv_file_magic_test_file=/shlib/libc.so
5902   ;;
5903
5904 cygwin*)
5905   # func_win32_libid is a shell function defined in ltmain.sh
5906   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5907   lt_cv_file_magic_cmd='func_win32_libid'
5908   ;;
5909
5910 mingw* | pw32*)
5911   # Base MSYS/MinGW do not provide the 'file' command needed by
5912   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5913   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5914   lt_cv_file_magic_cmd='$OBJDUMP -f'
5915   ;;
5916
5917 darwin* | rhapsody*)
5918   lt_cv_deplibs_check_method=pass_all
5919   ;;
5920
5921 freebsd* | kfreebsd*-gnu)
5922   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5923     case $host_cpu in
5924     i*86 )
5925       # Not sure whether the presence of OpenBSD here was a mistake.
5926       # Let's accept both of them until this is cleared up.
5927       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5928       lt_cv_file_magic_cmd=/usr/bin/file
5929       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5930       ;;
5931     esac
5932   else
5933     lt_cv_deplibs_check_method=pass_all
5934   fi
5935   ;;
5936
5937 gnu*)
5938   lt_cv_deplibs_check_method=pass_all
5939   ;;
5940
5941 hpux10.20* | hpux11*)
5942   lt_cv_file_magic_cmd=/usr/bin/file
5943   case "$host_cpu" in
5944   ia64*)
5945     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5946     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5947     ;;
5948   hppa*64*)
5949     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]'
5950     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5951     ;;
5952   *)
5953     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5954     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5955     ;;
5956   esac
5957   ;;
5958
5959 irix5* | irix6* | nonstopux*)
5960   case $LD in
5961   *-32|*"-32 ") libmagic=32-bit;;
5962   *-n32|*"-n32 ") libmagic=N32;;
5963   *-64|*"-64 ") libmagic=64-bit;;
5964   *) libmagic=never-match;;
5965   esac
5966   lt_cv_deplibs_check_method=pass_all
5967   ;;
5968
5969 # This must be Linux ELF.
5970 linux*)
5971   case $host_cpu in
5972   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
5973     lt_cv_deplibs_check_method=pass_all ;;
5974   *)
5975     # glibc up to 2.1.1 does not perform some relocations on ARM
5976     # this will be overridden with pass_all, but let us keep it just in case
5977     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5978   esac
5979   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5980   lt_cv_deplibs_check_method=pass_all
5981   ;;
5982
5983 netbsd*)
5984   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5985     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5986   else
5987     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5988   fi
5989   ;;
5990
5991 newos6*)
5992   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5993   lt_cv_file_magic_cmd=/usr/bin/file
5994   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5995   ;;
5996
5997 nto-qnx*)
5998   lt_cv_deplibs_check_method=unknown
5999   ;;
6000
6001 openbsd*)
6002   lt_cv_file_magic_cmd=/usr/bin/file
6003   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6004   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6005     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
6006   else
6007     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6008   fi
6009   ;;
6010
6011 osf3* | osf4* | osf5*)
6012   lt_cv_deplibs_check_method=pass_all
6013   ;;
6014
6015 sco3.2v5*)
6016   lt_cv_deplibs_check_method=pass_all
6017   ;;
6018
6019 solaris*)
6020   lt_cv_deplibs_check_method=pass_all
6021   ;;
6022
6023 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6024   case $host_vendor in
6025   motorola)
6026     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]'
6027     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6028     ;;
6029   ncr)
6030     lt_cv_deplibs_check_method=pass_all
6031     ;;
6032   sequent)
6033     lt_cv_file_magic_cmd='/bin/file'
6034     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6035     ;;
6036   sni)
6037     lt_cv_file_magic_cmd='/bin/file'
6038     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6039     lt_cv_file_magic_test_file=/lib/libc.so
6040     ;;
6041   siemens)
6042     lt_cv_deplibs_check_method=pass_all
6043     ;;
6044   esac
6045   ;;
6046
6047 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6048   lt_cv_deplibs_check_method=pass_all
6049   ;;
6050 esac
6051
6052 fi
6053 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6054 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6055 file_magic_cmd=$lt_cv_file_magic_cmd
6056 deplibs_check_method=$lt_cv_deplibs_check_method
6057 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6058
6059
6060
6061
6062 # If no C compiler was specified, use CC.
6063 LTCC=${LTCC-"$CC"}
6064
6065 # Allow CC to be a program name with arguments.
6066 compiler=$CC
6067
6068
6069 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6070 if test "${enable_libtool_lock+set}" = set; then
6071   enableval="$enable_libtool_lock"
6072
6073 fi;
6074 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6075
6076 # Some flags need to be propagated to the compiler or linker for good
6077 # libtool support.
6078 case $host in
6079 ia64-*-hpux*)
6080   # Find out which ABI we are using.
6081   echo 'int i;' > conftest.$ac_ext
6082   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083   (eval $ac_compile) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; then
6087     case `/usr/bin/file conftest.$ac_objext` in
6088     *ELF-32*)
6089       HPUX_IA64_MODE="32"
6090       ;;
6091     *ELF-64*)
6092       HPUX_IA64_MODE="64"
6093       ;;
6094     esac
6095   fi
6096   rm -rf conftest*
6097   ;;
6098 *-*-irix6*)
6099   # Find out which ABI we are using.
6100   echo '#line 6100 "configure"' > conftest.$ac_ext
6101   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102   (eval $ac_compile) 2>&5
6103   ac_status=$?
6104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105   (exit $ac_status); }; then
6106    if test "$lt_cv_prog_gnu_ld" = yes; then
6107     case `/usr/bin/file conftest.$ac_objext` in
6108     *32-bit*)
6109       LD="${LD-ld} -melf32bsmip"
6110       ;;
6111     *N32*)
6112       LD="${LD-ld} -melf32bmipn32"
6113       ;;
6114     *64-bit*)
6115       LD="${LD-ld} -melf64bmip"
6116       ;;
6117     esac
6118    else
6119     case `/usr/bin/file conftest.$ac_objext` in
6120     *32-bit*)
6121       LD="${LD-ld} -32"
6122       ;;
6123     *N32*)
6124       LD="${LD-ld} -n32"
6125       ;;
6126     *64-bit*)
6127       LD="${LD-ld} -64"
6128       ;;
6129     esac
6130    fi
6131   fi
6132   rm -rf conftest*
6133   ;;
6134
6135 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6136   # Find out which ABI we are using.
6137   echo 'int i;' > conftest.$ac_ext
6138   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139   (eval $ac_compile) 2>&5
6140   ac_status=$?
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); }; then
6143     case "`/usr/bin/file conftest.o`" in
6144     *32-bit*)
6145       case $host in
6146         x86_64-*linux*)
6147           LD="${LD-ld} -m elf_i386"
6148           ;;
6149         ppc64-*linux*|powerpc64-*linux*)
6150           LD="${LD-ld} -m elf32ppclinux"
6151           ;;
6152         s390x-*linux*)
6153           LD="${LD-ld} -m elf_s390"
6154           ;;
6155         sparc64-*linux*)
6156           LD="${LD-ld} -m elf32_sparc"
6157           ;;
6158       esac
6159       ;;
6160     *64-bit*)
6161       case $host in
6162         x86_64-*linux*)
6163           LD="${LD-ld} -m elf_x86_64"
6164           ;;
6165         ppc*-*linux*|powerpc*-*linux*)
6166           LD="${LD-ld} -m elf64ppc"
6167           ;;
6168         s390*-*linux*)
6169           LD="${LD-ld} -m elf64_s390"
6170           ;;
6171         sparc*-*linux*)
6172           LD="${LD-ld} -m elf64_sparc"
6173           ;;
6174       esac
6175       ;;
6176     esac
6177   fi
6178   rm -rf conftest*
6179   ;;
6180
6181 *-*-sco3.2v5*)
6182   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6183   SAVE_CFLAGS="$CFLAGS"
6184   CFLAGS="$CFLAGS -belf"
6185   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6186 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6187 if test "${lt_cv_cc_needs_belf+set}" = set; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190   ac_ext=c
6191 ac_cpp='$CPP $CPPFLAGS'
6192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6195
6196      cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h.  */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h.  */
6202
6203 int
6204 main ()
6205 {
6206
6207   ;
6208   return 0;
6209 }
6210 _ACEOF
6211 rm -f conftest.$ac_objext conftest$ac_exeext
6212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6213   (eval $ac_link) 2>conftest.er1
6214   ac_status=$?
6215   grep -v '^ *+' conftest.er1 >conftest.err
6216   rm -f conftest.er1
6217   cat conftest.err >&5
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } &&
6220          { ac_try='test -z "$ac_c_werror_flag"
6221                          || test ! -s conftest.err'
6222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223   (eval $ac_try) 2>&5
6224   ac_status=$?
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); }; } &&
6227          { ac_try='test -s conftest$ac_exeext'
6228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229   (eval $ac_try) 2>&5
6230   ac_status=$?
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); }; }; then
6233   lt_cv_cc_needs_belf=yes
6234 else
6235   echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6237
6238 lt_cv_cc_needs_belf=no
6239 fi
6240 rm -f conftest.err conftest.$ac_objext \
6241       conftest$ac_exeext conftest.$ac_ext
6242      ac_ext=c
6243 ac_cpp='$CPP $CPPFLAGS'
6244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6247
6248 fi
6249 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6250 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6251   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6252     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6253     CFLAGS="$SAVE_CFLAGS"
6254   fi
6255   ;;
6256
6257 esac
6258
6259 need_locks="$enable_libtool_lock"
6260
6261
6262 ac_ext=c
6263 ac_cpp='$CPP $CPPFLAGS'
6264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6267 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6268 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6269 # On Suns, sometimes $CPP names a directory.
6270 if test -n "$CPP" && test -d "$CPP"; then
6271   CPP=
6272 fi
6273 if test -z "$CPP"; then
6274   if test "${ac_cv_prog_CPP+set}" = set; then
6275   echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277       # Double quotes because CPP needs to be expanded
6278     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6279     do
6280       ac_preproc_ok=false
6281 for ac_c_preproc_warn_flag in '' yes
6282 do
6283   # Use a header file that comes with gcc, so configuring glibc
6284   # with a fresh cross-compiler works.
6285   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6286   # <limits.h> exists even on freestanding compilers.
6287   # On the NeXT, cc -E runs the code through the compiler's parser,
6288   # not just through cpp. "Syntax error" is here to catch this case.
6289   cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h.  */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h.  */
6295 #ifdef __STDC__
6296 # include <limits.h>
6297 #else
6298 # include <assert.h>
6299 #endif
6300                      Syntax error
6301 _ACEOF
6302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6304   ac_status=$?
6305   grep -v '^ *+' conftest.er1 >conftest.err
6306   rm -f conftest.er1
6307   cat conftest.err >&5
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } >/dev/null; then
6310   if test -s conftest.err; then
6311     ac_cpp_err=$ac_c_preproc_warn_flag
6312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6313   else
6314     ac_cpp_err=
6315   fi
6316 else
6317   ac_cpp_err=yes
6318 fi
6319 if test -z "$ac_cpp_err"; then
6320   :
6321 else
6322   echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325   # Broken: fails on valid input.
6326 continue
6327 fi
6328 rm -f conftest.err conftest.$ac_ext
6329
6330   # OK, works on sane cases.  Now check whether non-existent headers
6331   # can be detected and how.
6332   cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h.  */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h.  */
6338 #include <ac_nonexistent.h>
6339 _ACEOF
6340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6341   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6342   ac_status=$?
6343   grep -v '^ *+' conftest.er1 >conftest.err
6344   rm -f conftest.er1
6345   cat conftest.err >&5
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); } >/dev/null; then
6348   if test -s conftest.err; then
6349     ac_cpp_err=$ac_c_preproc_warn_flag
6350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6351   else
6352     ac_cpp_err=
6353   fi
6354 else
6355   ac_cpp_err=yes
6356 fi
6357 if test -z "$ac_cpp_err"; then
6358   # Broken: success on invalid input.
6359 continue
6360 else
6361   echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6363
6364   # Passes both tests.
6365 ac_preproc_ok=:
6366 break
6367 fi
6368 rm -f conftest.err conftest.$ac_ext
6369
6370 done
6371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6372 rm -f conftest.err conftest.$ac_ext
6373 if $ac_preproc_ok; then
6374   break
6375 fi
6376
6377     done
6378     ac_cv_prog_CPP=$CPP
6379
6380 fi
6381   CPP=$ac_cv_prog_CPP
6382 else
6383   ac_cv_prog_CPP=$CPP
6384 fi
6385 echo "$as_me:$LINENO: result: $CPP" >&5
6386 echo "${ECHO_T}$CPP" >&6
6387 ac_preproc_ok=false
6388 for ac_c_preproc_warn_flag in '' yes
6389 do
6390   # Use a header file that comes with gcc, so configuring glibc
6391   # with a fresh cross-compiler works.
6392   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6393   # <limits.h> exists even on freestanding compilers.
6394   # On the NeXT, cc -E runs the code through the compiler's parser,
6395   # not just through cpp. "Syntax error" is here to catch this case.
6396   cat >conftest.$ac_ext <<_ACEOF
6397 /* confdefs.h.  */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h.  */
6402 #ifdef __STDC__
6403 # include <limits.h>
6404 #else
6405 # include <assert.h>
6406 #endif
6407                      Syntax error
6408 _ACEOF
6409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6410   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6411   ac_status=$?
6412   grep -v '^ *+' conftest.er1 >conftest.err
6413   rm -f conftest.er1
6414   cat conftest.err >&5
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); } >/dev/null; then
6417   if test -s conftest.err; then
6418     ac_cpp_err=$ac_c_preproc_warn_flag
6419     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6420   else
6421     ac_cpp_err=
6422   fi
6423 else
6424   ac_cpp_err=yes
6425 fi
6426 if test -z "$ac_cpp_err"; then
6427   :
6428 else
6429   echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432   # Broken: fails on valid input.
6433 continue
6434 fi
6435 rm -f conftest.err conftest.$ac_ext
6436
6437   # OK, works on sane cases.  Now check whether non-existent headers
6438   # can be detected and how.
6439   cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h.  */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h.  */
6445 #include <ac_nonexistent.h>
6446 _ACEOF
6447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6448   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6449   ac_status=$?
6450   grep -v '^ *+' conftest.er1 >conftest.err
6451   rm -f conftest.er1
6452   cat conftest.err >&5
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); } >/dev/null; then
6455   if test -s conftest.err; then
6456     ac_cpp_err=$ac_c_preproc_warn_flag
6457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6458   else
6459     ac_cpp_err=
6460   fi
6461 else
6462   ac_cpp_err=yes
6463 fi
6464 if test -z "$ac_cpp_err"; then
6465   # Broken: success on invalid input.
6466 continue
6467 else
6468   echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6470
6471   # Passes both tests.
6472 ac_preproc_ok=:
6473 break
6474 fi
6475 rm -f conftest.err conftest.$ac_ext
6476
6477 done
6478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6479 rm -f conftest.err conftest.$ac_ext
6480 if $ac_preproc_ok; then
6481   :
6482 else
6483   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6484 See \`config.log' for more details." >&5
6485 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6486 See \`config.log' for more details." >&2;}
6487    { (exit 1); exit 1; }; }
6488 fi
6489
6490 ac_ext=c
6491 ac_cpp='$CPP $CPPFLAGS'
6492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6495
6496
6497 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6498 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6499 if test "${ac_cv_header_stdc+set}" = set; then
6500   echo $ECHO_N "(cached) $ECHO_C" >&6
6501 else
6502   cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h.  */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h.  */
6508 #include <stdlib.h>
6509 #include <stdarg.h>
6510 #include <string.h>
6511 #include <float.h>
6512
6513 int
6514 main ()
6515 {
6516
6517   ;
6518   return 0;
6519 }
6520 _ACEOF
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523   (eval $ac_compile) 2>conftest.er1
6524   ac_status=$?
6525   grep -v '^ *+' conftest.er1 >conftest.err
6526   rm -f conftest.er1
6527   cat conftest.err >&5
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); } &&
6530          { ac_try='test -z "$ac_c_werror_flag"
6531                          || test ! -s conftest.err'
6532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533   (eval $ac_try) 2>&5
6534   ac_status=$?
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); }; } &&
6537          { ac_try='test -s conftest.$ac_objext'
6538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539   (eval $ac_try) 2>&5
6540   ac_status=$?
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); }; }; then
6543   ac_cv_header_stdc=yes
6544 else
6545   echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 ac_cv_header_stdc=no
6549 fi
6550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6551
6552 if test $ac_cv_header_stdc = yes; then
6553   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6554   cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h.  */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h.  */
6560 #include <string.h>
6561
6562 _ACEOF
6563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6564   $EGREP "memchr" >/dev/null 2>&1; then
6565   :
6566 else
6567   ac_cv_header_stdc=no
6568 fi
6569 rm -f conftest*
6570
6571 fi
6572
6573 if test $ac_cv_header_stdc = yes; then
6574   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6575   cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h.  */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h.  */
6581 #include <stdlib.h>
6582
6583 _ACEOF
6584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6585   $EGREP "free" >/dev/null 2>&1; then
6586   :
6587 else
6588   ac_cv_header_stdc=no
6589 fi
6590 rm -f conftest*
6591
6592 fi
6593
6594 if test $ac_cv_header_stdc = yes; then
6595   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6596   if test "$cross_compiling" = yes; then
6597   :
6598 else
6599   cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h.  */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h.  */
6605 #include <ctype.h>
6606 #if ((' ' & 0x0FF) == 0x020)
6607 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6608 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6609 #else
6610 # define ISLOWER(c) \
6611                    (('a' <= (c) && (c) <= 'i') \
6612                      || ('j' <= (c) && (c) <= 'r') \
6613                      || ('s' <= (c) && (c) <= 'z'))
6614 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6615 #endif
6616
6617 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6618 int
6619 main ()
6620 {
6621   int i;
6622   for (i = 0; i < 256; i++)
6623     if (XOR (islower (i), ISLOWER (i))
6624         || toupper (i) != TOUPPER (i))
6625       exit(2);
6626   exit (0);
6627 }
6628 _ACEOF
6629 rm -f conftest$ac_exeext
6630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6631   (eval $ac_link) 2>&5
6632   ac_status=$?
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636   (eval $ac_try) 2>&5
6637   ac_status=$?
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); }; }; then
6640   :
6641 else
6642   echo "$as_me: program exited with status $ac_status" >&5
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6645
6646 ( exit $ac_status )
6647 ac_cv_header_stdc=no
6648 fi
6649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6650 fi
6651 fi
6652 fi
6653 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6654 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6655 if test $ac_cv_header_stdc = yes; then
6656
6657 cat >>confdefs.h <<\_ACEOF
6658 #define STDC_HEADERS 1
6659 _ACEOF
6660
6661 fi
6662
6663 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6674                   inttypes.h stdint.h unistd.h
6675 do
6676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6677 echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682   cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h.  */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h.  */
6688 $ac_includes_default
6689
6690 #include <$ac_header>
6691 _ACEOF
6692 rm -f conftest.$ac_objext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6694   (eval $ac_compile) 2>conftest.er1
6695   ac_status=$?
6696   grep -v '^ *+' conftest.er1 >conftest.err
6697   rm -f conftest.er1
6698   cat conftest.err >&5
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); } &&
6701          { ac_try='test -z "$ac_c_werror_flag"
6702                          || test ! -s conftest.err'
6703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704   (eval $ac_try) 2>&5
6705   ac_status=$?
6706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707   (exit $ac_status); }; } &&
6708          { ac_try='test -s conftest.$ac_objext'
6709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710   (eval $ac_try) 2>&5
6711   ac_status=$?
6712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713   (exit $ac_status); }; }; then
6714   eval "$as_ac_Header=yes"
6715 else
6716   echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6718
6719 eval "$as_ac_Header=no"
6720 fi
6721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6722 fi
6723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6726   cat >>confdefs.h <<_ACEOF
6727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6728 _ACEOF
6729
6730 fi
6731
6732 done
6733
6734
6735
6736 for ac_header in dlfcn.h
6737 do
6738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6740   echo "$as_me:$LINENO: checking for $ac_header" >&5
6741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6743   echo $ECHO_N "(cached) $ECHO_C" >&6
6744 fi
6745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6747 else
6748   # Is the header compilable?
6749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6751 cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h.  */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h.  */
6757 $ac_includes_default
6758 #include <$ac_header>
6759 _ACEOF
6760 rm -f conftest.$ac_objext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6762   (eval $ac_compile) 2>conftest.er1
6763   ac_status=$?
6764   grep -v '^ *+' conftest.er1 >conftest.err
6765   rm -f conftest.er1
6766   cat conftest.err >&5
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); } &&
6769          { ac_try='test -z "$ac_c_werror_flag"
6770                          || test ! -s conftest.err'
6771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772   (eval $ac_try) 2>&5
6773   ac_status=$?
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); }; } &&
6776          { ac_try='test -s conftest.$ac_objext'
6777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778   (eval $ac_try) 2>&5
6779   ac_status=$?
6780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); }; }; then
6782   ac_header_compiler=yes
6783 else
6784   echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6786
6787 ac_header_compiler=no
6788 fi
6789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6791 echo "${ECHO_T}$ac_header_compiler" >&6
6792
6793 # Is the header present?
6794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h.  */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h.  */
6802 #include <$ac_header>
6803 _ACEOF
6804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6805   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6806   ac_status=$?
6807   grep -v '^ *+' conftest.er1 >conftest.err
6808   rm -f conftest.er1
6809   cat conftest.err >&5
6810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811   (exit $ac_status); } >/dev/null; then
6812   if test -s conftest.err; then
6813     ac_cpp_err=$ac_c_preproc_warn_flag
6814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6815   else
6816     ac_cpp_err=
6817   fi
6818 else
6819   ac_cpp_err=yes
6820 fi
6821 if test -z "$ac_cpp_err"; then
6822   ac_header_preproc=yes
6823 else
6824   echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827   ac_header_preproc=no
6828 fi
6829 rm -f conftest.err conftest.$ac_ext
6830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6831 echo "${ECHO_T}$ac_header_preproc" >&6
6832
6833 # So?  What about this header?
6834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6835   yes:no: )
6836     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6840     ac_header_preproc=yes
6841     ;;
6842   no:yes:* )
6843     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6845     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6846 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6847     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6849     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6850 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6853     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6855     (
6856       cat <<\_ASBOX
6857 ## --------------------------------------------- ##
6858 ## Report this to shibboleth-users@internet2.edu ##
6859 ## --------------------------------------------- ##
6860 _ASBOX
6861     ) |
6862       sed "s/^/$as_me: WARNING:     /" >&2
6863     ;;
6864 esac
6865 echo "$as_me:$LINENO: checking for $ac_header" >&5
6866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   eval "$as_ac_Header=\$ac_header_preproc"
6871 fi
6872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6874
6875 fi
6876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6877   cat >>confdefs.h <<_ACEOF
6878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6879 _ACEOF
6880
6881 fi
6882
6883 done
6884
6885 ac_ext=cc
6886 ac_cpp='$CXXCPP $CPPFLAGS'
6887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6890 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6891 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6892 if test -z "$CXXCPP"; then
6893   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6894   echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896       # Double quotes because CXXCPP needs to be expanded
6897     for CXXCPP in "$CXX -E" "/lib/cpp"
6898     do
6899       ac_preproc_ok=false
6900 for ac_cxx_preproc_warn_flag in '' yes
6901 do
6902   # Use a header file that comes with gcc, so configuring glibc
6903   # with a fresh cross-compiler works.
6904   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6905   # <limits.h> exists even on freestanding compilers.
6906   # On the NeXT, cc -E runs the code through the compiler's parser,
6907   # not just through cpp. "Syntax error" is here to catch this case.
6908   cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h.  */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h.  */
6914 #ifdef __STDC__
6915 # include <limits.h>
6916 #else
6917 # include <assert.h>
6918 #endif
6919                      Syntax error
6920 _ACEOF
6921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6923   ac_status=$?
6924   grep -v '^ *+' conftest.er1 >conftest.err
6925   rm -f conftest.er1
6926   cat conftest.err >&5
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); } >/dev/null; then
6929   if test -s conftest.err; then
6930     ac_cpp_err=$ac_cxx_preproc_warn_flag
6931     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6932   else
6933     ac_cpp_err=
6934   fi
6935 else
6936   ac_cpp_err=yes
6937 fi
6938 if test -z "$ac_cpp_err"; then
6939   :
6940 else
6941   echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6943
6944   # Broken: fails on valid input.
6945 continue
6946 fi
6947 rm -f conftest.err conftest.$ac_ext
6948
6949   # OK, works on sane cases.  Now check whether non-existent headers
6950   # can be detected and how.
6951   cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h.  */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h.  */
6957 #include <ac_nonexistent.h>
6958 _ACEOF
6959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6960   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6961   ac_status=$?
6962   grep -v '^ *+' conftest.er1 >conftest.err
6963   rm -f conftest.er1
6964   cat conftest.err >&5
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); } >/dev/null; then
6967   if test -s conftest.err; then
6968     ac_cpp_err=$ac_cxx_preproc_warn_flag
6969     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6970   else
6971     ac_cpp_err=
6972   fi
6973 else
6974   ac_cpp_err=yes
6975 fi
6976 if test -z "$ac_cpp_err"; then
6977   # Broken: success on invalid input.
6978 continue
6979 else
6980   echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6982
6983   # Passes both tests.
6984 ac_preproc_ok=:
6985 break
6986 fi
6987 rm -f conftest.err conftest.$ac_ext
6988
6989 done
6990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6991 rm -f conftest.err conftest.$ac_ext
6992 if $ac_preproc_ok; then
6993   break
6994 fi
6995
6996     done
6997     ac_cv_prog_CXXCPP=$CXXCPP
6998
6999 fi
7000   CXXCPP=$ac_cv_prog_CXXCPP
7001 else
7002   ac_cv_prog_CXXCPP=$CXXCPP
7003 fi
7004 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7005 echo "${ECHO_T}$CXXCPP" >&6
7006 ac_preproc_ok=false
7007 for ac_cxx_preproc_warn_flag in '' yes
7008 do
7009   # Use a header file that comes with gcc, so configuring glibc
7010   # with a fresh cross-compiler works.
7011   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7012   # <limits.h> exists even on freestanding compilers.
7013   # On the NeXT, cc -E runs the code through the compiler's parser,
7014   # not just through cpp. "Syntax error" is here to catch this case.
7015   cat >conftest.$ac_ext <<_ACEOF
7016 /* confdefs.h.  */
7017 _ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h.  */
7021 #ifdef __STDC__
7022 # include <limits.h>
7023 #else
7024 # include <assert.h>
7025 #endif
7026                      Syntax error
7027 _ACEOF
7028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7030   ac_status=$?
7031   grep -v '^ *+' conftest.er1 >conftest.err
7032   rm -f conftest.er1
7033   cat conftest.err >&5
7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035   (exit $ac_status); } >/dev/null; then
7036   if test -s conftest.err; then
7037     ac_cpp_err=$ac_cxx_preproc_warn_flag
7038     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7039   else
7040     ac_cpp_err=
7041   fi
7042 else
7043   ac_cpp_err=yes
7044 fi
7045 if test -z "$ac_cpp_err"; then
7046   :
7047 else
7048   echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7050
7051   # Broken: fails on valid input.
7052 continue
7053 fi
7054 rm -f conftest.err conftest.$ac_ext
7055
7056   # OK, works on sane cases.  Now check whether non-existent headers
7057   # can be detected and how.
7058   cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h.  */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h.  */
7064 #include <ac_nonexistent.h>
7065 _ACEOF
7066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7068   ac_status=$?
7069   grep -v '^ *+' conftest.er1 >conftest.err
7070   rm -f conftest.er1
7071   cat conftest.err >&5
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); } >/dev/null; then
7074   if test -s conftest.err; then
7075     ac_cpp_err=$ac_cxx_preproc_warn_flag
7076     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7077   else
7078     ac_cpp_err=
7079   fi
7080 else
7081   ac_cpp_err=yes
7082 fi
7083 if test -z "$ac_cpp_err"; then
7084   # Broken: success on invalid input.
7085 continue
7086 else
7087   echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7089
7090   # Passes both tests.
7091 ac_preproc_ok=:
7092 break
7093 fi
7094 rm -f conftest.err conftest.$ac_ext
7095
7096 done
7097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7098 rm -f conftest.err conftest.$ac_ext
7099 if $ac_preproc_ok; then
7100   :
7101 else
7102   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7103 See \`config.log' for more details." >&5
7104 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7105 See \`config.log' for more details." >&2;}
7106    { (exit 1); exit 1; }; }
7107 fi
7108
7109 ac_ext=cc
7110 ac_cpp='$CXXCPP $CPPFLAGS'
7111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7114
7115
7116 ac_ext=f
7117 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7118 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7119 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7120 if test -n "$ac_tool_prefix"; then
7121   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7122   do
7123     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7125 echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7127 if test "${ac_cv_prog_F77+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   if test -n "$F77"; then
7131   ac_cv_prog_F77="$F77" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136   IFS=$as_save_IFS
7137   test -z "$as_dir" && as_dir=.
7138   for ac_exec_ext in '' $ac_executable_extensions; do
7139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142     break 2
7143   fi
7144 done
7145 done
7146
7147 fi
7148 fi
7149 F77=$ac_cv_prog_F77
7150 if test -n "$F77"; then
7151   echo "$as_me:$LINENO: result: $F77" >&5
7152 echo "${ECHO_T}$F77" >&6
7153 else
7154   echo "$as_me:$LINENO: result: no" >&5
7155 echo "${ECHO_T}no" >&6
7156 fi
7157
7158     test -n "$F77" && break
7159   done
7160 fi
7161 if test -z "$F77"; then
7162   ac_ct_F77=$F77
7163   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7164 do
7165   # Extract the first word of "$ac_prog", so it can be a program name with args.
7166 set dummy $ac_prog; ac_word=$2
7167 echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7169 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172   if test -n "$ac_ct_F77"; then
7173   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180   for ac_exec_ext in '' $ac_executable_extensions; do
7181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7182     ac_cv_prog_ac_ct_F77="$ac_prog"
7183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187 done
7188
7189 fi
7190 fi
7191 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7192 if test -n "$ac_ct_F77"; then
7193   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7194 echo "${ECHO_T}$ac_ct_F77" >&6
7195 else
7196   echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6
7198 fi
7199
7200   test -n "$ac_ct_F77" && break
7201 done
7202
7203   F77=$ac_ct_F77
7204 fi
7205
7206
7207 # Provide some information about the compiler.
7208 echo "$as_me:7208:" \
7209      "checking for Fortran 77 compiler version" >&5
7210 ac_compiler=`set X $ac_compile; echo $2`
7211 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7212   (eval $ac_compiler --version </dev/null >&5) 2>&5
7213   ac_status=$?
7214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); }
7216 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7217   (eval $ac_compiler -v </dev/null >&5) 2>&5
7218   ac_status=$?
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); }
7221 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7222   (eval $ac_compiler -V </dev/null >&5) 2>&5
7223   ac_status=$?
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); }
7226 rm -f a.out
7227
7228 # If we don't use `.F' as extension, the preprocessor is not run on the
7229 # input file.  (Note that this only needs to work for GNU compilers.)
7230 ac_save_ext=$ac_ext
7231 ac_ext=F
7232 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7233 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7234 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7235   echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237   cat >conftest.$ac_ext <<_ACEOF
7238       program main
7239 #ifndef __GNUC__
7240        choke me
7241 #endif
7242
7243       end
7244 _ACEOF
7245 rm -f conftest.$ac_objext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7247   (eval $ac_compile) 2>conftest.er1
7248   ac_status=$?
7249   grep -v '^ *+' conftest.er1 >conftest.err
7250   rm -f conftest.er1
7251   cat conftest.err >&5
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); } &&
7254          { ac_try='test -z "$ac_f77_werror_flag"
7255                          || test ! -s conftest.err'
7256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257   (eval $ac_try) 2>&5
7258   ac_status=$?
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); }; } &&
7261          { ac_try='test -s conftest.$ac_objext'
7262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263   (eval $ac_try) 2>&5
7264   ac_status=$?
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); }; }; then
7267   ac_compiler_gnu=yes
7268 else
7269   echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7271
7272 ac_compiler_gnu=no
7273 fi
7274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7275 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7276
7277 fi
7278 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7279 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7280 ac_ext=$ac_save_ext
7281 ac_test_FFLAGS=${FFLAGS+set}
7282 ac_save_FFLAGS=$FFLAGS
7283 FFLAGS=
7284 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7285 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7286 if test "${ac_cv_prog_f77_g+set}" = set; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289   FFLAGS=-g
7290 cat >conftest.$ac_ext <<_ACEOF
7291       program main
7292
7293       end
7294 _ACEOF
7295 rm -f conftest.$ac_objext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297   (eval $ac_compile) 2>conftest.er1
7298   ac_status=$?
7299   grep -v '^ *+' conftest.er1 >conftest.err
7300   rm -f conftest.er1
7301   cat conftest.err >&5
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); } &&
7304          { ac_try='test -z "$ac_f77_werror_flag"
7305                          || test ! -s conftest.err'
7306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307   (eval $ac_try) 2>&5
7308   ac_status=$?
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); }; } &&
7311          { ac_try='test -s conftest.$ac_objext'
7312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313   (eval $ac_try) 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); }; }; then
7317   ac_cv_prog_f77_g=yes
7318 else
7319   echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7321
7322 ac_cv_prog_f77_g=no
7323 fi
7324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7325
7326 fi
7327 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7328 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7329 if test "$ac_test_FFLAGS" = set; then
7330   FFLAGS=$ac_save_FFLAGS
7331 elif test $ac_cv_prog_f77_g = yes; then
7332   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7333     FFLAGS="-g -O2"
7334   else
7335     FFLAGS="-g"
7336   fi
7337 else
7338   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7339     FFLAGS="-O2"
7340   else
7341     FFLAGS=
7342   fi
7343 fi
7344
7345 G77=`test $ac_compiler_gnu = yes && echo yes`
7346 ac_ext=c
7347 ac_cpp='$CPP $CPPFLAGS'
7348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7351
7352
7353
7354 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7355
7356 # find the maximum length of command line arguments
7357 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7358 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7359 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7360   echo $ECHO_N "(cached) $ECHO_C" >&6
7361 else
7362     i=0
7363   teststring="ABCD"
7364
7365   case $build_os in
7366   msdosdjgpp*)
7367     # On DJGPP, this test can blow up pretty badly due to problems in libc
7368     # (any single argument exceeding 2000 bytes causes a buffer overrun
7369     # during glob expansion).  Even if it were fixed, the result of this
7370     # check would be larger than it should be.
7371     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7372     ;;
7373
7374   gnu*)
7375     # Under GNU Hurd, this test is not required because there is
7376     # no limit to the length of command line arguments.
7377     # Libtool will interpret -1 as no limit whatsoever
7378     lt_cv_sys_max_cmd_len=-1;
7379     ;;
7380
7381   cygwin* | mingw*)
7382     # On Win9x/ME, this test blows up -- it succeeds, but takes
7383     # about 5 minutes as the teststring grows exponentially.
7384     # Worse, since 9x/ME are not pre-emptively multitasking,
7385     # you end up with a "frozen" computer, even though with patience
7386     # the test eventually succeeds (with a max line length of 256k).
7387     # Instead, let's just punt: use the minimum linelength reported by
7388     # all of the supported platforms: 8192 (on NT/2K/XP).
7389     lt_cv_sys_max_cmd_len=8192;
7390     ;;
7391
7392   amigaos*)
7393     # On AmigaOS with pdksh, this test takes hours, literally.
7394     # So we just punt and use a minimum line length of 8192.
7395     lt_cv_sys_max_cmd_len=8192;
7396     ;;
7397
7398  *)
7399     # If test is not a shell built-in, we'll probably end up computing a
7400     # maximum length that is only half of the actual maximum length, but
7401     # we can't tell.
7402     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7403                = "XX$teststring") >/dev/null 2>&1 &&
7404             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7405             lt_cv_sys_max_cmd_len=$new_result &&
7406             test $i != 17 # 1/2 MB should be enough
7407     do
7408       i=`expr $i + 1`
7409       teststring=$teststring$teststring
7410     done
7411     teststring=
7412     # Add a significant safety factor because C++ compilers can tack on massive
7413     # amounts of additional arguments before passing them to the linker.
7414     # It appears as though 1/2 is a usable value.
7415     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7416     ;;
7417   esac
7418
7419 fi
7420
7421 if test -n $lt_cv_sys_max_cmd_len ; then
7422   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7423 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7424 else
7425   echo "$as_me:$LINENO: result: none" >&5
7426 echo "${ECHO_T}none" >&6
7427 fi
7428
7429
7430
7431
7432 # Check for command to grab the raw symbol name followed by C symbol from nm.
7433 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7434 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7435 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7436   echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438
7439 # These are sane defaults that work on at least a few old systems.
7440 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7441
7442 # Character class describing NM global symbol codes.
7443 symcode='[BCDEGRST]'
7444
7445 # Regexp to match symbols that can be accessed directly from C.
7446 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7447
7448 # Transform the above into a raw symbol and a C symbol.
7449 symxfrm='\1 \2\3 \3'
7450
7451 # Transform an extracted symbol line into a proper C declaration
7452 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7453
7454 # Transform an extracted symbol line into symbol name and symbol address
7455 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'"
7456
7457 # Define system-specific variables.
7458 case $host_os in
7459 aix*)
7460   symcode='[BCDT]'
7461   ;;
7462 cygwin* | mingw* | pw32*)
7463   symcode='[ABCDGISTW]'
7464   ;;
7465 hpux*) # Its linker distinguishes data from code symbols
7466   if test "$host_cpu" = ia64; then
7467     symcode='[ABCDEGRST]'
7468   fi
7469   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7470   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'"
7471   ;;
7472 irix* | nonstopux*)
7473   symcode='[BCDEGRST]'
7474   ;;
7475 osf*)
7476   symcode='[BCDEGQRST]'
7477   ;;
7478 solaris* | sysv5*)
7479   symcode='[BDRT]'
7480   ;;
7481 sysv4)
7482   symcode='[DFNSTU]'
7483   ;;
7484 esac
7485
7486 # Handle CRLF in mingw tool chain
7487 opt_cr=
7488 case $build_os in
7489 mingw*)
7490   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7491   ;;
7492 esac
7493
7494 # If we're using GNU nm, then use its standard symbol codes.
7495 case `$NM -V 2>&1` in
7496 *GNU* | *'with BFD'*)
7497   symcode='[ABCDGIRSTW]' ;;
7498 esac
7499
7500 # Try without a prefix undercore, then with it.
7501 for ac_symprfx in "" "_"; do
7502
7503   # Write the raw and C identifiers.
7504   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7505
7506   # Check to see that the pipe works correctly.
7507   pipe_works=no
7508
7509   rm -f conftest*
7510   cat > conftest.$ac_ext <<EOF
7511 #ifdef __cplusplus
7512 extern "C" {
7513 #endif
7514 char nm_test_var;
7515 void nm_test_func(){}
7516 #ifdef __cplusplus
7517 }
7518 #endif
7519 int main(){nm_test_var='a';nm_test_func();return(0);}
7520 EOF
7521
7522   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523   (eval $ac_compile) 2>&5
7524   ac_status=$?
7525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); }; then
7527     # Now try to grab the symbols.
7528     nlist=conftest.nm
7529     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7530   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7531   ac_status=$?
7532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533   (exit $ac_status); } && test -s "$nlist"; then
7534       # Try sorting and uniquifying the output.
7535       if sort "$nlist" | uniq > "$nlist"T; then
7536         mv -f "$nlist"T "$nlist"
7537       else
7538         rm -f "$nlist"T
7539       fi
7540
7541       # Make sure that we snagged all the symbols we need.
7542       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7543         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7544           cat <<EOF > conftest.$ac_ext
7545 #ifdef __cplusplus
7546 extern "C" {
7547 #endif
7548
7549 EOF
7550           # Now generate the symbol file.
7551           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7552
7553           cat <<EOF >> conftest.$ac_ext
7554 #if defined (__STDC__) && __STDC__
7555 # define lt_ptr_t void *
7556 #else
7557 # define lt_ptr_t char *
7558 # define const
7559 #endif
7560
7561 /* The mapping between symbol names and symbols. */
7562 const struct {
7563   const char *name;
7564   lt_ptr_t address;
7565 }
7566 lt_preloaded_symbols[] =
7567 {
7568 EOF
7569           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7570           cat <<\EOF >> conftest.$ac_ext
7571   {0, (lt_ptr_t) 0}
7572 };
7573
7574 #ifdef __cplusplus
7575 }
7576 #endif
7577 EOF
7578           # Now try linking the two files.
7579           mv conftest.$ac_objext conftstm.$ac_objext
7580           lt_save_LIBS="$LIBS"
7581           lt_save_CFLAGS="$CFLAGS"
7582           LIBS="conftstm.$ac_objext"
7583           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7584           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7585   (eval $ac_link) 2>&5
7586   ac_status=$?
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7589             pipe_works=yes
7590           fi
7591           LIBS="$lt_save_LIBS"
7592           CFLAGS="$lt_save_CFLAGS"
7593         else
7594           echo "cannot find nm_test_func in $nlist" >&5
7595         fi
7596       else
7597         echo "cannot find nm_test_var in $nlist" >&5
7598       fi
7599     else
7600       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7601     fi
7602   else
7603     echo "$progname: failed program was:" >&5
7604     cat conftest.$ac_ext >&5
7605   fi
7606   rm -f conftest* conftst*
7607
7608   # Do not use the global_symbol_pipe unless it works.
7609   if test "$pipe_works" = yes; then
7610     break
7611   else
7612     lt_cv_sys_global_symbol_pipe=
7613   fi
7614 done
7615
7616 fi
7617
7618 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7619   lt_cv_sys_global_symbol_to_cdecl=
7620 fi
7621 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7622   echo "$as_me:$LINENO: result: failed" >&5
7623 echo "${ECHO_T}failed" >&6
7624 else
7625   echo "$as_me:$LINENO: result: ok" >&5
7626 echo "${ECHO_T}ok" >&6
7627 fi
7628
7629 echo "$as_me:$LINENO: checking for objdir" >&5
7630 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7631 if test "${lt_cv_objdir+set}" = set; then
7632   echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634   rm -f .libs 2>/dev/null
7635 mkdir .libs 2>/dev/null
7636 if test -d .libs; then
7637   lt_cv_objdir=.libs
7638 else
7639   # MS-DOS does not allow filenames that begin with a dot.
7640   lt_cv_objdir=_libs
7641 fi
7642 rmdir .libs 2>/dev/null
7643 fi
7644 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7645 echo "${ECHO_T}$lt_cv_objdir" >&6
7646 objdir=$lt_cv_objdir
7647
7648
7649
7650
7651
7652 case $host_os in
7653 aix3*)
7654   # AIX sometimes has problems with the GCC collect2 program.  For some
7655   # reason, if we set the COLLECT_NAMES environment variable, the problems
7656   # vanish in a puff of smoke.
7657   if test "X${COLLECT_NAMES+set}" != Xset; then
7658     COLLECT_NAMES=
7659     export COLLECT_NAMES
7660   fi
7661   ;;
7662 esac
7663
7664 # Sed substitution that helps us do robust quoting.  It backslashifies
7665 # metacharacters that are still active within double-quoted strings.
7666 Xsed='sed -e s/^X//'
7667 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7668
7669 # Same as above, but do not quote variable references.
7670 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7671
7672 # Sed substitution to delay expansion of an escaped shell variable in a
7673 # double_quote_subst'ed string.
7674 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7675
7676 # Sed substitution to avoid accidental globbing in evaled expressions
7677 no_glob_subst='s/\*/\\\*/g'
7678
7679 # Constants:
7680 rm="rm -f"
7681
7682 # Global variables:
7683 default_ofile=libtool
7684 can_build_shared=yes
7685
7686 # All known linkers require a `.a' archive for static linking (except M$VC,
7687 # which needs '.lib').
7688 libext=a
7689 ltmain="$ac_aux_dir/ltmain.sh"
7690 ofile="$default_ofile"
7691 with_gnu_ld="$lt_cv_prog_gnu_ld"
7692
7693 if test -n "$ac_tool_prefix"; then
7694   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7695 set dummy ${ac_tool_prefix}ar; ac_word=$2
7696 echo "$as_me:$LINENO: checking for $ac_word" >&5
7697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7698 if test "${ac_cv_prog_AR+set}" = set; then
7699   echo $ECHO_N "(cached) $ECHO_C" >&6
7700 else
7701   if test -n "$AR"; then
7702   ac_cv_prog_AR="$AR" # Let the user override the test.
7703 else
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707   IFS=$as_save_IFS
7708   test -z "$as_dir" && as_dir=.
7709   for ac_exec_ext in '' $ac_executable_extensions; do
7710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711     ac_cv_prog_AR="${ac_tool_prefix}ar"
7712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713     break 2
7714   fi
7715 done
7716 done
7717
7718 fi
7719 fi
7720 AR=$ac_cv_prog_AR
7721 if test -n "$AR"; then
7722   echo "$as_me:$LINENO: result: $AR" >&5
7723 echo "${ECHO_T}$AR" >&6
7724 else
7725   echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6
7727 fi
7728
7729 fi
7730 if test -z "$ac_cv_prog_AR"; then
7731   ac_ct_AR=$AR
7732   # Extract the first word of "ar", so it can be a program name with args.
7733 set dummy ar; ac_word=$2
7734 echo "$as_me:$LINENO: checking for $ac_word" >&5
7735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7736 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   if test -n "$ac_ct_AR"; then
7740   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745   IFS=$as_save_IFS
7746   test -z "$as_dir" && as_dir=.
7747   for ac_exec_ext in '' $ac_executable_extensions; do
7748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749     ac_cv_prog_ac_ct_AR="ar"
7750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7751     break 2
7752   fi
7753 done
7754 done
7755
7756   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7757 fi
7758 fi
7759 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7760 if test -n "$ac_ct_AR"; then
7761   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7762 echo "${ECHO_T}$ac_ct_AR" >&6
7763 else
7764   echo "$as_me:$LINENO: result: no" >&5
7765 echo "${ECHO_T}no" >&6
7766 fi
7767
7768   AR=$ac_ct_AR
7769 else
7770   AR="$ac_cv_prog_AR"
7771 fi
7772
7773 if test -n "$ac_tool_prefix"; then
7774   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7775 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7776 echo "$as_me:$LINENO: checking for $ac_word" >&5
7777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7778 if test "${ac_cv_prog_RANLIB+set}" = set; then
7779   echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781   if test -n "$RANLIB"; then
7782   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787   IFS=$as_save_IFS
7788   test -z "$as_dir" && as_dir=.
7789   for ac_exec_ext in '' $ac_executable_extensions; do
7790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793     break 2
7794   fi
7795 done
7796 done
7797
7798 fi
7799 fi
7800 RANLIB=$ac_cv_prog_RANLIB
7801 if test -n "$RANLIB"; then
7802   echo "$as_me:$LINENO: result: $RANLIB" >&5
7803 echo "${ECHO_T}$RANLIB" >&6
7804 else
7805   echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6
7807 fi
7808
7809 fi
7810 if test -z "$ac_cv_prog_RANLIB"; then
7811   ac_ct_RANLIB=$RANLIB
7812   # Extract the first word of "ranlib", so it can be a program name with args.
7813 set dummy ranlib; ac_word=$2
7814 echo "$as_me:$LINENO: checking for $ac_word" >&5
7815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7816 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7817   echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819   if test -n "$ac_ct_RANLIB"; then
7820   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825   IFS=$as_save_IFS
7826   test -z "$as_dir" && as_dir=.
7827   for ac_exec_ext in '' $ac_executable_extensions; do
7828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829     ac_cv_prog_ac_ct_RANLIB="ranlib"
7830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7831     break 2
7832   fi
7833 done
7834 done
7835
7836   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7837 fi
7838 fi
7839 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7840 if test -n "$ac_ct_RANLIB"; then
7841   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7842 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7843 else
7844   echo "$as_me:$LINENO: result: no" >&5
7845 echo "${ECHO_T}no" >&6
7846 fi
7847
7848   RANLIB=$ac_ct_RANLIB
7849 else
7850   RANLIB="$ac_cv_prog_RANLIB"
7851 fi
7852
7853 if test -n "$ac_tool_prefix"; then
7854   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7855 set dummy ${ac_tool_prefix}strip; ac_word=$2
7856 echo "$as_me:$LINENO: checking for $ac_word" >&5
7857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7858 if test "${ac_cv_prog_STRIP+set}" = set; then
7859   echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861   if test -n "$STRIP"; then
7862   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7863 else
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867   IFS=$as_save_IFS
7868   test -z "$as_dir" && as_dir=.
7869   for ac_exec_ext in '' $ac_executable_extensions; do
7870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7873     break 2
7874   fi
7875 done
7876 done
7877
7878 fi
7879 fi
7880 STRIP=$ac_cv_prog_STRIP
7881 if test -n "$STRIP"; then
7882   echo "$as_me:$LINENO: result: $STRIP" >&5
7883 echo "${ECHO_T}$STRIP" >&6
7884 else
7885   echo "$as_me:$LINENO: result: no" >&5
7886 echo "${ECHO_T}no" >&6
7887 fi
7888
7889 fi
7890 if test -z "$ac_cv_prog_STRIP"; then
7891   ac_ct_STRIP=$STRIP
7892   # Extract the first word of "strip", so it can be a program name with args.
7893 set dummy strip; ac_word=$2
7894 echo "$as_me:$LINENO: checking for $ac_word" >&5
7895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7896 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7897   echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899   if test -n "$ac_ct_STRIP"; then
7900   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7904 do
7905   IFS=$as_save_IFS
7906   test -z "$as_dir" && as_dir=.
7907   for ac_exec_ext in '' $ac_executable_extensions; do
7908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909     ac_cv_prog_ac_ct_STRIP="strip"
7910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911     break 2
7912   fi
7913 done
7914 done
7915
7916   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7917 fi
7918 fi
7919 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7920 if test -n "$ac_ct_STRIP"; then
7921   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7922 echo "${ECHO_T}$ac_ct_STRIP" >&6
7923 else
7924   echo "$as_me:$LINENO: result: no" >&5
7925 echo "${ECHO_T}no" >&6
7926 fi
7927
7928   STRIP=$ac_ct_STRIP
7929 else
7930   STRIP="$ac_cv_prog_STRIP"
7931 fi
7932
7933
7934 old_CC="$CC"
7935 old_CFLAGS="$CFLAGS"
7936
7937 # Set sane defaults for various variables
7938 test -z "$AR" && AR=ar
7939 test -z "$AR_FLAGS" && AR_FLAGS=cru
7940 test -z "$AS" && AS=as
7941 test -z "$CC" && CC=cc
7942 test -z "$LTCC" && LTCC=$CC
7943 test -z "$DLLTOOL" && DLLTOOL=dlltool
7944 test -z "$LD" && LD=ld
7945 test -z "$LN_S" && LN_S="ln -s"
7946 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7947 test -z "$NM" && NM=nm
7948 test -z "$SED" && SED=sed
7949 test -z "$OBJDUMP" && OBJDUMP=objdump
7950 test -z "$RANLIB" && RANLIB=:
7951 test -z "$STRIP" && STRIP=:
7952 test -z "$ac_objext" && ac_objext=o
7953
7954 # Determine commands to create old-style static archives.
7955 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7956 old_postinstall_cmds='chmod 644 $oldlib'
7957 old_postuninstall_cmds=
7958
7959 if test -n "$RANLIB"; then
7960   case $host_os in
7961   openbsd*)
7962     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7963     ;;
7964   *)
7965     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7966     ;;
7967   esac
7968   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7969 fi
7970
7971 # Only perform the check for file, if the check method requires it
7972 case $deplibs_check_method in
7973 file_magic*)
7974   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7975     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7976 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7977 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7978   echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980   case $MAGIC_CMD in
7981 [\\/*] |  ?:[\\/]*)
7982   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7983   ;;
7984 *)
7985   lt_save_MAGIC_CMD="$MAGIC_CMD"
7986   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7987   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7988   for ac_dir in $ac_dummy; do
7989     IFS="$lt_save_ifs"
7990     test -z "$ac_dir" && ac_dir=.
7991     if test -f $ac_dir/${ac_tool_prefix}file; then
7992       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7993       if test -n "$file_magic_test_file"; then
7994         case $deplibs_check_method in
7995         "file_magic "*)
7996           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7997           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7998           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7999             $EGREP "$file_magic_regex" > /dev/null; then
8000             :
8001           else
8002             cat <<EOF 1>&2
8003
8004 *** Warning: the command libtool uses to detect shared libraries,
8005 *** $file_magic_cmd, produces output that libtool cannot recognize.
8006 *** The result is that libtool may fail to recognize shared libraries
8007 *** as such.  This will affect the creation of libtool libraries that
8008 *** depend on shared libraries, but programs linked with such libtool
8009 *** libraries will work regardless of this problem.  Nevertheless, you
8010 *** may want to report the problem to your system manager and/or to
8011 *** bug-libtool@gnu.org
8012
8013 EOF
8014           fi ;;
8015         esac
8016       fi
8017       break
8018     fi
8019   done
8020   IFS="$lt_save_ifs"
8021   MAGIC_CMD="$lt_save_MAGIC_CMD"
8022   ;;
8023 esac
8024 fi
8025
8026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8027 if test -n "$MAGIC_CMD"; then
8028   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8029 echo "${ECHO_T}$MAGIC_CMD" >&6
8030 else
8031   echo "$as_me:$LINENO: result: no" >&5
8032 echo "${ECHO_T}no" >&6
8033 fi
8034
8035 if test -z "$lt_cv_path_MAGIC_CMD"; then
8036   if test -n "$ac_tool_prefix"; then
8037     echo "$as_me:$LINENO: checking for file" >&5
8038 echo $ECHO_N "checking for file... $ECHO_C" >&6
8039 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8040   echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042   case $MAGIC_CMD in
8043 [\\/*] |  ?:[\\/]*)
8044   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8045   ;;
8046 *)
8047   lt_save_MAGIC_CMD="$MAGIC_CMD"
8048   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8049   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8050   for ac_dir in $ac_dummy; do
8051     IFS="$lt_save_ifs"
8052     test -z "$ac_dir" && ac_dir=.
8053     if test -f $ac_dir/file; then
8054       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8055       if test -n "$file_magic_test_file"; then
8056         case $deplibs_check_method in
8057         "file_magic "*)
8058           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8059           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8060           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8061             $EGREP "$file_magic_regex" > /dev/null; then
8062             :
8063           else
8064             cat <<EOF 1>&2
8065
8066 *** Warning: the command libtool uses to detect shared libraries,
8067 *** $file_magic_cmd, produces output that libtool cannot recognize.
8068 *** The result is that libtool may fail to recognize shared libraries
8069 *** as such.  This will affect the creation of libtool libraries that
8070 *** depend on shared libraries, but programs linked with such libtool
8071 *** libraries will work regardless of this problem.  Nevertheless, you
8072 *** may want to report the problem to your system manager and/or to
8073 *** bug-libtool@gnu.org
8074
8075 EOF
8076           fi ;;
8077         esac
8078       fi
8079       break
8080     fi
8081   done
8082   IFS="$lt_save_ifs"
8083   MAGIC_CMD="$lt_save_MAGIC_CMD"
8084   ;;
8085 esac
8086 fi
8087
8088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8089 if test -n "$MAGIC_CMD"; then
8090   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8091 echo "${ECHO_T}$MAGIC_CMD" >&6
8092 else
8093   echo "$as_me:$LINENO: result: no" >&5
8094 echo "${ECHO_T}no" >&6
8095 fi
8096
8097   else
8098     MAGIC_CMD=:
8099   fi
8100 fi
8101
8102   fi
8103   ;;
8104 esac
8105
8106 enable_dlopen=no
8107 enable_win32_dll=no
8108
8109 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8110 if test "${enable_libtool_lock+set}" = set; then
8111   enableval="$enable_libtool_lock"
8112
8113 fi;
8114 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8115
8116
8117 # Check whether --with-pic or --without-pic was given.
8118 if test "${with_pic+set}" = set; then
8119   withval="$with_pic"
8120   pic_mode="$withval"
8121 else
8122   pic_mode=default
8123 fi;
8124 test -z "$pic_mode" && pic_mode=default
8125
8126 # Use C for the default configuration in the libtool script
8127 tagname=
8128 lt_save_CC="$CC"
8129 ac_ext=c
8130 ac_cpp='$CPP $CPPFLAGS'
8131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8134
8135
8136 # Source file extension for C test sources.
8137 ac_ext=c
8138
8139 # Object file extension for compiled C test sources.
8140 objext=o
8141 objext=$objext
8142
8143 # Code to be used in simple compile tests
8144 lt_simple_compile_test_code="int some_variable = 0;\n"
8145
8146 # Code to be used in simple link tests
8147 lt_simple_link_test_code='int main(){return(0);}\n'
8148
8149
8150 # If no C compiler was specified, use CC.
8151 LTCC=${LTCC-"$CC"}
8152
8153 # Allow CC to be a program name with arguments.
8154 compiler=$CC
8155
8156
8157 #
8158 # Check for any special shared library compilation flags.
8159 #
8160 lt_prog_cc_shlib=
8161 if test "$GCC" = no; then
8162   case $host_os in
8163   sco3.2v5*)
8164     lt_prog_cc_shlib='-belf'
8165     ;;
8166   esac
8167 fi
8168 if test -n "$lt_prog_cc_shlib"; then
8169   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8170 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8171   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8172   else
8173     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8174 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8175     lt_cv_prog_cc_can_build_shared=no
8176   fi
8177 fi
8178
8179
8180 #
8181 # Check to make sure the static flag actually works.
8182 #
8183 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8184 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8185 if test "${lt_prog_compiler_static_works+set}" = set; then
8186   echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188   lt_prog_compiler_static_works=no
8189    save_LDFLAGS="$LDFLAGS"
8190    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8191    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8192    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8193      # The compiler can only warn and ignore the option if not recognized
8194      # So say no if there are warnings
8195      if test -s conftest.err; then
8196        # Append any errors to the config.log.
8197        cat conftest.err 1>&5
8198      else
8199        lt_prog_compiler_static_works=yes
8200      fi
8201    fi
8202    $rm conftest*
8203    LDFLAGS="$save_LDFLAGS"
8204
8205 fi
8206 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8207 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8208
8209 if test x"$lt_prog_compiler_static_works" = xyes; then
8210     :
8211 else
8212     lt_prog_compiler_static=
8213 fi
8214
8215
8216
8217 ## CAVEAT EMPTOR:
8218 ## There is no encapsulation within the following macros, do not change
8219 ## the running order or otherwise move them around unless you know exactly
8220 ## what you are doing...
8221
8222 lt_prog_compiler_no_builtin_flag=
8223
8224 if test "$GCC" = yes; then
8225   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8226
8227
8228 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8229 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8230 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8231   echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233   lt_cv_prog_compiler_rtti_exceptions=no
8234   ac_outfile=conftest.$ac_objext
8235    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8236    lt_compiler_flag="-fno-rtti -fno-exceptions"
8237    # Insert the option either (1) after the last *FLAGS variable, or
8238    # (2) before a word containing "conftest.", or (3) at the end.
8239    # Note that $ac_compile itself does not contain backslashes and begins
8240    # with a dollar sign (not a hyphen), so the echo should work correctly.
8241    # The option is referenced via a variable to avoid confusing sed.
8242    lt_compile=`echo "$ac_compile" | $SED \
8243    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8244    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8245    -e 's:$: $lt_compiler_flag:'`
8246    (eval echo "\"\$as_me:8246: $lt_compile\"" >&5)
8247    (eval "$lt_compile" 2>conftest.err)
8248    ac_status=$?
8249    cat conftest.err >&5
8250    echo "$as_me:8250: \$? = $ac_status" >&5
8251    if (exit $ac_status) && test -s "$ac_outfile"; then
8252      # The compiler can only warn and ignore the option if not recognized
8253      # So say no if there are warnings
8254      if test ! -s conftest.err; then
8255        lt_cv_prog_compiler_rtti_exceptions=yes
8256      fi
8257    fi
8258    $rm conftest*
8259
8260 fi
8261 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8262 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8263
8264 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8265     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8266 else
8267     :
8268 fi
8269
8270 fi
8271
8272 lt_prog_compiler_wl=
8273 lt_prog_compiler_pic=
8274 lt_prog_compiler_static=
8275
8276 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8277 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8278
8279   if test "$GCC" = yes; then
8280     lt_prog_compiler_wl='-Wl,'
8281     lt_prog_compiler_static='-static'
8282
8283     case $host_os in
8284       aix*)
8285       # All AIX code is PIC.
8286       if test "$host_cpu" = ia64; then
8287         # AIX 5 now supports IA64 processor
8288         lt_prog_compiler_static='-Bstatic'
8289       fi
8290       ;;
8291
8292     amigaos*)
8293       # FIXME: we need at least 68020 code to build shared libraries, but
8294       # adding the `-m68020' flag to GCC prevents building anything better,
8295       # like `-m68040'.
8296       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8297       ;;
8298
8299     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8300       # PIC is the default for these OSes.
8301       ;;
8302
8303     mingw* | pw32* | os2*)
8304       # This hack is so that the source file can tell whether it is being
8305       # built for inclusion in a dll (and should export symbols for example).
8306       lt_prog_compiler_pic='-DDLL_EXPORT'
8307       ;;
8308
8309     darwin* | rhapsody*)
8310       # PIC is the default on this platform
8311       # Common symbols not allowed in MH_DYLIB files
8312       lt_prog_compiler_pic='-fno-common'
8313       ;;
8314
8315     msdosdjgpp*)
8316       # Just because we use GCC doesn't mean we suddenly get shared libraries
8317       # on systems that don't support them.
8318       lt_prog_compiler_can_build_shared=no
8319       enable_shared=no
8320       ;;
8321
8322     sysv4*MP*)
8323       if test -d /usr/nec; then
8324         lt_prog_compiler_pic=-Kconform_pic
8325       fi
8326       ;;
8327
8328     hpux*)
8329       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8330       # not for PA HP-UX.
8331       case "$host_cpu" in
8332       hppa*64*|ia64*)
8333         # +Z the default
8334         ;;
8335       *)
8336         lt_prog_compiler_pic='-fPIC'
8337         ;;
8338       esac
8339       ;;
8340
8341     *)
8342       lt_prog_compiler_pic='-fPIC'
8343       ;;
8344     esac
8345   else
8346     # PORTME Check for flag to pass linker flags through the system compiler.
8347     case $host_os in
8348     aix*)
8349       lt_prog_compiler_wl='-Wl,'
8350       if test "$host_cpu" = ia64; then
8351         # AIX 5 now supports IA64 processor
8352         lt_prog_compiler_static='-Bstatic'
8353       else
8354         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8355       fi
8356       ;;
8357
8358     mingw* | pw32* | os2*)
8359       # This hack is so that the source file can tell whether it is being
8360       # built for inclusion in a dll (and should export symbols for example).
8361       lt_prog_compiler_pic='-DDLL_EXPORT'
8362       ;;
8363
8364     hpux9* | hpux10* | hpux11*)
8365       lt_prog_compiler_wl='-Wl,'
8366       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8367       # not for PA HP-UX.
8368       case "$host_cpu" in
8369       hppa*64*|ia64*)
8370         # +Z the default
8371         ;;
8372       *)
8373         lt_prog_compiler_pic='+Z'
8374         ;;
8375       esac
8376       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8377       lt_prog_compiler_static='${wl}-a ${wl}archive'
8378       ;;
8379
8380     irix5* | irix6* | nonstopux*)
8381       lt_prog_compiler_wl='-Wl,'
8382       # PIC (with -KPIC) is the default.
8383       lt_prog_compiler_static='-non_shared'
8384       ;;
8385
8386     newsos6)
8387       lt_prog_compiler_pic='-KPIC'
8388       lt_prog_compiler_static='-Bstatic'
8389       ;;
8390
8391     linux*)
8392       case $CC in
8393       icc* | ecc*)
8394         lt_prog_compiler_wl='-Wl,'
8395         lt_prog_compiler_pic='-KPIC'
8396         lt_prog_compiler_static='-static'
8397         ;;
8398       ccc*)
8399         lt_prog_compiler_wl='-Wl,'
8400         # All Alpha code is PIC.
8401         lt_prog_compiler_static='-non_shared'
8402         ;;
8403       esac
8404       ;;
8405
8406     osf3* | osf4* | osf5*)
8407       lt_prog_compiler_wl='-Wl,'
8408       # All OSF/1 code is PIC.
8409       lt_prog_compiler_static='-non_shared'
8410       ;;
8411
8412     sco3.2v5*)
8413       lt_prog_compiler_pic='-Kpic'
8414       lt_prog_compiler_static='-dn'
8415       ;;
8416
8417     solaris*)
8418       lt_prog_compiler_wl='-Wl,'
8419       lt_prog_compiler_pic='-KPIC'
8420       lt_prog_compiler_static='-Bstatic'
8421       ;;
8422
8423     sunos4*)
8424       lt_prog_compiler_wl='-Qoption ld '
8425       lt_prog_compiler_pic='-PIC'
8426       lt_prog_compiler_static='-Bstatic'
8427       ;;
8428
8429     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8430       lt_prog_compiler_wl='-Wl,'
8431       lt_prog_compiler_pic='-KPIC'
8432       lt_prog_compiler_static='-Bstatic'
8433       ;;
8434
8435     sysv4*MP*)
8436       if test -d /usr/nec ;then
8437         lt_prog_compiler_pic='-Kconform_pic'
8438         lt_prog_compiler_static='-Bstatic'
8439       fi
8440       ;;
8441
8442     uts4*)
8443       lt_prog_compiler_pic='-pic'
8444       lt_prog_compiler_static='-Bstatic'
8445       ;;
8446
8447     *)
8448       lt_prog_compiler_can_build_shared=no
8449       ;;
8450     esac
8451   fi
8452
8453 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8454 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8455
8456 #
8457 # Check to make sure the PIC flag actually works.
8458 #
8459 if test -n "$lt_prog_compiler_pic"; then
8460
8461 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8462 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8463 if test "${lt_prog_compiler_pic_works+set}" = set; then
8464   echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466   lt_prog_compiler_pic_works=no
8467   ac_outfile=conftest.$ac_objext
8468    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8469    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8470    # Insert the option either (1) after the last *FLAGS variable, or
8471    # (2) before a word containing "conftest.", or (3) at the end.
8472    # Note that $ac_compile itself does not contain backslashes and begins
8473    # with a dollar sign (not a hyphen), so the echo should work correctly.
8474    # The option is referenced via a variable to avoid confusing sed.
8475    lt_compile=`echo "$ac_compile" | $SED \
8476    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8477    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8478    -e 's:$: $lt_compiler_flag:'`
8479    (eval echo "\"\$as_me:8479: $lt_compile\"" >&5)
8480    (eval "$lt_compile" 2>conftest.err)
8481    ac_status=$?
8482    cat conftest.err >&5
8483    echo "$as_me:8483: \$? = $ac_status" >&5
8484    if (exit $ac_status) && test -s "$ac_outfile"; then
8485      # The compiler can only warn and ignore the option if not recognized
8486      # So say no if there are warnings
8487      if test ! -s conftest.err; then
8488        lt_prog_compiler_pic_works=yes
8489      fi
8490    fi
8491    $rm conftest*
8492
8493 fi
8494 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8495 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8496
8497 if test x"$lt_prog_compiler_pic_works" = xyes; then
8498     case $lt_prog_compiler_pic in
8499      "" | " "*) ;;
8500      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8501      esac
8502 else
8503     lt_prog_compiler_pic=
8504      lt_prog_compiler_can_build_shared=no
8505 fi
8506
8507 fi
8508 case "$host_os" in
8509   # For platforms which do not support PIC, -DPIC is meaningless:
8510   *djgpp*)
8511     lt_prog_compiler_pic=
8512     ;;
8513   *)
8514     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8515     ;;
8516 esac
8517
8518 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8519 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8520 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523   lt_cv_prog_compiler_c_o=no
8524    $rm -r conftest 2>/dev/null
8525    mkdir conftest
8526    cd conftest
8527    mkdir out
8528    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8529
8530    lt_compiler_flag="-o out/conftest2.$ac_objext"
8531    # Insert the option either (1) after the last *FLAGS variable, or
8532    # (2) before a word containing "conftest.", or (3) at the end.
8533    # Note that $ac_compile itself does not contain backslashes and begins
8534    # with a dollar sign (not a hyphen), so the echo should work correctly.
8535    lt_compile=`echo "$ac_compile" | $SED \
8536    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8537    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8538    -e 's:$: $lt_compiler_flag:'`
8539    (eval echo "\"\$as_me:8539: $lt_compile\"" >&5)
8540    (eval "$lt_compile" 2>out/conftest.err)
8541    ac_status=$?
8542    cat out/conftest.err >&5
8543    echo "$as_me:8543: \$? = $ac_status" >&5
8544    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8545    then
8546      # The compiler can only warn and ignore the option if not recognized
8547      # So say no if there are warnings
8548      if test ! -s out/conftest.err; then
8549        lt_cv_prog_compiler_c_o=yes
8550      fi
8551    fi
8552    chmod u+w .
8553    $rm conftest*
8554    # SGI C++ compiler will create directory out/ii_files/ for
8555    # template instantiation
8556    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8557    $rm out/* && rmdir out
8558    cd ..
8559    rmdir conftest
8560    $rm conftest*
8561
8562 fi
8563 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8564 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8565
8566
8567 hard_links="nottested"
8568 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8569   # do not overwrite the value of need_locks provided by the user
8570   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8571 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8572   hard_links=yes
8573   $rm conftest*
8574   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8575   touch conftest.a
8576   ln conftest.a conftest.b 2>&5 || hard_links=no
8577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8578   echo "$as_me:$LINENO: result: $hard_links" >&5
8579 echo "${ECHO_T}$hard_links" >&6
8580   if test "$hard_links" = no; then
8581     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8582 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8583     need_locks=warn
8584   fi
8585 else
8586   need_locks=no
8587 fi
8588
8589 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8590 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8591
8592   runpath_var=
8593   allow_undefined_flag=
8594   enable_shared_with_static_runtimes=no
8595   archive_cmds=
8596   archive_expsym_cmds=
8597   old_archive_From_new_cmds=
8598   old_archive_from_expsyms_cmds=
8599   export_dynamic_flag_spec=
8600   whole_archive_flag_spec=
8601   thread_safe_flag_spec=
8602   hardcode_libdir_flag_spec=
8603   hardcode_libdir_flag_spec_ld=
8604   hardcode_libdir_separator=
8605   hardcode_direct=no
8606   hardcode_minus_L=no
8607   hardcode_shlibpath_var=unsupported
8608   link_all_deplibs=unknown
8609   hardcode_automatic=no
8610   module_cmds=
8611   module_expsym_cmds=
8612   always_export_symbols=no
8613   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8614   # include_expsyms should be a list of space-separated symbols to be *always*
8615   # included in the symbol list
8616   include_expsyms=
8617   # exclude_expsyms can be an extended regexp of symbols to exclude
8618   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8619   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8620   # as well as any symbol that contains `d'.
8621   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8622   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8623   # platforms (ab)use it in PIC code, but their linkers get confused if
8624   # the symbol is explicitly referenced.  Since portable code cannot
8625   # rely on this symbol name, it's probably fine to never include it in
8626   # preloaded symbol tables.
8627   extract_expsyms_cmds=
8628
8629   case $host_os in
8630   cygwin* | mingw* | pw32*)
8631     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8632     # When not using gcc, we currently assume that we are using
8633     # Microsoft Visual C++.
8634     if test "$GCC" != yes; then
8635       with_gnu_ld=no
8636     fi
8637     ;;
8638   openbsd*)
8639     with_gnu_ld=no
8640     ;;
8641   esac
8642
8643   ld_shlibs=yes
8644   if test "$with_gnu_ld" = yes; then
8645     # If archive_cmds runs LD, not CC, wlarc should be empty
8646     wlarc='${wl}'
8647
8648     # See if GNU ld supports shared libraries.
8649     case $host_os in
8650     aix3* | aix4* | aix5*)
8651       # On AIX/PPC, the GNU linker is very broken
8652       if test "$host_cpu" != ia64; then
8653         ld_shlibs=no
8654         cat <<EOF 1>&2
8655
8656 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8657 *** to be unable to reliably create shared libraries on AIX.
8658 *** Therefore, libtool is disabling shared libraries support.  If you
8659 *** really care for shared libraries, you may want to modify your PATH
8660 *** so that a non-GNU linker is found, and then restart.
8661
8662 EOF
8663       fi
8664       ;;
8665
8666     amigaos*)
8667       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)'
8668       hardcode_libdir_flag_spec='-L$libdir'
8669       hardcode_minus_L=yes
8670
8671       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8672       # that the semantics of dynamic libraries on AmigaOS, at least up
8673       # to version 4, is to share data among multiple programs linked
8674       # with the same dynamic library.  Since this doesn't match the
8675       # behavior of shared libraries on other platforms, we can't use
8676       # them.
8677       ld_shlibs=no
8678       ;;
8679
8680     beos*)
8681       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8682         allow_undefined_flag=unsupported
8683         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8684         # support --undefined.  This deserves some investigation.  FIXME
8685         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8686       else
8687         ld_shlibs=no
8688       fi
8689       ;;
8690
8691     cygwin* | mingw* | pw32*)
8692       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8693       # as there is no search path for DLLs.
8694       hardcode_libdir_flag_spec='-L$libdir'
8695       allow_undefined_flag=unsupported
8696       always_export_symbols=no
8697       enable_shared_with_static_runtimes=yes
8698       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8699
8700       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8701         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8702         # If the export-symbols file already is a .def file (1st line
8703         # is EXPORTS), use it as is; otherwise, prepend...
8704         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8705           cp $export_symbols $output_objdir/$soname.def;
8706         else
8707           echo EXPORTS > $output_objdir/$soname.def;
8708           cat $export_symbols >> $output_objdir/$soname.def;
8709         fi~
8710         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8711       else
8712         ld_shlibs=no
8713       fi
8714       ;;
8715
8716     netbsd*)
8717       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8718         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8719         wlarc=
8720       else
8721         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723       fi
8724       ;;
8725
8726     solaris* | sysv5*)
8727       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8728         ld_shlibs=no
8729         cat <<EOF 1>&2
8730
8731 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8732 *** create shared libraries on Solaris systems.  Therefore, libtool
8733 *** is disabling shared libraries support.  We urge you to upgrade GNU
8734 *** binutils to release 2.9.1 or newer.  Another option is to modify
8735 *** your PATH or compiler configuration so that the native linker is
8736 *** used, and then restart.
8737
8738 EOF
8739       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8740         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8742       else
8743         ld_shlibs=no
8744       fi
8745       ;;
8746
8747     sunos4*)
8748       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8749       wlarc=
8750       hardcode_direct=yes
8751       hardcode_shlibpath_var=no
8752       ;;
8753
8754   linux*)
8755     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8756         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8757         archive_cmds="$tmp_archive_cmds"
8758       supports_anon_versioning=no
8759       case `$LD -v 2>/dev/null` in
8760         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8761         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8762         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8763         *\ 2.11.*) ;; # other 2.11 versions
8764         *) supports_anon_versioning=yes ;;
8765       esac
8766       if test $supports_anon_versioning = yes; then
8767         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8768 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8769 $echo "local: *; };" >> $output_objdir/$libname.ver~
8770         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8771       else
8772         archive_expsym_cmds="$tmp_archive_cmds"
8773       fi
8774     else
8775       ld_shlibs=no
8776     fi
8777     ;;
8778
8779     *)
8780       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8781         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8782         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8783       else
8784         ld_shlibs=no
8785       fi
8786       ;;
8787     esac
8788
8789     if test "$ld_shlibs" = yes; then
8790       runpath_var=LD_RUN_PATH
8791       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8792       export_dynamic_flag_spec='${wl}--export-dynamic'
8793       # ancient GNU ld didn't support --whole-archive et. al.
8794       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8795         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8796       else
8797         whole_archive_flag_spec=
8798       fi
8799     fi
8800   else
8801     # PORTME fill in a description of your system's linker (not GNU ld)
8802     case $host_os in
8803     aix3*)
8804       allow_undefined_flag=unsupported
8805       always_export_symbols=yes
8806       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'
8807       # Note: this linker hardcodes the directories in LIBPATH if there
8808       # are no directories specified by -L.
8809       hardcode_minus_L=yes
8810       if test "$GCC" = yes && test -z "$link_static_flag"; then
8811         # Neither direct hardcoding nor static linking is supported with a
8812         # broken collect2.
8813         hardcode_direct=unsupported
8814       fi
8815       ;;
8816
8817     aix4* | aix5*)
8818       if test "$host_cpu" = ia64; then
8819         # On IA64, the linker does run time linking by default, so we don't
8820         # have to do anything special.
8821         aix_use_runtimelinking=no
8822         exp_sym_flag='-Bexport'
8823         no_entry_flag=""
8824       else
8825         # If we're using GNU nm, then we don't want the "-C" option.
8826         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8827         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8828           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'
8829         else
8830           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'
8831         fi
8832         aix_use_runtimelinking=no
8833
8834         # Test if we are trying to use run time linking or normal
8835         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8836         # need to do runtime linking.
8837         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8838           for ld_flag in $LDFLAGS; do
8839           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8840             aix_use_runtimelinking=yes
8841             break
8842           fi
8843           done
8844         esac
8845
8846         exp_sym_flag='-bexport'
8847         no_entry_flag='-bnoentry'
8848       fi
8849
8850       # When large executables or shared objects are built, AIX ld can
8851       # have problems creating the table of contents.  If linking a library
8852       # or program results in "error TOC overflow" add -mminimal-toc to
8853       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8854       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8855
8856       archive_cmds=''
8857       hardcode_direct=yes
8858       hardcode_libdir_separator=':'
8859       link_all_deplibs=yes
8860
8861       if test "$GCC" = yes; then
8862         case $host_os in aix4.012|aix4.012.*)
8863         # We only want to do this on AIX 4.2 and lower, the check
8864         # below for broken collect2 doesn't work under 4.3+
8865           collect2name=`${CC} -print-prog-name=collect2`
8866           if test -f "$collect2name" && \
8867            strings "$collect2name" | grep resolve_lib_name >/dev/null
8868           then
8869           # We have reworked collect2
8870           hardcode_direct=yes
8871           else
8872           # We have old collect2
8873           hardcode_direct=unsupported
8874           # It fails to find uninstalled libraries when the uninstalled
8875           # path is not listed in the libpath.  Setting hardcode_minus_L
8876           # to unsupported forces relinking
8877           hardcode_minus_L=yes
8878           hardcode_libdir_flag_spec='-L$libdir'
8879           hardcode_libdir_separator=
8880           fi
8881         esac
8882         shared_flag='-shared'
8883       else
8884         # not using gcc
8885         if test "$host_cpu" = ia64; then
8886         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8887         # chokes on -Wl,-G. The following line is correct:
8888           shared_flag='-G'
8889         else
8890         if test "$aix_use_runtimelinking" = yes; then
8891             shared_flag='${wl}-G'
8892           else
8893             shared_flag='${wl}-bM:SRE'
8894         fi
8895         fi
8896       fi
8897
8898       # It seems that -bexpall does not export symbols beginning with
8899       # underscore (_), so it is better to generate a list of symbols to export.
8900       always_export_symbols=yes
8901       if test "$aix_use_runtimelinking" = yes; then
8902         # Warning - without using the other runtime loading flags (-brtl),
8903         # -berok will link without error, but may produce a broken library.
8904         allow_undefined_flag='-berok'
8905        # Determine the default libpath from the value encoded in an empty executable.
8906        cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h.  */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h.  */
8912
8913 int
8914 main ()
8915 {
8916
8917   ;
8918   return 0;
8919 }
8920 _ACEOF
8921 rm -f conftest.$ac_objext conftest$ac_exeext
8922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8923   (eval $ac_link) 2>conftest.er1
8924   ac_status=$?
8925   grep -v '^ *+' conftest.er1 >conftest.err
8926   rm -f conftest.er1
8927   cat conftest.err >&5
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } &&
8930          { ac_try='test -z "$ac_c_werror_flag"
8931                          || test ! -s conftest.err'
8932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933   (eval $ac_try) 2>&5
8934   ac_status=$?
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); }; } &&
8937          { ac_try='test -s conftest$ac_exeext'
8938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939   (eval $ac_try) 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); }; }; then
8943
8944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8945 }'`
8946 # Check for a 64-bit object if we didn't find anything.
8947 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; }
8948 }'`; fi
8949 else
8950   echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8952
8953 fi
8954 rm -f conftest.err conftest.$ac_objext \
8955       conftest$ac_exeext conftest.$ac_ext
8956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8957
8958        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8959         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"
8960        else
8961         if test "$host_cpu" = ia64; then
8962           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8963           allow_undefined_flag="-z nodefs"
8964           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"
8965         else
8966          # Determine the default libpath from the value encoded in an empty executable.
8967          cat >conftest.$ac_ext <<_ACEOF
8968 /* confdefs.h.  */
8969 _ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h.  */
8973
8974 int
8975 main ()
8976 {
8977
8978   ;
8979   return 0;
8980 }
8981 _ACEOF
8982 rm -f conftest.$ac_objext conftest$ac_exeext
8983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8984   (eval $ac_link) 2>conftest.er1
8985   ac_status=$?
8986   grep -v '^ *+' conftest.er1 >conftest.err
8987   rm -f conftest.er1
8988   cat conftest.err >&5
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } &&
8991          { ac_try='test -z "$ac_c_werror_flag"
8992                          || test ! -s conftest.err'
8993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994   (eval $ac_try) 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); }; } &&
8998          { ac_try='test -s conftest$ac_exeext'
8999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000   (eval $ac_try) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); }; }; then
9004
9005 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9006 }'`
9007 # Check for a 64-bit object if we didn't find anything.
9008 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; }
9009 }'`; fi
9010 else
9011   echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 fi
9015 rm -f conftest.err conftest.$ac_objext \
9016       conftest$ac_exeext conftest.$ac_ext
9017 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9018
9019          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9020           # Warning - without using the other run time loading flags,
9021           # -berok will link without error, but may produce a broken library.
9022           no_undefined_flag=' ${wl}-bernotok'
9023           allow_undefined_flag=' ${wl}-berok'
9024           # -bexpall does not export symbols beginning with underscore (_)
9025           always_export_symbols=yes
9026           # Exported symbols can be pulled into shared objects from archives
9027           whole_archive_flag_spec=' '
9028           archive_cmds_need_lc=yes
9029           # This is similar to how AIX traditionally builds it's shared libraries.
9030           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'
9031         fi
9032       fi
9033       ;;
9034
9035     amigaos*)
9036       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)'
9037       hardcode_libdir_flag_spec='-L$libdir'
9038       hardcode_minus_L=yes
9039       # see comment about different semantics on the GNU ld section
9040       ld_shlibs=no
9041       ;;
9042
9043     bsdi4*)
9044       export_dynamic_flag_spec=-rdynamic
9045       ;;
9046
9047     cygwin* | mingw* | pw32*)
9048       # When not using gcc, we currently assume that we are using
9049       # Microsoft Visual C++.
9050       # hardcode_libdir_flag_spec is actually meaningless, as there is
9051       # no search path for DLLs.
9052       hardcode_libdir_flag_spec=' '
9053       allow_undefined_flag=unsupported
9054       # Tell ltmain to make .lib files, not .a files.
9055       libext=lib
9056       # Tell ltmain to make .dll files, not .so files.
9057       shrext_cmds=".dll"
9058       # FIXME: Setting linknames here is a bad hack.
9059       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9060       # The linker will automatically build a .lib file if we build a DLL.
9061       old_archive_From_new_cmds='true'
9062       # FIXME: Should let the user specify the lib program.
9063       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9064       fix_srcfile_path='`cygpath -w "$srcfile"`'
9065       enable_shared_with_static_runtimes=yes
9066       ;;
9067
9068     darwin* | rhapsody*)
9069     if test "$GXX" = yes ; then
9070       archive_cmds_need_lc=no
9071       case "$host_os" in
9072       rhapsody* | darwin1.[012])
9073         allow_undefined_flag='-undefined suppress'
9074         ;;
9075       *) # Darwin 1.3 on
9076       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9077         allow_undefined_flag='-flat_namespace -undefined suppress'
9078       else
9079         case ${MACOSX_DEPLOYMENT_TARGET} in
9080           10.[012])
9081             allow_undefined_flag='-flat_namespace -undefined suppress'
9082             ;;
9083           10.*)
9084             allow_undefined_flag='-undefined dynamic_lookup'
9085             ;;
9086         esac
9087       fi
9088         ;;
9089       esac
9090         lt_int_apple_cc_single_mod=no
9091         output_verbose_link_cmd='echo'
9092         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9093           lt_int_apple_cc_single_mod=yes
9094         fi
9095         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9096           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9097         else
9098         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'
9099       fi
9100       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9101       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9102         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9103           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}'
9104         else
9105           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}'
9106         fi
9107           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}'
9108       hardcode_direct=no
9109       hardcode_automatic=yes
9110       hardcode_shlibpath_var=unsupported
9111       whole_archive_flag_spec='-all_load $convenience'
9112       link_all_deplibs=yes
9113     else
9114       ld_shlibs=no
9115     fi
9116       ;;
9117
9118     dgux*)
9119       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9120       hardcode_libdir_flag_spec='-L$libdir'
9121       hardcode_shlibpath_var=no
9122       ;;
9123
9124     freebsd1*)
9125       ld_shlibs=no
9126       ;;
9127
9128     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9129     # support.  Future versions do this automatically, but an explicit c++rt0.o
9130     # does not break anything, and helps significantly (at the cost of a little
9131     # extra space).
9132     freebsd2.2*)
9133       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9134       hardcode_libdir_flag_spec='-R$libdir'
9135       hardcode_direct=yes
9136       hardcode_shlibpath_var=no
9137       ;;
9138
9139     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9140     freebsd2*)
9141       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9142       hardcode_direct=yes
9143       hardcode_minus_L=yes
9144       hardcode_shlibpath_var=no
9145       ;;
9146
9147     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9148     freebsd* | kfreebsd*-gnu)
9149       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9150       hardcode_libdir_flag_spec='-R$libdir'
9151       hardcode_direct=yes
9152       hardcode_shlibpath_var=no
9153       ;;
9154
9155     hpux9*)
9156       if test "$GCC" = yes; then
9157         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'
9158       else
9159         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'
9160       fi
9161       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9162       hardcode_libdir_separator=:
9163       hardcode_direct=yes
9164
9165       # hardcode_minus_L: Not really in the search PATH,
9166       # but as the default location of the library.
9167       hardcode_minus_L=yes
9168       export_dynamic_flag_spec='${wl}-E'
9169       ;;
9170
9171     hpux10* | hpux11*)
9172       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9173         case "$host_cpu" in
9174         hppa*64*|ia64*)
9175           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9176           ;;
9177         *)
9178           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9179           ;;
9180         esac
9181       else
9182         case "$host_cpu" in
9183         hppa*64*|ia64*)
9184           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9185           ;;
9186         *)
9187           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9188           ;;
9189         esac
9190       fi
9191       if test "$with_gnu_ld" = no; then
9192         case "$host_cpu" in
9193         hppa*64*)
9194           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9195           hardcode_libdir_flag_spec_ld='+b $libdir'
9196           hardcode_libdir_separator=:
9197           hardcode_direct=no
9198           hardcode_shlibpath_var=no
9199           ;;
9200         ia64*)
9201           hardcode_libdir_flag_spec='-L$libdir'
9202           hardcode_direct=no
9203           hardcode_shlibpath_var=no
9204
9205           # hardcode_minus_L: Not really in the search PATH,
9206           # but as the default location of the library.
9207           hardcode_minus_L=yes
9208           ;;
9209         *)
9210           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9211           hardcode_libdir_separator=:
9212           hardcode_direct=yes
9213           export_dynamic_flag_spec='${wl}-E'
9214
9215           # hardcode_minus_L: Not really in the search PATH,
9216           # but as the default location of the library.
9217           hardcode_minus_L=yes
9218           ;;
9219         esac
9220       fi
9221       ;;
9222
9223     irix5* | irix6* | nonstopux*)
9224       if test "$GCC" = yes; then
9225         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'
9226       else
9227         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'
9228         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9229       fi
9230       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9231       hardcode_libdir_separator=:
9232       link_all_deplibs=yes
9233       ;;
9234
9235     netbsd*)
9236       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9237         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9238       else
9239         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9240       fi
9241       hardcode_libdir_flag_spec='-R$libdir'
9242       hardcode_direct=yes
9243       hardcode_shlibpath_var=no
9244       ;;
9245
9246     newsos6)
9247       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9248       hardcode_direct=yes
9249       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9250       hardcode_libdir_separator=:
9251       hardcode_shlibpath_var=no
9252       ;;
9253
9254     openbsd*)
9255       hardcode_direct=yes
9256       hardcode_shlibpath_var=no
9257       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9258         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9259         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9260         export_dynamic_flag_spec='${wl}-E'
9261       else
9262        case $host_os in
9263          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9264            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9265            hardcode_libdir_flag_spec='-R$libdir'
9266            ;;
9267          *)
9268            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9269            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9270            ;;
9271        esac
9272       fi
9273       ;;
9274
9275     os2*)
9276       hardcode_libdir_flag_spec='-L$libdir'
9277       hardcode_minus_L=yes
9278       allow_undefined_flag=unsupported
9279       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'
9280       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9281       ;;
9282
9283     osf3*)
9284       if test "$GCC" = yes; then
9285         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9286         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'
9287       else
9288         allow_undefined_flag=' -expect_unresolved \*'
9289         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'
9290       fi
9291       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292       hardcode_libdir_separator=:
9293       ;;
9294
9295     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9296       if test "$GCC" = yes; then
9297         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9298         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'
9299         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9300       else
9301         allow_undefined_flag=' -expect_unresolved \*'
9302         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'
9303         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9304         $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'
9305
9306         # Both c and cxx compiler support -rpath directly
9307         hardcode_libdir_flag_spec='-rpath $libdir'
9308       fi
9309       hardcode_libdir_separator=:
9310       ;;
9311
9312     sco3.2v5*)
9313       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9314       hardcode_shlibpath_var=no
9315       export_dynamic_flag_spec='${wl}-Bexport'
9316       runpath_var=LD_RUN_PATH
9317       hardcode_runpath_var=yes
9318       ;;
9319
9320     solaris*)
9321       no_undefined_flag=' -z text'
9322       if test "$GCC" = yes; then
9323         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9324         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9325           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9326       else
9327         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9329         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9330       fi
9331       hardcode_libdir_flag_spec='-R$libdir'
9332       hardcode_shlibpath_var=no
9333       case $host_os in
9334       solaris2.[0-5] | solaris2.[0-5].*) ;;
9335       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9336         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9337       esac
9338       link_all_deplibs=yes
9339       ;;
9340
9341     sunos4*)
9342       if test "x$host_vendor" = xsequent; then
9343         # Use $CC to link under sequent, because it throws in some extra .o
9344         # files that make .init and .fini sections work.
9345         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9346       else
9347         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9348       fi
9349       hardcode_libdir_flag_spec='-L$libdir'
9350       hardcode_direct=yes
9351       hardcode_minus_L=yes
9352       hardcode_shlibpath_var=no
9353       ;;
9354
9355     sysv4)
9356       case $host_vendor in
9357         sni)
9358           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9359           hardcode_direct=yes # is this really true???
9360         ;;
9361         siemens)
9362           ## LD is ld it makes a PLAMLIB
9363           ## CC just makes a GrossModule.
9364           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9365           reload_cmds='$CC -r -o $output$reload_objs'
9366           hardcode_direct=no
9367         ;;
9368         motorola)
9369           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9371         ;;
9372       esac
9373       runpath_var='LD_RUN_PATH'
9374       hardcode_shlibpath_var=no
9375       ;;
9376
9377     sysv4.3*)
9378       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379       hardcode_shlibpath_var=no
9380       export_dynamic_flag_spec='-Bexport'
9381       ;;
9382
9383     sysv4*MP*)
9384       if test -d /usr/nec; then
9385         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386         hardcode_shlibpath_var=no
9387         runpath_var=LD_RUN_PATH
9388         hardcode_runpath_var=yes
9389         ld_shlibs=yes
9390       fi
9391       ;;
9392
9393     sysv4.2uw2*)
9394       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9395       hardcode_direct=yes
9396       hardcode_minus_L=no
9397       hardcode_shlibpath_var=no
9398       hardcode_runpath_var=yes
9399       runpath_var=LD_RUN_PATH
9400       ;;
9401
9402    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9403       no_undefined_flag='${wl}-z ${wl}text'
9404       if test "$GCC" = yes; then
9405         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9406       else
9407         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9408       fi
9409       runpath_var='LD_RUN_PATH'
9410       hardcode_shlibpath_var=no
9411       ;;
9412
9413     sysv5*)
9414       no_undefined_flag=' -z text'
9415       # $CC -shared without GNU ld will not create a library from C++
9416       # object files and a static libstdc++, better avoid it by now
9417       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9418       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9419                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9420       hardcode_libdir_flag_spec=
9421       hardcode_shlibpath_var=no
9422       runpath_var='LD_RUN_PATH'
9423       ;;
9424
9425     uts4*)
9426       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427       hardcode_libdir_flag_spec='-L$libdir'
9428       hardcode_shlibpath_var=no
9429       ;;
9430
9431     *)
9432       ld_shlibs=no
9433       ;;
9434     esac
9435   fi
9436
9437 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9438 echo "${ECHO_T}$ld_shlibs" >&6
9439 test "$ld_shlibs" = no && can_build_shared=no
9440
9441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9442 if test "$GCC" = yes; then
9443   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9444 fi
9445
9446 #
9447 # Do we need to explicitly link libc?
9448 #
9449 case "x$archive_cmds_need_lc" in
9450 x|xyes)
9451   # Assume -lc should be added
9452   archive_cmds_need_lc=yes
9453
9454   if test "$enable_shared" = yes && test "$GCC" = yes; then
9455     case $archive_cmds in
9456     *'~'*)
9457       # FIXME: we may have to deal with multi-command sequences.
9458       ;;
9459     '$CC '*)
9460       # Test whether the compiler implicitly links with -lc since on some
9461       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9462       # to ld, don't add -lc before -lgcc.
9463       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9464 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9465       $rm conftest*
9466       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9467
9468       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9469   (eval $ac_compile) 2>&5
9470   ac_status=$?
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); } 2>conftest.err; then
9473         soname=conftest
9474         lib=conftest
9475         libobjs=conftest.$ac_objext
9476         deplibs=
9477         wl=$lt_prog_compiler_wl
9478         compiler_flags=-v
9479         linker_flags=-v
9480         verstring=
9481         output_objdir=.
9482         libname=conftest
9483         lt_save_allow_undefined_flag=$allow_undefined_flag
9484         allow_undefined_flag=
9485         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9486   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9487   ac_status=$?
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); }
9490         then
9491           archive_cmds_need_lc=no
9492         else
9493           archive_cmds_need_lc=yes
9494         fi
9495         allow_undefined_flag=$lt_save_allow_undefined_flag
9496       else
9497         cat conftest.err 1>&5
9498       fi
9499       $rm conftest*
9500       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9501 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9502       ;;
9503     esac
9504   fi
9505   ;;
9506 esac
9507
9508 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9509 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9510 library_names_spec=
9511 libname_spec='lib$name'
9512 soname_spec=
9513 shrext_cmds=".so"
9514 postinstall_cmds=
9515 postuninstall_cmds=
9516 finish_cmds=
9517 finish_eval=
9518 shlibpath_var=
9519 shlibpath_overrides_runpath=unknown
9520 version_type=none
9521 dynamic_linker="$host_os ld.so"
9522 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9523 if test "$GCC" = yes; then
9524   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9525   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9526     # if the path contains ";" then we assume it to be the separator
9527     # otherwise default to the standard path separator (i.e. ":") - it is
9528     # assumed that no part of a normal pathname contains ";" but that should
9529     # okay in the real world where ";" in dirpaths is itself problematic.
9530     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9531   else
9532     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9533   fi
9534 else
9535   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9536 fi
9537 need_lib_prefix=unknown
9538 hardcode_into_libs=no
9539
9540 # when you set need_version to no, make sure it does not cause -set_version
9541 # flags to be left without arguments
9542 need_version=unknown
9543
9544 case $host_os in
9545 aix3*)
9546   version_type=linux
9547   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9548   shlibpath_var=LIBPATH
9549
9550   # AIX 3 has no versioning support, so we append a major version to the name.
9551   soname_spec='${libname}${release}${shared_ext}$major'
9552   ;;
9553
9554 aix4* | aix5*)
9555   version_type=linux
9556   need_lib_prefix=no
9557   need_version=no
9558   hardcode_into_libs=yes
9559   if test "$host_cpu" = ia64; then
9560     # AIX 5 supports IA64
9561     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9562     shlibpath_var=LD_LIBRARY_PATH
9563   else
9564     # With GCC up to 2.95.x, collect2 would create an import file
9565     # for dependence libraries.  The import file would start with
9566     # the line `#! .'.  This would cause the generated library to
9567     # depend on `.', always an invalid library.  This was fixed in
9568     # development snapshots of GCC prior to 3.0.
9569     case $host_os in
9570       aix4 | aix4.[01] | aix4.[01].*)
9571       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9572            echo ' yes '
9573            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9574         :
9575       else
9576         can_build_shared=no
9577       fi
9578       ;;
9579     esac
9580     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9581     # soname into executable. Probably we can add versioning support to
9582     # collect2, so additional links can be useful in future.
9583     if test "$aix_use_runtimelinking" = yes; then
9584       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9585       # instead of lib<name>.a to let people know that these are not
9586       # typical AIX shared libraries.
9587       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9588     else
9589       # We preserve .a as extension for shared libraries through AIX4.2
9590       # and later when we are not doing run time linking.
9591       library_names_spec='${libname}${release}.a $libname.a'
9592       soname_spec='${libname}${release}${shared_ext}$major'
9593     fi
9594     shlibpath_var=LIBPATH
9595   fi
9596   ;;
9597
9598 amigaos*)
9599   library_names_spec='$libname.ixlibrary $libname.a'
9600   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9601   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'
9602   ;;
9603
9604 beos*)
9605   library_names_spec='${libname}${shared_ext}'
9606   dynamic_linker="$host_os ld.so"
9607   shlibpath_var=LIBRARY_PATH
9608   ;;
9609
9610 bsdi4*)
9611   version_type=linux
9612   need_version=no
9613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614   soname_spec='${libname}${release}${shared_ext}$major'
9615   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9616   shlibpath_var=LD_LIBRARY_PATH
9617   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9618   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9619   # the default ld.so.conf also contains /usr/contrib/lib and
9620   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9621   # libtool to hard-code these into programs
9622   ;;
9623
9624 cygwin* | mingw* | pw32*)
9625   version_type=windows
9626   shrext_cmds=".dll"
9627   need_version=no
9628   need_lib_prefix=no
9629
9630   case $GCC,$host_os in
9631   yes,cygwin* | yes,mingw* | yes,pw32*)
9632     library_names_spec='$libname.dll.a'
9633     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9634     postinstall_cmds='base_file=`basename \${file}`~
9635       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9636       dldir=$destdir/`dirname \$dlpath`~
9637       test -d \$dldir || mkdir -p \$dldir~
9638       $install_prog $dir/$dlname \$dldir/$dlname'
9639     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9640       dlpath=$dir/\$dldll~
9641        $rm \$dlpath'
9642     shlibpath_overrides_runpath=yes
9643
9644     case $host_os in
9645     cygwin*)
9646       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9647       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9648       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9649       ;;
9650     mingw*)
9651       # MinGW DLLs use traditional 'lib' prefix
9652       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9653       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9654       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9655         # It is most probably a Windows format PATH printed by
9656         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9657         # path with ; separators, and with drive letters. We can handle the
9658         # drive letters (cygwin fileutils understands them), so leave them,
9659         # especially as we might pass files found there to a mingw objdump,
9660         # which wouldn't understand a cygwinified path. Ahh.
9661         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9662       else
9663         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9664       fi
9665       ;;
9666     pw32*)
9667       # pw32 DLLs use 'pw' prefix rather than 'lib'
9668       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9669       ;;
9670     esac
9671     ;;
9672
9673   *)
9674     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9675     ;;
9676   esac
9677   dynamic_linker='Win32 ld.exe'
9678   # FIXME: first we should search . and the directory the executable is in
9679   shlibpath_var=PATH
9680   ;;
9681
9682 darwin* | rhapsody*)
9683   dynamic_linker="$host_os dyld"
9684   version_type=darwin
9685   need_lib_prefix=no
9686   need_version=no
9687   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9688   soname_spec='${libname}${release}${major}$shared_ext'
9689   shlibpath_overrides_runpath=yes
9690   shlibpath_var=DYLD_LIBRARY_PATH
9691   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9692   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9693   if test "$GCC" = yes; then
9694     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"`
9695   else
9696     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9697   fi
9698   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9699   ;;
9700
9701 dgux*)
9702   version_type=linux
9703   need_lib_prefix=no
9704   need_version=no
9705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9706   soname_spec='${libname}${release}${shared_ext}$major'
9707   shlibpath_var=LD_LIBRARY_PATH
9708   ;;
9709
9710 freebsd1*)
9711   dynamic_linker=no
9712   ;;
9713
9714 kfreebsd*-gnu)
9715   version_type=linux
9716   need_lib_prefix=no
9717   need_version=no
9718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9719   soname_spec='${libname}${release}${shared_ext}$major'
9720   shlibpath_var=LD_LIBRARY_PATH
9721   shlibpath_overrides_runpath=no
9722   hardcode_into_libs=yes
9723   dynamic_linker='GNU ld.so'
9724   ;;
9725
9726 freebsd*)
9727   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9728   version_type=freebsd-$objformat
9729   case $version_type in
9730     freebsd-elf*)
9731       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9732       need_version=no
9733       need_lib_prefix=no
9734       ;;
9735     freebsd-*)
9736       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9737       need_version=yes
9738       ;;
9739   esac
9740   shlibpath_var=LD_LIBRARY_PATH
9741   case $host_os in
9742   freebsd2*)
9743     shlibpath_overrides_runpath=yes
9744     ;;
9745   freebsd3.01* | freebsdelf3.01*)
9746     shlibpath_overrides_runpath=yes
9747     hardcode_into_libs=yes
9748     ;;
9749   *) # from 3.2 on
9750     shlibpath_overrides_runpath=no
9751     hardcode_into_libs=yes
9752     ;;
9753   esac
9754   ;;
9755
9756 gnu*)
9757   version_type=linux
9758   need_lib_prefix=no
9759   need_version=no
9760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9761   soname_spec='${libname}${release}${shared_ext}$major'
9762   shlibpath_var=LD_LIBRARY_PATH
9763   hardcode_into_libs=yes
9764   ;;
9765
9766 hpux9* | hpux10* | hpux11*)
9767   # Give a soname corresponding to the major version so that dld.sl refuses to
9768   # link against other versions.
9769   version_type=sunos
9770   need_lib_prefix=no
9771   need_version=no
9772   case "$host_cpu" in
9773   ia64*)
9774     shrext_cmds='.so'
9775     hardcode_into_libs=yes
9776     dynamic_linker="$host_os dld.so"
9777     shlibpath_var=LD_LIBRARY_PATH
9778     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780     soname_spec='${libname}${release}${shared_ext}$major'
9781     if test "X$HPUX_IA64_MODE" = X32; then
9782       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9783     else
9784       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9785     fi
9786     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9787     ;;
9788    hppa*64*)
9789      shrext_cmds='.sl'
9790      hardcode_into_libs=yes
9791      dynamic_linker="$host_os dld.sl"
9792      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9793      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9794      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9795      soname_spec='${libname}${release}${shared_ext}$major'
9796      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9797      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9798      ;;
9799    *)
9800     shrext_cmds='.sl'
9801     dynamic_linker="$host_os dld.sl"
9802     shlibpath_var=SHLIB_PATH
9803     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9804     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805     soname_spec='${libname}${release}${shared_ext}$major'
9806     ;;
9807   esac
9808   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9809   postinstall_cmds='chmod 555 $lib'
9810   ;;
9811
9812 irix5* | irix6* | nonstopux*)
9813   case $host_os in
9814     nonstopux*) version_type=nonstopux ;;
9815     *)
9816         if test "$lt_cv_prog_gnu_ld" = yes; then
9817                 version_type=linux
9818         else
9819                 version_type=irix
9820         fi ;;
9821   esac
9822   need_lib_prefix=no
9823   need_version=no
9824   soname_spec='${libname}${release}${shared_ext}$major'
9825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9826   case $host_os in
9827   irix5* | nonstopux*)
9828     libsuff= shlibsuff=
9829     ;;
9830   *)
9831     case $LD in # libtool.m4 will add one of these switches to LD
9832     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9833       libsuff= shlibsuff= libmagic=32-bit;;
9834     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9835       libsuff=32 shlibsuff=N32 libmagic=N32;;
9836     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9837       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9838     *) libsuff= shlibsuff= libmagic=never-match;;
9839     esac
9840     ;;
9841   esac
9842   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9843   shlibpath_overrides_runpath=no
9844   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9845   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9846   hardcode_into_libs=yes
9847   ;;
9848
9849 # No shared lib support for Linux oldld, aout, or coff.
9850 linux*oldld* | linux*aout* | linux*coff*)
9851   dynamic_linker=no
9852   ;;
9853
9854 # This must be Linux ELF.
9855 linux*)
9856   version_type=linux
9857   need_lib_prefix=no
9858   need_version=no
9859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860   soname_spec='${libname}${release}${shared_ext}$major'
9861   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9862   shlibpath_var=LD_LIBRARY_PATH
9863   shlibpath_overrides_runpath=no
9864   # This implies no fast_install, which is unacceptable.
9865   # Some rework will be needed to allow for fast_install
9866   # before this can be enabled.
9867   hardcode_into_libs=yes
9868
9869   # find out which ABI we are using
9870   libsuff=
9871   case "$host_cpu" in
9872   x86_64*|s390x*|powerpc64*)
9873     echo '#line 9873 "configure"' > conftest.$ac_ext
9874     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9875   (eval $ac_compile) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; then
9879       case `/usr/bin/file conftest.$ac_objext` in
9880       *64-bit*)
9881         libsuff=64
9882         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9883         ;;
9884       esac
9885     fi
9886     rm -rf conftest*
9887     ;;
9888   esac
9889
9890   # Append ld.so.conf contents to the search path
9891   if test -f /etc/ld.so.conf; then
9892     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9893     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9894   fi
9895
9896   # We used to test for /lib/ld.so.1 and disable shared libraries on
9897   # powerpc, because MkLinux only supported shared libraries with the
9898   # GNU dynamic linker.  Since this was broken with cross compilers,
9899   # most powerpc-linux boxes support dynamic linking these days and
9900   # people can always --disable-shared, the test was removed, and we
9901   # assume the GNU/Linux dynamic linker is in use.
9902   dynamic_linker='GNU/Linux ld.so'
9903   ;;
9904
9905 knetbsd*-gnu)
9906   version_type=linux
9907   need_lib_prefix=no
9908   need_version=no
9909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9910   soname_spec='${libname}${release}${shared_ext}$major'
9911   shlibpath_var=LD_LIBRARY_PATH
9912   shlibpath_overrides_runpath=no
9913   hardcode_into_libs=yes
9914   dynamic_linker='GNU ld.so'
9915   ;;
9916
9917 netbsd*)
9918   version_type=sunos
9919   need_lib_prefix=no
9920   need_version=no
9921   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9923     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9924     dynamic_linker='NetBSD (a.out) ld.so'
9925   else
9926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9927     soname_spec='${libname}${release}${shared_ext}$major'
9928     dynamic_linker='NetBSD ld.elf_so'
9929   fi
9930   shlibpath_var=LD_LIBRARY_PATH
9931   shlibpath_overrides_runpath=yes
9932   hardcode_into_libs=yes
9933   ;;
9934
9935 newsos6)
9936   version_type=linux
9937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938   shlibpath_var=LD_LIBRARY_PATH
9939   shlibpath_overrides_runpath=yes
9940   ;;
9941
9942 nto-qnx*)
9943   version_type=linux
9944   need_lib_prefix=no
9945   need_version=no
9946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947   soname_spec='${libname}${release}${shared_ext}$major'
9948   shlibpath_var=LD_LIBRARY_PATH
9949   shlibpath_overrides_runpath=yes
9950   ;;
9951
9952 openbsd*)
9953   version_type=sunos
9954   need_lib_prefix=no
9955   need_version=yes
9956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9957   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9958   shlibpath_var=LD_LIBRARY_PATH
9959   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9960     case $host_os in
9961       openbsd2.[89] | openbsd2.[89].*)
9962         shlibpath_overrides_runpath=no
9963         ;;
9964       *)
9965         shlibpath_overrides_runpath=yes
9966         ;;
9967       esac
9968   else
9969     shlibpath_overrides_runpath=yes
9970   fi
9971   ;;
9972
9973 os2*)
9974   libname_spec='$name'
9975   shrext_cmds=".dll"
9976   need_lib_prefix=no
9977   library_names_spec='$libname${shared_ext} $libname.a'
9978   dynamic_linker='OS/2 ld.exe'
9979   shlibpath_var=LIBPATH
9980   ;;
9981
9982 osf3* | osf4* | osf5*)
9983   version_type=osf
9984   need_lib_prefix=no
9985   need_version=no
9986   soname_spec='${libname}${release}${shared_ext}$major'
9987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988   shlibpath_var=LD_LIBRARY_PATH
9989   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9990   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9991   ;;
9992
9993 sco3.2v5*)
9994   version_type=osf
9995   soname_spec='${libname}${release}${shared_ext}$major'
9996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9997   shlibpath_var=LD_LIBRARY_PATH
9998   ;;
9999
10000 solaris*)
10001   version_type=linux
10002   need_lib_prefix=no
10003   need_version=no
10004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10005   soname_spec='${libname}${release}${shared_ext}$major'
10006   shlibpath_var=LD_LIBRARY_PATH
10007   shlibpath_overrides_runpath=yes
10008   hardcode_into_libs=yes
10009   # ldd complains unless libraries are executable
10010   postinstall_cmds='chmod +x $lib'
10011   ;;
10012
10013 sunos4*)
10014   version_type=sunos
10015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10016   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10017   shlibpath_var=LD_LIBRARY_PATH
10018   shlibpath_overrides_runpath=yes
10019   if test "$with_gnu_ld" = yes; then
10020     need_lib_prefix=no
10021   fi
10022   need_version=yes
10023   ;;
10024
10025 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10026   version_type=linux
10027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028   soname_spec='${libname}${release}${shared_ext}$major'
10029   shlibpath_var=LD_LIBRARY_PATH
10030   case $host_vendor in
10031     sni)
10032       shlibpath_overrides_runpath=no
10033       need_lib_prefix=no
10034       export_dynamic_flag_spec='${wl}-Blargedynsym'
10035       runpath_var=LD_RUN_PATH
10036       ;;
10037     siemens)
10038       need_lib_prefix=no
10039       ;;
10040     motorola)
10041       need_lib_prefix=no
10042       need_version=no
10043       shlibpath_overrides_runpath=no
10044       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10045       ;;
10046   esac
10047   ;;
10048
10049 sysv4*MP*)
10050   if test -d /usr/nec ;then
10051     version_type=linux
10052     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10053     soname_spec='$libname${shared_ext}.$major'
10054     shlibpath_var=LD_LIBRARY_PATH
10055   fi
10056   ;;
10057
10058 uts4*)
10059   version_type=linux
10060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061   soname_spec='${libname}${release}${shared_ext}$major'
10062   shlibpath_var=LD_LIBRARY_PATH
10063   ;;
10064
10065 *)
10066   dynamic_linker=no
10067   ;;
10068 esac
10069 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10070 echo "${ECHO_T}$dynamic_linker" >&6
10071 test "$dynamic_linker" = no && can_build_shared=no
10072
10073 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10074 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10075 hardcode_action=
10076 if test -n "$hardcode_libdir_flag_spec" || \
10077    test -n "$runpath_var " || \
10078    test "X$hardcode_automatic"="Xyes" ; then
10079
10080   # We can hardcode non-existant directories.
10081   if test "$hardcode_direct" != no &&
10082      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10083      # have to relink, otherwise we might link with an installed library
10084      # when we should be linking with a yet-to-be-installed one
10085      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10086      test "$hardcode_minus_L" != no; then
10087     # Linking always hardcodes the temporary library directory.
10088     hardcode_action=relink
10089   else
10090     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10091     hardcode_action=immediate
10092   fi
10093 else
10094   # We cannot hardcode anything, or else we can only hardcode existing
10095   # directories.
10096   hardcode_action=unsupported
10097 fi
10098 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10099 echo "${ECHO_T}$hardcode_action" >&6
10100
10101 if test "$hardcode_action" = relink; then
10102   # Fast installation is not supported
10103   enable_fast_install=no
10104 elif test "$shlibpath_overrides_runpath" = yes ||
10105      test "$enable_shared" = no; then
10106   # Fast installation is not necessary
10107   enable_fast_install=needless
10108 fi
10109
10110 striplib=
10111 old_striplib=
10112 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10113 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10114 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10115   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10116   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10117   echo "$as_me:$LINENO: result: yes" >&5
10118 echo "${ECHO_T}yes" >&6
10119 else
10120 # FIXME - insert some real tests, host_os isn't really good enough
10121   case $host_os in
10122    darwin*)
10123        if test -n "$STRIP" ; then
10124          striplib="$STRIP -x"
10125          echo "$as_me:$LINENO: result: yes" >&5
10126 echo "${ECHO_T}yes" >&6
10127        else
10128   echo "$as_me:$LINENO: result: no" >&5
10129 echo "${ECHO_T}no" >&6
10130 fi
10131        ;;
10132    *)
10133   echo "$as_me:$LINENO: result: no" >&5
10134 echo "${ECHO_T}no" >&6
10135     ;;
10136   esac
10137 fi
10138
10139 if test "x$enable_dlopen" != xyes; then
10140   enable_dlopen=unknown
10141   enable_dlopen_self=unknown
10142   enable_dlopen_self_static=unknown
10143 else
10144   lt_cv_dlopen=no
10145   lt_cv_dlopen_libs=
10146
10147   case $host_os in
10148   beos*)
10149     lt_cv_dlopen="load_add_on"
10150     lt_cv_dlopen_libs=
10151     lt_cv_dlopen_self=yes
10152     ;;
10153
10154   mingw* | pw32*)
10155     lt_cv_dlopen="LoadLibrary"
10156     lt_cv_dlopen_libs=
10157    ;;
10158
10159   cygwin*)
10160     lt_cv_dlopen="dlopen"
10161     lt_cv_dlopen_libs=
10162    ;;
10163
10164   darwin*)
10165   # if libdl is installed we need to link against it
10166     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10167 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10168 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10169   echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171   ac_check_lib_save_LIBS=$LIBS
10172 LIBS="-ldl  $LIBS"
10173 cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h.  */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h.  */
10179
10180 /* Override any gcc2 internal prototype to avoid an error.  */
10181 #ifdef __cplusplus
10182 extern "C"
10183 #endif
10184 /* We use char because int might match the return type of a gcc2
10185    builtin and then its argument prototype would still apply.  */
10186 char dlopen ();
10187 int
10188 main ()
10189 {
10190 dlopen ();
10191   ;
10192   return 0;
10193 }
10194 _ACEOF
10195 rm -f conftest.$ac_objext conftest$ac_exeext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10197   (eval $ac_link) 2>conftest.er1
10198   ac_status=$?
10199   grep -v '^ *+' conftest.er1 >conftest.err
10200   rm -f conftest.er1
10201   cat conftest.err >&5
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); } &&
10204          { ac_try='test -z "$ac_c_werror_flag"
10205                          || test ! -s conftest.err'
10206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207   (eval $ac_try) 2>&5
10208   ac_status=$?
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); }; } &&
10211          { ac_try='test -s conftest$ac_exeext'
10212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213   (eval $ac_try) 2>&5
10214   ac_status=$?
10215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216   (exit $ac_status); }; }; then
10217   ac_cv_lib_dl_dlopen=yes
10218 else
10219   echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10221
10222 ac_cv_lib_dl_dlopen=no
10223 fi
10224 rm -f conftest.err conftest.$ac_objext \
10225       conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_lib_save_LIBS
10227 fi
10228 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10229 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10230 if test $ac_cv_lib_dl_dlopen = yes; then
10231   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10232 else
10233
10234     lt_cv_dlopen="dyld"
10235     lt_cv_dlopen_libs=
10236     lt_cv_dlopen_self=yes
10237
10238 fi
10239
10240    ;;
10241
10242   *)
10243     echo "$as_me:$LINENO: checking for shl_load" >&5
10244 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10245 if test "${ac_cv_func_shl_load+set}" = set; then
10246   echo $ECHO_N "(cached) $ECHO_C" >&6
10247 else
10248   cat >conftest.$ac_ext <<_ACEOF
10249 /* confdefs.h.  */
10250 _ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h.  */
10254 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10256 #define shl_load innocuous_shl_load
10257
10258 /* System header to define __stub macros and hopefully few prototypes,
10259     which can conflict with char shl_load (); below.
10260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10261     <limits.h> exists even on freestanding compilers.  */
10262
10263 #ifdef __STDC__
10264 # include <limits.h>
10265 #else
10266 # include <assert.h>
10267 #endif
10268
10269 #undef shl_load
10270
10271 /* Override any gcc2 internal prototype to avoid an error.  */
10272 #ifdef __cplusplus
10273 extern "C"
10274 {
10275 #endif
10276 /* We use char because int might match the return type of a gcc2
10277    builtin and then its argument prototype would still apply.  */
10278 char shl_load ();
10279 /* The GNU C library defines this for functions which it implements
10280     to always fail with ENOSYS.  Some functions are actually named
10281     something starting with __ and the normal name is an alias.  */
10282 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10283 choke me
10284 #else
10285 char (*f) () = shl_load;
10286 #endif
10287 #ifdef __cplusplus
10288 }
10289 #endif
10290
10291 int
10292 main ()
10293 {
10294 return f != shl_load;
10295   ;
10296   return 0;
10297 }
10298 _ACEOF
10299 rm -f conftest.$ac_objext conftest$ac_exeext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10301   (eval $ac_link) 2>conftest.er1
10302   ac_status=$?
10303   grep -v '^ *+' conftest.er1 >conftest.err
10304   rm -f conftest.er1
10305   cat conftest.err >&5
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); } &&
10308          { ac_try='test -z "$ac_c_werror_flag"
10309                          || test ! -s conftest.err'
10310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311   (eval $ac_try) 2>&5
10312   ac_status=$?
10313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314   (exit $ac_status); }; } &&
10315          { ac_try='test -s conftest$ac_exeext'
10316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317   (eval $ac_try) 2>&5
10318   ac_status=$?
10319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320   (exit $ac_status); }; }; then
10321   ac_cv_func_shl_load=yes
10322 else
10323   echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10325
10326 ac_cv_func_shl_load=no
10327 fi
10328 rm -f conftest.err conftest.$ac_objext \
10329       conftest$ac_exeext conftest.$ac_ext
10330 fi
10331 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10332 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10333 if test $ac_cv_func_shl_load = yes; then
10334   lt_cv_dlopen="shl_load"
10335 else
10336   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10337 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10338 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10339   echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341   ac_check_lib_save_LIBS=$LIBS
10342 LIBS="-ldld  $LIBS"
10343 cat >conftest.$ac_ext <<_ACEOF
10344 /* confdefs.h.  */
10345 _ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h.  */
10349
10350 /* Override any gcc2 internal prototype to avoid an error.  */
10351 #ifdef __cplusplus
10352 extern "C"
10353 #endif
10354 /* We use char because int might match the return type of a gcc2
10355    builtin and then its argument prototype would still apply.  */
10356 char shl_load ();
10357 int
10358 main ()
10359 {
10360 shl_load ();
10361   ;
10362   return 0;
10363 }
10364 _ACEOF
10365 rm -f conftest.$ac_objext conftest$ac_exeext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10367   (eval $ac_link) 2>conftest.er1
10368   ac_status=$?
10369   grep -v '^ *+' conftest.er1 >conftest.err
10370   rm -f conftest.er1
10371   cat conftest.err >&5
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); } &&
10374          { ac_try='test -z "$ac_c_werror_flag"
10375                          || test ! -s conftest.err'
10376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377   (eval $ac_try) 2>&5
10378   ac_status=$?
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); }; } &&
10381          { ac_try='test -s conftest$ac_exeext'
10382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383   (eval $ac_try) 2>&5
10384   ac_status=$?
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); }; }; then
10387   ac_cv_lib_dld_shl_load=yes
10388 else
10389   echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10391
10392 ac_cv_lib_dld_shl_load=no
10393 fi
10394 rm -f conftest.err conftest.$ac_objext \
10395       conftest$ac_exeext conftest.$ac_ext
10396 LIBS=$ac_check_lib_save_LIBS
10397 fi
10398 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10399 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10400 if test $ac_cv_lib_dld_shl_load = yes; then
10401   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10402 else
10403   echo "$as_me:$LINENO: checking for dlopen" >&5
10404 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10405 if test "${ac_cv_func_dlopen+set}" = set; then
10406   echo $ECHO_N "(cached) $ECHO_C" >&6
10407 else
10408   cat >conftest.$ac_ext <<_ACEOF
10409 /* confdefs.h.  */
10410 _ACEOF
10411 cat confdefs.h >>conftest.$ac_ext
10412 cat >>conftest.$ac_ext <<_ACEOF
10413 /* end confdefs.h.  */
10414 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10416 #define dlopen innocuous_dlopen
10417
10418 /* System header to define __stub macros and hopefully few prototypes,
10419     which can conflict with char dlopen (); below.
10420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10421     <limits.h> exists even on freestanding compilers.  */
10422
10423 #ifdef __STDC__
10424 # include <limits.h>
10425 #else
10426 # include <assert.h>
10427 #endif
10428
10429 #undef dlopen
10430
10431 /* Override any gcc2 internal prototype to avoid an error.  */
10432 #ifdef __cplusplus
10433 extern "C"
10434 {
10435 #endif
10436 /* We use char because int might match the return type of a gcc2
10437    builtin and then its argument prototype would still apply.  */
10438 char dlopen ();
10439 /* The GNU C library defines this for functions which it implements
10440     to always fail with ENOSYS.  Some functions are actually named
10441     something starting with __ and the normal name is an alias.  */
10442 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10443 choke me
10444 #else
10445 char (*f) () = dlopen;
10446 #endif
10447 #ifdef __cplusplus
10448 }
10449 #endif
10450
10451 int
10452 main ()
10453 {
10454 return f != dlopen;
10455   ;
10456   return 0;
10457 }
10458 _ACEOF
10459 rm -f conftest.$ac_objext conftest$ac_exeext
10460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10461   (eval $ac_link) 2>conftest.er1
10462   ac_status=$?
10463   grep -v '^ *+' conftest.er1 >conftest.err
10464   rm -f conftest.er1
10465   cat conftest.err >&5
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); } &&
10468          { ac_try='test -z "$ac_c_werror_flag"
10469                          || test ! -s conftest.err'
10470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471   (eval $ac_try) 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); }; } &&
10475          { ac_try='test -s conftest$ac_exeext'
10476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477   (eval $ac_try) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); }; }; then
10481   ac_cv_func_dlopen=yes
10482 else
10483   echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10485
10486 ac_cv_func_dlopen=no
10487 fi
10488 rm -f conftest.err conftest.$ac_objext \
10489       conftest$ac_exeext conftest.$ac_ext
10490 fi
10491 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10492 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10493 if test $ac_cv_func_dlopen = yes; then
10494   lt_cv_dlopen="dlopen"
10495 else
10496   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10497 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10498 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10499   echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501   ac_check_lib_save_LIBS=$LIBS
10502 LIBS="-ldl  $LIBS"
10503 cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509
10510 /* Override any gcc2 internal prototype to avoid an error.  */
10511 #ifdef __cplusplus
10512 extern "C"
10513 #endif
10514 /* We use char because int might match the return type of a gcc2
10515    builtin and then its argument prototype would still apply.  */
10516 char dlopen ();
10517 int
10518 main ()
10519 {
10520 dlopen ();
10521   ;
10522   return 0;
10523 }
10524 _ACEOF
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527   (eval $ac_link) 2>conftest.er1
10528   ac_status=$?
10529   grep -v '^ *+' conftest.er1 >conftest.err
10530   rm -f conftest.er1
10531   cat conftest.err >&5
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); } &&
10534          { ac_try='test -z "$ac_c_werror_flag"
10535                          || test ! -s conftest.err'
10536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537   (eval $ac_try) 2>&5
10538   ac_status=$?
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); }; } &&
10541          { ac_try='test -s conftest$ac_exeext'
10542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543   (eval $ac_try) 2>&5
10544   ac_status=$?
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); }; }; then
10547   ac_cv_lib_dl_dlopen=yes
10548 else
10549   echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10551
10552 ac_cv_lib_dl_dlopen=no
10553 fi
10554 rm -f conftest.err conftest.$ac_objext \
10555       conftest$ac_exeext conftest.$ac_ext
10556 LIBS=$ac_check_lib_save_LIBS
10557 fi
10558 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10559 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10560 if test $ac_cv_lib_dl_dlopen = yes; then
10561   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10562 else
10563   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10564 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10565 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10566   echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568   ac_check_lib_save_LIBS=$LIBS
10569 LIBS="-lsvld  $LIBS"
10570 cat >conftest.$ac_ext <<_ACEOF
10571 /* confdefs.h.  */
10572 _ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h.  */
10576
10577 /* Override any gcc2 internal prototype to avoid an error.  */
10578 #ifdef __cplusplus
10579 extern "C"
10580 #endif
10581 /* We use char because int might match the return type of a gcc2
10582    builtin and then its argument prototype would still apply.  */
10583 char dlopen ();
10584 int
10585 main ()
10586 {
10587 dlopen ();
10588   ;
10589   return 0;
10590 }
10591 _ACEOF
10592 rm -f conftest.$ac_objext conftest$ac_exeext
10593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10594   (eval $ac_link) 2>conftest.er1
10595   ac_status=$?
10596   grep -v '^ *+' conftest.er1 >conftest.err
10597   rm -f conftest.er1
10598   cat conftest.err >&5
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); } &&
10601          { ac_try='test -z "$ac_c_werror_flag"
10602                          || test ! -s conftest.err'
10603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604   (eval $ac_try) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); }; } &&
10608          { ac_try='test -s conftest$ac_exeext'
10609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610   (eval $ac_try) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); }; }; then
10614   ac_cv_lib_svld_dlopen=yes
10615 else
10616   echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10618
10619 ac_cv_lib_svld_dlopen=no
10620 fi
10621 rm -f conftest.err conftest.$ac_objext \
10622       conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10624 fi
10625 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10626 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10627 if test $ac_cv_lib_svld_dlopen = yes; then
10628   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10629 else
10630   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10631 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10632 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10633   echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635   ac_check_lib_save_LIBS=$LIBS
10636 LIBS="-ldld  $LIBS"
10637 cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643
10644 /* Override any gcc2 internal prototype to avoid an error.  */
10645 #ifdef __cplusplus
10646 extern "C"
10647 #endif
10648 /* We use char because int might match the return type of a gcc2
10649    builtin and then its argument prototype would still apply.  */
10650 char dld_link ();
10651 int
10652 main ()
10653 {
10654 dld_link ();
10655   ;
10656   return 0;
10657 }
10658 _ACEOF
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661   (eval $ac_link) 2>conftest.er1
10662   ac_status=$?
10663   grep -v '^ *+' conftest.er1 >conftest.err
10664   rm -f conftest.er1
10665   cat conftest.err >&5
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); } &&
10668          { ac_try='test -z "$ac_c_werror_flag"
10669                          || test ! -s conftest.err'
10670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671   (eval $ac_try) 2>&5
10672   ac_status=$?
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); }; } &&
10675          { ac_try='test -s conftest$ac_exeext'
10676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677   (eval $ac_try) 2>&5
10678   ac_status=$?
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); }; }; then
10681   ac_cv_lib_dld_dld_link=yes
10682 else
10683   echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10685
10686 ac_cv_lib_dld_dld_link=no
10687 fi
10688 rm -f conftest.err conftest.$ac_objext \
10689       conftest$ac_exeext conftest.$ac_ext
10690 LIBS=$ac_check_lib_save_LIBS
10691 fi
10692 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10693 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10694 if test $ac_cv_lib_dld_dld_link = yes; then
10695   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10696 fi
10697
10698
10699 fi
10700
10701
10702 fi
10703
10704
10705 fi
10706
10707
10708 fi
10709
10710
10711 fi
10712
10713     ;;
10714   esac
10715
10716   if test "x$lt_cv_dlopen" != xno; then
10717     enable_dlopen=yes
10718   else
10719     enable_dlopen=no
10720   fi
10721
10722   case $lt_cv_dlopen in
10723   dlopen)
10724     save_CPPFLAGS="$CPPFLAGS"
10725     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10726
10727     save_LDFLAGS="$LDFLAGS"
10728     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10729
10730     save_LIBS="$LIBS"
10731     LIBS="$lt_cv_dlopen_libs $LIBS"
10732
10733     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10734 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10735 if test "${lt_cv_dlopen_self+set}" = set; then
10736   echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10738           if test "$cross_compiling" = yes; then :
10739   lt_cv_dlopen_self=cross
10740 else
10741   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10742   lt_status=$lt_dlunknown
10743   cat > conftest.$ac_ext <<EOF
10744 #line 10744 "configure"
10745 #include "confdefs.h"
10746
10747 #if HAVE_DLFCN_H
10748 #include <dlfcn.h>
10749 #endif
10750
10751 #include <stdio.h>
10752
10753 #ifdef RTLD_GLOBAL
10754 #  define LT_DLGLOBAL           RTLD_GLOBAL
10755 #else
10756 #  ifdef DL_GLOBAL
10757 #    define LT_DLGLOBAL         DL_GLOBAL
10758 #  else
10759 #    define LT_DLGLOBAL         0
10760 #  endif
10761 #endif
10762
10763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10764    find out it does not work in some platform. */
10765 #ifndef LT_DLLAZY_OR_NOW
10766 #  ifdef RTLD_LAZY
10767 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10768 #  else
10769 #    ifdef DL_LAZY
10770 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10771 #    else
10772 #      ifdef RTLD_NOW
10773 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10774 #      else
10775 #        ifdef DL_NOW
10776 #          define LT_DLLAZY_OR_NOW      DL_NOW
10777 #        else
10778 #          define LT_DLLAZY_OR_NOW      0
10779 #        endif
10780 #      endif
10781 #    endif
10782 #  endif
10783 #endif
10784
10785 #ifdef __cplusplus
10786 extern "C" void exit (int);
10787 #endif
10788
10789 void fnord() { int i=42;}
10790 int main ()
10791 {
10792   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10793   int status = $lt_dlunknown;
10794
10795   if (self)
10796     {
10797       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10798       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10799       /* dlclose (self); */
10800     }
10801
10802     exit (status);
10803 }
10804 EOF
10805   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10806   (eval $ac_link) 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10810     (./conftest; exit; ) 2>/dev/null
10811     lt_status=$?
10812     case x$lt_status in
10813       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10814       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10815       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10816     esac
10817   else :
10818     # compilation failed
10819     lt_cv_dlopen_self=no
10820   fi
10821 fi
10822 rm -fr conftest*
10823
10824
10825 fi
10826 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10827 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10828
10829     if test "x$lt_cv_dlopen_self" = xyes; then
10830       LDFLAGS="$LDFLAGS $link_static_flag"
10831       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10832 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10833 if test "${lt_cv_dlopen_self_static+set}" = set; then
10834   echo $ECHO_N "(cached) $ECHO_C" >&6
10835 else
10836           if test "$cross_compiling" = yes; then :
10837   lt_cv_dlopen_self_static=cross
10838 else
10839   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10840   lt_status=$lt_dlunknown
10841   cat > conftest.$ac_ext <<EOF
10842 #line 10842 "configure"
10843 #include "confdefs.h"
10844
10845 #if HAVE_DLFCN_H
10846 #include <dlfcn.h>
10847 #endif
10848
10849 #include <stdio.h>
10850
10851 #ifdef RTLD_GLOBAL
10852 #  define LT_DLGLOBAL           RTLD_GLOBAL
10853 #else
10854 #  ifdef DL_GLOBAL
10855 #    define LT_DLGLOBAL         DL_GLOBAL
10856 #  else
10857 #    define LT_DLGLOBAL         0
10858 #  endif
10859 #endif
10860
10861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10862    find out it does not work in some platform. */
10863 #ifndef LT_DLLAZY_OR_NOW
10864 #  ifdef RTLD_LAZY
10865 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10866 #  else
10867 #    ifdef DL_LAZY
10868 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10869 #    else
10870 #      ifdef RTLD_NOW
10871 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10872 #      else
10873 #        ifdef DL_NOW
10874 #          define LT_DLLAZY_OR_NOW      DL_NOW
10875 #        else
10876 #          define LT_DLLAZY_OR_NOW      0
10877 #        endif
10878 #      endif
10879 #    endif
10880 #  endif
10881 #endif
10882
10883 #ifdef __cplusplus
10884 extern "C" void exit (int);
10885 #endif
10886
10887 void fnord() { int i=42;}
10888 int main ()
10889 {
10890   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10891   int status = $lt_dlunknown;
10892
10893   if (self)
10894     {
10895       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10896       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10897       /* dlclose (self); */
10898     }
10899
10900     exit (status);
10901 }
10902 EOF
10903   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10904   (eval $ac_link) 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10908     (./conftest; exit; ) 2>/dev/null
10909     lt_status=$?
10910     case x$lt_status in
10911       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10912       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10913       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10914     esac
10915   else :
10916     # compilation failed
10917     lt_cv_dlopen_self_static=no
10918   fi
10919 fi
10920 rm -fr conftest*
10921
10922
10923 fi
10924 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10925 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10926     fi
10927
10928     CPPFLAGS="$save_CPPFLAGS"
10929     LDFLAGS="$save_LDFLAGS"
10930     LIBS="$save_LIBS"
10931     ;;
10932   esac
10933
10934   case $lt_cv_dlopen_self in
10935   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10936   *) enable_dlopen_self=unknown ;;
10937   esac
10938
10939   case $lt_cv_dlopen_self_static in
10940   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10941   *) enable_dlopen_self_static=unknown ;;
10942   esac
10943 fi
10944
10945
10946 # Report which librarie types wil actually be built
10947 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10948 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10949 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10950 echo "${ECHO_T}$can_build_shared" >&6
10951
10952 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10953 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10954 test "$can_build_shared" = "no" && enable_shared=no
10955
10956 # On AIX, shared libraries and static libraries use the same namespace, and
10957 # are all built from PIC.
10958 case "$host_os" in
10959 aix3*)
10960   test "$enable_shared" = yes && enable_static=no
10961   if test -n "$RANLIB"; then
10962     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10963     postinstall_cmds='$RANLIB $lib'
10964   fi
10965   ;;
10966
10967 aix4* | aix5*)
10968   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10969     test "$enable_shared" = yes && enable_static=no
10970   fi
10971   ;;
10972   darwin* | rhapsody*)
10973   if test "$GCC" = yes; then
10974     archive_cmds_need_lc=no
10975     case "$host_os" in
10976     rhapsody* | darwin1.[012])
10977       allow_undefined_flag='-undefined suppress'
10978       ;;
10979     *) # Darwin 1.3 on
10980       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10981         allow_undefined_flag='-flat_namespace -undefined suppress'
10982       else
10983         case ${MACOSX_DEPLOYMENT_TARGET} in
10984           10.[012])
10985             allow_undefined_flag='-flat_namespace -undefined suppress'
10986             ;;
10987           10.*)
10988             allow_undefined_flag='-undefined dynamic_lookup'
10989             ;;
10990         esac
10991       fi
10992       ;;
10993     esac
10994     output_verbose_link_cmd='echo'
10995     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10996     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10997     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10998     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}'
10999     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}'
11000     hardcode_direct=no
11001     hardcode_automatic=yes
11002     hardcode_shlibpath_var=unsupported
11003     whole_archive_flag_spec='-all_load $convenience'
11004     link_all_deplibs=yes
11005   else
11006     ld_shlibs=no
11007   fi
11008     ;;
11009 esac
11010 echo "$as_me:$LINENO: result: $enable_shared" >&5
11011 echo "${ECHO_T}$enable_shared" >&6
11012
11013 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11014 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11015 # Make sure either enable_shared or enable_static is yes.
11016 test "$enable_shared" = yes || enable_static=yes
11017 echo "$as_me:$LINENO: result: $enable_static" >&5
11018 echo "${ECHO_T}$enable_static" >&6
11019
11020 # The else clause should only fire when bootstrapping the
11021 # libtool distribution, otherwise you forgot to ship ltmain.sh
11022 # with your package, and you will get complaints that there are
11023 # no rules to generate ltmain.sh.
11024 if test -f "$ltmain"; then
11025   # See if we are running on zsh, and set the options which allow our commands through
11026   # without removal of \ escapes.
11027   if test -n "${ZSH_VERSION+set}" ; then
11028     setopt NO_GLOB_SUBST
11029   fi
11030   # Now quote all the things that may contain metacharacters while being
11031   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11032   # variables and quote the copies for generation of the libtool script.
11033   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11034     SED SHELL STRIP \
11035     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11036     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11037     deplibs_check_method reload_flag reload_cmds need_locks \
11038     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11039     lt_cv_sys_global_symbol_to_c_name_address \
11040     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11041     old_postinstall_cmds old_postuninstall_cmds \
11042     compiler \
11043     CC \
11044     LD \
11045     lt_prog_compiler_wl \
11046     lt_prog_compiler_pic \
11047     lt_prog_compiler_static \
11048     lt_prog_compiler_no_builtin_flag \
11049     export_dynamic_flag_spec \
11050     thread_safe_flag_spec \
11051     whole_archive_flag_spec \
11052     enable_shared_with_static_runtimes \
11053     old_archive_cmds \
11054     old_archive_from_new_cmds \
11055     predep_objects \
11056     postdep_objects \
11057     predeps \
11058     postdeps \
11059     compiler_lib_search_path \
11060     archive_cmds \
11061     archive_expsym_cmds \
11062     postinstall_cmds \
11063     postuninstall_cmds \
11064     old_archive_from_expsyms_cmds \
11065     allow_undefined_flag \
11066     no_undefined_flag \
11067     export_symbols_cmds \
11068     hardcode_libdir_flag_spec \
11069     hardcode_libdir_flag_spec_ld \
11070     hardcode_libdir_separator \
11071     hardcode_automatic \
11072     module_cmds \
11073     module_expsym_cmds \
11074     lt_cv_prog_compiler_c_o \
11075     exclude_expsyms \
11076     include_expsyms; do
11077
11078     case $var in
11079     old_archive_cmds | \
11080     old_archive_from_new_cmds | \
11081     archive_cmds | \
11082     archive_expsym_cmds | \
11083     module_cmds | \
11084     module_expsym_cmds | \
11085     old_archive_from_expsyms_cmds | \
11086     export_symbols_cmds | \
11087     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11088     postinstall_cmds | postuninstall_cmds | \
11089     old_postinstall_cmds | old_postuninstall_cmds | \
11090     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11091       # Double-quote double-evaled strings.
11092       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11093       ;;
11094     *)
11095       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11096       ;;
11097     esac
11098   done
11099
11100   case $lt_echo in
11101   *'\$0 --fallback-echo"')
11102     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11103     ;;
11104   esac
11105
11106 cfgfile="${ofile}T"
11107   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11108   $rm -f "$cfgfile"
11109   { echo "$as_me:$LINENO: creating $ofile" >&5
11110 echo "$as_me: creating $ofile" >&6;}
11111
11112   cat <<__EOF__ >> "$cfgfile"
11113 #! $SHELL
11114
11115 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11116 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11117 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11118 #
11119 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11120 # Free Software Foundation, Inc.
11121 #
11122 # This file is part of GNU Libtool:
11123 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11124 #
11125 # This program is free software; you can redistribute it and/or modify
11126 # it under the terms of the GNU General Public License as published by
11127 # the Free Software Foundation; either version 2 of the License, or
11128 # (at your option) any later version.
11129 #
11130 # This program is distributed in the hope that it will be useful, but
11131 # WITHOUT ANY WARRANTY; without even the implied warranty of
11132 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11133 # General Public License for more details.
11134 #
11135 # You should have received a copy of the GNU General Public License
11136 # along with this program; if not, write to the Free Software
11137 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11138 #
11139 # As a special exception to the GNU General Public License, if you
11140 # distribute this file as part of a program that contains a
11141 # configuration script generated by Autoconf, you may include it under
11142 # the same distribution terms that you use for the rest of that program.
11143
11144 # A sed program that does not truncate output.
11145 SED=$lt_SED
11146
11147 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11148 Xsed="$SED -e s/^X//"
11149
11150 # The HP-UX ksh and POSIX shell print the target directory to stdout
11151 # if CDPATH is set.
11152 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11153
11154 # The names of the tagged configurations supported by this script.
11155 available_tags=
11156
11157 # ### BEGIN LIBTOOL CONFIG
11158
11159 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11160
11161 # Shell to use when invoking shell scripts.
11162 SHELL=$lt_SHELL
11163
11164 # Whether or not to build shared libraries.
11165 build_libtool_libs=$enable_shared
11166
11167 # Whether or not to build static libraries.
11168 build_old_libs=$enable_static
11169
11170 # Whether or not to add -lc for building shared libraries.
11171 build_libtool_need_lc=$archive_cmds_need_lc
11172
11173 # Whether or not to disallow shared libs when runtime libs are static
11174 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11175
11176 # Whether or not to optimize for fast installation.
11177 fast_install=$enable_fast_install
11178
11179 # The host system.
11180 host_alias=$host_alias
11181 host=$host
11182
11183 # An echo program that does not interpret backslashes.
11184 echo=$lt_echo
11185
11186 # The archiver.
11187 AR=$lt_AR
11188 AR_FLAGS=$lt_AR_FLAGS
11189
11190 # A C compiler.
11191 LTCC=$lt_LTCC
11192
11193 # A language-specific compiler.
11194 CC=$lt_compiler
11195
11196 # Is the compiler the GNU C compiler?
11197 with_gcc=$GCC
11198
11199 # An ERE matcher.
11200 EGREP=$lt_EGREP
11201
11202 # The linker used to build libraries.
11203 LD=$lt_LD
11204
11205 # Whether we need hard or soft links.
11206 LN_S=$lt_LN_S
11207
11208 # A BSD-compatible nm program.
11209 NM=$lt_NM
11210
11211 # A symbol stripping program
11212 STRIP=$lt_STRIP
11213
11214 # Used to examine libraries when file_magic_cmd begins "file"
11215 MAGIC_CMD=$MAGIC_CMD
11216
11217 # Used on cygwin: DLL creation program.
11218 DLLTOOL="$DLLTOOL"
11219
11220 # Used on cygwin: object dumper.
11221 OBJDUMP="$OBJDUMP"
11222
11223 # Used on cygwin: assembler.
11224 AS="$AS"
11225
11226 # The name of the directory that contains temporary libtool files.
11227 objdir=$objdir
11228
11229 # How to create reloadable object files.
11230 reload_flag=$lt_reload_flag
11231 reload_cmds=$lt_reload_cmds
11232
11233 # How to pass a linker flag through the compiler.
11234 wl=$lt_lt_prog_compiler_wl
11235
11236 # Object file suffix (normally "o").
11237 objext="$ac_objext"
11238
11239 # Old archive suffix (normally "a").
11240 libext="$libext"
11241
11242 # Shared library suffix (normally ".so").
11243 shrext_cmds='$shrext_cmds'
11244
11245 # Executable file suffix (normally "").
11246 exeext="$exeext"
11247
11248 # Additional compiler flags for building library objects.
11249 pic_flag=$lt_lt_prog_compiler_pic
11250 pic_mode=$pic_mode
11251
11252 # What is the maximum length of a command?
11253 max_cmd_len=$lt_cv_sys_max_cmd_len
11254
11255 # Does compiler simultaneously support -c and -o options?
11256 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11257
11258 # Must we lock files when doing compilation ?
11259 need_locks=$lt_need_locks
11260
11261 # Do we need the lib prefix for modules?
11262 need_lib_prefix=$need_lib_prefix
11263
11264 # Do we need a version for libraries?
11265 need_version=$need_version
11266
11267 # Whether dlopen is supported.
11268 dlopen_support=$enable_dlopen
11269
11270 # Whether dlopen of programs is supported.
11271 dlopen_self=$enable_dlopen_self
11272
11273 # Whether dlopen of statically linked programs is supported.
11274 dlopen_self_static=$enable_dlopen_self_static
11275
11276 # Compiler flag to prevent dynamic linking.
11277 link_static_flag=$lt_lt_prog_compiler_static
11278
11279 # Compiler flag to turn off builtin functions.
11280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11281
11282 # Compiler flag to allow reflexive dlopens.
11283 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11284
11285 # Compiler flag to generate shared objects directly from archives.
11286 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11287
11288 # Compiler flag to generate thread-safe objects.
11289 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11290
11291 # Library versioning type.
11292 version_type=$version_type
11293
11294 # Format of library name prefix.
11295 libname_spec=$lt_libname_spec
11296
11297 # List of archive names.  First name is the real one, the rest are links.
11298 # The last name is the one that the linker finds with -lNAME.
11299 library_names_spec=$lt_library_names_spec
11300
11301 # The coded name of the library, if different from the real name.
11302 soname_spec=$lt_soname_spec
11303
11304 # Commands used to build and install an old-style archive.
11305 RANLIB=$lt_RANLIB
11306 old_archive_cmds=$lt_old_archive_cmds
11307 old_postinstall_cmds=$lt_old_postinstall_cmds
11308 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11309
11310 # Create an old-style archive from a shared archive.
11311 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11312
11313 # Create a temporary old-style archive to link instead of a shared archive.
11314 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11315
11316 # Commands used to build and install a shared archive.
11317 archive_cmds=$lt_archive_cmds
11318 archive_expsym_cmds=$lt_archive_expsym_cmds
11319 postinstall_cmds=$lt_postinstall_cmds
11320 postuninstall_cmds=$lt_postuninstall_cmds
11321
11322 # Commands used to build a loadable module (assumed same as above if empty)
11323 module_cmds=$lt_module_cmds
11324 module_expsym_cmds=$lt_module_expsym_cmds
11325
11326 # Commands to strip libraries.
11327 old_striplib=$lt_old_striplib
11328 striplib=$lt_striplib
11329
11330 # Dependencies to place before the objects being linked to create a
11331 # shared library.
11332 predep_objects=$lt_predep_objects
11333
11334 # Dependencies to place after the objects being linked to create a
11335 # shared library.
11336 postdep_objects=$lt_postdep_objects
11337
11338 # Dependencies to place before the objects being linked to create a
11339 # shared library.
11340 predeps=$lt_predeps
11341
11342 # Dependencies to place after the objects being linked to create a
11343 # shared library.
11344 postdeps=$lt_postdeps
11345
11346 # The library search path used internally by the compiler when linking
11347 # a shared library.
11348 compiler_lib_search_path=$lt_compiler_lib_search_path
11349
11350 # Method to check whether dependent libraries are shared objects.
11351 deplibs_check_method=$lt_deplibs_check_method
11352
11353 # Command to use when deplibs_check_method == file_magic.
11354 file_magic_cmd=$lt_file_magic_cmd
11355
11356 # Flag that allows shared libraries with undefined symbols to be built.
11357 allow_undefined_flag=$lt_allow_undefined_flag
11358
11359 # Flag that forces no undefined symbols.
11360 no_undefined_flag=$lt_no_undefined_flag
11361
11362 # Commands used to finish a libtool library installation in a directory.
11363 finish_cmds=$lt_finish_cmds
11364
11365 # Same as above, but a single script fragment to be evaled but not shown.
11366 finish_eval=$lt_finish_eval
11367
11368 # Take the output of nm and produce a listing of raw symbols and C names.
11369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11370
11371 # Transform the output of nm in a proper C declaration
11372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11373
11374 # Transform the output of nm in a C name address pair
11375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11376
11377 # This is the shared library runtime path variable.
11378 runpath_var=$runpath_var
11379
11380 # This is the shared library path variable.
11381 shlibpath_var=$shlibpath_var
11382
11383 # Is shlibpath searched before the hard-coded library search path?
11384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11385
11386 # How to hardcode a shared library path into an executable.
11387 hardcode_action=$hardcode_action
11388
11389 # Whether we should hardcode library paths into libraries.
11390 hardcode_into_libs=$hardcode_into_libs
11391
11392 # Flag to hardcode \$libdir into a binary during linking.
11393 # This must work even if \$libdir does not exist.
11394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11395
11396 # If ld is used when linking, flag to hardcode \$libdir into
11397 # a binary during linking. This must work even if \$libdir does
11398 # not exist.
11399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11400
11401 # Whether we need a single -rpath flag with a separated argument.
11402 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11403
11404 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11405 # resulting binary.
11406 hardcode_direct=$hardcode_direct
11407
11408 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11409 # resulting binary.
11410 hardcode_minus_L=$hardcode_minus_L
11411
11412 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11413 # the resulting binary.
11414 hardcode_shlibpath_var=$hardcode_shlibpath_var
11415
11416 # Set to yes if building a shared library automatically hardcodes DIR into the library
11417 # and all subsequent libraries and executables linked against it.
11418 hardcode_automatic=$hardcode_automatic
11419
11420 # Variables whose values should be saved in libtool wrapper scripts and
11421 # restored at relink time.
11422 variables_saved_for_relink="$variables_saved_for_relink"
11423
11424 # Whether libtool must link a program against all its dependency libraries.
11425 link_all_deplibs=$link_all_deplibs
11426
11427 # Compile-time system search path for libraries
11428 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11429
11430 # Run-time system search path for libraries
11431 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11432
11433 # Fix the shell variable \$srcfile for the compiler.
11434 fix_srcfile_path="$fix_srcfile_path"
11435
11436 # Set to yes if exported symbols are required.
11437 always_export_symbols=$always_export_symbols
11438
11439 # The commands to list exported symbols.
11440 export_symbols_cmds=$lt_export_symbols_cmds
11441
11442 # The commands to extract the exported symbol list from a shared archive.
11443 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11444
11445 # Symbols that should not be listed in the preloaded symbols.
11446 exclude_expsyms=$lt_exclude_expsyms
11447
11448 # Symbols that must always be exported.
11449 include_expsyms=$lt_include_expsyms
11450
11451 # ### END LIBTOOL CONFIG
11452
11453 __EOF__
11454
11455
11456   case $host_os in
11457   aix3*)
11458     cat <<\EOF >> "$cfgfile"
11459
11460 # AIX sometimes has problems with the GCC collect2 program.  For some
11461 # reason, if we set the COLLECT_NAMES environment variable, the problems
11462 # vanish in a puff of smoke.
11463 if test "X${COLLECT_NAMES+set}" != Xset; then
11464   COLLECT_NAMES=
11465   export COLLECT_NAMES
11466 fi
11467 EOF
11468     ;;
11469   esac
11470
11471   # We use sed instead of cat because bash on DJGPP gets confused if
11472   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11473   # text mode, it properly converts lines to CR/LF.  This bash problem
11474   # is reportedly fixed, but why not run on old versions too?
11475   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11476
11477   mv -f "$cfgfile" "$ofile" || \
11478     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11479   chmod +x "$ofile"
11480
11481 else
11482   # If there is no Makefile yet, we rely on a make rule to execute
11483   # `config.status --recheck' to rerun these tests and create the
11484   # libtool script then.
11485   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11486   if test -f "$ltmain_in"; then
11487     test -f Makefile && make "$ltmain"
11488   fi
11489 fi
11490
11491
11492 ac_ext=c
11493 ac_cpp='$CPP $CPPFLAGS'
11494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11497
11498 CC="$lt_save_CC"
11499
11500
11501 # Check whether --with-tags or --without-tags was given.
11502 if test "${with_tags+set}" = set; then
11503   withval="$with_tags"
11504   tagnames="$withval"
11505 fi;
11506
11507 if test -f "$ltmain" && test -n "$tagnames"; then
11508   if test ! -f "${ofile}"; then
11509     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11510 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11511   fi
11512
11513   if test -z "$LTCC"; then
11514     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11515     if test -z "$LTCC"; then
11516       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11517 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11518     else
11519       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11520 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11521     fi
11522   fi
11523
11524   # Extract list of available tagged configurations in $ofile.
11525   # Note that this assumes the entire list is on one line.
11526   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11527
11528   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11529   for tagname in $tagnames; do
11530     IFS="$lt_save_ifs"
11531     # Check whether tagname contains only valid characters
11532     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11533     "") ;;
11534     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11535 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11536    { (exit 1); exit 1; }; }
11537         ;;
11538     esac
11539
11540     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11541     then
11542       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11543 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11544    { (exit 1); exit 1; }; }
11545     fi
11546
11547     # Update the list of available tags.
11548     if test -n "$tagname"; then
11549       echo appending configuration tag \"$tagname\" to $ofile
11550
11551       case $tagname in
11552       CXX)
11553         if test -n "$CXX" && test "X$CXX" != "Xno"; then
11554           ac_ext=cc
11555 ac_cpp='$CXXCPP $CPPFLAGS'
11556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11559
11560
11561
11562
11563 archive_cmds_need_lc_CXX=no
11564 allow_undefined_flag_CXX=
11565 always_export_symbols_CXX=no
11566 archive_expsym_cmds_CXX=
11567 export_dynamic_flag_spec_CXX=
11568 hardcode_direct_CXX=no
11569 hardcode_libdir_flag_spec_CXX=
11570 hardcode_libdir_flag_spec_ld_CXX=
11571 hardcode_libdir_separator_CXX=
11572 hardcode_minus_L_CXX=no
11573 hardcode_automatic_CXX=no
11574 module_cmds_CXX=
11575 module_expsym_cmds_CXX=
11576 link_all_deplibs_CXX=unknown
11577 old_archive_cmds_CXX=$old_archive_cmds
11578 no_undefined_flag_CXX=
11579 whole_archive_flag_spec_CXX=
11580 enable_shared_with_static_runtimes_CXX=no
11581
11582 # Dependencies to place before and after the object being linked:
11583 predep_objects_CXX=
11584 postdep_objects_CXX=
11585 predeps_CXX=
11586 postdeps_CXX=
11587 compiler_lib_search_path_CXX=
11588
11589 # Source file extension for C++ test sources.
11590 ac_ext=cc
11591
11592 # Object file extension for compiled C++ test sources.
11593 objext=o
11594 objext_CXX=$objext
11595
11596 # Code to be used in simple compile tests
11597 lt_simple_compile_test_code="int some_variable = 0;\n"
11598
11599 # Code to be used in simple link tests
11600 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11601
11602 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11603
11604 # If no C compiler was specified, use CC.
11605 LTCC=${LTCC-"$CC"}
11606
11607 # Allow CC to be a program name with arguments.
11608 compiler=$CC
11609
11610
11611 # Allow CC to be a program name with arguments.
11612 lt_save_CC=$CC
11613 lt_save_LD=$LD
11614 lt_save_GCC=$GCC
11615 GCC=$GXX
11616 lt_save_with_gnu_ld=$with_gnu_ld
11617 lt_save_path_LD=$lt_cv_path_LD
11618 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11619   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11620 else
11621   unset lt_cv_prog_gnu_ld
11622 fi
11623 if test -n "${lt_cv_path_LDCXX+set}"; then
11624   lt_cv_path_LD=$lt_cv_path_LDCXX
11625 else
11626   unset lt_cv_path_LD
11627 fi
11628 test -z "${LDCXX+set}" || LD=$LDCXX
11629 CC=${CXX-"c++"}
11630 compiler=$CC
11631 compiler_CXX=$CC
11632 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11633
11634 # We don't want -fno-exception wen compiling C++ code, so set the
11635 # no_builtin_flag separately
11636 if test "$GXX" = yes; then
11637   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11638 else
11639   lt_prog_compiler_no_builtin_flag_CXX=
11640 fi
11641
11642 if test "$GXX" = yes; then
11643   # Set up default GNU C++ configuration
11644
11645
11646 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11647 if test "${with_gnu_ld+set}" = set; then
11648   withval="$with_gnu_ld"
11649   test "$withval" = no || with_gnu_ld=yes
11650 else
11651   with_gnu_ld=no
11652 fi;
11653 ac_prog=ld
11654 if test "$GCC" = yes; then
11655   # Check if gcc -print-prog-name=ld gives a path.
11656   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11657 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11658   case $host in
11659   *-*-mingw*)
11660     # gcc leaves a trailing carriage return which upsets mingw
11661     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11662   *)
11663     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11664   esac
11665   case $ac_prog in
11666     # Accept absolute paths.
11667     [\\/]* | ?:[\\/]*)
11668       re_direlt='/[^/][^/]*/\.\./'
11669       # Canonicalize the pathname of ld
11670       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11671       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11672         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11673       done
11674       test -z "$LD" && LD="$ac_prog"
11675       ;;
11676   "")
11677     # If it fails, then pretend we aren't using GCC.
11678     ac_prog=ld
11679     ;;
11680   *)
11681     # If it is relative, then search for the first ld in PATH.
11682     with_gnu_ld=unknown
11683     ;;
11684   esac
11685 elif test "$with_gnu_ld" = yes; then
11686   echo "$as_me:$LINENO: checking for GNU ld" >&5
11687 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11688 else
11689   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11690 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11691 fi
11692 if test "${lt_cv_path_LD+set}" = set; then
11693   echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695   if test -z "$LD"; then
11696   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11697   for ac_dir in $PATH; do
11698     IFS="$lt_save_ifs"
11699     test -z "$ac_dir" && ac_dir=.
11700     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11701       lt_cv_path_LD="$ac_dir/$ac_prog"
11702       # Check to see if the program is GNU ld.  I'd rather use --version,
11703       # but apparently some GNU ld's only accept -v.
11704       # Break only if it was the GNU/non-GNU ld that we prefer.
11705       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11706       *GNU* | *'with BFD'*)
11707         test "$with_gnu_ld" != no && break
11708         ;;
11709       *)
11710         test "$with_gnu_ld" != yes && break
11711         ;;
11712       esac
11713     fi
11714   done
11715   IFS="$lt_save_ifs"
11716 else
11717   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11718 fi
11719 fi
11720
11721 LD="$lt_cv_path_LD"
11722 if test -n "$LD"; then
11723   echo "$as_me:$LINENO: result: $LD" >&5
11724 echo "${ECHO_T}$LD" >&6
11725 else
11726   echo "$as_me:$LINENO: result: no" >&5
11727 echo "${ECHO_T}no" >&6
11728 fi
11729 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11730 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11731    { (exit 1); exit 1; }; }
11732 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11733 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11734 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11735   echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11738 case `$LD -v 2>&1 </dev/null` in
11739 *GNU* | *'with BFD'*)
11740   lt_cv_prog_gnu_ld=yes
11741   ;;
11742 *)
11743   lt_cv_prog_gnu_ld=no
11744   ;;
11745 esac
11746 fi
11747 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11748 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11749 with_gnu_ld=$lt_cv_prog_gnu_ld
11750
11751
11752
11753   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11754   # archiving commands below assume that GNU ld is being used.
11755   if test "$with_gnu_ld" = yes; then
11756     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11757     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'
11758
11759     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11760     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11761
11762     # If archive_cmds runs LD, not CC, wlarc should be empty
11763     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11764     #     investigate it a little bit more. (MM)
11765     wlarc='${wl}'
11766
11767     # ancient GNU ld didn't support --whole-archive et. al.
11768     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11769         grep 'no-whole-archive' > /dev/null; then
11770       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11771     else
11772       whole_archive_flag_spec_CXX=
11773     fi
11774   else
11775     with_gnu_ld=no
11776     wlarc=
11777
11778     # A generic and very simple default shared library creation
11779     # command for GNU C++ for the case where it uses the native
11780     # linker, instead of GNU ld.  If possible, this setting should
11781     # overridden to take advantage of the native linker features on
11782     # the platform it is being used on.
11783     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11784   fi
11785
11786   # Commands to make compiler produce verbose output that lists
11787   # what "hidden" libraries, object files and flags are used when
11788   # linking a shared library.
11789   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11790
11791 else
11792   GXX=no
11793   with_gnu_ld=no
11794   wlarc=
11795 fi
11796
11797 # PORTME: fill in a description of your system's C++ link characteristics
11798 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11799 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11800 ld_shlibs_CXX=yes
11801 case $host_os in
11802   aix3*)
11803     # FIXME: insert proper C++ library support
11804     ld_shlibs_CXX=no
11805     ;;
11806   aix4* | aix5*)
11807     if test "$host_cpu" = ia64; then
11808       # On IA64, the linker does run time linking by default, so we don't
11809       # have to do anything special.
11810       aix_use_runtimelinking=no
11811       exp_sym_flag='-Bexport'
11812       no_entry_flag=""
11813     else
11814       aix_use_runtimelinking=no
11815
11816       # Test if we are trying to use run time linking or normal
11817       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11818       # need to do runtime linking.
11819       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11820         for ld_flag in $LDFLAGS; do
11821           case $ld_flag in
11822           *-brtl*)
11823             aix_use_runtimelinking=yes
11824             break
11825             ;;
11826           esac
11827         done
11828       esac
11829
11830       exp_sym_flag='-bexport'
11831       no_entry_flag='-bnoentry'
11832     fi
11833
11834     # When large executables or shared objects are built, AIX ld can
11835     # have problems creating the table of contents.  If linking a library
11836     # or program results in "error TOC overflow" add -mminimal-toc to
11837     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11838     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11839
11840     archive_cmds_CXX=''
11841     hardcode_direct_CXX=yes
11842     hardcode_libdir_separator_CXX=':'
11843     link_all_deplibs_CXX=yes
11844
11845     if test "$GXX" = yes; then
11846       case $host_os in aix4.012|aix4.012.*)
11847       # We only want to do this on AIX 4.2 and lower, the check
11848       # below for broken collect2 doesn't work under 4.3+
11849         collect2name=`${CC} -print-prog-name=collect2`
11850         if test -f "$collect2name" && \
11851            strings "$collect2name" | grep resolve_lib_name >/dev/null
11852         then
11853           # We have reworked collect2
11854           hardcode_direct_CXX=yes
11855         else
11856           # We have old collect2
11857           hardcode_direct_CXX=unsupported
11858           # It fails to find uninstalled libraries when the uninstalled
11859           # path is not listed in the libpath.  Setting hardcode_minus_L
11860           # to unsupported forces relinking
11861           hardcode_minus_L_CXX=yes
11862           hardcode_libdir_flag_spec_CXX='-L$libdir'
11863           hardcode_libdir_separator_CXX=
11864         fi
11865       esac
11866       shared_flag='-shared'
11867     else
11868       # not using gcc
11869       if test "$host_cpu" = ia64; then
11870         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11871         # chokes on -Wl,-G. The following line is correct:
11872         shared_flag='-G'
11873       else
11874         if test "$aix_use_runtimelinking" = yes; then
11875           shared_flag='${wl}-G'
11876         else
11877           shared_flag='${wl}-bM:SRE'
11878         fi
11879       fi
11880     fi
11881
11882     # It seems that -bexpall does not export symbols beginning with
11883     # underscore (_), so it is better to generate a list of symbols to export.
11884     always_export_symbols_CXX=yes
11885     if test "$aix_use_runtimelinking" = yes; then
11886       # Warning - without using the other runtime loading flags (-brtl),
11887       # -berok will link without error, but may produce a broken library.
11888       allow_undefined_flag_CXX='-berok'
11889       # Determine the default libpath from the value encoded in an empty executable.
11890       cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h.  */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h.  */
11896
11897 int
11898 main ()
11899 {
11900
11901   ;
11902   return 0;
11903 }
11904 _ACEOF
11905 rm -f conftest.$ac_objext conftest$ac_exeext
11906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11907   (eval $ac_link) 2>conftest.er1
11908   ac_status=$?
11909   grep -v '^ *+' conftest.er1 >conftest.err
11910   rm -f conftest.er1
11911   cat conftest.err >&5
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); } &&
11914          { ac_try='test -z "$ac_cxx_werror_flag"
11915                          || test ! -s conftest.err'
11916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917   (eval $ac_try) 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); }; } &&
11921          { ac_try='test -s conftest$ac_exeext'
11922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923   (eval $ac_try) 2>&5
11924   ac_status=$?
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); }; }; then
11927
11928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11929 }'`
11930 # Check for a 64-bit object if we didn't find anything.
11931 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; }
11932 }'`; fi
11933 else
11934   echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11936
11937 fi
11938 rm -f conftest.err conftest.$ac_objext \
11939       conftest$ac_exeext conftest.$ac_ext
11940 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11941
11942       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11943
11944       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"
11945      else
11946       if test "$host_cpu" = ia64; then
11947         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11948         allow_undefined_flag_CXX="-z nodefs"
11949         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"
11950       else
11951         # Determine the default libpath from the value encoded in an empty executable.
11952         cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h.  */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h.  */
11958
11959 int
11960 main ()
11961 {
11962
11963   ;
11964   return 0;
11965 }
11966 _ACEOF
11967 rm -f conftest.$ac_objext conftest$ac_exeext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11969   (eval $ac_link) 2>conftest.er1
11970   ac_status=$?
11971   grep -v '^ *+' conftest.er1 >conftest.err
11972   rm -f conftest.er1
11973   cat conftest.err >&5
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); } &&
11976          { ac_try='test -z "$ac_cxx_werror_flag"
11977                          || test ! -s conftest.err'
11978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979   (eval $ac_try) 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); }; } &&
11983          { ac_try='test -s conftest$ac_exeext'
11984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985   (eval $ac_try) 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; }; then
11989
11990 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11991 }'`
11992 # Check for a 64-bit object if we didn't find anything.
11993 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; }
11994 }'`; fi
11995 else
11996   echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11998
11999 fi
12000 rm -f conftest.err conftest.$ac_objext \
12001       conftest$ac_exeext conftest.$ac_ext
12002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12003
12004         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12005         # Warning - without using the other run time loading flags,
12006         # -berok will link without error, but may produce a broken library.
12007         no_undefined_flag_CXX=' ${wl}-bernotok'
12008         allow_undefined_flag_CXX=' ${wl}-berok'
12009         # -bexpall does not export symbols beginning with underscore (_)
12010         always_export_symbols_CXX=yes
12011         # Exported symbols can be pulled into shared objects from archives
12012         whole_archive_flag_spec_CXX=' '
12013         archive_cmds_need_lc_CXX=yes
12014         # This is similar to how AIX traditionally builds it's shared libraries.
12015         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'
12016       fi
12017     fi
12018     ;;
12019   chorus*)
12020     case $cc_basename in
12021       *)
12022         # FIXME: insert proper C++ library support
12023         ld_shlibs_CXX=no
12024         ;;
12025     esac
12026     ;;
12027
12028   cygwin* | mingw* | pw32*)
12029     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12030     # as there is no search path for DLLs.
12031     hardcode_libdir_flag_spec_CXX='-L$libdir'
12032     allow_undefined_flag_CXX=unsupported
12033     always_export_symbols_CXX=no
12034     enable_shared_with_static_runtimes_CXX=yes
12035
12036     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12037       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'
12038       # If the export-symbols file already is a .def file (1st line
12039       # is EXPORTS), use it as is; otherwise, prepend...
12040       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12041         cp $export_symbols $output_objdir/$soname.def;
12042       else
12043         echo EXPORTS > $output_objdir/$soname.def;
12044         cat $export_symbols >> $output_objdir/$soname.def;
12045       fi~
12046       $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'
12047     else
12048       ld_shlibs_CXX=no
12049     fi
12050   ;;
12051
12052   darwin* | rhapsody*)
12053   if test "$GXX" = yes; then
12054     archive_cmds_need_lc_CXX=no
12055     case "$host_os" in
12056     rhapsody* | darwin1.[012])
12057       allow_undefined_flag_CXX='-undefined suppress'
12058       ;;
12059     *) # Darwin 1.3 on
12060       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12061         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12062       else
12063         case ${MACOSX_DEPLOYMENT_TARGET} in
12064           10.[012])
12065             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12066             ;;
12067           10.*)
12068             allow_undefined_flag_CXX='-undefined dynamic_lookup'
12069             ;;
12070         esac
12071       fi
12072       ;;
12073     esac
12074     lt_int_apple_cc_single_mod=no
12075     output_verbose_link_cmd='echo'
12076     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12077       lt_int_apple_cc_single_mod=yes
12078     fi
12079     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12080       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12081     else
12082       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'
12083     fi
12084     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12085
12086     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12087     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12088       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}'
12089     else
12090       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}'
12091     fi
12092     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}'
12093     hardcode_direct_CXX=no
12094     hardcode_automatic_CXX=yes
12095     hardcode_shlibpath_var_CXX=unsupported
12096     whole_archive_flag_spec_CXX='-all_load $convenience'
12097     link_all_deplibs_CXX=yes
12098   else
12099     ld_shlibs_CXX=no
12100   fi
12101     ;;
12102
12103   dgux*)
12104     case $cc_basename in
12105       ec++)
12106         # FIXME: insert proper C++ library support
12107         ld_shlibs_CXX=no
12108         ;;
12109       ghcx)
12110         # Green Hills C++ Compiler
12111         # FIXME: insert proper C++ library support
12112         ld_shlibs_CXX=no
12113         ;;
12114       *)
12115         # FIXME: insert proper C++ library support
12116         ld_shlibs_CXX=no
12117         ;;
12118     esac
12119     ;;
12120   freebsd12*)
12121     # C++ shared libraries reported to be fairly broken before switch to ELF
12122     ld_shlibs_CXX=no
12123     ;;
12124   freebsd-elf*)
12125     archive_cmds_need_lc_CXX=no
12126     ;;
12127   freebsd* | kfreebsd*-gnu)
12128     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12129     # conventions
12130     ld_shlibs_CXX=yes
12131     ;;
12132   gnu*)
12133     ;;
12134   hpux9*)
12135     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12136     hardcode_libdir_separator_CXX=:
12137     export_dynamic_flag_spec_CXX='${wl}-E'
12138     hardcode_direct_CXX=yes
12139     hardcode_minus_L_CXX=yes # Not in the search PATH,
12140                                 # but as the default
12141                                 # location of the library.
12142
12143     case $cc_basename in
12144     CC)
12145       # FIXME: insert proper C++ library support
12146       ld_shlibs_CXX=no
12147       ;;
12148     aCC)
12149       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'
12150       # Commands to make compiler produce verbose output that lists
12151       # what "hidden" libraries, object files and flags are used when
12152       # linking a shared library.
12153       #
12154       # There doesn't appear to be a way to prevent this compiler from
12155       # explicitly linking system object files so we need to strip them
12156       # from the output so that they don't get included in the library
12157       # dependencies.
12158       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'
12159       ;;
12160     *)
12161       if test "$GXX" = yes; then
12162         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'
12163       else
12164         # FIXME: insert proper C++ library support
12165         ld_shlibs_CXX=no
12166       fi
12167       ;;
12168     esac
12169     ;;
12170   hpux10*|hpux11*)
12171     if test $with_gnu_ld = no; then
12172       case "$host_cpu" in
12173       hppa*64*)
12174         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12175         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12176         hardcode_libdir_separator_CXX=:
12177         ;;
12178       ia64*)
12179         hardcode_libdir_flag_spec_CXX='-L$libdir'
12180         ;;
12181       *)
12182         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12183         hardcode_libdir_separator_CXX=:
12184         export_dynamic_flag_spec_CXX='${wl}-E'
12185         ;;
12186       esac
12187     fi
12188     case "$host_cpu" in
12189     hppa*64*)
12190       hardcode_direct_CXX=no
12191       hardcode_shlibpath_var_CXX=no
12192       ;;
12193     ia64*)
12194       hardcode_direct_CXX=no
12195       hardcode_shlibpath_var_CXX=no
12196       hardcode_minus_L_CXX=yes # Not in the search PATH,
12197                                               # but as the default
12198                                               # location of the library.
12199       ;;
12200     *)
12201       hardcode_direct_CXX=yes
12202       hardcode_minus_L_CXX=yes # Not in the search PATH,
12203                                               # but as the default
12204                                               # location of the library.
12205       ;;
12206     esac
12207
12208     case $cc_basename in
12209       CC)
12210         # FIXME: insert proper C++ library support
12211         ld_shlibs_CXX=no
12212         ;;
12213       aCC)
12214         case "$host_cpu" in
12215         hppa*64*|ia64*)
12216           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12217           ;;
12218         *)
12219           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12220           ;;
12221         esac
12222         # Commands to make compiler produce verbose output that lists
12223         # what "hidden" libraries, object files and flags are used when
12224         # linking a shared library.
12225         #
12226         # There doesn't appear to be a way to prevent this compiler from
12227         # explicitly linking system object files so we need to strip them
12228         # from the output so that they don't get included in the library
12229         # dependencies.
12230         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'
12231         ;;
12232       *)
12233         if test "$GXX" = yes; then
12234           if test $with_gnu_ld = no; then
12235             case "$host_cpu" in
12236             ia64*|hppa*64*)
12237               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12238               ;;
12239             *)
12240               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'
12241               ;;
12242             esac
12243           fi
12244         else
12245           # FIXME: insert proper C++ library support
12246           ld_shlibs_CXX=no
12247         fi
12248         ;;
12249     esac
12250     ;;
12251   irix5* | irix6*)
12252     case $cc_basename in
12253       CC)
12254         # SGI C++
12255         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'
12256
12257         # Archives containing C++ object files must be created using
12258         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12259         # necessary to make sure instantiated templates are included
12260         # in the archive.
12261         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12262         ;;
12263       *)
12264         if test "$GXX" = yes; then
12265           if test "$with_gnu_ld" = no; then
12266             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'
12267           else
12268             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'
12269           fi
12270         fi
12271         link_all_deplibs_CXX=yes
12272         ;;
12273     esac
12274     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12275     hardcode_libdir_separator_CXX=:
12276     ;;
12277   linux*)
12278     case $cc_basename in
12279       KCC)
12280         # Kuck and Associates, Inc. (KAI) C++ Compiler
12281
12282         # KCC will only create a shared library if the output file
12283         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12284         # to its proper name (with version) after linking.
12285         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'
12286         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'
12287         # Commands to make compiler produce verbose output that lists
12288         # what "hidden" libraries, object files and flags are used when
12289         # linking a shared library.
12290         #
12291         # There doesn't appear to be a way to prevent this compiler from
12292         # explicitly linking system object files so we need to strip them
12293         # from the output so that they don't get included in the library
12294         # dependencies.
12295         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'
12296
12297         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12298         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12299
12300         # Archives containing C++ object files must be created using
12301         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12302         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12303         ;;
12304       icpc)
12305         # Intel C++
12306         with_gnu_ld=yes
12307         archive_cmds_need_lc_CXX=no
12308         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12309         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'
12310         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12311         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12312         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12313         ;;
12314       cxx)
12315         # Compaq C++
12316         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12317         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'
12318
12319         runpath_var=LD_RUN_PATH
12320         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12321         hardcode_libdir_separator_CXX=:
12322
12323         # Commands to make compiler produce verbose output that lists
12324         # what "hidden" libraries, object files and flags are used when
12325         # linking a shared library.
12326         #
12327         # There doesn't appear to be a way to prevent this compiler from
12328         # explicitly linking system object files so we need to strip them
12329         # from the output so that they don't get included in the library
12330         # dependencies.
12331         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'
12332         ;;
12333     esac
12334     ;;
12335   lynxos*)
12336     # FIXME: insert proper C++ library support
12337     ld_shlibs_CXX=no
12338     ;;
12339   m88k*)
12340     # FIXME: insert proper C++ library support
12341     ld_shlibs_CXX=no
12342     ;;
12343   mvs*)
12344     case $cc_basename in
12345       cxx)
12346         # FIXME: insert proper C++ library support
12347         ld_shlibs_CXX=no
12348         ;;
12349       *)
12350         # FIXME: insert proper C++ library support
12351         ld_shlibs_CXX=no
12352         ;;
12353     esac
12354     ;;
12355   netbsd*)
12356     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12357       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12358       wlarc=
12359       hardcode_libdir_flag_spec_CXX='-R$libdir'
12360       hardcode_direct_CXX=yes
12361       hardcode_shlibpath_var_CXX=no
12362     fi
12363     # Workaround some broken pre-1.5 toolchains
12364     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12365     ;;
12366   osf3*)
12367     case $cc_basename in
12368       KCC)
12369         # Kuck and Associates, Inc. (KAI) C++ Compiler
12370
12371         # KCC will only create a shared library if the output file
12372         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12373         # to its proper name (with version) after linking.
12374         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'
12375
12376         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12377         hardcode_libdir_separator_CXX=:
12378
12379         # Archives containing C++ object files must be created using
12380         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12381         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12382
12383         ;;
12384       RCC)
12385         # Rational C++ 2.4.1
12386         # FIXME: insert proper C++ library support
12387         ld_shlibs_CXX=no
12388         ;;
12389       cxx)
12390         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12391         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'
12392
12393         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12394         hardcode_libdir_separator_CXX=:
12395
12396         # Commands to make compiler produce verbose output that lists
12397         # what "hidden" libraries, object files and flags are used when
12398         # linking a shared library.
12399         #
12400         # There doesn't appear to be a way to prevent this compiler from
12401         # explicitly linking system object files so we need to strip them
12402         # from the output so that they don't get included in the library
12403         # dependencies.
12404         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'
12405         ;;
12406       *)
12407         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12408           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12409           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'
12410
12411           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12412           hardcode_libdir_separator_CXX=:
12413
12414           # Commands to make compiler produce verbose output that lists
12415           # what "hidden" libraries, object files and flags are used when
12416           # linking a shared library.
12417           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12418
12419         else
12420           # FIXME: insert proper C++ library support
12421           ld_shlibs_CXX=no
12422         fi
12423         ;;
12424     esac
12425     ;;
12426   osf4* | osf5*)
12427     case $cc_basename in
12428       KCC)
12429         # Kuck and Associates, Inc. (KAI) C++ Compiler
12430
12431         # KCC will only create a shared library if the output file
12432         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12433         # to its proper name (with version) after linking.
12434         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'
12435
12436         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12437         hardcode_libdir_separator_CXX=:
12438
12439         # Archives containing C++ object files must be created using
12440         # the KAI C++ compiler.
12441         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12442         ;;
12443       RCC)
12444         # Rational C++ 2.4.1
12445         # FIXME: insert proper C++ library support
12446         ld_shlibs_CXX=no
12447         ;;
12448       cxx)
12449         allow_undefined_flag_CXX=' -expect_unresolved \*'
12450         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'
12451         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12452           echo "-hidden">> $lib.exp~
12453           $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~
12454           $rm $lib.exp'
12455
12456         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12457         hardcode_libdir_separator_CXX=:
12458
12459         # Commands to make compiler produce verbose output that lists
12460         # what "hidden" libraries, object files and flags are used when
12461         # linking a shared library.
12462         #
12463         # There doesn't appear to be a way to prevent this compiler from
12464         # explicitly linking system object files so we need to strip them
12465         # from the output so that they don't get included in the library
12466         # dependencies.
12467         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'
12468         ;;
12469       *)
12470         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12471           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12472          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'
12473
12474           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12475           hardcode_libdir_separator_CXX=:
12476
12477           # Commands to make compiler produce verbose output that lists
12478           # what "hidden" libraries, object files and flags are used when
12479           # linking a shared library.
12480           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12481
12482         else
12483           # FIXME: insert proper C++ library support
12484           ld_shlibs_CXX=no
12485         fi
12486         ;;
12487     esac
12488     ;;
12489   psos*)
12490     # FIXME: insert proper C++ library support
12491     ld_shlibs_CXX=no
12492     ;;
12493   sco*)
12494     archive_cmds_need_lc_CXX=no
12495     case $cc_basename in
12496       CC)
12497         # FIXME: insert proper C++ library support
12498         ld_shlibs_CXX=no
12499         ;;
12500       *)
12501         # FIXME: insert proper C++ library support
12502         ld_shlibs_CXX=no
12503         ;;
12504     esac
12505     ;;
12506   sunos4*)
12507     case $cc_basename in
12508       CC)
12509         # Sun C++ 4.x
12510         # FIXME: insert proper C++ library support
12511         ld_shlibs_CXX=no
12512         ;;
12513       lcc)
12514         # Lucid
12515         # FIXME: insert proper C++ library support
12516         ld_shlibs_CXX=no
12517         ;;
12518       *)
12519         # FIXME: insert proper C++ library support
12520         ld_shlibs_CXX=no
12521         ;;
12522     esac
12523     ;;
12524   solaris*)
12525     case $cc_basename in
12526       CC)
12527         # Sun C++ 4.2, 5.x and Centerline C++
12528         no_undefined_flag_CXX=' -zdefs'
12529         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12530         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12531         $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'
12532
12533         hardcode_libdir_flag_spec_CXX='-R$libdir'
12534         hardcode_shlibpath_var_CXX=no
12535         case $host_os in
12536           solaris2.0-5 | solaris2.0-5.*) ;;
12537           *)
12538             # The C++ compiler is used as linker so we must use $wl
12539             # flag to pass the commands to the underlying system
12540             # linker.
12541             # Supported since Solaris 2.6 (maybe 2.5.1?)
12542             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12543             ;;
12544         esac
12545         link_all_deplibs_CXX=yes
12546
12547         # Commands to make compiler produce verbose output that lists
12548         # what "hidden" libraries, object files and flags are used when
12549         # linking a shared library.
12550         #
12551         # There doesn't appear to be a way to prevent this compiler from
12552         # explicitly linking system object files so we need to strip them
12553         # from the output so that they don't get included in the library
12554         # dependencies.
12555         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'
12556
12557         # Archives containing C++ object files must be created using
12558         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12559         # necessary to make sure instantiated templates are included
12560         # in the archive.
12561         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12562         ;;
12563       gcx)
12564         # Green Hills C++ Compiler
12565         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12566
12567         # The C++ compiler must be used to create the archive.
12568         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12569         ;;
12570       *)
12571         # GNU C++ compiler with Solaris linker
12572         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12573           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12574           if $CC --version | grep -v '^2\.7' > /dev/null; then
12575             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12576             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12577                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12578
12579             # Commands to make compiler produce verbose output that lists
12580             # what "hidden" libraries, object files and flags are used when
12581             # linking a shared library.
12582             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12583           else
12584             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12585             # platform.
12586             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12587             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12588                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12589
12590             # Commands to make compiler produce verbose output that lists
12591             # what "hidden" libraries, object files and flags are used when
12592             # linking a shared library.
12593             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12594           fi
12595
12596           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12597         fi
12598         ;;
12599     esac
12600     ;;
12601   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12602     archive_cmds_need_lc_CXX=no
12603     ;;
12604   tandem*)
12605     case $cc_basename in
12606       NCC)
12607         # NonStop-UX NCC 3.20
12608         # FIXME: insert proper C++ library support
12609         ld_shlibs_CXX=no
12610         ;;
12611       *)
12612         # FIXME: insert proper C++ library support
12613         ld_shlibs_CXX=no
12614         ;;
12615     esac
12616     ;;
12617   vxworks*)
12618     # FIXME: insert proper C++ library support
12619     ld_shlibs_CXX=no
12620     ;;
12621   *)
12622     # FIXME: insert proper C++ library support
12623     ld_shlibs_CXX=no
12624     ;;
12625 esac
12626 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12627 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12628 test "$ld_shlibs_CXX" = no && can_build_shared=no
12629
12630 GCC_CXX="$GXX"
12631 LD_CXX="$LD"
12632
12633 ## CAVEAT EMPTOR:
12634 ## There is no encapsulation within the following macros, do not change
12635 ## the running order or otherwise move them around unless you know exactly
12636 ## what you are doing...
12637
12638 cat > conftest.$ac_ext <<EOF
12639 class Foo
12640 {
12641 public:
12642   Foo (void) { a = 0; }
12643 private:
12644   int a;
12645 };
12646 EOF
12647
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649   (eval $ac_compile) 2>&5
12650   ac_status=$?
12651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); }; then
12653   # Parse the compiler output and extract the necessary
12654   # objects, libraries and library flags.
12655
12656   # Sentinel used to keep track of whether or not we are before
12657   # the conftest object file.
12658   pre_test_object_deps_done=no
12659
12660   # The `*' in the case matches for architectures that use `case' in
12661   # $output_verbose_cmd can trigger glob expansion during the loop
12662   # eval without this substitution.
12663   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12664
12665   for p in `eval $output_verbose_link_cmd`; do
12666     case $p in
12667
12668     -L* | -R* | -l*)
12669        # Some compilers place space between "-{L,R}" and the path.
12670        # Remove the space.
12671        if test $p = "-L" \
12672           || test $p = "-R"; then
12673          prev=$p
12674          continue
12675        else
12676          prev=
12677        fi
12678
12679        if test "$pre_test_object_deps_done" = no; then
12680          case $p in
12681          -L* | -R*)
12682            # Internal compiler library paths should come after those
12683            # provided the user.  The postdeps already come after the
12684            # user supplied libs so there is no need to process them.
12685            if test -z "$compiler_lib_search_path_CXX"; then
12686              compiler_lib_search_path_CXX="${prev}${p}"
12687            else
12688              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12689            fi
12690            ;;
12691          # The "-l" case would never come before the object being
12692          # linked, so don't bother handling this case.
12693          esac
12694        else
12695          if test -z "$postdeps_CXX"; then
12696            postdeps_CXX="${prev}${p}"
12697          else
12698            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12699          fi
12700        fi
12701        ;;
12702
12703     *.$objext)
12704        # This assumes that the test object file only shows up
12705        # once in the compiler output.
12706        if test "$p" = "conftest.$objext"; then
12707          pre_test_object_deps_done=yes
12708          continue
12709        fi
12710
12711        if test "$pre_test_object_deps_done" = no; then
12712          if test -z "$predep_objects_CXX"; then
12713            predep_objects_CXX="$p"
12714          else
12715            predep_objects_CXX="$predep_objects_CXX $p"
12716          fi
12717        else
12718          if test -z "$postdep_objects_CXX"; then
12719            postdep_objects_CXX="$p"
12720          else
12721            postdep_objects_CXX="$postdep_objects_CXX $p"
12722          fi
12723        fi
12724        ;;
12725
12726     *) ;; # Ignore the rest.
12727
12728     esac
12729   done
12730
12731   # Clean up.
12732   rm -f a.out a.exe
12733 else
12734   echo "libtool.m4: error: problem compiling CXX test program"
12735 fi
12736
12737 $rm -f confest.$objext
12738
12739 case " $postdeps_CXX " in
12740 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12741 esac
12742
12743 lt_prog_compiler_wl_CXX=
12744 lt_prog_compiler_pic_CXX=
12745 lt_prog_compiler_static_CXX=
12746
12747 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12748 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12749
12750   # C++ specific cases for pic, static, wl, etc.
12751   if test "$GXX" = yes; then
12752     lt_prog_compiler_wl_CXX='-Wl,'
12753     lt_prog_compiler_static_CXX='-static'
12754
12755     case $host_os in
12756     aix*)
12757       # All AIX code is PIC.
12758       if test "$host_cpu" = ia64; then
12759         # AIX 5 now supports IA64 processor
12760         lt_prog_compiler_static_CXX='-Bstatic'
12761       fi
12762       ;;
12763     amigaos*)
12764       # FIXME: we need at least 68020 code to build shared libraries, but
12765       # adding the `-m68020' flag to GCC prevents building anything better,
12766       # like `-m68040'.
12767       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12768       ;;
12769     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12770       # PIC is the default for these OSes.
12771       ;;
12772     mingw* | os2* | pw32*)
12773       # This hack is so that the source file can tell whether it is being
12774       # built for inclusion in a dll (and should export symbols for example).
12775       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12776       ;;
12777     darwin* | rhapsody*)
12778       # PIC is the default on this platform
12779       # Common symbols not allowed in MH_DYLIB files
12780       lt_prog_compiler_pic_CXX='-fno-common'
12781       ;;
12782     *djgpp*)
12783       # DJGPP does not support shared libraries at all
12784       lt_prog_compiler_pic_CXX=
12785       ;;
12786     sysv4*MP*)
12787       if test -d /usr/nec; then
12788         lt_prog_compiler_pic_CXX=-Kconform_pic
12789       fi
12790       ;;
12791     hpux*)
12792       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12793       # not for PA HP-UX.
12794       case "$host_cpu" in
12795       hppa*64*|ia64*)
12796         ;;
12797       *)
12798         lt_prog_compiler_pic_CXX='-fPIC'
12799         ;;
12800       esac
12801       ;;
12802     *)
12803       lt_prog_compiler_pic_CXX='-fPIC'
12804       ;;
12805     esac
12806   else
12807     case $host_os in
12808       aix4* | aix5*)
12809         # All AIX code is PIC.
12810         if test "$host_cpu" = ia64; then
12811           # AIX 5 now supports IA64 processor
12812           lt_prog_compiler_static_CXX='-Bstatic'
12813         else
12814           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12815         fi
12816         ;;
12817       chorus*)
12818         case $cc_basename in
12819         cxch68)
12820           # Green Hills C++ Compiler
12821           # _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"
12822           ;;
12823         esac
12824         ;;
12825       dgux*)
12826         case $cc_basename in
12827           ec++)
12828             lt_prog_compiler_pic_CXX='-KPIC'
12829             ;;
12830           ghcx)
12831             # Green Hills C++ Compiler
12832             lt_prog_compiler_pic_CXX='-pic'
12833             ;;
12834           *)
12835             ;;
12836         esac
12837         ;;
12838       freebsd* | kfreebsd*-gnu)
12839         # FreeBSD uses GNU C++
12840         ;;
12841       hpux9* | hpux10* | hpux11*)
12842         case $cc_basename in
12843           CC)
12844             lt_prog_compiler_wl_CXX='-Wl,'
12845             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12846             if test "$host_cpu" != ia64; then
12847               lt_prog_compiler_pic_CXX='+Z'
12848             fi
12849             ;;
12850           aCC)
12851             lt_prog_compiler_wl_CXX='-Wl,'
12852             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12853             case "$host_cpu" in
12854             hppa*64*|ia64*)
12855               # +Z the default
12856               ;;
12857             *)
12858               lt_prog_compiler_pic_CXX='+Z'
12859               ;;
12860             esac
12861             ;;
12862           *)
12863             ;;
12864         esac
12865         ;;
12866       irix5* | irix6* | nonstopux*)
12867         case $cc_basename in
12868           CC)
12869             lt_prog_compiler_wl_CXX='-Wl,'
12870             lt_prog_compiler_static_CXX='-non_shared'
12871             # CC pic flag -KPIC is the default.
12872             ;;
12873           *)
12874             ;;
12875         esac
12876         ;;
12877       linux*)
12878         case $cc_basename in
12879           KCC)
12880             # KAI C++ Compiler
12881             lt_prog_compiler_wl_CXX='--backend -Wl,'
12882             lt_prog_compiler_pic_CXX='-fPIC'
12883             ;;
12884           icpc)
12885             # Intel C++
12886             lt_prog_compiler_wl_CXX='-Wl,'
12887             lt_prog_compiler_pic_CXX='-KPIC'
12888             lt_prog_compiler_static_CXX='-static'
12889             ;;
12890           cxx)
12891             # Compaq C++
12892             # Make sure the PIC flag is empty.  It appears that all Alpha
12893             # Linux and Compaq Tru64 Unix objects are PIC.
12894             lt_prog_compiler_pic_CXX=
12895             lt_prog_compiler_static_CXX='-non_shared'
12896             ;;
12897           *)
12898             ;;
12899         esac
12900         ;;
12901       lynxos*)
12902         ;;
12903       m88k*)
12904         ;;
12905       mvs*)
12906         case $cc_basename in
12907           cxx)
12908             lt_prog_compiler_pic_CXX='-W c,exportall'
12909             ;;
12910           *)
12911             ;;
12912         esac
12913         ;;
12914       netbsd*)
12915         ;;
12916       osf3* | osf4* | osf5*)
12917         case $cc_basename in
12918           KCC)
12919             lt_prog_compiler_wl_CXX='--backend -Wl,'
12920             ;;
12921           RCC)
12922             # Rational C++ 2.4.1
12923             lt_prog_compiler_pic_CXX='-pic'
12924             ;;
12925           cxx)
12926             # Digital/Compaq C++
12927             lt_prog_compiler_wl_CXX='-Wl,'
12928             # Make sure the PIC flag is empty.  It appears that all Alpha
12929             # Linux and Compaq Tru64 Unix objects are PIC.
12930             lt_prog_compiler_pic_CXX=
12931             lt_prog_compiler_static_CXX='-non_shared'
12932             ;;
12933           *)
12934             ;;
12935         esac
12936         ;;
12937       psos*)
12938         ;;
12939       sco*)
12940         case $cc_basename in
12941           CC)
12942             lt_prog_compiler_pic_CXX='-fPIC'
12943             ;;
12944           *)
12945             ;;
12946         esac
12947         ;;
12948       solaris*)
12949         case $cc_basename in
12950           CC)
12951             # Sun C++ 4.2, 5.x and Centerline C++
12952             lt_prog_compiler_pic_CXX='-KPIC'
12953             lt_prog_compiler_static_CXX='-Bstatic'
12954             lt_prog_compiler_wl_CXX='-Qoption ld '
12955             ;;
12956           gcx)
12957             # Green Hills C++ Compiler
12958             lt_prog_compiler_pic_CXX='-PIC'
12959             ;;
12960           *)
12961             ;;
12962         esac
12963         ;;
12964       sunos4*)
12965         case $cc_basename in
12966           CC)
12967             # Sun C++ 4.x
12968             lt_prog_compiler_pic_CXX='-pic'
12969             lt_prog_compiler_static_CXX='-Bstatic'
12970             ;;
12971           lcc)
12972             # Lucid
12973             lt_prog_compiler_pic_CXX='-pic'
12974             ;;
12975           *)
12976             ;;
12977         esac
12978         ;;
12979       tandem*)
12980         case $cc_basename in
12981           NCC)
12982             # NonStop-UX NCC 3.20
12983             lt_prog_compiler_pic_CXX='-KPIC'
12984             ;;
12985           *)
12986             ;;
12987         esac
12988         ;;
12989       unixware*)
12990         ;;
12991       vxworks*)
12992         ;;
12993       *)
12994         lt_prog_compiler_can_build_shared_CXX=no
12995         ;;
12996     esac
12997   fi
12998
12999 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13000 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13001
13002 #
13003 # Check to make sure the PIC flag actually works.
13004 #
13005 if test -n "$lt_prog_compiler_pic_CXX"; then
13006
13007 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13008 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13009 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13010   echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13012   lt_prog_compiler_pic_works_CXX=no
13013   ac_outfile=conftest.$ac_objext
13014    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13015    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13016    # Insert the option either (1) after the last *FLAGS variable, or
13017    # (2) before a word containing "conftest.", or (3) at the end.
13018    # Note that $ac_compile itself does not contain backslashes and begins
13019    # with a dollar sign (not a hyphen), so the echo should work correctly.
13020    # The option is referenced via a variable to avoid confusing sed.
13021    lt_compile=`echo "$ac_compile" | $SED \
13022    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13023    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13024    -e 's:$: $lt_compiler_flag:'`
13025    (eval echo "\"\$as_me:13025: $lt_compile\"" >&5)
13026    (eval "$lt_compile" 2>conftest.err)
13027    ac_status=$?
13028    cat conftest.err >&5
13029    echo "$as_me:13029: \$? = $ac_status" >&5
13030    if (exit $ac_status) && test -s "$ac_outfile"; then
13031      # The compiler can only warn and ignore the option if not recognized
13032      # So say no if there are warnings
13033      if test ! -s conftest.err; then
13034        lt_prog_compiler_pic_works_CXX=yes
13035      fi
13036    fi
13037    $rm conftest*
13038
13039 fi
13040 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13041 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13042
13043 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13044     case $lt_prog_compiler_pic_CXX in
13045      "" | " "*) ;;
13046      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13047      esac
13048 else
13049     lt_prog_compiler_pic_CXX=
13050      lt_prog_compiler_can_build_shared_CXX=no
13051 fi
13052
13053 fi
13054 case "$host_os" in
13055   # For platforms which do not support PIC, -DPIC is meaningless:
13056   *djgpp*)
13057     lt_prog_compiler_pic_CXX=
13058     ;;
13059   *)
13060     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13061     ;;
13062 esac
13063
13064 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13065 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13066 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13067   echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069   lt_cv_prog_compiler_c_o_CXX=no
13070    $rm -r conftest 2>/dev/null
13071    mkdir conftest
13072    cd conftest
13073    mkdir out
13074    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13075
13076    lt_compiler_flag="-o out/conftest2.$ac_objext"
13077    # Insert the option either (1) after the last *FLAGS variable, or
13078    # (2) before a word containing "conftest.", or (3) at the end.
13079    # Note that $ac_compile itself does not contain backslashes and begins
13080    # with a dollar sign (not a hyphen), so the echo should work correctly.
13081    lt_compile=`echo "$ac_compile" | $SED \
13082    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13083    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13084    -e 's:$: $lt_compiler_flag:'`
13085    (eval echo "\"\$as_me:13085: $lt_compile\"" >&5)
13086    (eval "$lt_compile" 2>out/conftest.err)
13087    ac_status=$?
13088    cat out/conftest.err >&5
13089    echo "$as_me:13089: \$? = $ac_status" >&5
13090    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13091    then
13092      # The compiler can only warn and ignore the option if not recognized
13093      # So say no if there are warnings
13094      if test ! -s out/conftest.err; then
13095        lt_cv_prog_compiler_c_o_CXX=yes
13096      fi
13097    fi
13098    chmod u+w .
13099    $rm conftest*
13100    # SGI C++ compiler will create directory out/ii_files/ for
13101    # template instantiation
13102    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13103    $rm out/* && rmdir out
13104    cd ..
13105    rmdir conftest
13106    $rm conftest*
13107
13108 fi
13109 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13110 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13111
13112
13113 hard_links="nottested"
13114 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13115   # do not overwrite the value of need_locks provided by the user
13116   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13117 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13118   hard_links=yes
13119   $rm conftest*
13120   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13121   touch conftest.a
13122   ln conftest.a conftest.b 2>&5 || hard_links=no
13123   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13124   echo "$as_me:$LINENO: result: $hard_links" >&5
13125 echo "${ECHO_T}$hard_links" >&6
13126   if test "$hard_links" = no; then
13127     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13128 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13129     need_locks=warn
13130   fi
13131 else
13132   need_locks=no
13133 fi
13134
13135 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13136 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13137
13138   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13139   case $host_os in
13140   aix4* | aix5*)
13141     # If we're using GNU nm, then we don't want the "-C" option.
13142     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13143     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13144       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'
13145     else
13146       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'
13147     fi
13148     ;;
13149   pw32*)
13150     export_symbols_cmds_CXX="$ltdll_cmds"
13151   ;;
13152   cygwin* | mingw*)
13153     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13154   ;;
13155   *)
13156     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13157   ;;
13158   esac
13159
13160 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13161 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13162 test "$ld_shlibs_CXX" = no && can_build_shared=no
13163
13164 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13165 if test "$GCC" = yes; then
13166   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13167 fi
13168
13169 #
13170 # Do we need to explicitly link libc?
13171 #
13172 case "x$archive_cmds_need_lc_CXX" in
13173 x|xyes)
13174   # Assume -lc should be added
13175   archive_cmds_need_lc_CXX=yes
13176
13177   if test "$enable_shared" = yes && test "$GCC" = yes; then
13178     case $archive_cmds_CXX in
13179     *'~'*)
13180       # FIXME: we may have to deal with multi-command sequences.
13181       ;;
13182     '$CC '*)
13183       # Test whether the compiler implicitly links with -lc since on some
13184       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13185       # to ld, don't add -lc before -lgcc.
13186       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13187 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13188       $rm conftest*
13189       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13190
13191       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13192   (eval $ac_compile) 2>&5
13193   ac_status=$?
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } 2>conftest.err; then
13196         soname=conftest
13197         lib=conftest
13198         libobjs=conftest.$ac_objext
13199         deplibs=
13200         wl=$lt_prog_compiler_wl_CXX
13201         compiler_flags=-v
13202         linker_flags=-v
13203         verstring=
13204         output_objdir=.
13205         libname=conftest
13206         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13207         allow_undefined_flag_CXX=
13208         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13209   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13210   ac_status=$?
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); }
13213         then
13214           archive_cmds_need_lc_CXX=no
13215         else
13216           archive_cmds_need_lc_CXX=yes
13217         fi
13218         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13219       else
13220         cat conftest.err 1>&5
13221       fi
13222       $rm conftest*
13223       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13224 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13225       ;;
13226     esac
13227   fi
13228   ;;
13229 esac
13230
13231 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13232 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13233 library_names_spec=
13234 libname_spec='lib$name'
13235 soname_spec=
13236 shrext_cmds=".so"
13237 postinstall_cmds=
13238 postuninstall_cmds=
13239 finish_cmds=
13240 finish_eval=
13241 shlibpath_var=
13242 shlibpath_overrides_runpath=unknown
13243 version_type=none
13244 dynamic_linker="$host_os ld.so"
13245 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13246 if test "$GCC" = yes; then
13247   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13248   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13249     # if the path contains ";" then we assume it to be the separator
13250     # otherwise default to the standard path separator (i.e. ":") - it is
13251     # assumed that no part of a normal pathname contains ";" but that should
13252     # okay in the real world where ";" in dirpaths is itself problematic.
13253     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13254   else
13255     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13256   fi
13257 else
13258   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13259 fi
13260 need_lib_prefix=unknown
13261 hardcode_into_libs=no
13262
13263 # when you set need_version to no, make sure it does not cause -set_version
13264 # flags to be left without arguments
13265 need_version=unknown
13266
13267 case $host_os in
13268 aix3*)
13269   version_type=linux
13270   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13271   shlibpath_var=LIBPATH
13272
13273   # AIX 3 has no versioning support, so we append a major version to the name.
13274   soname_spec='${libname}${release}${shared_ext}$major'
13275   ;;
13276
13277 aix4* | aix5*)
13278   version_type=linux
13279   need_lib_prefix=no
13280   need_version=no
13281   hardcode_into_libs=yes
13282   if test "$host_cpu" = ia64; then
13283     # AIX 5 supports IA64
13284     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13285     shlibpath_var=LD_LIBRARY_PATH
13286   else
13287     # With GCC up to 2.95.x, collect2 would create an import file
13288     # for dependence libraries.  The import file would start with
13289     # the line `#! .'.  This would cause the generated library to
13290     # depend on `.', always an invalid library.  This was fixed in
13291     # development snapshots of GCC prior to 3.0.
13292     case $host_os in
13293       aix4 | aix4.[01] | aix4.[01].*)
13294       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13295            echo ' yes '
13296            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13297         :
13298       else
13299         can_build_shared=no
13300       fi
13301       ;;
13302     esac
13303     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13304     # soname into executable. Probably we can add versioning support to
13305     # collect2, so additional links can be useful in future.
13306     if test "$aix_use_runtimelinking" = yes; then
13307       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13308       # instead of lib<name>.a to let people know that these are not
13309       # typical AIX shared libraries.
13310       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13311     else
13312       # We preserve .a as extension for shared libraries through AIX4.2
13313       # and later when we are not doing run time linking.
13314       library_names_spec='${libname}${release}.a $libname.a'
13315       soname_spec='${libname}${release}${shared_ext}$major'
13316     fi
13317     shlibpath_var=LIBPATH
13318   fi
13319   ;;
13320
13321 amigaos*)
13322   library_names_spec='$libname.ixlibrary $libname.a'
13323   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13324   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'
13325   ;;
13326
13327 beos*)
13328   library_names_spec='${libname}${shared_ext}'
13329   dynamic_linker="$host_os ld.so"
13330   shlibpath_var=LIBRARY_PATH
13331   ;;
13332
13333 bsdi4*)
13334   version_type=linux
13335   need_version=no
13336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13337   soname_spec='${libname}${release}${shared_ext}$major'
13338   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13339   shlibpath_var=LD_LIBRARY_PATH
13340   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13341   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13342   # the default ld.so.conf also contains /usr/contrib/lib and
13343   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13344   # libtool to hard-code these into programs
13345   ;;
13346
13347 cygwin* | mingw* | pw32*)
13348   version_type=windows
13349   shrext_cmds=".dll"
13350   need_version=no
13351   need_lib_prefix=no
13352
13353   case $GCC,$host_os in
13354   yes,cygwin* | yes,mingw* | yes,pw32*)
13355     library_names_spec='$libname.dll.a'
13356     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13357     postinstall_cmds='base_file=`basename \${file}`~
13358       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13359       dldir=$destdir/`dirname \$dlpath`~
13360       test -d \$dldir || mkdir -p \$dldir~
13361       $install_prog $dir/$dlname \$dldir/$dlname'
13362     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13363       dlpath=$dir/\$dldll~
13364        $rm \$dlpath'
13365     shlibpath_overrides_runpath=yes
13366
13367     case $host_os in
13368     cygwin*)
13369       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13370       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13371       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13372       ;;
13373     mingw*)
13374       # MinGW DLLs use traditional 'lib' prefix
13375       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13376       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13377       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13378         # It is most probably a Windows format PATH printed by
13379         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13380         # path with ; separators, and with drive letters. We can handle the
13381         # drive letters (cygwin fileutils understands them), so leave them,
13382         # especially as we might pass files found there to a mingw objdump,
13383         # which wouldn't understand a cygwinified path. Ahh.
13384         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13385       else
13386         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13387       fi
13388       ;;
13389     pw32*)
13390       # pw32 DLLs use 'pw' prefix rather than 'lib'
13391       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13392       ;;
13393     esac
13394     ;;
13395
13396   *)
13397     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13398     ;;
13399   esac
13400   dynamic_linker='Win32 ld.exe'
13401   # FIXME: first we should search . and the directory the executable is in
13402   shlibpath_var=PATH
13403   ;;
13404
13405 darwin* | rhapsody*)
13406   dynamic_linker="$host_os dyld"
13407   version_type=darwin
13408   need_lib_prefix=no
13409   need_version=no
13410   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13411   soname_spec='${libname}${release}${major}$shared_ext'
13412   shlibpath_overrides_runpath=yes
13413   shlibpath_var=DYLD_LIBRARY_PATH
13414   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13415   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13416   if test "$GCC" = yes; then
13417     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"`
13418   else
13419     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13420   fi
13421   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13422   ;;
13423
13424 dgux*)
13425   version_type=linux
13426   need_lib_prefix=no
13427   need_version=no
13428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13429   soname_spec='${libname}${release}${shared_ext}$major'
13430   shlibpath_var=LD_LIBRARY_PATH
13431   ;;
13432
13433 freebsd1*)
13434   dynamic_linker=no
13435   ;;
13436
13437 kfreebsd*-gnu)
13438   version_type=linux
13439   need_lib_prefix=no
13440   need_version=no
13441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13442   soname_spec='${libname}${release}${shared_ext}$major'
13443   shlibpath_var=LD_LIBRARY_PATH
13444   shlibpath_overrides_runpath=no
13445   hardcode_into_libs=yes
13446   dynamic_linker='GNU ld.so'
13447   ;;
13448
13449 freebsd*)
13450   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13451   version_type=freebsd-$objformat
13452   case $version_type in
13453     freebsd-elf*)
13454       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13455       need_version=no
13456       need_lib_prefix=no
13457       ;;
13458     freebsd-*)
13459       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13460       need_version=yes
13461       ;;
13462   esac
13463   shlibpath_var=LD_LIBRARY_PATH
13464   case $host_os in
13465   freebsd2*)
13466     shlibpath_overrides_runpath=yes
13467     ;;
13468   freebsd3.01* | freebsdelf3.01*)
13469     shlibpath_overrides_runpath=yes
13470     hardcode_into_libs=yes
13471     ;;
13472   *) # from 3.2 on
13473     shlibpath_overrides_runpath=no
13474     hardcode_into_libs=yes
13475     ;;
13476   esac
13477   ;;
13478
13479 gnu*)
13480   version_type=linux
13481   need_lib_prefix=no
13482   need_version=no
13483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13484   soname_spec='${libname}${release}${shared_ext}$major'
13485   shlibpath_var=LD_LIBRARY_PATH
13486   hardcode_into_libs=yes
13487   ;;
13488
13489 hpux9* | hpux10* | hpux11*)
13490   # Give a soname corresponding to the major version so that dld.sl refuses to
13491   # link against other versions.
13492   version_type=sunos
13493   need_lib_prefix=no
13494   need_version=no
13495   case "$host_cpu" in
13496   ia64*)
13497     shrext_cmds='.so'
13498     hardcode_into_libs=yes
13499     dynamic_linker="$host_os dld.so"
13500     shlibpath_var=LD_LIBRARY_PATH
13501     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13502     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13503     soname_spec='${libname}${release}${shared_ext}$major'
13504     if test "X$HPUX_IA64_MODE" = X32; then
13505       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13506     else
13507       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13508     fi
13509     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13510     ;;
13511    hppa*64*)
13512      shrext_cmds='.sl'
13513      hardcode_into_libs=yes
13514      dynamic_linker="$host_os dld.sl"
13515      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13516      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13517      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13518      soname_spec='${libname}${release}${shared_ext}$major'
13519      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13520      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13521      ;;
13522    *)
13523     shrext_cmds='.sl'
13524     dynamic_linker="$host_os dld.sl"
13525     shlibpath_var=SHLIB_PATH
13526     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528     soname_spec='${libname}${release}${shared_ext}$major'
13529     ;;
13530   esac
13531   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13532   postinstall_cmds='chmod 555 $lib'
13533   ;;
13534
13535 irix5* | irix6* | nonstopux*)
13536   case $host_os in
13537     nonstopux*) version_type=nonstopux ;;
13538     *)
13539         if test "$lt_cv_prog_gnu_ld" = yes; then
13540                 version_type=linux
13541         else
13542                 version_type=irix
13543         fi ;;
13544   esac
13545   need_lib_prefix=no
13546   need_version=no
13547   soname_spec='${libname}${release}${shared_ext}$major'
13548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13549   case $host_os in
13550   irix5* | nonstopux*)
13551     libsuff= shlibsuff=
13552     ;;
13553   *)
13554     case $LD in # libtool.m4 will add one of these switches to LD
13555     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13556       libsuff= shlibsuff= libmagic=32-bit;;
13557     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13558       libsuff=32 shlibsuff=N32 libmagic=N32;;
13559     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13560       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13561     *) libsuff= shlibsuff= libmagic=never-match;;
13562     esac
13563     ;;
13564   esac
13565   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13566   shlibpath_overrides_runpath=no
13567   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13568   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13569   hardcode_into_libs=yes
13570   ;;
13571
13572 # No shared lib support for Linux oldld, aout, or coff.
13573 linux*oldld* | linux*aout* | linux*coff*)
13574   dynamic_linker=no
13575   ;;
13576
13577 # This must be Linux ELF.
13578 linux*)
13579   version_type=linux
13580   need_lib_prefix=no
13581   need_version=no
13582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583   soname_spec='${libname}${release}${shared_ext}$major'
13584   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13585   shlibpath_var=LD_LIBRARY_PATH
13586   shlibpath_overrides_runpath=no
13587   # This implies no fast_install, which is unacceptable.
13588   # Some rework will be needed to allow for fast_install
13589   # before this can be enabled.
13590   hardcode_into_libs=yes
13591
13592   # find out which ABI we are using
13593   libsuff=
13594   case "$host_cpu" in
13595   x86_64*|s390x*|powerpc64*)
13596     echo '#line 13596 "configure"' > conftest.$ac_ext
13597     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13598   (eval $ac_compile) 2>&5
13599   ac_status=$?
13600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601   (exit $ac_status); }; then
13602       case `/usr/bin/file conftest.$ac_objext` in
13603       *64-bit*)
13604         libsuff=64
13605         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13606         ;;
13607       esac
13608     fi
13609     rm -rf conftest*
13610     ;;
13611   esac
13612
13613   # Append ld.so.conf contents to the search path
13614   if test -f /etc/ld.so.conf; then
13615     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13616     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13617   fi
13618
13619   # We used to test for /lib/ld.so.1 and disable shared libraries on
13620   # powerpc, because MkLinux only supported shared libraries with the
13621   # GNU dynamic linker.  Since this was broken with cross compilers,
13622   # most powerpc-linux boxes support dynamic linking these days and
13623   # people can always --disable-shared, the test was removed, and we
13624   # assume the GNU/Linux dynamic linker is in use.
13625   dynamic_linker='GNU/Linux ld.so'
13626   ;;
13627
13628 knetbsd*-gnu)
13629   version_type=linux
13630   need_lib_prefix=no
13631   need_version=no
13632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13633   soname_spec='${libname}${release}${shared_ext}$major'
13634   shlibpath_var=LD_LIBRARY_PATH
13635   shlibpath_overrides_runpath=no
13636   hardcode_into_libs=yes
13637   dynamic_linker='GNU ld.so'
13638   ;;
13639
13640 netbsd*)
13641   version_type=sunos
13642   need_lib_prefix=no
13643   need_version=no
13644   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13646     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13647     dynamic_linker='NetBSD (a.out) ld.so'
13648   else
13649     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13650     soname_spec='${libname}${release}${shared_ext}$major'
13651     dynamic_linker='NetBSD ld.elf_so'
13652   fi
13653   shlibpath_var=LD_LIBRARY_PATH
13654   shlibpath_overrides_runpath=yes
13655   hardcode_into_libs=yes
13656   ;;
13657
13658 newsos6)
13659   version_type=linux
13660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661   shlibpath_var=LD_LIBRARY_PATH
13662   shlibpath_overrides_runpath=yes
13663   ;;
13664
13665 nto-qnx*)
13666   version_type=linux
13667   need_lib_prefix=no
13668   need_version=no
13669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13670   soname_spec='${libname}${release}${shared_ext}$major'
13671   shlibpath_var=LD_LIBRARY_PATH
13672   shlibpath_overrides_runpath=yes
13673   ;;
13674
13675 openbsd*)
13676   version_type=sunos
13677   need_lib_prefix=no
13678   need_version=yes
13679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13680   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13681   shlibpath_var=LD_LIBRARY_PATH
13682   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13683     case $host_os in
13684       openbsd2.[89] | openbsd2.[89].*)
13685         shlibpath_overrides_runpath=no
13686         ;;
13687       *)
13688         shlibpath_overrides_runpath=yes
13689         ;;
13690       esac
13691   else
13692     shlibpath_overrides_runpath=yes
13693   fi
13694   ;;
13695
13696 os2*)
13697   libname_spec='$name'
13698   shrext_cmds=".dll"
13699   need_lib_prefix=no
13700   library_names_spec='$libname${shared_ext} $libname.a'
13701   dynamic_linker='OS/2 ld.exe'
13702   shlibpath_var=LIBPATH
13703   ;;
13704
13705 osf3* | osf4* | osf5*)
13706   version_type=osf
13707   need_lib_prefix=no
13708   need_version=no
13709   soname_spec='${libname}${release}${shared_ext}$major'
13710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13711   shlibpath_var=LD_LIBRARY_PATH
13712   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13713   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13714   ;;
13715
13716 sco3.2v5*)
13717   version_type=osf
13718   soname_spec='${libname}${release}${shared_ext}$major'
13719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13720   shlibpath_var=LD_LIBRARY_PATH
13721   ;;
13722
13723 solaris*)
13724   version_type=linux
13725   need_lib_prefix=no
13726   need_version=no
13727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13728   soname_spec='${libname}${release}${shared_ext}$major'
13729   shlibpath_var=LD_LIBRARY_PATH
13730   shlibpath_overrides_runpath=yes
13731   hardcode_into_libs=yes
13732   # ldd complains unless libraries are executable
13733   postinstall_cmds='chmod +x $lib'
13734   ;;
13735
13736 sunos4*)
13737   version_type=sunos
13738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13739   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13740   shlibpath_var=LD_LIBRARY_PATH
13741   shlibpath_overrides_runpath=yes
13742   if test "$with_gnu_ld" = yes; then
13743     need_lib_prefix=no
13744   fi
13745   need_version=yes
13746   ;;
13747
13748 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13749   version_type=linux
13750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13751   soname_spec='${libname}${release}${shared_ext}$major'
13752   shlibpath_var=LD_LIBRARY_PATH
13753   case $host_vendor in
13754     sni)
13755       shlibpath_overrides_runpath=no
13756       need_lib_prefix=no
13757       export_dynamic_flag_spec='${wl}-Blargedynsym'
13758       runpath_var=LD_RUN_PATH
13759       ;;
13760     siemens)
13761       need_lib_prefix=no
13762       ;;
13763     motorola)
13764       need_lib_prefix=no
13765       need_version=no
13766       shlibpath_overrides_runpath=no
13767       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13768       ;;
13769   esac
13770   ;;
13771
13772 sysv4*MP*)
13773   if test -d /usr/nec ;then
13774     version_type=linux
13775     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13776     soname_spec='$libname${shared_ext}.$major'
13777     shlibpath_var=LD_LIBRARY_PATH
13778   fi
13779   ;;
13780
13781 uts4*)
13782   version_type=linux
13783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13784   soname_spec='${libname}${release}${shared_ext}$major'
13785   shlibpath_var=LD_LIBRARY_PATH
13786   ;;
13787
13788 *)
13789   dynamic_linker=no
13790   ;;
13791 esac
13792 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13793 echo "${ECHO_T}$dynamic_linker" >&6
13794 test "$dynamic_linker" = no && can_build_shared=no
13795
13796 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13797 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13798 hardcode_action_CXX=
13799 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13800    test -n "$runpath_var CXX" || \
13801    test "X$hardcode_automatic_CXX"="Xyes" ; then
13802
13803   # We can hardcode non-existant directories.
13804   if test "$hardcode_direct_CXX" != no &&
13805      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13806      # have to relink, otherwise we might link with an installed library
13807      # when we should be linking with a yet-to-be-installed one
13808      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13809      test "$hardcode_minus_L_CXX" != no; then
13810     # Linking always hardcodes the temporary library directory.
13811     hardcode_action_CXX=relink
13812   else
13813     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13814     hardcode_action_CXX=immediate
13815   fi
13816 else
13817   # We cannot hardcode anything, or else we can only hardcode existing
13818   # directories.
13819   hardcode_action_CXX=unsupported
13820 fi
13821 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13822 echo "${ECHO_T}$hardcode_action_CXX" >&6
13823
13824 if test "$hardcode_action_CXX" = relink; then
13825   # Fast installation is not supported
13826   enable_fast_install=no
13827 elif test "$shlibpath_overrides_runpath" = yes ||
13828      test "$enable_shared" = no; then
13829   # Fast installation is not necessary
13830   enable_fast_install=needless
13831 fi
13832
13833 striplib=
13834 old_striplib=
13835 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13836 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13837 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13838   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13839   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13840   echo "$as_me:$LINENO: result: yes" >&5
13841 echo "${ECHO_T}yes" >&6
13842 else
13843 # FIXME - insert some real tests, host_os isn't really good enough
13844   case $host_os in
13845    darwin*)
13846        if test -n "$STRIP" ; then
13847          striplib="$STRIP -x"
13848          echo "$as_me:$LINENO: result: yes" >&5
13849 echo "${ECHO_T}yes" >&6
13850        else
13851   echo "$as_me:$LINENO: result: no" >&5
13852 echo "${ECHO_T}no" >&6
13853 fi
13854        ;;
13855    *)
13856   echo "$as_me:$LINENO: result: no" >&5
13857 echo "${ECHO_T}no" >&6
13858     ;;
13859   esac
13860 fi
13861
13862 if test "x$enable_dlopen" != xyes; then
13863   enable_dlopen=unknown
13864   enable_dlopen_self=unknown
13865   enable_dlopen_self_static=unknown
13866 else
13867   lt_cv_dlopen=no
13868   lt_cv_dlopen_libs=
13869
13870   case $host_os in
13871   beos*)
13872     lt_cv_dlopen="load_add_on"
13873     lt_cv_dlopen_libs=
13874     lt_cv_dlopen_self=yes
13875     ;;
13876
13877   mingw* | pw32*)
13878     lt_cv_dlopen="LoadLibrary"
13879     lt_cv_dlopen_libs=
13880    ;;
13881
13882   cygwin*)
13883     lt_cv_dlopen="dlopen"
13884     lt_cv_dlopen_libs=
13885    ;;
13886
13887   darwin*)
13888   # if libdl is installed we need to link against it
13889     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13890 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13892   echo $ECHO_N "(cached) $ECHO_C" >&6
13893 else
13894   ac_check_lib_save_LIBS=$LIBS
13895 LIBS="-ldl  $LIBS"
13896 cat >conftest.$ac_ext <<_ACEOF
13897 /* confdefs.h.  */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h.  */
13902
13903 /* Override any gcc2 internal prototype to avoid an error.  */
13904 #ifdef __cplusplus
13905 extern "C"
13906 #endif
13907 /* We use char because int might match the return type of a gcc2
13908    builtin and then its argument prototype would still apply.  */
13909 char dlopen ();
13910 int
13911 main ()
13912 {
13913 dlopen ();
13914   ;
13915   return 0;
13916 }
13917 _ACEOF
13918 rm -f conftest.$ac_objext conftest$ac_exeext
13919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13920   (eval $ac_link) 2>conftest.er1
13921   ac_status=$?
13922   grep -v '^ *+' conftest.er1 >conftest.err
13923   rm -f conftest.er1
13924   cat conftest.err >&5
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); } &&
13927          { ac_try='test -z "$ac_cxx_werror_flag"
13928                          || test ! -s conftest.err'
13929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930   (eval $ac_try) 2>&5
13931   ac_status=$?
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); }; } &&
13934          { ac_try='test -s conftest$ac_exeext'
13935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936   (eval $ac_try) 2>&5
13937   ac_status=$?
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); }; }; then
13940   ac_cv_lib_dl_dlopen=yes
13941 else
13942   echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13944
13945 ac_cv_lib_dl_dlopen=no
13946 fi
13947 rm -f conftest.err conftest.$ac_objext \
13948       conftest$ac_exeext conftest.$ac_ext
13949 LIBS=$ac_check_lib_save_LIBS
13950 fi
13951 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13952 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13953 if test $ac_cv_lib_dl_dlopen = yes; then
13954   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13955 else
13956
13957     lt_cv_dlopen="dyld"
13958     lt_cv_dlopen_libs=
13959     lt_cv_dlopen_self=yes
13960
13961 fi
13962
13963    ;;
13964
13965   *)
13966     echo "$as_me:$LINENO: checking for shl_load" >&5
13967 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13968 if test "${ac_cv_func_shl_load+set}" = set; then
13969   echo $ECHO_N "(cached) $ECHO_C" >&6
13970 else
13971   cat >conftest.$ac_ext <<_ACEOF
13972 /* confdefs.h.  */
13973 _ACEOF
13974 cat confdefs.h >>conftest.$ac_ext
13975 cat >>conftest.$ac_ext <<_ACEOF
13976 /* end confdefs.h.  */
13977 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13979 #define shl_load innocuous_shl_load
13980
13981 /* System header to define __stub macros and hopefully few prototypes,
13982     which can conflict with char shl_load (); below.
13983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13984     <limits.h> exists even on freestanding compilers.  */
13985
13986 #ifdef __STDC__
13987 # include <limits.h>
13988 #else
13989 # include <assert.h>
13990 #endif
13991
13992 #undef shl_load
13993
13994 /* Override any gcc2 internal prototype to avoid an error.  */
13995 #ifdef __cplusplus
13996 extern "C"
13997 {
13998 #endif
13999 /* We use char because int might match the return type of a gcc2
14000    builtin and then its argument prototype would still apply.  */
14001 char shl_load ();
14002 /* The GNU C library defines this for functions which it implements
14003     to always fail with ENOSYS.  Some functions are actually named
14004     something starting with __ and the normal name is an alias.  */
14005 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14006 choke me
14007 #else
14008 char (*f) () = shl_load;
14009 #endif
14010 #ifdef __cplusplus
14011 }
14012 #endif
14013
14014 int
14015 main ()
14016 {
14017 return f != shl_load;
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14024   (eval $ac_link) 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -z "$ac_cxx_werror_flag"
14032                          || test ! -s conftest.err'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; } &&
14038          { ac_try='test -s conftest$ac_exeext'
14039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040   (eval $ac_try) 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; }; then
14044   ac_cv_func_shl_load=yes
14045 else
14046   echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049 ac_cv_func_shl_load=no
14050 fi
14051 rm -f conftest.err conftest.$ac_objext \
14052       conftest$ac_exeext conftest.$ac_ext
14053 fi
14054 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14055 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14056 if test $ac_cv_func_shl_load = yes; then
14057   lt_cv_dlopen="shl_load"
14058 else
14059   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14060 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14061 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14062   echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064   ac_check_lib_save_LIBS=$LIBS
14065 LIBS="-ldld  $LIBS"
14066 cat >conftest.$ac_ext <<_ACEOF
14067 /* confdefs.h.  */
14068 _ACEOF
14069 cat confdefs.h >>conftest.$ac_ext
14070 cat >>conftest.$ac_ext <<_ACEOF
14071 /* end confdefs.h.  */
14072
14073 /* Override any gcc2 internal prototype to avoid an error.  */
14074 #ifdef __cplusplus
14075 extern "C"
14076 #endif
14077 /* We use char because int might match the return type of a gcc2
14078    builtin and then its argument prototype would still apply.  */
14079 char shl_load ();
14080 int
14081 main ()
14082 {
14083 shl_load ();
14084   ;
14085   return 0;
14086 }
14087 _ACEOF
14088 rm -f conftest.$ac_objext conftest$ac_exeext
14089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14090   (eval $ac_link) 2>conftest.er1
14091   ac_status=$?
14092   grep -v '^ *+' conftest.er1 >conftest.err
14093   rm -f conftest.er1
14094   cat conftest.err >&5
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); } &&
14097          { ac_try='test -z "$ac_cxx_werror_flag"
14098                          || test ! -s conftest.err'
14099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100   (eval $ac_try) 2>&5
14101   ac_status=$?
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); }; } &&
14104          { ac_try='test -s conftest$ac_exeext'
14105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106   (eval $ac_try) 2>&5
14107   ac_status=$?
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); }; }; then
14110   ac_cv_lib_dld_shl_load=yes
14111 else
14112   echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14114
14115 ac_cv_lib_dld_shl_load=no
14116 fi
14117 rm -f conftest.err conftest.$ac_objext \
14118       conftest$ac_exeext conftest.$ac_ext
14119 LIBS=$ac_check_lib_save_LIBS
14120 fi
14121 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14122 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14123 if test $ac_cv_lib_dld_shl_load = yes; then
14124   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14125 else
14126   echo "$as_me:$LINENO: checking for dlopen" >&5
14127 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14128 if test "${ac_cv_func_dlopen+set}" = set; then
14129   echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131   cat >conftest.$ac_ext <<_ACEOF
14132 /* confdefs.h.  */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h.  */
14137 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14138    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14139 #define dlopen innocuous_dlopen
14140
14141 /* System header to define __stub macros and hopefully few prototypes,
14142     which can conflict with char dlopen (); below.
14143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14144     <limits.h> exists even on freestanding compilers.  */
14145
14146 #ifdef __STDC__
14147 # include <limits.h>
14148 #else
14149 # include <assert.h>
14150 #endif
14151
14152 #undef dlopen
14153
14154 /* Override any gcc2 internal prototype to avoid an error.  */
14155 #ifdef __cplusplus
14156 extern "C"
14157 {
14158 #endif
14159 /* We use char because int might match the return type of a gcc2
14160    builtin and then its argument prototype would still apply.  */
14161 char dlopen ();
14162 /* The GNU C library defines this for functions which it implements
14163     to always fail with ENOSYS.  Some functions are actually named
14164     something starting with __ and the normal name is an alias.  */
14165 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14166 choke me
14167 #else
14168 char (*f) () = dlopen;
14169 #endif
14170 #ifdef __cplusplus
14171 }
14172 #endif
14173
14174 int
14175 main ()
14176 {
14177 return f != dlopen;
14178   ;
14179   return 0;
14180 }
14181 _ACEOF
14182 rm -f conftest.$ac_objext conftest$ac_exeext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184   (eval $ac_link) 2>conftest.er1
14185   ac_status=$?
14186   grep -v '^ *+' conftest.er1 >conftest.err
14187   rm -f conftest.er1
14188   cat conftest.err >&5
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); } &&
14191          { ac_try='test -z "$ac_cxx_werror_flag"
14192                          || test ! -s conftest.err'
14193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194   (eval $ac_try) 2>&5
14195   ac_status=$?
14196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); }; } &&
14198          { ac_try='test -s conftest$ac_exeext'
14199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200   (eval $ac_try) 2>&5
14201   ac_status=$?
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); }; }; then
14204   ac_cv_func_dlopen=yes
14205 else
14206   echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14208
14209 ac_cv_func_dlopen=no
14210 fi
14211 rm -f conftest.err conftest.$ac_objext \
14212       conftest$ac_exeext conftest.$ac_ext
14213 fi
14214 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14215 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14216 if test $ac_cv_func_dlopen = yes; then
14217   lt_cv_dlopen="dlopen"
14218 else
14219   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14220 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14221 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14222   echo $ECHO_N "(cached) $ECHO_C" >&6
14223 else
14224   ac_check_lib_save_LIBS=$LIBS
14225 LIBS="-ldl  $LIBS"
14226 cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h.  */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h.  */
14232
14233 /* Override any gcc2 internal prototype to avoid an error.  */
14234 #ifdef __cplusplus
14235 extern "C"
14236 #endif
14237 /* We use char because int might match the return type of a gcc2
14238    builtin and then its argument prototype would still apply.  */
14239 char dlopen ();
14240 int
14241 main ()
14242 {
14243 dlopen ();
14244   ;
14245   return 0;
14246 }
14247 _ACEOF
14248 rm -f conftest.$ac_objext conftest$ac_exeext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14250   (eval $ac_link) 2>conftest.er1
14251   ac_status=$?
14252   grep -v '^ *+' conftest.er1 >conftest.err
14253   rm -f conftest.er1
14254   cat conftest.err >&5
14255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256   (exit $ac_status); } &&
14257          { ac_try='test -z "$ac_cxx_werror_flag"
14258                          || test ! -s conftest.err'
14259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260   (eval $ac_try) 2>&5
14261   ac_status=$?
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); }; } &&
14264          { ac_try='test -s conftest$ac_exeext'
14265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266   (eval $ac_try) 2>&5
14267   ac_status=$?
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); }; }; then
14270   ac_cv_lib_dl_dlopen=yes
14271 else
14272   echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14274
14275 ac_cv_lib_dl_dlopen=no
14276 fi
14277 rm -f conftest.err conftest.$ac_objext \
14278       conftest$ac_exeext conftest.$ac_ext
14279 LIBS=$ac_check_lib_save_LIBS
14280 fi
14281 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14282 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14283 if test $ac_cv_lib_dl_dlopen = yes; then
14284   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14285 else
14286   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14287 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14288 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14289   echo $ECHO_N "(cached) $ECHO_C" >&6
14290 else
14291   ac_check_lib_save_LIBS=$LIBS
14292 LIBS="-lsvld  $LIBS"
14293 cat >conftest.$ac_ext <<_ACEOF
14294 /* confdefs.h.  */
14295 _ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h.  */
14299
14300 /* Override any gcc2 internal prototype to avoid an error.  */
14301 #ifdef __cplusplus
14302 extern "C"
14303 #endif
14304 /* We use char because int might match the return type of a gcc2
14305    builtin and then its argument prototype would still apply.  */
14306 char dlopen ();
14307 int
14308 main ()
14309 {
14310 dlopen ();
14311   ;
14312   return 0;
14313 }
14314 _ACEOF
14315 rm -f conftest.$ac_objext conftest$ac_exeext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14317   (eval $ac_link) 2>conftest.er1
14318   ac_status=$?
14319   grep -v '^ *+' conftest.er1 >conftest.err
14320   rm -f conftest.er1
14321   cat conftest.err >&5
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); } &&
14324          { ac_try='test -z "$ac_cxx_werror_flag"
14325                          || test ! -s conftest.err'
14326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327   (eval $ac_try) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; } &&
14331          { ac_try='test -s conftest$ac_exeext'
14332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333   (eval $ac_try) 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }; }; then
14337   ac_cv_lib_svld_dlopen=yes
14338 else
14339   echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14341
14342 ac_cv_lib_svld_dlopen=no
14343 fi
14344 rm -f conftest.err conftest.$ac_objext \
14345       conftest$ac_exeext conftest.$ac_ext
14346 LIBS=$ac_check_lib_save_LIBS
14347 fi
14348 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14349 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14350 if test $ac_cv_lib_svld_dlopen = yes; then
14351   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14352 else
14353   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14354 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14355 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14356   echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358   ac_check_lib_save_LIBS=$LIBS
14359 LIBS="-ldld  $LIBS"
14360 cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h.  */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h.  */
14366
14367 /* Override any gcc2 internal prototype to avoid an error.  */
14368 #ifdef __cplusplus
14369 extern "C"
14370 #endif
14371 /* We use char because int might match the return type of a gcc2
14372    builtin and then its argument prototype would still apply.  */
14373 char dld_link ();
14374 int
14375 main ()
14376 {
14377 dld_link ();
14378   ;
14379   return 0;
14380 }
14381 _ACEOF
14382 rm -f conftest.$ac_objext conftest$ac_exeext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14384   (eval $ac_link) 2>conftest.er1
14385   ac_status=$?
14386   grep -v '^ *+' conftest.er1 >conftest.err
14387   rm -f conftest.er1
14388   cat conftest.err >&5
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); } &&
14391          { ac_try='test -z "$ac_cxx_werror_flag"
14392                          || test ! -s conftest.err'
14393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394   (eval $ac_try) 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; } &&
14398          { ac_try='test -s conftest$ac_exeext'
14399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400   (eval $ac_try) 2>&5
14401   ac_status=$?
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); }; }; then
14404   ac_cv_lib_dld_dld_link=yes
14405 else
14406   echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409 ac_cv_lib_dld_dld_link=no
14410 fi
14411 rm -f conftest.err conftest.$ac_objext \
14412       conftest$ac_exeext conftest.$ac_ext
14413 LIBS=$ac_check_lib_save_LIBS
14414 fi
14415 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14416 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14417 if test $ac_cv_lib_dld_dld_link = yes; then
14418   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14419 fi
14420
14421
14422 fi
14423
14424
14425 fi
14426
14427
14428 fi
14429
14430
14431 fi
14432
14433
14434 fi
14435
14436     ;;
14437   esac
14438
14439   if test "x$lt_cv_dlopen" != xno; then
14440     enable_dlopen=yes
14441   else
14442     enable_dlopen=no
14443   fi
14444
14445   case $lt_cv_dlopen in
14446   dlopen)
14447     save_CPPFLAGS="$CPPFLAGS"
14448     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14449
14450     save_LDFLAGS="$LDFLAGS"
14451     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14452
14453     save_LIBS="$LIBS"
14454     LIBS="$lt_cv_dlopen_libs $LIBS"
14455
14456     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14457 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14458 if test "${lt_cv_dlopen_self+set}" = set; then
14459   echo $ECHO_N "(cached) $ECHO_C" >&6
14460 else
14461           if test "$cross_compiling" = yes; then :
14462   lt_cv_dlopen_self=cross
14463 else
14464   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14465   lt_status=$lt_dlunknown
14466   cat > conftest.$ac_ext <<EOF
14467 #line 14467 "configure"
14468 #include "confdefs.h"
14469
14470 #if HAVE_DLFCN_H
14471 #include <dlfcn.h>
14472 #endif
14473
14474 #include <stdio.h>
14475
14476 #ifdef RTLD_GLOBAL
14477 #  define LT_DLGLOBAL           RTLD_GLOBAL
14478 #else
14479 #  ifdef DL_GLOBAL
14480 #    define LT_DLGLOBAL         DL_GLOBAL
14481 #  else
14482 #    define LT_DLGLOBAL         0
14483 #  endif
14484 #endif
14485
14486 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14487    find out it does not work in some platform. */
14488 #ifndef LT_DLLAZY_OR_NOW
14489 #  ifdef RTLD_LAZY
14490 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14491 #  else
14492 #    ifdef DL_LAZY
14493 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14494 #    else
14495 #      ifdef RTLD_NOW
14496 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14497 #      else
14498 #        ifdef DL_NOW
14499 #          define LT_DLLAZY_OR_NOW      DL_NOW
14500 #        else
14501 #          define LT_DLLAZY_OR_NOW      0
14502 #        endif
14503 #      endif
14504 #    endif
14505 #  endif
14506 #endif
14507
14508 #ifdef __cplusplus
14509 extern "C" void exit (int);
14510 #endif
14511
14512 void fnord() { int i=42;}
14513 int main ()
14514 {
14515   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14516   int status = $lt_dlunknown;
14517
14518   if (self)
14519     {
14520       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14521       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14522       /* dlclose (self); */
14523     }
14524
14525     exit (status);
14526 }
14527 EOF
14528   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14529   (eval $ac_link) 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14533     (./conftest; exit; ) 2>/dev/null
14534     lt_status=$?
14535     case x$lt_status in
14536       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14537       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14538       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14539     esac
14540   else :
14541     # compilation failed
14542     lt_cv_dlopen_self=no
14543   fi
14544 fi
14545 rm -fr conftest*
14546
14547
14548 fi
14549 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14550 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14551
14552     if test "x$lt_cv_dlopen_self" = xyes; then
14553       LDFLAGS="$LDFLAGS $link_static_flag"
14554       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14555 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14556 if test "${lt_cv_dlopen_self_static+set}" = set; then
14557   echo $ECHO_N "(cached) $ECHO_C" >&6
14558 else
14559           if test "$cross_compiling" = yes; then :
14560   lt_cv_dlopen_self_static=cross
14561 else
14562   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14563   lt_status=$lt_dlunknown
14564   cat > conftest.$ac_ext <<EOF
14565 #line 14565 "configure"
14566 #include "confdefs.h"
14567
14568 #if HAVE_DLFCN_H
14569 #include <dlfcn.h>
14570 #endif
14571
14572 #include <stdio.h>
14573
14574 #ifdef RTLD_GLOBAL
14575 #  define LT_DLGLOBAL           RTLD_GLOBAL
14576 #else
14577 #  ifdef DL_GLOBAL
14578 #    define LT_DLGLOBAL         DL_GLOBAL
14579 #  else
14580 #    define LT_DLGLOBAL         0
14581 #  endif
14582 #endif
14583
14584 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14585    find out it does not work in some platform. */
14586 #ifndef LT_DLLAZY_OR_NOW
14587 #  ifdef RTLD_LAZY
14588 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14589 #  else
14590 #    ifdef DL_LAZY
14591 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14592 #    else
14593 #      ifdef RTLD_NOW
14594 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14595 #      else
14596 #        ifdef DL_NOW
14597 #          define LT_DLLAZY_OR_NOW      DL_NOW
14598 #        else
14599 #          define LT_DLLAZY_OR_NOW      0
14600 #        endif
14601 #      endif
14602 #    endif
14603 #  endif
14604 #endif
14605
14606 #ifdef __cplusplus
14607 extern "C" void exit (int);
14608 #endif
14609
14610 void fnord() { int i=42;}
14611 int main ()
14612 {
14613   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14614   int status = $lt_dlunknown;
14615
14616   if (self)
14617     {
14618       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14619       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14620       /* dlclose (self); */
14621     }
14622
14623     exit (status);
14624 }
14625 EOF
14626   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14627   (eval $ac_link) 2>&5
14628   ac_status=$?
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14631     (./conftest; exit; ) 2>/dev/null
14632     lt_status=$?
14633     case x$lt_status in
14634       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14635       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14636       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14637     esac
14638   else :
14639     # compilation failed
14640     lt_cv_dlopen_self_static=no
14641   fi
14642 fi
14643 rm -fr conftest*
14644
14645
14646 fi
14647 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14648 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14649     fi
14650
14651     CPPFLAGS="$save_CPPFLAGS"
14652     LDFLAGS="$save_LDFLAGS"
14653     LIBS="$save_LIBS"
14654     ;;
14655   esac
14656
14657   case $lt_cv_dlopen_self in
14658   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14659   *) enable_dlopen_self=unknown ;;
14660   esac
14661
14662   case $lt_cv_dlopen_self_static in
14663   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14664   *) enable_dlopen_self_static=unknown ;;
14665   esac
14666 fi
14667
14668
14669 # The else clause should only fire when bootstrapping the
14670 # libtool distribution, otherwise you forgot to ship ltmain.sh
14671 # with your package, and you will get complaints that there are
14672 # no rules to generate ltmain.sh.
14673 if test -f "$ltmain"; then
14674   # See if we are running on zsh, and set the options which allow our commands through
14675   # without removal of \ escapes.
14676   if test -n "${ZSH_VERSION+set}" ; then
14677     setopt NO_GLOB_SUBST
14678   fi
14679   # Now quote all the things that may contain metacharacters while being
14680   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14681   # variables and quote the copies for generation of the libtool script.
14682   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14683     SED SHELL STRIP \
14684     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14685     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14686     deplibs_check_method reload_flag reload_cmds need_locks \
14687     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14688     lt_cv_sys_global_symbol_to_c_name_address \
14689     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14690     old_postinstall_cmds old_postuninstall_cmds \
14691     compiler_CXX \
14692     CC_CXX \
14693     LD_CXX \
14694     lt_prog_compiler_wl_CXX \
14695     lt_prog_compiler_pic_CXX \
14696     lt_prog_compiler_static_CXX \
14697     lt_prog_compiler_no_builtin_flag_CXX \
14698     export_dynamic_flag_spec_CXX \
14699     thread_safe_flag_spec_CXX \
14700     whole_archive_flag_spec_CXX \
14701     enable_shared_with_static_runtimes_CXX \
14702     old_archive_cmds_CXX \
14703     old_archive_from_new_cmds_CXX \
14704     predep_objects_CXX \
14705     postdep_objects_CXX \
14706     predeps_CXX \
14707     postdeps_CXX \
14708     compiler_lib_search_path_CXX \
14709     archive_cmds_CXX \
14710     archive_expsym_cmds_CXX \
14711     postinstall_cmds_CXX \
14712     postuninstall_cmds_CXX \
14713     old_archive_from_expsyms_cmds_CXX \
14714     allow_undefined_flag_CXX \
14715     no_undefined_flag_CXX \
14716     export_symbols_cmds_CXX \
14717     hardcode_libdir_flag_spec_CXX \
14718     hardcode_libdir_flag_spec_ld_CXX \
14719     hardcode_libdir_separator_CXX \
14720     hardcode_automatic_CXX \
14721     module_cmds_CXX \
14722     module_expsym_cmds_CXX \
14723     lt_cv_prog_compiler_c_o_CXX \
14724     exclude_expsyms_CXX \
14725     include_expsyms_CXX; do
14726
14727     case $var in
14728     old_archive_cmds_CXX | \
14729     old_archive_from_new_cmds_CXX | \
14730     archive_cmds_CXX | \
14731     archive_expsym_cmds_CXX | \
14732     module_cmds_CXX | \
14733     module_expsym_cmds_CXX | \
14734     old_archive_from_expsyms_cmds_CXX | \
14735     export_symbols_cmds_CXX | \
14736     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14737     postinstall_cmds | postuninstall_cmds | \
14738     old_postinstall_cmds | old_postuninstall_cmds | \
14739     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14740       # Double-quote double-evaled strings.
14741       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14742       ;;
14743     *)
14744       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14745       ;;
14746     esac
14747   done
14748
14749   case $lt_echo in
14750   *'\$0 --fallback-echo"')
14751     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14752     ;;
14753   esac
14754
14755 cfgfile="$ofile"
14756
14757   cat <<__EOF__ >> "$cfgfile"
14758 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14759
14760 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14761
14762 # Shell to use when invoking shell scripts.
14763 SHELL=$lt_SHELL
14764
14765 # Whether or not to build shared libraries.
14766 build_libtool_libs=$enable_shared
14767
14768 # Whether or not to build static libraries.
14769 build_old_libs=$enable_static
14770
14771 # Whether or not to add -lc for building shared libraries.
14772 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14773
14774 # Whether or not to disallow shared libs when runtime libs are static
14775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14776
14777 # Whether or not to optimize for fast installation.
14778 fast_install=$enable_fast_install
14779
14780 # The host system.
14781 host_alias=$host_alias
14782 host=$host
14783
14784 # An echo program that does not interpret backslashes.
14785 echo=$lt_echo
14786
14787 # The archiver.
14788 AR=$lt_AR
14789 AR_FLAGS=$lt_AR_FLAGS
14790
14791 # A C compiler.
14792 LTCC=$lt_LTCC
14793
14794 # A language-specific compiler.
14795 CC=$lt_compiler_CXX
14796
14797 # Is the compiler the GNU C compiler?
14798 with_gcc=$GCC_CXX
14799
14800 # An ERE matcher.
14801 EGREP=$lt_EGREP
14802
14803 # The linker used to build libraries.
14804 LD=$lt_LD_CXX
14805
14806 # Whether we need hard or soft links.
14807 LN_S=$lt_LN_S
14808
14809 # A BSD-compatible nm program.
14810 NM=$lt_NM
14811
14812 # A symbol stripping program
14813 STRIP=$lt_STRIP
14814
14815 # Used to examine libraries when file_magic_cmd begins "file"
14816 MAGIC_CMD=$MAGIC_CMD
14817
14818 # Used on cygwin: DLL creation program.
14819 DLLTOOL="$DLLTOOL"
14820
14821 # Used on cygwin: object dumper.
14822 OBJDUMP="$OBJDUMP"
14823
14824 # Used on cygwin: assembler.
14825 AS="$AS"
14826
14827 # The name of the directory that contains temporary libtool files.
14828 objdir=$objdir
14829
14830 # How to create reloadable object files.
14831 reload_flag=$lt_reload_flag
14832 reload_cmds=$lt_reload_cmds
14833
14834 # How to pass a linker flag through the compiler.
14835 wl=$lt_lt_prog_compiler_wl_CXX
14836
14837 # Object file suffix (normally "o").
14838 objext="$ac_objext"
14839
14840 # Old archive suffix (normally "a").
14841 libext="$libext"
14842
14843 # Shared library suffix (normally ".so").
14844 shrext_cmds='$shrext_cmds'
14845
14846 # Executable file suffix (normally "").
14847 exeext="$exeext"
14848
14849 # Additional compiler flags for building library objects.
14850 pic_flag=$lt_lt_prog_compiler_pic_CXX
14851 pic_mode=$pic_mode
14852
14853 # What is the maximum length of a command?
14854 max_cmd_len=$lt_cv_sys_max_cmd_len
14855
14856 # Does compiler simultaneously support -c and -o options?
14857 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14858
14859 # Must we lock files when doing compilation ?
14860 need_locks=$lt_need_locks
14861
14862 # Do we need the lib prefix for modules?
14863 need_lib_prefix=$need_lib_prefix
14864
14865 # Do we need a version for libraries?
14866 need_version=$need_version
14867
14868 # Whether dlopen is supported.
14869 dlopen_support=$enable_dlopen
14870
14871 # Whether dlopen of programs is supported.
14872 dlopen_self=$enable_dlopen_self
14873
14874 # Whether dlopen of statically linked programs is supported.
14875 dlopen_self_static=$enable_dlopen_self_static
14876
14877 # Compiler flag to prevent dynamic linking.
14878 link_static_flag=$lt_lt_prog_compiler_static_CXX
14879
14880 # Compiler flag to turn off builtin functions.
14881 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14882
14883 # Compiler flag to allow reflexive dlopens.
14884 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14885
14886 # Compiler flag to generate shared objects directly from archives.
14887 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14888
14889 # Compiler flag to generate thread-safe objects.
14890 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14891
14892 # Library versioning type.
14893 version_type=$version_type
14894
14895 # Format of library name prefix.
14896 libname_spec=$lt_libname_spec
14897
14898 # List of archive names.  First name is the real one, the rest are links.
14899 # The last name is the one that the linker finds with -lNAME.
14900 library_names_spec=$lt_library_names_spec
14901
14902 # The coded name of the library, if different from the real name.
14903 soname_spec=$lt_soname_spec
14904
14905 # Commands used to build and install an old-style archive.
14906 RANLIB=$lt_RANLIB
14907 old_archive_cmds=$lt_old_archive_cmds_CXX
14908 old_postinstall_cmds=$lt_old_postinstall_cmds
14909 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14910
14911 # Create an old-style archive from a shared archive.
14912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14913
14914 # Create a temporary old-style archive to link instead of a shared archive.
14915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14916
14917 # Commands used to build and install a shared archive.
14918 archive_cmds=$lt_archive_cmds_CXX
14919 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14920 postinstall_cmds=$lt_postinstall_cmds
14921 postuninstall_cmds=$lt_postuninstall_cmds
14922
14923 # Commands used to build a loadable module (assumed same as above if empty)
14924 module_cmds=$lt_module_cmds_CXX
14925 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14926
14927 # Commands to strip libraries.
14928 old_striplib=$lt_old_striplib
14929 striplib=$lt_striplib
14930
14931 # Dependencies to place before the objects being linked to create a
14932 # shared library.
14933 predep_objects=$lt_predep_objects_CXX
14934
14935 # Dependencies to place after the objects being linked to create a
14936 # shared library.
14937 postdep_objects=$lt_postdep_objects_CXX
14938
14939 # Dependencies to place before the objects being linked to create a
14940 # shared library.
14941 predeps=$lt_predeps_CXX
14942
14943 # Dependencies to place after the objects being linked to create a
14944 # shared library.
14945 postdeps=$lt_postdeps_CXX
14946
14947 # The library search path used internally by the compiler when linking
14948 # a shared library.
14949 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14950
14951 # Method to check whether dependent libraries are shared objects.
14952 deplibs_check_method=$lt_deplibs_check_method
14953
14954 # Command to use when deplibs_check_method == file_magic.
14955 file_magic_cmd=$lt_file_magic_cmd
14956
14957 # Flag that allows shared libraries with undefined symbols to be built.
14958 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14959
14960 # Flag that forces no undefined symbols.
14961 no_undefined_flag=$lt_no_undefined_flag_CXX
14962
14963 # Commands used to finish a libtool library installation in a directory.
14964 finish_cmds=$lt_finish_cmds
14965
14966 # Same as above, but a single script fragment to be evaled but not shown.
14967 finish_eval=$lt_finish_eval
14968
14969 # Take the output of nm and produce a listing of raw symbols and C names.
14970 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14971
14972 # Transform the output of nm in a proper C declaration
14973 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14974
14975 # Transform the output of nm in a C name address pair
14976 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14977
14978 # This is the shared library runtime path variable.
14979 runpath_var=$runpath_var
14980
14981 # This is the shared library path variable.
14982 shlibpath_var=$shlibpath_var
14983
14984 # Is shlibpath searched before the hard-coded library search path?
14985 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14986
14987 # How to hardcode a shared library path into an executable.
14988 hardcode_action=$hardcode_action_CXX
14989
14990 # Whether we should hardcode library paths into libraries.
14991 hardcode_into_libs=$hardcode_into_libs
14992
14993 # Flag to hardcode \$libdir into a binary during linking.
14994 # This must work even if \$libdir does not exist.
14995 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14996
14997 # If ld is used when linking, flag to hardcode \$libdir into
14998 # a binary during linking. This must work even if \$libdir does
14999 # not exist.
15000 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15001
15002 # Whether we need a single -rpath flag with a separated argument.
15003 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15004
15005 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15006 # resulting binary.
15007 hardcode_direct=$hardcode_direct_CXX
15008
15009 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15010 # resulting binary.
15011 hardcode_minus_L=$hardcode_minus_L_CXX
15012
15013 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15014 # the resulting binary.
15015 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15016
15017 # Set to yes if building a shared library automatically hardcodes DIR into the library
15018 # and all subsequent libraries and executables linked against it.
15019 hardcode_automatic=$hardcode_automatic_CXX
15020
15021 # Variables whose values should be saved in libtool wrapper scripts and
15022 # restored at relink time.
15023 variables_saved_for_relink="$variables_saved_for_relink"
15024
15025 # Whether libtool must link a program against all its dependency libraries.
15026 link_all_deplibs=$link_all_deplibs_CXX
15027
15028 # Compile-time system search path for libraries
15029 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15030
15031 # Run-time system search path for libraries
15032 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15033
15034 # Fix the shell variable \$srcfile for the compiler.
15035 fix_srcfile_path="$fix_srcfile_path_CXX"
15036
15037 # Set to yes if exported symbols are required.
15038 always_export_symbols=$always_export_symbols_CXX
15039
15040 # The commands to list exported symbols.
15041 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15042
15043 # The commands to extract the exported symbol list from a shared archive.
15044 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15045
15046 # Symbols that should not be listed in the preloaded symbols.
15047 exclude_expsyms=$lt_exclude_expsyms_CXX
15048
15049 # Symbols that must always be exported.
15050 include_expsyms=$lt_include_expsyms_CXX
15051
15052 # ### END LIBTOOL TAG CONFIG: $tagname
15053
15054 __EOF__
15055
15056
15057 else
15058   # If there is no Makefile yet, we rely on a make rule to execute
15059   # `config.status --recheck' to rerun these tests and create the
15060   # libtool script then.
15061   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15062   if test -f "$ltmain_in"; then
15063     test -f Makefile && make "$ltmain"
15064   fi
15065 fi
15066
15067
15068 ac_ext=c
15069 ac_cpp='$CPP $CPPFLAGS'
15070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15073
15074 CC=$lt_save_CC
15075 LDCXX=$LD
15076 LD=$lt_save_LD
15077 GCC=$lt_save_GCC
15078 with_gnu_ldcxx=$with_gnu_ld
15079 with_gnu_ld=$lt_save_with_gnu_ld
15080 lt_cv_path_LDCXX=$lt_cv_path_LD
15081 lt_cv_path_LD=$lt_save_path_LD
15082 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15083 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15084
15085         else
15086           tagname=""
15087         fi
15088         ;;
15089
15090       F77)
15091         if test -n "$F77" && test "X$F77" != "Xno"; then
15092
15093 ac_ext=f
15094 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15095 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15096 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15097
15098
15099 archive_cmds_need_lc_F77=no
15100 allow_undefined_flag_F77=
15101 always_export_symbols_F77=no
15102 archive_expsym_cmds_F77=
15103 export_dynamic_flag_spec_F77=
15104 hardcode_direct_F77=no
15105 hardcode_libdir_flag_spec_F77=
15106 hardcode_libdir_flag_spec_ld_F77=
15107 hardcode_libdir_separator_F77=
15108 hardcode_minus_L_F77=no
15109 hardcode_automatic_F77=no
15110 module_cmds_F77=
15111 module_expsym_cmds_F77=
15112 link_all_deplibs_F77=unknown
15113 old_archive_cmds_F77=$old_archive_cmds
15114 no_undefined_flag_F77=
15115 whole_archive_flag_spec_F77=
15116 enable_shared_with_static_runtimes_F77=no
15117
15118 # Source file extension for f77 test sources.
15119 ac_ext=f
15120
15121 # Object file extension for compiled f77 test sources.
15122 objext=o
15123 objext_F77=$objext
15124
15125 # Code to be used in simple compile tests
15126 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15127
15128 # Code to be used in simple link tests
15129 lt_simple_link_test_code="      program t\n      end\n"
15130
15131 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15132
15133 # If no C compiler was specified, use CC.
15134 LTCC=${LTCC-"$CC"}
15135
15136 # Allow CC to be a program name with arguments.
15137 compiler=$CC
15138
15139
15140 # Allow CC to be a program name with arguments.
15141 lt_save_CC="$CC"
15142 CC=${F77-"f77"}
15143 compiler=$CC
15144 compiler_F77=$CC
15145 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15146
15147 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15148 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15149 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15150 echo "${ECHO_T}$can_build_shared" >&6
15151
15152 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15153 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15154 test "$can_build_shared" = "no" && enable_shared=no
15155
15156 # On AIX, shared libraries and static libraries use the same namespace, and
15157 # are all built from PIC.
15158 case "$host_os" in
15159 aix3*)
15160   test "$enable_shared" = yes && enable_static=no
15161   if test -n "$RANLIB"; then
15162     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15163     postinstall_cmds='$RANLIB $lib'
15164   fi
15165   ;;
15166 aix4* | aix5*)
15167   test "$enable_shared" = yes && enable_static=no
15168   ;;
15169 esac
15170 echo "$as_me:$LINENO: result: $enable_shared" >&5
15171 echo "${ECHO_T}$enable_shared" >&6
15172
15173 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15174 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15175 # Make sure either enable_shared or enable_static is yes.
15176 test "$enable_shared" = yes || enable_static=yes
15177 echo "$as_me:$LINENO: result: $enable_static" >&5
15178 echo "${ECHO_T}$enable_static" >&6
15179
15180 test "$ld_shlibs_F77" = no && can_build_shared=no
15181
15182 GCC_F77="$G77"
15183 LD_F77="$LD"
15184
15185 lt_prog_compiler_wl_F77=
15186 lt_prog_compiler_pic_F77=
15187 lt_prog_compiler_static_F77=
15188
15189 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15190 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15191
15192   if test "$GCC" = yes; then
15193     lt_prog_compiler_wl_F77='-Wl,'
15194     lt_prog_compiler_static_F77='-static'
15195
15196     case $host_os in
15197       aix*)
15198       # All AIX code is PIC.
15199       if test "$host_cpu" = ia64; then
15200         # AIX 5 now supports IA64 processor
15201         lt_prog_compiler_static_F77='-Bstatic'
15202       fi
15203       ;;
15204
15205     amigaos*)
15206       # FIXME: we need at least 68020 code to build shared libraries, but
15207       # adding the `-m68020' flag to GCC prevents building anything better,
15208       # like `-m68040'.
15209       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15210       ;;
15211
15212     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15213       # PIC is the default for these OSes.
15214       ;;
15215
15216     mingw* | pw32* | os2*)
15217       # This hack is so that the source file can tell whether it is being
15218       # built for inclusion in a dll (and should export symbols for example).
15219       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15220       ;;
15221
15222     darwin* | rhapsody*)
15223       # PIC is the default on this platform
15224       # Common symbols not allowed in MH_DYLIB files
15225       lt_prog_compiler_pic_F77='-fno-common'
15226       ;;
15227
15228     msdosdjgpp*)
15229       # Just because we use GCC doesn't mean we suddenly get shared libraries
15230       # on systems that don't support them.
15231       lt_prog_compiler_can_build_shared_F77=no
15232       enable_shared=no
15233       ;;
15234
15235     sysv4*MP*)
15236       if test -d /usr/nec; then
15237         lt_prog_compiler_pic_F77=-Kconform_pic
15238       fi
15239       ;;
15240
15241     hpux*)
15242       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15243       # not for PA HP-UX.
15244       case "$host_cpu" in
15245       hppa*64*|ia64*)
15246         # +Z the default
15247         ;;
15248       *)
15249         lt_prog_compiler_pic_F77='-fPIC'
15250         ;;
15251       esac
15252       ;;
15253
15254     *)
15255       lt_prog_compiler_pic_F77='-fPIC'
15256       ;;
15257     esac
15258   else
15259     # PORTME Check for flag to pass linker flags through the system compiler.
15260     case $host_os in
15261     aix*)
15262       lt_prog_compiler_wl_F77='-Wl,'
15263       if test "$host_cpu" = ia64; then
15264         # AIX 5 now supports IA64 processor
15265         lt_prog_compiler_static_F77='-Bstatic'
15266       else
15267         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15268       fi
15269       ;;
15270
15271     mingw* | pw32* | os2*)
15272       # This hack is so that the source file can tell whether it is being
15273       # built for inclusion in a dll (and should export symbols for example).
15274       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15275       ;;
15276
15277     hpux9* | hpux10* | hpux11*)
15278       lt_prog_compiler_wl_F77='-Wl,'
15279       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15280       # not for PA HP-UX.
15281       case "$host_cpu" in
15282       hppa*64*|ia64*)
15283         # +Z the default
15284         ;;
15285       *)
15286         lt_prog_compiler_pic_F77='+Z'
15287         ;;
15288       esac
15289       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15290       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15291       ;;
15292
15293     irix5* | irix6* | nonstopux*)
15294       lt_prog_compiler_wl_F77='-Wl,'
15295       # PIC (with -KPIC) is the default.
15296       lt_prog_compiler_static_F77='-non_shared'
15297       ;;
15298
15299     newsos6)
15300       lt_prog_compiler_pic_F77='-KPIC'
15301       lt_prog_compiler_static_F77='-Bstatic'
15302       ;;
15303
15304     linux*)
15305       case $CC in
15306       icc* | ecc*)
15307         lt_prog_compiler_wl_F77='-Wl,'
15308         lt_prog_compiler_pic_F77='-KPIC'
15309         lt_prog_compiler_static_F77='-static'
15310         ;;
15311       ccc*)
15312         lt_prog_compiler_wl_F77='-Wl,'
15313         # All Alpha code is PIC.
15314         lt_prog_compiler_static_F77='-non_shared'
15315         ;;
15316       esac
15317       ;;
15318
15319     osf3* | osf4* | osf5*)
15320       lt_prog_compiler_wl_F77='-Wl,'
15321       # All OSF/1 code is PIC.
15322       lt_prog_compiler_static_F77='-non_shared'
15323       ;;
15324
15325     sco3.2v5*)
15326       lt_prog_compiler_pic_F77='-Kpic'
15327       lt_prog_compiler_static_F77='-dn'
15328       ;;
15329
15330     solaris*)
15331       lt_prog_compiler_wl_F77='-Wl,'
15332       lt_prog_compiler_pic_F77='-KPIC'
15333       lt_prog_compiler_static_F77='-Bstatic'
15334       ;;
15335
15336     sunos4*)
15337       lt_prog_compiler_wl_F77='-Qoption ld '
15338       lt_prog_compiler_pic_F77='-PIC'
15339       lt_prog_compiler_static_F77='-Bstatic'
15340       ;;
15341
15342     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15343       lt_prog_compiler_wl_F77='-Wl,'
15344       lt_prog_compiler_pic_F77='-KPIC'
15345       lt_prog_compiler_static_F77='-Bstatic'
15346       ;;
15347
15348     sysv4*MP*)
15349       if test -d /usr/nec ;then
15350         lt_prog_compiler_pic_F77='-Kconform_pic'
15351         lt_prog_compiler_static_F77='-Bstatic'
15352       fi
15353       ;;
15354
15355     uts4*)
15356       lt_prog_compiler_pic_F77='-pic'
15357       lt_prog_compiler_static_F77='-Bstatic'
15358       ;;
15359
15360     *)
15361       lt_prog_compiler_can_build_shared_F77=no
15362       ;;
15363     esac
15364   fi
15365
15366 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15367 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15368
15369 #
15370 # Check to make sure the PIC flag actually works.
15371 #
15372 if test -n "$lt_prog_compiler_pic_F77"; then
15373
15374 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15375 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15376 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15377   echo $ECHO_N "(cached) $ECHO_C" >&6
15378 else
15379   lt_prog_compiler_pic_works_F77=no
15380   ac_outfile=conftest.$ac_objext
15381    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15382    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15383    # Insert the option either (1) after the last *FLAGS variable, or
15384    # (2) before a word containing "conftest.", or (3) at the end.
15385    # Note that $ac_compile itself does not contain backslashes and begins
15386    # with a dollar sign (not a hyphen), so the echo should work correctly.
15387    # The option is referenced via a variable to avoid confusing sed.
15388    lt_compile=`echo "$ac_compile" | $SED \
15389    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15390    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15391    -e 's:$: $lt_compiler_flag:'`
15392    (eval echo "\"\$as_me:15392: $lt_compile\"" >&5)
15393    (eval "$lt_compile" 2>conftest.err)
15394    ac_status=$?
15395    cat conftest.err >&5
15396    echo "$as_me:15396: \$? = $ac_status" >&5
15397    if (exit $ac_status) && test -s "$ac_outfile"; then
15398      # The compiler can only warn and ignore the option if not recognized
15399      # So say no if there are warnings
15400      if test ! -s conftest.err; then
15401        lt_prog_compiler_pic_works_F77=yes
15402      fi
15403    fi
15404    $rm conftest*
15405
15406 fi
15407 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15408 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15409
15410 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15411     case $lt_prog_compiler_pic_F77 in
15412      "" | " "*) ;;
15413      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15414      esac
15415 else
15416     lt_prog_compiler_pic_F77=
15417      lt_prog_compiler_can_build_shared_F77=no
15418 fi
15419
15420 fi
15421 case "$host_os" in
15422   # For platforms which do not support PIC, -DPIC is meaningless:
15423   *djgpp*)
15424     lt_prog_compiler_pic_F77=
15425     ;;
15426   *)
15427     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15428     ;;
15429 esac
15430
15431 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15432 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15433 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15434   echo $ECHO_N "(cached) $ECHO_C" >&6
15435 else
15436   lt_cv_prog_compiler_c_o_F77=no
15437    $rm -r conftest 2>/dev/null
15438    mkdir conftest
15439    cd conftest
15440    mkdir out
15441    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15442
15443    lt_compiler_flag="-o out/conftest2.$ac_objext"
15444    # Insert the option either (1) after the last *FLAGS variable, or
15445    # (2) before a word containing "conftest.", or (3) at the end.
15446    # Note that $ac_compile itself does not contain backslashes and begins
15447    # with a dollar sign (not a hyphen), so the echo should work correctly.
15448    lt_compile=`echo "$ac_compile" | $SED \
15449    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15450    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15451    -e 's:$: $lt_compiler_flag:'`
15452    (eval echo "\"\$as_me:15452: $lt_compile\"" >&5)
15453    (eval "$lt_compile" 2>out/conftest.err)
15454    ac_status=$?
15455    cat out/conftest.err >&5
15456    echo "$as_me:15456: \$? = $ac_status" >&5
15457    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15458    then
15459      # The compiler can only warn and ignore the option if not recognized
15460      # So say no if there are warnings
15461      if test ! -s out/conftest.err; then
15462        lt_cv_prog_compiler_c_o_F77=yes
15463      fi
15464    fi
15465    chmod u+w .
15466    $rm conftest*
15467    # SGI C++ compiler will create directory out/ii_files/ for
15468    # template instantiation
15469    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15470    $rm out/* && rmdir out
15471    cd ..
15472    rmdir conftest
15473    $rm conftest*
15474
15475 fi
15476 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15477 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15478
15479
15480 hard_links="nottested"
15481 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15482   # do not overwrite the value of need_locks provided by the user
15483   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15484 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15485   hard_links=yes
15486   $rm conftest*
15487   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15488   touch conftest.a
15489   ln conftest.a conftest.b 2>&5 || hard_links=no
15490   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15491   echo "$as_me:$LINENO: result: $hard_links" >&5
15492 echo "${ECHO_T}$hard_links" >&6
15493   if test "$hard_links" = no; then
15494     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15495 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15496     need_locks=warn
15497   fi
15498 else
15499   need_locks=no
15500 fi
15501
15502 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15503 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15504
15505   runpath_var=
15506   allow_undefined_flag_F77=
15507   enable_shared_with_static_runtimes_F77=no
15508   archive_cmds_F77=
15509   archive_expsym_cmds_F77=
15510   old_archive_From_new_cmds_F77=
15511   old_archive_from_expsyms_cmds_F77=
15512   export_dynamic_flag_spec_F77=
15513   whole_archive_flag_spec_F77=
15514   thread_safe_flag_spec_F77=
15515   hardcode_libdir_flag_spec_F77=
15516   hardcode_libdir_flag_spec_ld_F77=
15517   hardcode_libdir_separator_F77=
15518   hardcode_direct_F77=no
15519   hardcode_minus_L_F77=no
15520   hardcode_shlibpath_var_F77=unsupported
15521   link_all_deplibs_F77=unknown
15522   hardcode_automatic_F77=no
15523   module_cmds_F77=
15524   module_expsym_cmds_F77=
15525   always_export_symbols_F77=no
15526   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15527   # include_expsyms should be a list of space-separated symbols to be *always*
15528   # included in the symbol list
15529   include_expsyms_F77=
15530   # exclude_expsyms can be an extended regexp of symbols to exclude
15531   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15532   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15533   # as well as any symbol that contains `d'.
15534   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15535   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15536   # platforms (ab)use it in PIC code, but their linkers get confused if
15537   # the symbol is explicitly referenced.  Since portable code cannot
15538   # rely on this symbol name, it's probably fine to never include it in
15539   # preloaded symbol tables.
15540   extract_expsyms_cmds=
15541
15542   case $host_os in
15543   cygwin* | mingw* | pw32*)
15544     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15545     # When not using gcc, we currently assume that we are using
15546     # Microsoft Visual C++.
15547     if test "$GCC" != yes; then
15548       with_gnu_ld=no
15549     fi
15550     ;;
15551   openbsd*)
15552     with_gnu_ld=no
15553     ;;
15554   esac
15555
15556   ld_shlibs_F77=yes
15557   if test "$with_gnu_ld" = yes; then
15558     # If archive_cmds runs LD, not CC, wlarc should be empty
15559     wlarc='${wl}'
15560
15561     # See if GNU ld supports shared libraries.
15562     case $host_os in
15563     aix3* | aix4* | aix5*)
15564       # On AIX/PPC, the GNU linker is very broken
15565       if test "$host_cpu" != ia64; then
15566         ld_shlibs_F77=no
15567         cat <<EOF 1>&2
15568
15569 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15570 *** to be unable to reliably create shared libraries on AIX.
15571 *** Therefore, libtool is disabling shared libraries support.  If you
15572 *** really care for shared libraries, you may want to modify your PATH
15573 *** so that a non-GNU linker is found, and then restart.
15574
15575 EOF
15576       fi
15577       ;;
15578
15579     amigaos*)
15580       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)'
15581       hardcode_libdir_flag_spec_F77='-L$libdir'
15582       hardcode_minus_L_F77=yes
15583
15584       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15585       # that the semantics of dynamic libraries on AmigaOS, at least up
15586       # to version 4, is to share data among multiple programs linked
15587       # with the same dynamic library.  Since this doesn't match the
15588       # behavior of shared libraries on other platforms, we can't use
15589       # them.
15590       ld_shlibs_F77=no
15591       ;;
15592
15593     beos*)
15594       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15595         allow_undefined_flag_F77=unsupported
15596         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15597         # support --undefined.  This deserves some investigation.  FIXME
15598         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15599       else
15600         ld_shlibs_F77=no
15601       fi
15602       ;;
15603
15604     cygwin* | mingw* | pw32*)
15605       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15606       # as there is no search path for DLLs.
15607       hardcode_libdir_flag_spec_F77='-L$libdir'
15608       allow_undefined_flag_F77=unsupported
15609       always_export_symbols_F77=no
15610       enable_shared_with_static_runtimes_F77=yes
15611       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15612
15613       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15614         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15615         # If the export-symbols file already is a .def file (1st line
15616         # is EXPORTS), use it as is; otherwise, prepend...
15617         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15618           cp $export_symbols $output_objdir/$soname.def;
15619         else
15620           echo EXPORTS > $output_objdir/$soname.def;
15621           cat $export_symbols >> $output_objdir/$soname.def;
15622         fi~
15623         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15624       else
15625         ld_shlibs=no
15626       fi
15627       ;;
15628
15629     netbsd*)
15630       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15631         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15632         wlarc=
15633       else
15634         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15635         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15636       fi
15637       ;;
15638
15639     solaris* | sysv5*)
15640       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15641         ld_shlibs_F77=no
15642         cat <<EOF 1>&2
15643
15644 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15645 *** create shared libraries on Solaris systems.  Therefore, libtool
15646 *** is disabling shared libraries support.  We urge you to upgrade GNU
15647 *** binutils to release 2.9.1 or newer.  Another option is to modify
15648 *** your PATH or compiler configuration so that the native linker is
15649 *** used, and then restart.
15650
15651 EOF
15652       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15653         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15654         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15655       else
15656         ld_shlibs_F77=no
15657       fi
15658       ;;
15659
15660     sunos4*)
15661       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15662       wlarc=
15663       hardcode_direct_F77=yes
15664       hardcode_shlibpath_var_F77=no
15665       ;;
15666
15667   linux*)
15668     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15669         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15670         archive_cmds_F77="$tmp_archive_cmds"
15671       supports_anon_versioning=no
15672       case `$LD -v 2>/dev/null` in
15673         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15674         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15675         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15676         *\ 2.11.*) ;; # other 2.11 versions
15677         *) supports_anon_versioning=yes ;;
15678       esac
15679       if test $supports_anon_versioning = yes; then
15680         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15681 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15682 $echo "local: *; };" >> $output_objdir/$libname.ver~
15683         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15684       else
15685         archive_expsym_cmds_F77="$tmp_archive_cmds"
15686       fi
15687     else
15688       ld_shlibs_F77=no
15689     fi
15690     ;;
15691
15692     *)
15693       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15694         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15695         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15696       else
15697         ld_shlibs_F77=no
15698       fi
15699       ;;
15700     esac
15701
15702     if test "$ld_shlibs_F77" = yes; then
15703       runpath_var=LD_RUN_PATH
15704       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15705       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15706       # ancient GNU ld didn't support --whole-archive et. al.
15707       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15708         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15709       else
15710         whole_archive_flag_spec_F77=
15711       fi
15712     fi
15713   else
15714     # PORTME fill in a description of your system's linker (not GNU ld)
15715     case $host_os in
15716     aix3*)
15717       allow_undefined_flag_F77=unsupported
15718       always_export_symbols_F77=yes
15719       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'
15720       # Note: this linker hardcodes the directories in LIBPATH if there
15721       # are no directories specified by -L.
15722       hardcode_minus_L_F77=yes
15723       if test "$GCC" = yes && test -z "$link_static_flag"; then
15724         # Neither direct hardcoding nor static linking is supported with a
15725         # broken collect2.
15726         hardcode_direct_F77=unsupported
15727       fi
15728       ;;
15729
15730     aix4* | aix5*)
15731       if test "$host_cpu" = ia64; then
15732         # On IA64, the linker does run time linking by default, so we don't
15733         # have to do anything special.
15734         aix_use_runtimelinking=no
15735         exp_sym_flag='-Bexport'
15736         no_entry_flag=""
15737       else
15738         # If we're using GNU nm, then we don't want the "-C" option.
15739         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15740         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15741           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'
15742         else
15743           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'
15744         fi
15745         aix_use_runtimelinking=no
15746
15747         # Test if we are trying to use run time linking or normal
15748         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15749         # need to do runtime linking.
15750         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15751           for ld_flag in $LDFLAGS; do
15752           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15753             aix_use_runtimelinking=yes
15754             break
15755           fi
15756           done
15757         esac
15758
15759         exp_sym_flag='-bexport'
15760         no_entry_flag='-bnoentry'
15761       fi
15762
15763       # When large executables or shared objects are built, AIX ld can
15764       # have problems creating the table of contents.  If linking a library
15765       # or program results in "error TOC overflow" add -mminimal-toc to
15766       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15767       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15768
15769       archive_cmds_F77=''
15770       hardcode_direct_F77=yes
15771       hardcode_libdir_separator_F77=':'
15772       link_all_deplibs_F77=yes
15773
15774       if test "$GCC" = yes; then
15775         case $host_os in aix4.012|aix4.012.*)
15776         # We only want to do this on AIX 4.2 and lower, the check
15777         # below for broken collect2 doesn't work under 4.3+
15778           collect2name=`${CC} -print-prog-name=collect2`
15779           if test -f "$collect2name" && \
15780            strings "$collect2name" | grep resolve_lib_name >/dev/null
15781           then
15782           # We have reworked collect2
15783           hardcode_direct_F77=yes
15784           else
15785           # We have old collect2
15786           hardcode_direct_F77=unsupported
15787           # It fails to find uninstalled libraries when the uninstalled
15788           # path is not listed in the libpath.  Setting hardcode_minus_L
15789           # to unsupported forces relinking
15790           hardcode_minus_L_F77=yes
15791           hardcode_libdir_flag_spec_F77='-L$libdir'
15792           hardcode_libdir_separator_F77=
15793           fi
15794         esac
15795         shared_flag='-shared'
15796       else
15797         # not using gcc
15798         if test "$host_cpu" = ia64; then
15799         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15800         # chokes on -Wl,-G. The following line is correct:
15801           shared_flag='-G'
15802         else
15803         if test "$aix_use_runtimelinking" = yes; then
15804             shared_flag='${wl}-G'
15805           else
15806             shared_flag='${wl}-bM:SRE'
15807         fi
15808         fi
15809       fi
15810
15811       # It seems that -bexpall does not export symbols beginning with
15812       # underscore (_), so it is better to generate a list of symbols to export.
15813       always_export_symbols_F77=yes
15814       if test "$aix_use_runtimelinking" = yes; then
15815         # Warning - without using the other runtime loading flags (-brtl),
15816         # -berok will link without error, but may produce a broken library.
15817         allow_undefined_flag_F77='-berok'
15818        # Determine the default libpath from the value encoded in an empty executable.
15819        cat >conftest.$ac_ext <<_ACEOF
15820       program main
15821
15822       end
15823 _ACEOF
15824 rm -f conftest.$ac_objext conftest$ac_exeext
15825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15826   (eval $ac_link) 2>conftest.er1
15827   ac_status=$?
15828   grep -v '^ *+' conftest.er1 >conftest.err
15829   rm -f conftest.er1
15830   cat conftest.err >&5
15831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832   (exit $ac_status); } &&
15833          { ac_try='test -z "$ac_f77_werror_flag"
15834                          || test ! -s conftest.err'
15835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836   (eval $ac_try) 2>&5
15837   ac_status=$?
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); }; } &&
15840          { ac_try='test -s conftest$ac_exeext'
15841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842   (eval $ac_try) 2>&5
15843   ac_status=$?
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); }; }; then
15846
15847 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15848 }'`
15849 # Check for a 64-bit object if we didn't find anything.
15850 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; }
15851 }'`; fi
15852 else
15853   echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15855
15856 fi
15857 rm -f conftest.err conftest.$ac_objext \
15858       conftest$ac_exeext conftest.$ac_ext
15859 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15860
15861        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15862         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"
15863        else
15864         if test "$host_cpu" = ia64; then
15865           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15866           allow_undefined_flag_F77="-z nodefs"
15867           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"
15868         else
15869          # Determine the default libpath from the value encoded in an empty executable.
15870          cat >conftest.$ac_ext <<_ACEOF
15871       program main
15872
15873       end
15874 _ACEOF
15875 rm -f conftest.$ac_objext conftest$ac_exeext
15876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15877   (eval $ac_link) 2>conftest.er1
15878   ac_status=$?
15879   grep -v '^ *+' conftest.er1 >conftest.err
15880   rm -f conftest.er1
15881   cat conftest.err >&5
15882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883   (exit $ac_status); } &&
15884          { ac_try='test -z "$ac_f77_werror_flag"
15885                          || test ! -s conftest.err'
15886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887   (eval $ac_try) 2>&5
15888   ac_status=$?
15889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890   (exit $ac_status); }; } &&
15891          { ac_try='test -s conftest$ac_exeext'
15892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893   (eval $ac_try) 2>&5
15894   ac_status=$?
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); }; }; then
15897
15898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15899 }'`
15900 # Check for a 64-bit object if we didn't find anything.
15901 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; }
15902 }'`; fi
15903 else
15904   echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15906
15907 fi
15908 rm -f conftest.err conftest.$ac_objext \
15909       conftest$ac_exeext conftest.$ac_ext
15910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15911
15912          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15913           # Warning - without using the other run time loading flags,
15914           # -berok will link without error, but may produce a broken library.
15915           no_undefined_flag_F77=' ${wl}-bernotok'
15916           allow_undefined_flag_F77=' ${wl}-berok'
15917           # -bexpall does not export symbols beginning with underscore (_)
15918           always_export_symbols_F77=yes
15919           # Exported symbols can be pulled into shared objects from archives
15920           whole_archive_flag_spec_F77=' '
15921           archive_cmds_need_lc_F77=yes
15922           # This is similar to how AIX traditionally builds it's shared libraries.
15923           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'
15924         fi
15925       fi
15926       ;;
15927
15928     amigaos*)
15929       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)'
15930       hardcode_libdir_flag_spec_F77='-L$libdir'
15931       hardcode_minus_L_F77=yes
15932       # see comment about different semantics on the GNU ld section
15933       ld_shlibs_F77=no
15934       ;;
15935
15936     bsdi4*)
15937       export_dynamic_flag_spec_F77=-rdynamic
15938       ;;
15939
15940     cygwin* | mingw* | pw32*)
15941       # When not using gcc, we currently assume that we are using
15942       # Microsoft Visual C++.
15943       # hardcode_libdir_flag_spec is actually meaningless, as there is
15944       # no search path for DLLs.
15945       hardcode_libdir_flag_spec_F77=' '
15946       allow_undefined_flag_F77=unsupported
15947       # Tell ltmain to make .lib files, not .a files.
15948       libext=lib
15949       # Tell ltmain to make .dll files, not .so files.
15950       shrext_cmds=".dll"
15951       # FIXME: Setting linknames here is a bad hack.
15952       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15953       # The linker will automatically build a .lib file if we build a DLL.
15954       old_archive_From_new_cmds_F77='true'
15955       # FIXME: Should let the user specify the lib program.
15956       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15957       fix_srcfile_path='`cygpath -w "$srcfile"`'
15958       enable_shared_with_static_runtimes_F77=yes
15959       ;;
15960
15961     darwin* | rhapsody*)
15962     if test "$GXX" = yes ; then
15963       archive_cmds_need_lc_F77=no
15964       case "$host_os" in
15965       rhapsody* | darwin1.[012])
15966         allow_undefined_flag_F77='-undefined suppress'
15967         ;;
15968       *) # Darwin 1.3 on
15969       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15970         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15971       else
15972         case ${MACOSX_DEPLOYMENT_TARGET} in
15973           10.[012])
15974             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15975             ;;
15976           10.*)
15977             allow_undefined_flag_F77='-undefined dynamic_lookup'
15978             ;;
15979         esac
15980       fi
15981         ;;
15982       esac
15983         lt_int_apple_cc_single_mod=no
15984         output_verbose_link_cmd='echo'
15985         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15986           lt_int_apple_cc_single_mod=yes
15987         fi
15988         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15989           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15990         else
15991         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'
15992       fi
15993       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15994       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15995         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15996           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}'
15997         else
15998           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}'
15999         fi
16000           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}'
16001       hardcode_direct_F77=no
16002       hardcode_automatic_F77=yes
16003       hardcode_shlibpath_var_F77=unsupported
16004       whole_archive_flag_spec_F77='-all_load $convenience'
16005       link_all_deplibs_F77=yes
16006     else
16007       ld_shlibs_F77=no
16008     fi
16009       ;;
16010
16011     dgux*)
16012       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16013       hardcode_libdir_flag_spec_F77='-L$libdir'
16014       hardcode_shlibpath_var_F77=no
16015       ;;
16016
16017     freebsd1*)
16018       ld_shlibs_F77=no
16019       ;;
16020
16021     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16022     # support.  Future versions do this automatically, but an explicit c++rt0.o
16023     # does not break anything, and helps significantly (at the cost of a little
16024     # extra space).
16025     freebsd2.2*)
16026       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16027       hardcode_libdir_flag_spec_F77='-R$libdir'
16028       hardcode_direct_F77=yes
16029       hardcode_shlibpath_var_F77=no
16030       ;;
16031
16032     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16033     freebsd2*)
16034       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16035       hardcode_direct_F77=yes
16036       hardcode_minus_L_F77=yes
16037       hardcode_shlibpath_var_F77=no
16038       ;;
16039
16040     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16041     freebsd* | kfreebsd*-gnu)
16042       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16043       hardcode_libdir_flag_spec_F77='-R$libdir'
16044       hardcode_direct_F77=yes
16045       hardcode_shlibpath_var_F77=no
16046       ;;
16047
16048     hpux9*)
16049       if test "$GCC" = yes; then
16050         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'
16051       else
16052         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'
16053       fi
16054       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16055       hardcode_libdir_separator_F77=:
16056       hardcode_direct_F77=yes
16057
16058       # hardcode_minus_L: Not really in the search PATH,
16059       # but as the default location of the library.
16060       hardcode_minus_L_F77=yes
16061       export_dynamic_flag_spec_F77='${wl}-E'
16062       ;;
16063
16064     hpux10* | hpux11*)
16065       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16066         case "$host_cpu" in
16067         hppa*64*|ia64*)
16068           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16069           ;;
16070         *)
16071           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16072           ;;
16073         esac
16074       else
16075         case "$host_cpu" in
16076         hppa*64*|ia64*)
16077           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16078           ;;
16079         *)
16080           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16081           ;;
16082         esac
16083       fi
16084       if test "$with_gnu_ld" = no; then
16085         case "$host_cpu" in
16086         hppa*64*)
16087           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16088           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16089           hardcode_libdir_separator_F77=:
16090           hardcode_direct_F77=no
16091           hardcode_shlibpath_var_F77=no
16092           ;;
16093         ia64*)
16094           hardcode_libdir_flag_spec_F77='-L$libdir'
16095           hardcode_direct_F77=no
16096           hardcode_shlibpath_var_F77=no
16097
16098           # hardcode_minus_L: Not really in the search PATH,
16099           # but as the default location of the library.
16100           hardcode_minus_L_F77=yes
16101           ;;
16102         *)
16103           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16104           hardcode_libdir_separator_F77=:
16105           hardcode_direct_F77=yes
16106           export_dynamic_flag_spec_F77='${wl}-E'
16107
16108           # hardcode_minus_L: Not really in the search PATH,
16109           # but as the default location of the library.
16110           hardcode_minus_L_F77=yes
16111           ;;
16112         esac
16113       fi
16114       ;;
16115
16116     irix5* | irix6* | nonstopux*)
16117       if test "$GCC" = yes; then
16118         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'
16119       else
16120         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'
16121         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16122       fi
16123       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16124       hardcode_libdir_separator_F77=:
16125       link_all_deplibs_F77=yes
16126       ;;
16127
16128     netbsd*)
16129       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16130         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16131       else
16132         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16133       fi
16134       hardcode_libdir_flag_spec_F77='-R$libdir'
16135       hardcode_direct_F77=yes
16136       hardcode_shlibpath_var_F77=no
16137       ;;
16138
16139     newsos6)
16140       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16141       hardcode_direct_F77=yes
16142       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16143       hardcode_libdir_separator_F77=:
16144       hardcode_shlibpath_var_F77=no
16145       ;;
16146
16147     openbsd*)
16148       hardcode_direct_F77=yes
16149       hardcode_shlibpath_var_F77=no
16150       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16151         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16152         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16153         export_dynamic_flag_spec_F77='${wl}-E'
16154       else
16155        case $host_os in
16156          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16157            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16158            hardcode_libdir_flag_spec_F77='-R$libdir'
16159            ;;
16160          *)
16161            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16162            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16163            ;;
16164        esac
16165       fi
16166       ;;
16167
16168     os2*)
16169       hardcode_libdir_flag_spec_F77='-L$libdir'
16170       hardcode_minus_L_F77=yes
16171       allow_undefined_flag_F77=unsupported
16172       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'
16173       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16174       ;;
16175
16176     osf3*)
16177       if test "$GCC" = yes; then
16178         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16179         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'
16180       else
16181         allow_undefined_flag_F77=' -expect_unresolved \*'
16182         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'
16183       fi
16184       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16185       hardcode_libdir_separator_F77=:
16186       ;;
16187
16188     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16189       if test "$GCC" = yes; then
16190         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16191         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'
16192         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16193       else
16194         allow_undefined_flag_F77=' -expect_unresolved \*'
16195         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'
16196         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~
16197         $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'
16198
16199         # Both c and cxx compiler support -rpath directly
16200         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16201       fi
16202       hardcode_libdir_separator_F77=:
16203       ;;
16204
16205     sco3.2v5*)
16206       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16207       hardcode_shlibpath_var_F77=no
16208       export_dynamic_flag_spec_F77='${wl}-Bexport'
16209       runpath_var=LD_RUN_PATH
16210       hardcode_runpath_var=yes
16211       ;;
16212
16213     solaris*)
16214       no_undefined_flag_F77=' -z text'
16215       if test "$GCC" = yes; then
16216         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16217         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16218           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16219       else
16220         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16221         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16222         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16223       fi
16224       hardcode_libdir_flag_spec_F77='-R$libdir'
16225       hardcode_shlibpath_var_F77=no
16226       case $host_os in
16227       solaris2.[0-5] | solaris2.[0-5].*) ;;
16228       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16229         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16230       esac
16231       link_all_deplibs_F77=yes
16232       ;;
16233
16234     sunos4*)
16235       if test "x$host_vendor" = xsequent; then
16236         # Use $CC to link under sequent, because it throws in some extra .o
16237         # files that make .init and .fini sections work.
16238         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16239       else
16240         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16241       fi
16242       hardcode_libdir_flag_spec_F77='-L$libdir'
16243       hardcode_direct_F77=yes
16244       hardcode_minus_L_F77=yes
16245       hardcode_shlibpath_var_F77=no
16246       ;;
16247
16248     sysv4)
16249       case $host_vendor in
16250         sni)
16251           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16252           hardcode_direct_F77=yes # is this really true???
16253         ;;
16254         siemens)
16255           ## LD is ld it makes a PLAMLIB
16256           ## CC just makes a GrossModule.
16257           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16258           reload_cmds_F77='$CC -r -o $output$reload_objs'
16259           hardcode_direct_F77=no
16260         ;;
16261         motorola)
16262           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16263           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16264         ;;
16265       esac
16266       runpath_var='LD_RUN_PATH'
16267       hardcode_shlibpath_var_F77=no
16268       ;;
16269
16270     sysv4.3*)
16271       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16272       hardcode_shlibpath_var_F77=no
16273       export_dynamic_flag_spec_F77='-Bexport'
16274       ;;
16275
16276     sysv4*MP*)
16277       if test -d /usr/nec; then
16278         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16279         hardcode_shlibpath_var_F77=no
16280         runpath_var=LD_RUN_PATH
16281         hardcode_runpath_var=yes
16282         ld_shlibs_F77=yes
16283       fi
16284       ;;
16285
16286     sysv4.2uw2*)
16287       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16288       hardcode_direct_F77=yes
16289       hardcode_minus_L_F77=no
16290       hardcode_shlibpath_var_F77=no
16291       hardcode_runpath_var=yes
16292       runpath_var=LD_RUN_PATH
16293       ;;
16294
16295    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16296       no_undefined_flag_F77='${wl}-z ${wl}text'
16297       if test "$GCC" = yes; then
16298         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16299       else
16300         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16301       fi
16302       runpath_var='LD_RUN_PATH'
16303       hardcode_shlibpath_var_F77=no
16304       ;;
16305
16306     sysv5*)
16307       no_undefined_flag_F77=' -z text'
16308       # $CC -shared without GNU ld will not create a library from C++
16309       # object files and a static libstdc++, better avoid it by now
16310       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16311       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16312                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16313       hardcode_libdir_flag_spec_F77=
16314       hardcode_shlibpath_var_F77=no
16315       runpath_var='LD_RUN_PATH'
16316       ;;
16317
16318     uts4*)
16319       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16320       hardcode_libdir_flag_spec_F77='-L$libdir'
16321       hardcode_shlibpath_var_F77=no
16322       ;;
16323
16324     *)
16325       ld_shlibs_F77=no
16326       ;;
16327     esac
16328   fi
16329
16330 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16331 echo "${ECHO_T}$ld_shlibs_F77" >&6
16332 test "$ld_shlibs_F77" = no && can_build_shared=no
16333
16334 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16335 if test "$GCC" = yes; then
16336   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16337 fi
16338
16339 #
16340 # Do we need to explicitly link libc?
16341 #
16342 case "x$archive_cmds_need_lc_F77" in
16343 x|xyes)
16344   # Assume -lc should be added
16345   archive_cmds_need_lc_F77=yes
16346
16347   if test "$enable_shared" = yes && test "$GCC" = yes; then
16348     case $archive_cmds_F77 in
16349     *'~'*)
16350       # FIXME: we may have to deal with multi-command sequences.
16351       ;;
16352     '$CC '*)
16353       # Test whether the compiler implicitly links with -lc since on some
16354       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16355       # to ld, don't add -lc before -lgcc.
16356       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16357 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16358       $rm conftest*
16359       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16360
16361       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16362   (eval $ac_compile) 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); } 2>conftest.err; then
16366         soname=conftest
16367         lib=conftest
16368         libobjs=conftest.$ac_objext
16369         deplibs=
16370         wl=$lt_prog_compiler_wl_F77
16371         compiler_flags=-v
16372         linker_flags=-v
16373         verstring=
16374         output_objdir=.
16375         libname=conftest
16376         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16377         allow_undefined_flag_F77=
16378         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16379   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16380   ac_status=$?
16381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382   (exit $ac_status); }
16383         then
16384           archive_cmds_need_lc_F77=no
16385         else
16386           archive_cmds_need_lc_F77=yes
16387         fi
16388         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16389       else
16390         cat conftest.err 1>&5
16391       fi
16392       $rm conftest*
16393       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16394 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16395       ;;
16396     esac
16397   fi
16398   ;;
16399 esac
16400
16401 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16402 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16403 library_names_spec=
16404 libname_spec='lib$name'
16405 soname_spec=
16406 shrext_cmds=".so"
16407 postinstall_cmds=
16408 postuninstall_cmds=
16409 finish_cmds=
16410 finish_eval=
16411 shlibpath_var=
16412 shlibpath_overrides_runpath=unknown
16413 version_type=none
16414 dynamic_linker="$host_os ld.so"
16415 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16416 if test "$GCC" = yes; then
16417   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16418   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16419     # if the path contains ";" then we assume it to be the separator
16420     # otherwise default to the standard path separator (i.e. ":") - it is
16421     # assumed that no part of a normal pathname contains ";" but that should
16422     # okay in the real world where ";" in dirpaths is itself problematic.
16423     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16424   else
16425     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16426   fi
16427 else
16428   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16429 fi
16430 need_lib_prefix=unknown
16431 hardcode_into_libs=no
16432
16433 # when you set need_version to no, make sure it does not cause -set_version
16434 # flags to be left without arguments
16435 need_version=unknown
16436
16437 case $host_os in
16438 aix3*)
16439   version_type=linux
16440   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16441   shlibpath_var=LIBPATH
16442
16443   # AIX 3 has no versioning support, so we append a major version to the name.
16444   soname_spec='${libname}${release}${shared_ext}$major'
16445   ;;
16446
16447 aix4* | aix5*)
16448   version_type=linux
16449   need_lib_prefix=no
16450   need_version=no
16451   hardcode_into_libs=yes
16452   if test "$host_cpu" = ia64; then
16453     # AIX 5 supports IA64
16454     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16455     shlibpath_var=LD_LIBRARY_PATH
16456   else
16457     # With GCC up to 2.95.x, collect2 would create an import file
16458     # for dependence libraries.  The import file would start with
16459     # the line `#! .'.  This would cause the generated library to
16460     # depend on `.', always an invalid library.  This was fixed in
16461     # development snapshots of GCC prior to 3.0.
16462     case $host_os in
16463       aix4 | aix4.[01] | aix4.[01].*)
16464       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16465            echo ' yes '
16466            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16467         :
16468       else
16469         can_build_shared=no
16470       fi
16471       ;;
16472     esac
16473     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16474     # soname into executable. Probably we can add versioning support to
16475     # collect2, so additional links can be useful in future.
16476     if test "$aix_use_runtimelinking" = yes; then
16477       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16478       # instead of lib<name>.a to let people know that these are not
16479       # typical AIX shared libraries.
16480       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481     else
16482       # We preserve .a as extension for shared libraries through AIX4.2
16483       # and later when we are not doing run time linking.
16484       library_names_spec='${libname}${release}.a $libname.a'
16485       soname_spec='${libname}${release}${shared_ext}$major'
16486     fi
16487     shlibpath_var=LIBPATH
16488   fi
16489   ;;
16490
16491 amigaos*)
16492   library_names_spec='$libname.ixlibrary $libname.a'
16493   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16494   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'
16495   ;;
16496
16497 beos*)
16498   library_names_spec='${libname}${shared_ext}'
16499   dynamic_linker="$host_os ld.so"
16500   shlibpath_var=LIBRARY_PATH
16501   ;;
16502
16503 bsdi4*)
16504   version_type=linux
16505   need_version=no
16506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16507   soname_spec='${libname}${release}${shared_ext}$major'
16508   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16509   shlibpath_var=LD_LIBRARY_PATH
16510   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16511   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16512   # the default ld.so.conf also contains /usr/contrib/lib and
16513   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16514   # libtool to hard-code these into programs
16515   ;;
16516
16517 cygwin* | mingw* | pw32*)
16518   version_type=windows
16519   shrext_cmds=".dll"
16520   need_version=no
16521   need_lib_prefix=no
16522
16523   case $GCC,$host_os in
16524   yes,cygwin* | yes,mingw* | yes,pw32*)
16525     library_names_spec='$libname.dll.a'
16526     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16527     postinstall_cmds='base_file=`basename \${file}`~
16528       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16529       dldir=$destdir/`dirname \$dlpath`~
16530       test -d \$dldir || mkdir -p \$dldir~
16531       $install_prog $dir/$dlname \$dldir/$dlname'
16532     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16533       dlpath=$dir/\$dldll~
16534        $rm \$dlpath'
16535     shlibpath_overrides_runpath=yes
16536
16537     case $host_os in
16538     cygwin*)
16539       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16540       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16541       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16542       ;;
16543     mingw*)
16544       # MinGW DLLs use traditional 'lib' prefix
16545       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16546       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16547       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16548         # It is most probably a Windows format PATH printed by
16549         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16550         # path with ; separators, and with drive letters. We can handle the
16551         # drive letters (cygwin fileutils understands them), so leave them,
16552         # especially as we might pass files found there to a mingw objdump,
16553         # which wouldn't understand a cygwinified path. Ahh.
16554         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16555       else
16556         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16557       fi
16558       ;;
16559     pw32*)
16560       # pw32 DLLs use 'pw' prefix rather than 'lib'
16561       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16562       ;;
16563     esac
16564     ;;
16565
16566   *)
16567     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16568     ;;
16569   esac
16570   dynamic_linker='Win32 ld.exe'
16571   # FIXME: first we should search . and the directory the executable is in
16572   shlibpath_var=PATH
16573   ;;
16574
16575 darwin* | rhapsody*)
16576   dynamic_linker="$host_os dyld"
16577   version_type=darwin
16578   need_lib_prefix=no
16579   need_version=no
16580   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16581   soname_spec='${libname}${release}${major}$shared_ext'
16582   shlibpath_overrides_runpath=yes
16583   shlibpath_var=DYLD_LIBRARY_PATH
16584   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16585   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16586   if test "$GCC" = yes; then
16587     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"`
16588   else
16589     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16590   fi
16591   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16592   ;;
16593
16594 dgux*)
16595   version_type=linux
16596   need_lib_prefix=no
16597   need_version=no
16598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16599   soname_spec='${libname}${release}${shared_ext}$major'
16600   shlibpath_var=LD_LIBRARY_PATH
16601   ;;
16602
16603 freebsd1*)
16604   dynamic_linker=no
16605   ;;
16606
16607 kfreebsd*-gnu)
16608   version_type=linux
16609   need_lib_prefix=no
16610   need_version=no
16611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16612   soname_spec='${libname}${release}${shared_ext}$major'
16613   shlibpath_var=LD_LIBRARY_PATH
16614   shlibpath_overrides_runpath=no
16615   hardcode_into_libs=yes
16616   dynamic_linker='GNU ld.so'
16617   ;;
16618
16619 freebsd*)
16620   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16621   version_type=freebsd-$objformat
16622   case $version_type in
16623     freebsd-elf*)
16624       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16625       need_version=no
16626       need_lib_prefix=no
16627       ;;
16628     freebsd-*)
16629       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16630       need_version=yes
16631       ;;
16632   esac
16633   shlibpath_var=LD_LIBRARY_PATH
16634   case $host_os in
16635   freebsd2*)
16636     shlibpath_overrides_runpath=yes
16637     ;;
16638   freebsd3.01* | freebsdelf3.01*)
16639     shlibpath_overrides_runpath=yes
16640     hardcode_into_libs=yes
16641     ;;
16642   *) # from 3.2 on
16643     shlibpath_overrides_runpath=no
16644     hardcode_into_libs=yes
16645     ;;
16646   esac
16647   ;;
16648
16649 gnu*)
16650   version_type=linux
16651   need_lib_prefix=no
16652   need_version=no
16653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16654   soname_spec='${libname}${release}${shared_ext}$major'
16655   shlibpath_var=LD_LIBRARY_PATH
16656   hardcode_into_libs=yes
16657   ;;
16658
16659 hpux9* | hpux10* | hpux11*)
16660   # Give a soname corresponding to the major version so that dld.sl refuses to
16661   # link against other versions.
16662   version_type=sunos
16663   need_lib_prefix=no
16664   need_version=no
16665   case "$host_cpu" in
16666   ia64*)
16667     shrext_cmds='.so'
16668     hardcode_into_libs=yes
16669     dynamic_linker="$host_os dld.so"
16670     shlibpath_var=LD_LIBRARY_PATH
16671     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16672     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673     soname_spec='${libname}${release}${shared_ext}$major'
16674     if test "X$HPUX_IA64_MODE" = X32; then
16675       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16676     else
16677       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16678     fi
16679     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16680     ;;
16681    hppa*64*)
16682      shrext_cmds='.sl'
16683      hardcode_into_libs=yes
16684      dynamic_linker="$host_os dld.sl"
16685      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16686      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16687      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688      soname_spec='${libname}${release}${shared_ext}$major'
16689      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16690      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16691      ;;
16692    *)
16693     shrext_cmds='.sl'
16694     dynamic_linker="$host_os dld.sl"
16695     shlibpath_var=SHLIB_PATH
16696     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16697     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698     soname_spec='${libname}${release}${shared_ext}$major'
16699     ;;
16700   esac
16701   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16702   postinstall_cmds='chmod 555 $lib'
16703   ;;
16704
16705 irix5* | irix6* | nonstopux*)
16706   case $host_os in
16707     nonstopux*) version_type=nonstopux ;;
16708     *)
16709         if test "$lt_cv_prog_gnu_ld" = yes; then
16710                 version_type=linux
16711         else
16712                 version_type=irix
16713         fi ;;
16714   esac
16715   need_lib_prefix=no
16716   need_version=no
16717   soname_spec='${libname}${release}${shared_ext}$major'
16718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16719   case $host_os in
16720   irix5* | nonstopux*)
16721     libsuff= shlibsuff=
16722     ;;
16723   *)
16724     case $LD in # libtool.m4 will add one of these switches to LD
16725     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16726       libsuff= shlibsuff= libmagic=32-bit;;
16727     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16728       libsuff=32 shlibsuff=N32 libmagic=N32;;
16729     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16730       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16731     *) libsuff= shlibsuff= libmagic=never-match;;
16732     esac
16733     ;;
16734   esac
16735   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16736   shlibpath_overrides_runpath=no
16737   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16738   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16739   hardcode_into_libs=yes
16740   ;;
16741
16742 # No shared lib support for Linux oldld, aout, or coff.
16743 linux*oldld* | linux*aout* | linux*coff*)
16744   dynamic_linker=no
16745   ;;
16746
16747 # This must be Linux ELF.
16748 linux*)
16749   version_type=linux
16750   need_lib_prefix=no
16751   need_version=no
16752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753   soname_spec='${libname}${release}${shared_ext}$major'
16754   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16755   shlibpath_var=LD_LIBRARY_PATH
16756   shlibpath_overrides_runpath=no
16757   # This implies no fast_install, which is unacceptable.
16758   # Some rework will be needed to allow for fast_install
16759   # before this can be enabled.
16760   hardcode_into_libs=yes
16761
16762   # find out which ABI we are using
16763   libsuff=
16764   case "$host_cpu" in
16765   x86_64*|s390x*|powerpc64*)
16766     echo '#line 16766 "configure"' > conftest.$ac_ext
16767     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16768   (eval $ac_compile) 2>&5
16769   ac_status=$?
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); }; then
16772       case `/usr/bin/file conftest.$ac_objext` in
16773       *64-bit*)
16774         libsuff=64
16775         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16776         ;;
16777       esac
16778     fi
16779     rm -rf conftest*
16780     ;;
16781   esac
16782
16783   # Append ld.so.conf contents to the search path
16784   if test -f /etc/ld.so.conf; then
16785     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16786     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16787   fi
16788
16789   # We used to test for /lib/ld.so.1 and disable shared libraries on
16790   # powerpc, because MkLinux only supported shared libraries with the
16791   # GNU dynamic linker.  Since this was broken with cross compilers,
16792   # most powerpc-linux boxes support dynamic linking these days and
16793   # people can always --disable-shared, the test was removed, and we
16794   # assume the GNU/Linux dynamic linker is in use.
16795   dynamic_linker='GNU/Linux ld.so'
16796   ;;
16797
16798 knetbsd*-gnu)
16799   version_type=linux
16800   need_lib_prefix=no
16801   need_version=no
16802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16803   soname_spec='${libname}${release}${shared_ext}$major'
16804   shlibpath_var=LD_LIBRARY_PATH
16805   shlibpath_overrides_runpath=no
16806   hardcode_into_libs=yes
16807   dynamic_linker='GNU ld.so'
16808   ;;
16809
16810 netbsd*)
16811   version_type=sunos
16812   need_lib_prefix=no
16813   need_version=no
16814   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16816     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16817     dynamic_linker='NetBSD (a.out) ld.so'
16818   else
16819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16820     soname_spec='${libname}${release}${shared_ext}$major'
16821     dynamic_linker='NetBSD ld.elf_so'
16822   fi
16823   shlibpath_var=LD_LIBRARY_PATH
16824   shlibpath_overrides_runpath=yes
16825   hardcode_into_libs=yes
16826   ;;
16827
16828 newsos6)
16829   version_type=linux
16830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16831   shlibpath_var=LD_LIBRARY_PATH
16832   shlibpath_overrides_runpath=yes
16833   ;;
16834
16835 nto-qnx*)
16836   version_type=linux
16837   need_lib_prefix=no
16838   need_version=no
16839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16840   soname_spec='${libname}${release}${shared_ext}$major'
16841   shlibpath_var=LD_LIBRARY_PATH
16842   shlibpath_overrides_runpath=yes
16843   ;;
16844
16845 openbsd*)
16846   version_type=sunos
16847   need_lib_prefix=no
16848   need_version=yes
16849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16850   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16851   shlibpath_var=LD_LIBRARY_PATH
16852   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16853     case $host_os in
16854       openbsd2.[89] | openbsd2.[89].*)
16855         shlibpath_overrides_runpath=no
16856         ;;
16857       *)
16858         shlibpath_overrides_runpath=yes
16859         ;;
16860       esac
16861   else
16862     shlibpath_overrides_runpath=yes
16863   fi
16864   ;;
16865
16866 os2*)
16867   libname_spec='$name'
16868   shrext_cmds=".dll"
16869   need_lib_prefix=no
16870   library_names_spec='$libname${shared_ext} $libname.a'
16871   dynamic_linker='OS/2 ld.exe'
16872   shlibpath_var=LIBPATH
16873   ;;
16874
16875 osf3* | osf4* | osf5*)
16876   version_type=osf
16877   need_lib_prefix=no
16878   need_version=no
16879   soname_spec='${libname}${release}${shared_ext}$major'
16880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16881   shlibpath_var=LD_LIBRARY_PATH
16882   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16883   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16884   ;;
16885
16886 sco3.2v5*)
16887   version_type=osf
16888   soname_spec='${libname}${release}${shared_ext}$major'
16889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890   shlibpath_var=LD_LIBRARY_PATH
16891   ;;
16892
16893 solaris*)
16894   version_type=linux
16895   need_lib_prefix=no
16896   need_version=no
16897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16898   soname_spec='${libname}${release}${shared_ext}$major'
16899   shlibpath_var=LD_LIBRARY_PATH
16900   shlibpath_overrides_runpath=yes
16901   hardcode_into_libs=yes
16902   # ldd complains unless libraries are executable
16903   postinstall_cmds='chmod +x $lib'
16904   ;;
16905
16906 sunos4*)
16907   version_type=sunos
16908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16909   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16910   shlibpath_var=LD_LIBRARY_PATH
16911   shlibpath_overrides_runpath=yes
16912   if test "$with_gnu_ld" = yes; then
16913     need_lib_prefix=no
16914   fi
16915   need_version=yes
16916   ;;
16917
16918 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16919   version_type=linux
16920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16921   soname_spec='${libname}${release}${shared_ext}$major'
16922   shlibpath_var=LD_LIBRARY_PATH
16923   case $host_vendor in
16924     sni)
16925       shlibpath_overrides_runpath=no
16926       need_lib_prefix=no
16927       export_dynamic_flag_spec='${wl}-Blargedynsym'
16928       runpath_var=LD_RUN_PATH
16929       ;;
16930     siemens)
16931       need_lib_prefix=no
16932       ;;
16933     motorola)
16934       need_lib_prefix=no
16935       need_version=no
16936       shlibpath_overrides_runpath=no
16937       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16938       ;;
16939   esac
16940   ;;
16941
16942 sysv4*MP*)
16943   if test -d /usr/nec ;then
16944     version_type=linux
16945     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16946     soname_spec='$libname${shared_ext}.$major'
16947     shlibpath_var=LD_LIBRARY_PATH
16948   fi
16949   ;;
16950
16951 uts4*)
16952   version_type=linux
16953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16954   soname_spec='${libname}${release}${shared_ext}$major'
16955   shlibpath_var=LD_LIBRARY_PATH
16956   ;;
16957
16958 *)
16959   dynamic_linker=no
16960   ;;
16961 esac
16962 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16963 echo "${ECHO_T}$dynamic_linker" >&6
16964 test "$dynamic_linker" = no && can_build_shared=no
16965
16966 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16967 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16968 hardcode_action_F77=
16969 if test -n "$hardcode_libdir_flag_spec_F77" || \
16970    test -n "$runpath_var F77" || \
16971    test "X$hardcode_automatic_F77"="Xyes" ; then
16972
16973   # We can hardcode non-existant directories.
16974   if test "$hardcode_direct_F77" != no &&
16975      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16976      # have to relink, otherwise we might link with an installed library
16977      # when we should be linking with a yet-to-be-installed one
16978      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16979      test "$hardcode_minus_L_F77" != no; then
16980     # Linking always hardcodes the temporary library directory.
16981     hardcode_action_F77=relink
16982   else
16983     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16984     hardcode_action_F77=immediate
16985   fi
16986 else
16987   # We cannot hardcode anything, or else we can only hardcode existing
16988   # directories.
16989   hardcode_action_F77=unsupported
16990 fi
16991 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16992 echo "${ECHO_T}$hardcode_action_F77" >&6
16993
16994 if test "$hardcode_action_F77" = relink; then
16995   # Fast installation is not supported
16996   enable_fast_install=no
16997 elif test "$shlibpath_overrides_runpath" = yes ||
16998      test "$enable_shared" = no; then
16999   # Fast installation is not necessary
17000   enable_fast_install=needless
17001 fi
17002
17003 striplib=
17004 old_striplib=
17005 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17006 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17007 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17008   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17009   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17010   echo "$as_me:$LINENO: result: yes" >&5
17011 echo "${ECHO_T}yes" >&6
17012 else
17013 # FIXME - insert some real tests, host_os isn't really good enough
17014   case $host_os in
17015    darwin*)
17016        if test -n "$STRIP" ; then
17017          striplib="$STRIP -x"
17018          echo "$as_me:$LINENO: result: yes" >&5
17019 echo "${ECHO_T}yes" >&6
17020        else
17021   echo "$as_me:$LINENO: result: no" >&5
17022 echo "${ECHO_T}no" >&6
17023 fi
17024        ;;
17025    *)
17026   echo "$as_me:$LINENO: result: no" >&5
17027 echo "${ECHO_T}no" >&6
17028     ;;
17029   esac
17030 fi
17031
17032
17033
17034 # The else clause should only fire when bootstrapping the
17035 # libtool distribution, otherwise you forgot to ship ltmain.sh
17036 # with your package, and you will get complaints that there are
17037 # no rules to generate ltmain.sh.
17038 if test -f "$ltmain"; then
17039   # See if we are running on zsh, and set the options which allow our commands through
17040   # without removal of \ escapes.
17041   if test -n "${ZSH_VERSION+set}" ; then
17042     setopt NO_GLOB_SUBST
17043   fi
17044   # Now quote all the things that may contain metacharacters while being
17045   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17046   # variables and quote the copies for generation of the libtool script.
17047   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17048     SED SHELL STRIP \
17049     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17050     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17051     deplibs_check_method reload_flag reload_cmds need_locks \
17052     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17053     lt_cv_sys_global_symbol_to_c_name_address \
17054     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17055     old_postinstall_cmds old_postuninstall_cmds \
17056     compiler_F77 \
17057     CC_F77 \
17058     LD_F77 \
17059     lt_prog_compiler_wl_F77 \
17060     lt_prog_compiler_pic_F77 \
17061     lt_prog_compiler_static_F77 \
17062     lt_prog_compiler_no_builtin_flag_F77 \
17063     export_dynamic_flag_spec_F77 \
17064     thread_safe_flag_spec_F77 \
17065     whole_archive_flag_spec_F77 \
17066     enable_shared_with_static_runtimes_F77 \
17067     old_archive_cmds_F77 \
17068     old_archive_from_new_cmds_F77 \
17069     predep_objects_F77 \
17070     postdep_objects_F77 \
17071     predeps_F77 \
17072     postdeps_F77 \
17073     compiler_lib_search_path_F77 \
17074     archive_cmds_F77 \
17075     archive_expsym_cmds_F77 \
17076     postinstall_cmds_F77 \
17077     postuninstall_cmds_F77 \
17078     old_archive_from_expsyms_cmds_F77 \
17079     allow_undefined_flag_F77 \
17080     no_undefined_flag_F77 \
17081     export_symbols_cmds_F77 \
17082     hardcode_libdir_flag_spec_F77 \
17083     hardcode_libdir_flag_spec_ld_F77 \
17084     hardcode_libdir_separator_F77 \
17085     hardcode_automatic_F77 \
17086     module_cmds_F77 \
17087     module_expsym_cmds_F77 \
17088     lt_cv_prog_compiler_c_o_F77 \
17089     exclude_expsyms_F77 \
17090     include_expsyms_F77; do
17091
17092     case $var in
17093     old_archive_cmds_F77 | \
17094     old_archive_from_new_cmds_F77 | \
17095     archive_cmds_F77 | \
17096     archive_expsym_cmds_F77 | \
17097     module_cmds_F77 | \
17098     module_expsym_cmds_F77 | \
17099     old_archive_from_expsyms_cmds_F77 | \
17100     export_symbols_cmds_F77 | \
17101     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17102     postinstall_cmds | postuninstall_cmds | \
17103     old_postinstall_cmds | old_postuninstall_cmds | \
17104     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17105       # Double-quote double-evaled strings.
17106       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17107       ;;
17108     *)
17109       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17110       ;;
17111     esac
17112   done
17113
17114   case $lt_echo in
17115   *'\$0 --fallback-echo"')
17116     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17117     ;;
17118   esac
17119
17120 cfgfile="$ofile"
17121
17122   cat <<__EOF__ >> "$cfgfile"
17123 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17124
17125 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17126
17127 # Shell to use when invoking shell scripts.
17128 SHELL=$lt_SHELL
17129
17130 # Whether or not to build shared libraries.
17131 build_libtool_libs=$enable_shared
17132
17133 # Whether or not to build static libraries.
17134 build_old_libs=$enable_static
17135
17136 # Whether or not to add -lc for building shared libraries.
17137 build_libtool_need_lc=$archive_cmds_need_lc_F77
17138
17139 # Whether or not to disallow shared libs when runtime libs are static
17140 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17141
17142 # Whether or not to optimize for fast installation.
17143 fast_install=$enable_fast_install
17144
17145 # The host system.
17146 host_alias=$host_alias
17147 host=$host
17148
17149 # An echo program that does not interpret backslashes.
17150 echo=$lt_echo
17151
17152 # The archiver.
17153 AR=$lt_AR
17154 AR_FLAGS=$lt_AR_FLAGS
17155
17156 # A C compiler.
17157 LTCC=$lt_LTCC
17158
17159 # A language-specific compiler.
17160 CC=$lt_compiler_F77
17161
17162 # Is the compiler the GNU C compiler?
17163 with_gcc=$GCC_F77
17164
17165 # An ERE matcher.
17166 EGREP=$lt_EGREP
17167
17168 # The linker used to build libraries.
17169 LD=$lt_LD_F77
17170
17171 # Whether we need hard or soft links.
17172 LN_S=$lt_LN_S
17173
17174 # A BSD-compatible nm program.
17175 NM=$lt_NM
17176
17177 # A symbol stripping program
17178 STRIP=$lt_STRIP
17179
17180 # Used to examine libraries when file_magic_cmd begins "file"
17181 MAGIC_CMD=$MAGIC_CMD
17182
17183 # Used on cygwin: DLL creation program.
17184 DLLTOOL="$DLLTOOL"
17185
17186 # Used on cygwin: object dumper.
17187 OBJDUMP="$OBJDUMP"
17188
17189 # Used on cygwin: assembler.
17190 AS="$AS"
17191
17192 # The name of the directory that contains temporary libtool files.
17193 objdir=$objdir
17194
17195 # How to create reloadable object files.
17196 reload_flag=$lt_reload_flag
17197 reload_cmds=$lt_reload_cmds
17198
17199 # How to pass a linker flag through the compiler.
17200 wl=$lt_lt_prog_compiler_wl_F77
17201
17202 # Object file suffix (normally "o").
17203 objext="$ac_objext"
17204
17205 # Old archive suffix (normally "a").
17206 libext="$libext"
17207
17208 # Shared library suffix (normally ".so").
17209 shrext_cmds='$shrext_cmds'
17210
17211 # Executable file suffix (normally "").
17212 exeext="$exeext"
17213
17214 # Additional compiler flags for building library objects.
17215 pic_flag=$lt_lt_prog_compiler_pic_F77
17216 pic_mode=$pic_mode
17217
17218 # What is the maximum length of a command?
17219 max_cmd_len=$lt_cv_sys_max_cmd_len
17220
17221 # Does compiler simultaneously support -c and -o options?
17222 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17223
17224 # Must we lock files when doing compilation ?
17225 need_locks=$lt_need_locks
17226
17227 # Do we need the lib prefix for modules?
17228 need_lib_prefix=$need_lib_prefix
17229
17230 # Do we need a version for libraries?
17231 need_version=$need_version
17232
17233 # Whether dlopen is supported.
17234 dlopen_support=$enable_dlopen
17235
17236 # Whether dlopen of programs is supported.
17237 dlopen_self=$enable_dlopen_self
17238
17239 # Whether dlopen of statically linked programs is supported.
17240 dlopen_self_static=$enable_dlopen_self_static
17241
17242 # Compiler flag to prevent dynamic linking.
17243 link_static_flag=$lt_lt_prog_compiler_static_F77
17244
17245 # Compiler flag to turn off builtin functions.
17246 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17247
17248 # Compiler flag to allow reflexive dlopens.
17249 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17250
17251 # Compiler flag to generate shared objects directly from archives.
17252 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17253
17254 # Compiler flag to generate thread-safe objects.
17255 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17256
17257 # Library versioning type.
17258 version_type=$version_type
17259
17260 # Format of library name prefix.
17261 libname_spec=$lt_libname_spec
17262
17263 # List of archive names.  First name is the real one, the rest are links.
17264 # The last name is the one that the linker finds with -lNAME.
17265 library_names_spec=$lt_library_names_spec
17266
17267 # The coded name of the library, if different from the real name.
17268 soname_spec=$lt_soname_spec
17269
17270 # Commands used to build and install an old-style archive.
17271 RANLIB=$lt_RANLIB
17272 old_archive_cmds=$lt_old_archive_cmds_F77
17273 old_postinstall_cmds=$lt_old_postinstall_cmds
17274 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17275
17276 # Create an old-style archive from a shared archive.
17277 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17278
17279 # Create a temporary old-style archive to link instead of a shared archive.
17280 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17281
17282 # Commands used to build and install a shared archive.
17283 archive_cmds=$lt_archive_cmds_F77
17284 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17285 postinstall_cmds=$lt_postinstall_cmds
17286 postuninstall_cmds=$lt_postuninstall_cmds
17287
17288 # Commands used to build a loadable module (assumed same as above if empty)
17289 module_cmds=$lt_module_cmds_F77
17290 module_expsym_cmds=$lt_module_expsym_cmds_F77
17291
17292 # Commands to strip libraries.
17293 old_striplib=$lt_old_striplib
17294 striplib=$lt_striplib
17295
17296 # Dependencies to place before the objects being linked to create a
17297 # shared library.
17298 predep_objects=$lt_predep_objects_F77
17299
17300 # Dependencies to place after the objects being linked to create a
17301 # shared library.
17302 postdep_objects=$lt_postdep_objects_F77
17303
17304 # Dependencies to place before the objects being linked to create a
17305 # shared library.
17306 predeps=$lt_predeps_F77
17307
17308 # Dependencies to place after the objects being linked to create a
17309 # shared library.
17310 postdeps=$lt_postdeps_F77
17311
17312 # The library search path used internally by the compiler when linking
17313 # a shared library.
17314 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17315
17316 # Method to check whether dependent libraries are shared objects.
17317 deplibs_check_method=$lt_deplibs_check_method
17318
17319 # Command to use when deplibs_check_method == file_magic.
17320 file_magic_cmd=$lt_file_magic_cmd
17321
17322 # Flag that allows shared libraries with undefined symbols to be built.
17323 allow_undefined_flag=$lt_allow_undefined_flag_F77
17324
17325 # Flag that forces no undefined symbols.
17326 no_undefined_flag=$lt_no_undefined_flag_F77
17327
17328 # Commands used to finish a libtool library installation in a directory.
17329 finish_cmds=$lt_finish_cmds
17330
17331 # Same as above, but a single script fragment to be evaled but not shown.
17332 finish_eval=$lt_finish_eval
17333
17334 # Take the output of nm and produce a listing of raw symbols and C names.
17335 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17336
17337 # Transform the output of nm in a proper C declaration
17338 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17339
17340 # Transform the output of nm in a C name address pair
17341 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17342
17343 # This is the shared library runtime path variable.
17344 runpath_var=$runpath_var
17345
17346 # This is the shared library path variable.
17347 shlibpath_var=$shlibpath_var
17348
17349 # Is shlibpath searched before the hard-coded library search path?
17350 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17351
17352 # How to hardcode a shared library path into an executable.
17353 hardcode_action=$hardcode_action_F77
17354
17355 # Whether we should hardcode library paths into libraries.
17356 hardcode_into_libs=$hardcode_into_libs
17357
17358 # Flag to hardcode \$libdir into a binary during linking.
17359 # This must work even if \$libdir does not exist.
17360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17361
17362 # If ld is used when linking, flag to hardcode \$libdir into
17363 # a binary during linking. This must work even if \$libdir does
17364 # not exist.
17365 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17366
17367 # Whether we need a single -rpath flag with a separated argument.
17368 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17369
17370 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17371 # resulting binary.
17372 hardcode_direct=$hardcode_direct_F77
17373
17374 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17375 # resulting binary.
17376 hardcode_minus_L=$hardcode_minus_L_F77
17377
17378 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17379 # the resulting binary.
17380 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17381
17382 # Set to yes if building a shared library automatically hardcodes DIR into the library
17383 # and all subsequent libraries and executables linked against it.
17384 hardcode_automatic=$hardcode_automatic_F77
17385
17386 # Variables whose values should be saved in libtool wrapper scripts and
17387 # restored at relink time.
17388 variables_saved_for_relink="$variables_saved_for_relink"
17389
17390 # Whether libtool must link a program against all its dependency libraries.
17391 link_all_deplibs=$link_all_deplibs_F77
17392
17393 # Compile-time system search path for libraries
17394 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17395
17396 # Run-time system search path for libraries
17397 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17398
17399 # Fix the shell variable \$srcfile for the compiler.
17400 fix_srcfile_path="$fix_srcfile_path_F77"
17401
17402 # Set to yes if exported symbols are required.
17403 always_export_symbols=$always_export_symbols_F77
17404
17405 # The commands to list exported symbols.
17406 export_symbols_cmds=$lt_export_symbols_cmds_F77
17407
17408 # The commands to extract the exported symbol list from a shared archive.
17409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17410
17411 # Symbols that should not be listed in the preloaded symbols.
17412 exclude_expsyms=$lt_exclude_expsyms_F77
17413
17414 # Symbols that must always be exported.
17415 include_expsyms=$lt_include_expsyms_F77
17416
17417 # ### END LIBTOOL TAG CONFIG: $tagname
17418
17419 __EOF__
17420
17421
17422 else
17423   # If there is no Makefile yet, we rely on a make rule to execute
17424   # `config.status --recheck' to rerun these tests and create the
17425   # libtool script then.
17426   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17427   if test -f "$ltmain_in"; then
17428     test -f Makefile && make "$ltmain"
17429   fi
17430 fi
17431
17432
17433 ac_ext=c
17434 ac_cpp='$CPP $CPPFLAGS'
17435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17438
17439 CC="$lt_save_CC"
17440
17441         else
17442           tagname=""
17443         fi
17444         ;;
17445
17446       GCJ)
17447         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17448
17449
17450
17451 # Source file extension for Java test sources.
17452 ac_ext=java
17453
17454 # Object file extension for compiled Java test sources.
17455 objext=o
17456 objext_GCJ=$objext
17457
17458 # Code to be used in simple compile tests
17459 lt_simple_compile_test_code="class foo {}\n"
17460
17461 # Code to be used in simple link tests
17462 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17463
17464 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17465
17466 # If no C compiler was specified, use CC.
17467 LTCC=${LTCC-"$CC"}
17468
17469 # Allow CC to be a program name with arguments.
17470 compiler=$CC
17471
17472
17473 # Allow CC to be a program name with arguments.
17474 lt_save_CC="$CC"
17475 CC=${GCJ-"gcj"}
17476 compiler=$CC
17477 compiler_GCJ=$CC
17478
17479 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17480 archive_cmds_need_lc_GCJ=no
17481
17482 ## CAVEAT EMPTOR:
17483 ## There is no encapsulation within the following macros, do not change
17484 ## the running order or otherwise move them around unless you know exactly
17485 ## what you are doing...
17486
17487 lt_prog_compiler_no_builtin_flag_GCJ=
17488
17489 if test "$GCC" = yes; then
17490   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17491
17492
17493 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17494 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17495 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17496   echo $ECHO_N "(cached) $ECHO_C" >&6
17497 else
17498   lt_cv_prog_compiler_rtti_exceptions=no
17499   ac_outfile=conftest.$ac_objext
17500    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17501    lt_compiler_flag="-fno-rtti -fno-exceptions"
17502    # Insert the option either (1) after the last *FLAGS variable, or
17503    # (2) before a word containing "conftest.", or (3) at the end.
17504    # Note that $ac_compile itself does not contain backslashes and begins
17505    # with a dollar sign (not a hyphen), so the echo should work correctly.
17506    # The option is referenced via a variable to avoid confusing sed.
17507    lt_compile=`echo "$ac_compile" | $SED \
17508    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17509    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17510    -e 's:$: $lt_compiler_flag:'`
17511    (eval echo "\"\$as_me:17511: $lt_compile\"" >&5)
17512    (eval "$lt_compile" 2>conftest.err)
17513    ac_status=$?
17514    cat conftest.err >&5
17515    echo "$as_me:17515: \$? = $ac_status" >&5
17516    if (exit $ac_status) && test -s "$ac_outfile"; then
17517      # The compiler can only warn and ignore the option if not recognized
17518      # So say no if there are warnings
17519      if test ! -s conftest.err; then
17520        lt_cv_prog_compiler_rtti_exceptions=yes
17521      fi
17522    fi
17523    $rm conftest*
17524
17525 fi
17526 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17527 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17528
17529 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17530     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17531 else
17532     :
17533 fi
17534
17535 fi
17536
17537 lt_prog_compiler_wl_GCJ=
17538 lt_prog_compiler_pic_GCJ=
17539 lt_prog_compiler_static_GCJ=
17540
17541 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17542 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17543
17544   if test "$GCC" = yes; then
17545     lt_prog_compiler_wl_GCJ='-Wl,'
17546     lt_prog_compiler_static_GCJ='-static'
17547
17548     case $host_os in
17549       aix*)
17550       # All AIX code is PIC.
17551       if test "$host_cpu" = ia64; then
17552         # AIX 5 now supports IA64 processor
17553         lt_prog_compiler_static_GCJ='-Bstatic'
17554       fi
17555       ;;
17556
17557     amigaos*)
17558       # FIXME: we need at least 68020 code to build shared libraries, but
17559       # adding the `-m68020' flag to GCC prevents building anything better,
17560       # like `-m68040'.
17561       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17562       ;;
17563
17564     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17565       # PIC is the default for these OSes.
17566       ;;
17567
17568     mingw* | pw32* | os2*)
17569       # This hack is so that the source file can tell whether it is being
17570       # built for inclusion in a dll (and should export symbols for example).
17571       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17572       ;;
17573
17574     darwin* | rhapsody*)
17575       # PIC is the default on this platform
17576       # Common symbols not allowed in MH_DYLIB files
17577       lt_prog_compiler_pic_GCJ='-fno-common'
17578       ;;
17579
17580     msdosdjgpp*)
17581       # Just because we use GCC doesn't mean we suddenly get shared libraries
17582       # on systems that don't support them.
17583       lt_prog_compiler_can_build_shared_GCJ=no
17584       enable_shared=no
17585       ;;
17586
17587     sysv4*MP*)
17588       if test -d /usr/nec; then
17589         lt_prog_compiler_pic_GCJ=-Kconform_pic
17590       fi
17591       ;;
17592
17593     hpux*)
17594       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17595       # not for PA HP-UX.
17596       case "$host_cpu" in
17597       hppa*64*|ia64*)
17598         # +Z the default
17599         ;;
17600       *)
17601         lt_prog_compiler_pic_GCJ='-fPIC'
17602         ;;
17603       esac
17604       ;;
17605
17606     *)
17607       lt_prog_compiler_pic_GCJ='-fPIC'
17608       ;;
17609     esac
17610   else
17611     # PORTME Check for flag to pass linker flags through the system compiler.
17612     case $host_os in
17613     aix*)
17614       lt_prog_compiler_wl_GCJ='-Wl,'
17615       if test "$host_cpu" = ia64; then
17616         # AIX 5 now supports IA64 processor
17617         lt_prog_compiler_static_GCJ='-Bstatic'
17618       else
17619         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17620       fi
17621       ;;
17622
17623     mingw* | pw32* | os2*)
17624       # This hack is so that the source file can tell whether it is being
17625       # built for inclusion in a dll (and should export symbols for example).
17626       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17627       ;;
17628
17629     hpux9* | hpux10* | hpux11*)
17630       lt_prog_compiler_wl_GCJ='-Wl,'
17631       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17632       # not for PA HP-UX.
17633       case "$host_cpu" in
17634       hppa*64*|ia64*)
17635         # +Z the default
17636         ;;
17637       *)
17638         lt_prog_compiler_pic_GCJ='+Z'
17639         ;;
17640       esac
17641       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17642       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17643       ;;
17644
17645     irix5* | irix6* | nonstopux*)
17646       lt_prog_compiler_wl_GCJ='-Wl,'
17647       # PIC (with -KPIC) is the default.
17648       lt_prog_compiler_static_GCJ='-non_shared'
17649       ;;
17650
17651     newsos6)
17652       lt_prog_compiler_pic_GCJ='-KPIC'
17653       lt_prog_compiler_static_GCJ='-Bstatic'
17654       ;;
17655
17656     linux*)
17657       case $CC in
17658       icc* | ecc*)
17659         lt_prog_compiler_wl_GCJ='-Wl,'
17660         lt_prog_compiler_pic_GCJ='-KPIC'
17661         lt_prog_compiler_static_GCJ='-static'
17662         ;;
17663       ccc*)
17664         lt_prog_compiler_wl_GCJ='-Wl,'
17665         # All Alpha code is PIC.
17666         lt_prog_compiler_static_GCJ='-non_shared'
17667         ;;
17668       esac
17669       ;;
17670
17671     osf3* | osf4* | osf5*)
17672       lt_prog_compiler_wl_GCJ='-Wl,'
17673       # All OSF/1 code is PIC.
17674       lt_prog_compiler_static_GCJ='-non_shared'
17675       ;;
17676
17677     sco3.2v5*)
17678       lt_prog_compiler_pic_GCJ='-Kpic'
17679       lt_prog_compiler_static_GCJ='-dn'
17680       ;;
17681
17682     solaris*)
17683       lt_prog_compiler_wl_GCJ='-Wl,'
17684       lt_prog_compiler_pic_GCJ='-KPIC'
17685       lt_prog_compiler_static_GCJ='-Bstatic'
17686       ;;
17687
17688     sunos4*)
17689       lt_prog_compiler_wl_GCJ='-Qoption ld '
17690       lt_prog_compiler_pic_GCJ='-PIC'
17691       lt_prog_compiler_static_GCJ='-Bstatic'
17692       ;;
17693
17694     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17695       lt_prog_compiler_wl_GCJ='-Wl,'
17696       lt_prog_compiler_pic_GCJ='-KPIC'
17697       lt_prog_compiler_static_GCJ='-Bstatic'
17698       ;;
17699
17700     sysv4*MP*)
17701       if test -d /usr/nec ;then
17702         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17703         lt_prog_compiler_static_GCJ='-Bstatic'
17704       fi
17705       ;;
17706
17707     uts4*)
17708       lt_prog_compiler_pic_GCJ='-pic'
17709       lt_prog_compiler_static_GCJ='-Bstatic'
17710       ;;
17711
17712     *)
17713       lt_prog_compiler_can_build_shared_GCJ=no
17714       ;;
17715     esac
17716   fi
17717
17718 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17719 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17720
17721 #
17722 # Check to make sure the PIC flag actually works.
17723 #
17724 if test -n "$lt_prog_compiler_pic_GCJ"; then
17725
17726 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17727 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17728 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17729   echo $ECHO_N "(cached) $ECHO_C" >&6
17730 else
17731   lt_prog_compiler_pic_works_GCJ=no
17732   ac_outfile=conftest.$ac_objext
17733    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17734    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17735    # Insert the option either (1) after the last *FLAGS variable, or
17736    # (2) before a word containing "conftest.", or (3) at the end.
17737    # Note that $ac_compile itself does not contain backslashes and begins
17738    # with a dollar sign (not a hyphen), so the echo should work correctly.
17739    # The option is referenced via a variable to avoid confusing sed.
17740    lt_compile=`echo "$ac_compile" | $SED \
17741    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17742    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17743    -e 's:$: $lt_compiler_flag:'`
17744    (eval echo "\"\$as_me:17744: $lt_compile\"" >&5)
17745    (eval "$lt_compile" 2>conftest.err)
17746    ac_status=$?
17747    cat conftest.err >&5
17748    echo "$as_me:17748: \$? = $ac_status" >&5
17749    if (exit $ac_status) && test -s "$ac_outfile"; then
17750      # The compiler can only warn and ignore the option if not recognized
17751      # So say no if there are warnings
17752      if test ! -s conftest.err; then
17753        lt_prog_compiler_pic_works_GCJ=yes
17754      fi
17755    fi
17756    $rm conftest*
17757
17758 fi
17759 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17760 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17761
17762 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17763     case $lt_prog_compiler_pic_GCJ in
17764      "" | " "*) ;;
17765      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17766      esac
17767 else
17768     lt_prog_compiler_pic_GCJ=
17769      lt_prog_compiler_can_build_shared_GCJ=no
17770 fi
17771
17772 fi
17773 case "$host_os" in
17774   # For platforms which do not support PIC, -DPIC is meaningless:
17775   *djgpp*)
17776     lt_prog_compiler_pic_GCJ=
17777     ;;
17778   *)
17779     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17780     ;;
17781 esac
17782
17783 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17784 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17785 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17786   echo $ECHO_N "(cached) $ECHO_C" >&6
17787 else
17788   lt_cv_prog_compiler_c_o_GCJ=no
17789    $rm -r conftest 2>/dev/null
17790    mkdir conftest
17791    cd conftest
17792    mkdir out
17793    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17794
17795    lt_compiler_flag="-o out/conftest2.$ac_objext"
17796    # Insert the option either (1) after the last *FLAGS variable, or
17797    # (2) before a word containing "conftest.", or (3) at the end.
17798    # Note that $ac_compile itself does not contain backslashes and begins
17799    # with a dollar sign (not a hyphen), so the echo should work correctly.
17800    lt_compile=`echo "$ac_compile" | $SED \
17801    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17802    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17803    -e 's:$: $lt_compiler_flag:'`
17804    (eval echo "\"\$as_me:17804: $lt_compile\"" >&5)
17805    (eval "$lt_compile" 2>out/conftest.err)
17806    ac_status=$?
17807    cat out/conftest.err >&5
17808    echo "$as_me:17808: \$? = $ac_status" >&5
17809    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17810    then
17811      # The compiler can only warn and ignore the option if not recognized
17812      # So say no if there are warnings
17813      if test ! -s out/conftest.err; then
17814        lt_cv_prog_compiler_c_o_GCJ=yes
17815      fi
17816    fi
17817    chmod u+w .
17818    $rm conftest*
17819    # SGI C++ compiler will create directory out/ii_files/ for
17820    # template instantiation
17821    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17822    $rm out/* && rmdir out
17823    cd ..
17824    rmdir conftest
17825    $rm conftest*
17826
17827 fi
17828 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17829 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17830
17831
17832 hard_links="nottested"
17833 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17834   # do not overwrite the value of need_locks provided by the user
17835   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17836 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17837   hard_links=yes
17838   $rm conftest*
17839   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17840   touch conftest.a
17841   ln conftest.a conftest.b 2>&5 || hard_links=no
17842   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17843   echo "$as_me:$LINENO: result: $hard_links" >&5
17844 echo "${ECHO_T}$hard_links" >&6
17845   if test "$hard_links" = no; then
17846     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17847 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17848     need_locks=warn
17849   fi
17850 else
17851   need_locks=no
17852 fi
17853
17854 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17855 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17856
17857   runpath_var=
17858   allow_undefined_flag_GCJ=
17859   enable_shared_with_static_runtimes_GCJ=no
17860   archive_cmds_GCJ=
17861   archive_expsym_cmds_GCJ=
17862   old_archive_From_new_cmds_GCJ=
17863   old_archive_from_expsyms_cmds_GCJ=
17864   export_dynamic_flag_spec_GCJ=
17865   whole_archive_flag_spec_GCJ=
17866   thread_safe_flag_spec_GCJ=
17867   hardcode_libdir_flag_spec_GCJ=
17868   hardcode_libdir_flag_spec_ld_GCJ=
17869   hardcode_libdir_separator_GCJ=
17870   hardcode_direct_GCJ=no
17871   hardcode_minus_L_GCJ=no
17872   hardcode_shlibpath_var_GCJ=unsupported
17873   link_all_deplibs_GCJ=unknown
17874   hardcode_automatic_GCJ=no
17875   module_cmds_GCJ=
17876   module_expsym_cmds_GCJ=
17877   always_export_symbols_GCJ=no
17878   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17879   # include_expsyms should be a list of space-separated symbols to be *always*
17880   # included in the symbol list
17881   include_expsyms_GCJ=
17882   # exclude_expsyms can be an extended regexp of symbols to exclude
17883   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17884   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17885   # as well as any symbol that contains `d'.
17886   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17887   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17888   # platforms (ab)use it in PIC code, but their linkers get confused if
17889   # the symbol is explicitly referenced.  Since portable code cannot
17890   # rely on this symbol name, it's probably fine to never include it in
17891   # preloaded symbol tables.
17892   extract_expsyms_cmds=
17893
17894   case $host_os in
17895   cygwin* | mingw* | pw32*)
17896     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17897     # When not using gcc, we currently assume that we are using
17898     # Microsoft Visual C++.
17899     if test "$GCC" != yes; then
17900       with_gnu_ld=no
17901     fi
17902     ;;
17903   openbsd*)
17904     with_gnu_ld=no
17905     ;;
17906   esac
17907
17908   ld_shlibs_GCJ=yes
17909   if test "$with_gnu_ld" = yes; then
17910     # If archive_cmds runs LD, not CC, wlarc should be empty
17911     wlarc='${wl}'
17912
17913     # See if GNU ld supports shared libraries.
17914     case $host_os in
17915     aix3* | aix4* | aix5*)
17916       # On AIX/PPC, the GNU linker is very broken
17917       if test "$host_cpu" != ia64; then
17918         ld_shlibs_GCJ=no
17919         cat <<EOF 1>&2
17920
17921 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17922 *** to be unable to reliably create shared libraries on AIX.
17923 *** Therefore, libtool is disabling shared libraries support.  If you
17924 *** really care for shared libraries, you may want to modify your PATH
17925 *** so that a non-GNU linker is found, and then restart.
17926
17927 EOF
17928       fi
17929       ;;
17930
17931     amigaos*)
17932       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)'
17933       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17934       hardcode_minus_L_GCJ=yes
17935
17936       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17937       # that the semantics of dynamic libraries on AmigaOS, at least up
17938       # to version 4, is to share data among multiple programs linked
17939       # with the same dynamic library.  Since this doesn't match the
17940       # behavior of shared libraries on other platforms, we can't use
17941       # them.
17942       ld_shlibs_GCJ=no
17943       ;;
17944
17945     beos*)
17946       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17947         allow_undefined_flag_GCJ=unsupported
17948         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17949         # support --undefined.  This deserves some investigation.  FIXME
17950         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17951       else
17952         ld_shlibs_GCJ=no
17953       fi
17954       ;;
17955
17956     cygwin* | mingw* | pw32*)
17957       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17958       # as there is no search path for DLLs.
17959       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17960       allow_undefined_flag_GCJ=unsupported
17961       always_export_symbols_GCJ=no
17962       enable_shared_with_static_runtimes_GCJ=yes
17963       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17964
17965       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17966         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17967         # If the export-symbols file already is a .def file (1st line
17968         # is EXPORTS), use it as is; otherwise, prepend...
17969         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17970           cp $export_symbols $output_objdir/$soname.def;
17971         else
17972           echo EXPORTS > $output_objdir/$soname.def;
17973           cat $export_symbols >> $output_objdir/$soname.def;
17974         fi~
17975         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17976       else
17977         ld_shlibs=no
17978       fi
17979       ;;
17980
17981     netbsd*)
17982       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17983         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17984         wlarc=
17985       else
17986         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17987         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17988       fi
17989       ;;
17990
17991     solaris* | sysv5*)
17992       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17993         ld_shlibs_GCJ=no
17994         cat <<EOF 1>&2
17995
17996 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17997 *** create shared libraries on Solaris systems.  Therefore, libtool
17998 *** is disabling shared libraries support.  We urge you to upgrade GNU
17999 *** binutils to release 2.9.1 or newer.  Another option is to modify
18000 *** your PATH or compiler configuration so that the native linker is
18001 *** used, and then restart.
18002
18003 EOF
18004       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18005         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18006         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18007       else
18008         ld_shlibs_GCJ=no
18009       fi
18010       ;;
18011
18012     sunos4*)
18013       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18014       wlarc=
18015       hardcode_direct_GCJ=yes
18016       hardcode_shlibpath_var_GCJ=no
18017       ;;
18018
18019   linux*)
18020     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18021         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18022         archive_cmds_GCJ="$tmp_archive_cmds"
18023       supports_anon_versioning=no
18024       case `$LD -v 2>/dev/null` in
18025         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18026         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18027         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18028         *\ 2.11.*) ;; # other 2.11 versions
18029         *) supports_anon_versioning=yes ;;
18030       esac
18031       if test $supports_anon_versioning = yes; then
18032         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18034 $echo "local: *; };" >> $output_objdir/$libname.ver~
18035         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18036       else
18037         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18038       fi
18039     else
18040       ld_shlibs_GCJ=no
18041     fi
18042     ;;
18043
18044     *)
18045       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18046         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18047         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18048       else
18049         ld_shlibs_GCJ=no
18050       fi
18051       ;;
18052     esac
18053
18054     if test "$ld_shlibs_GCJ" = yes; then
18055       runpath_var=LD_RUN_PATH
18056       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18057       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18058       # ancient GNU ld didn't support --whole-archive et. al.
18059       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18060         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18061       else
18062         whole_archive_flag_spec_GCJ=
18063       fi
18064     fi
18065   else
18066     # PORTME fill in a description of your system's linker (not GNU ld)
18067     case $host_os in
18068     aix3*)
18069       allow_undefined_flag_GCJ=unsupported
18070       always_export_symbols_GCJ=yes
18071       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'
18072       # Note: this linker hardcodes the directories in LIBPATH if there
18073       # are no directories specified by -L.
18074       hardcode_minus_L_GCJ=yes
18075       if test "$GCC" = yes && test -z "$link_static_flag"; then
18076         # Neither direct hardcoding nor static linking is supported with a
18077         # broken collect2.
18078         hardcode_direct_GCJ=unsupported
18079       fi
18080       ;;
18081
18082     aix4* | aix5*)
18083       if test "$host_cpu" = ia64; then
18084         # On IA64, the linker does run time linking by default, so we don't
18085         # have to do anything special.
18086         aix_use_runtimelinking=no
18087         exp_sym_flag='-Bexport'
18088         no_entry_flag=""
18089       else
18090         # If we're using GNU nm, then we don't want the "-C" option.
18091         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18092         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18093           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'
18094         else
18095           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'
18096         fi
18097         aix_use_runtimelinking=no
18098
18099         # Test if we are trying to use run time linking or normal
18100         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18101         # need to do runtime linking.
18102         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18103           for ld_flag in $LDFLAGS; do
18104           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18105             aix_use_runtimelinking=yes
18106             break
18107           fi
18108           done
18109         esac
18110
18111         exp_sym_flag='-bexport'
18112         no_entry_flag='-bnoentry'
18113       fi
18114
18115       # When large executables or shared objects are built, AIX ld can
18116       # have problems creating the table of contents.  If linking a library
18117       # or program results in "error TOC overflow" add -mminimal-toc to
18118       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18119       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18120
18121       archive_cmds_GCJ=''
18122       hardcode_direct_GCJ=yes
18123       hardcode_libdir_separator_GCJ=':'
18124       link_all_deplibs_GCJ=yes
18125
18126       if test "$GCC" = yes; then
18127         case $host_os in aix4.012|aix4.012.*)
18128         # We only want to do this on AIX 4.2 and lower, the check
18129         # below for broken collect2 doesn't work under 4.3+
18130           collect2name=`${CC} -print-prog-name=collect2`
18131           if test -f "$collect2name" && \
18132            strings "$collect2name" | grep resolve_lib_name >/dev/null
18133           then
18134           # We have reworked collect2
18135           hardcode_direct_GCJ=yes
18136           else
18137           # We have old collect2
18138           hardcode_direct_GCJ=unsupported
18139           # It fails to find uninstalled libraries when the uninstalled
18140           # path is not listed in the libpath.  Setting hardcode_minus_L
18141           # to unsupported forces relinking
18142           hardcode_minus_L_GCJ=yes
18143           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18144           hardcode_libdir_separator_GCJ=
18145           fi
18146         esac
18147         shared_flag='-shared'
18148       else
18149         # not using gcc
18150         if test "$host_cpu" = ia64; then
18151         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18152         # chokes on -Wl,-G. The following line is correct:
18153           shared_flag='-G'
18154         else
18155         if test "$aix_use_runtimelinking" = yes; then
18156             shared_flag='${wl}-G'
18157           else
18158             shared_flag='${wl}-bM:SRE'
18159         fi
18160         fi
18161       fi
18162
18163       # It seems that -bexpall does not export symbols beginning with
18164       # underscore (_), so it is better to generate a list of symbols to export.
18165       always_export_symbols_GCJ=yes
18166       if test "$aix_use_runtimelinking" = yes; then
18167         # Warning - without using the other runtime loading flags (-brtl),
18168         # -berok will link without error, but may produce a broken library.
18169         allow_undefined_flag_GCJ='-berok'
18170        # Determine the default libpath from the value encoded in an empty executable.
18171        cat >conftest.$ac_ext <<_ACEOF
18172 /* confdefs.h.  */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h.  */
18177
18178 int
18179 main ()
18180 {
18181
18182   ;
18183   return 0;
18184 }
18185 _ACEOF
18186 rm -f conftest.$ac_objext conftest$ac_exeext
18187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18188   (eval $ac_link) 2>conftest.er1
18189   ac_status=$?
18190   grep -v '^ *+' conftest.er1 >conftest.err
18191   rm -f conftest.er1
18192   cat conftest.err >&5
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); } &&
18195          { ac_try='test -z "$ac_c_werror_flag"
18196                          || test ! -s conftest.err'
18197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18198   (eval $ac_try) 2>&5
18199   ac_status=$?
18200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201   (exit $ac_status); }; } &&
18202          { ac_try='test -s conftest$ac_exeext'
18203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204   (eval $ac_try) 2>&5
18205   ac_status=$?
18206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); }; }; then
18208
18209 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18210 }'`
18211 # Check for a 64-bit object if we didn't find anything.
18212 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; }
18213 }'`; fi
18214 else
18215   echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18217
18218 fi
18219 rm -f conftest.err conftest.$ac_objext \
18220       conftest$ac_exeext conftest.$ac_ext
18221 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18222
18223        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18224         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"
18225        else
18226         if test "$host_cpu" = ia64; then
18227           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18228           allow_undefined_flag_GCJ="-z nodefs"
18229           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"
18230         else
18231          # Determine the default libpath from the value encoded in an empty executable.
18232          cat >conftest.$ac_ext <<_ACEOF
18233 /* confdefs.h.  */
18234 _ACEOF
18235 cat confdefs.h >>conftest.$ac_ext
18236 cat >>conftest.$ac_ext <<_ACEOF
18237 /* end confdefs.h.  */
18238
18239 int
18240 main ()
18241 {
18242
18243   ;
18244   return 0;
18245 }
18246 _ACEOF
18247 rm -f conftest.$ac_objext conftest$ac_exeext
18248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18249   (eval $ac_link) 2>conftest.er1
18250   ac_status=$?
18251   grep -v '^ *+' conftest.er1 >conftest.err
18252   rm -f conftest.er1
18253   cat conftest.err >&5
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); } &&
18256          { ac_try='test -z "$ac_c_werror_flag"
18257                          || test ! -s conftest.err'
18258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18259   (eval $ac_try) 2>&5
18260   ac_status=$?
18261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262   (exit $ac_status); }; } &&
18263          { ac_try='test -s conftest$ac_exeext'
18264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265   (eval $ac_try) 2>&5
18266   ac_status=$?
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); }; }; then
18269
18270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18271 }'`
18272 # Check for a 64-bit object if we didn't find anything.
18273 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; }
18274 }'`; fi
18275 else
18276   echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18278
18279 fi
18280 rm -f conftest.err conftest.$ac_objext \
18281       conftest$ac_exeext conftest.$ac_ext
18282 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18283
18284          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18285           # Warning - without using the other run time loading flags,
18286           # -berok will link without error, but may produce a broken library.
18287           no_undefined_flag_GCJ=' ${wl}-bernotok'
18288           allow_undefined_flag_GCJ=' ${wl}-berok'
18289           # -bexpall does not export symbols beginning with underscore (_)
18290           always_export_symbols_GCJ=yes
18291           # Exported symbols can be pulled into shared objects from archives
18292           whole_archive_flag_spec_GCJ=' '
18293           archive_cmds_need_lc_GCJ=yes
18294           # This is similar to how AIX traditionally builds it's shared libraries.
18295           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'
18296         fi
18297       fi
18298       ;;
18299
18300     amigaos*)
18301       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)'
18302       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18303       hardcode_minus_L_GCJ=yes
18304       # see comment about different semantics on the GNU ld section
18305       ld_shlibs_GCJ=no
18306       ;;
18307
18308     bsdi4*)
18309       export_dynamic_flag_spec_GCJ=-rdynamic
18310       ;;
18311
18312     cygwin* | mingw* | pw32*)
18313       # When not using gcc, we currently assume that we are using
18314       # Microsoft Visual C++.
18315       # hardcode_libdir_flag_spec is actually meaningless, as there is
18316       # no search path for DLLs.
18317       hardcode_libdir_flag_spec_GCJ=' '
18318       allow_undefined_flag_GCJ=unsupported
18319       # Tell ltmain to make .lib files, not .a files.
18320       libext=lib
18321       # Tell ltmain to make .dll files, not .so files.
18322       shrext_cmds=".dll"
18323       # FIXME: Setting linknames here is a bad hack.
18324       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18325       # The linker will automatically build a .lib file if we build a DLL.
18326       old_archive_From_new_cmds_GCJ='true'
18327       # FIXME: Should let the user specify the lib program.
18328       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18329       fix_srcfile_path='`cygpath -w "$srcfile"`'
18330       enable_shared_with_static_runtimes_GCJ=yes
18331       ;;
18332
18333     darwin* | rhapsody*)
18334     if test "$GXX" = yes ; then
18335       archive_cmds_need_lc_GCJ=no
18336       case "$host_os" in
18337       rhapsody* | darwin1.[012])
18338         allow_undefined_flag_GCJ='-undefined suppress'
18339         ;;
18340       *) # Darwin 1.3 on
18341       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18342         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18343       else
18344         case ${MACOSX_DEPLOYMENT_TARGET} in
18345           10.[012])
18346             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18347             ;;
18348           10.*)
18349             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
18350             ;;
18351         esac
18352       fi
18353         ;;
18354       esac
18355         lt_int_apple_cc_single_mod=no
18356         output_verbose_link_cmd='echo'
18357         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18358           lt_int_apple_cc_single_mod=yes
18359         fi
18360         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18361           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18362         else
18363         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'
18364       fi
18365       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18366       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18367         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18368           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}'
18369         else
18370           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}'
18371         fi
18372           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}'
18373       hardcode_direct_GCJ=no
18374       hardcode_automatic_GCJ=yes
18375       hardcode_shlibpath_var_GCJ=unsupported
18376       whole_archive_flag_spec_GCJ='-all_load $convenience'
18377       link_all_deplibs_GCJ=yes
18378     else
18379       ld_shlibs_GCJ=no
18380     fi
18381       ;;
18382
18383     dgux*)
18384       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18385       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18386       hardcode_shlibpath_var_GCJ=no
18387       ;;
18388
18389     freebsd1*)
18390       ld_shlibs_GCJ=no
18391       ;;
18392
18393     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18394     # support.  Future versions do this automatically, but an explicit c++rt0.o
18395     # does not break anything, and helps significantly (at the cost of a little
18396     # extra space).
18397     freebsd2.2*)
18398       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18399       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18400       hardcode_direct_GCJ=yes
18401       hardcode_shlibpath_var_GCJ=no
18402       ;;
18403
18404     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18405     freebsd2*)
18406       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18407       hardcode_direct_GCJ=yes
18408       hardcode_minus_L_GCJ=yes
18409       hardcode_shlibpath_var_GCJ=no
18410       ;;
18411
18412     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18413     freebsd* | kfreebsd*-gnu)
18414       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18415       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18416       hardcode_direct_GCJ=yes
18417       hardcode_shlibpath_var_GCJ=no
18418       ;;
18419
18420     hpux9*)
18421       if test "$GCC" = yes; then
18422         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'
18423       else
18424         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'
18425       fi
18426       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18427       hardcode_libdir_separator_GCJ=:
18428       hardcode_direct_GCJ=yes
18429
18430       # hardcode_minus_L: Not really in the search PATH,
18431       # but as the default location of the library.
18432       hardcode_minus_L_GCJ=yes
18433       export_dynamic_flag_spec_GCJ='${wl}-E'
18434       ;;
18435
18436     hpux10* | hpux11*)
18437       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18438         case "$host_cpu" in
18439         hppa*64*|ia64*)
18440           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18441           ;;
18442         *)
18443           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18444           ;;
18445         esac
18446       else
18447         case "$host_cpu" in
18448         hppa*64*|ia64*)
18449           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18450           ;;
18451         *)
18452           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18453           ;;
18454         esac
18455       fi
18456       if test "$with_gnu_ld" = no; then
18457         case "$host_cpu" in
18458         hppa*64*)
18459           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18460           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18461           hardcode_libdir_separator_GCJ=:
18462           hardcode_direct_GCJ=no
18463           hardcode_shlibpath_var_GCJ=no
18464           ;;
18465         ia64*)
18466           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18467           hardcode_direct_GCJ=no
18468           hardcode_shlibpath_var_GCJ=no
18469
18470           # hardcode_minus_L: Not really in the search PATH,
18471           # but as the default location of the library.
18472           hardcode_minus_L_GCJ=yes
18473           ;;
18474         *)
18475           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18476           hardcode_libdir_separator_GCJ=:
18477           hardcode_direct_GCJ=yes
18478           export_dynamic_flag_spec_GCJ='${wl}-E'
18479
18480           # hardcode_minus_L: Not really in the search PATH,
18481           # but as the default location of the library.
18482           hardcode_minus_L_GCJ=yes
18483           ;;
18484         esac
18485       fi
18486       ;;
18487
18488     irix5* | irix6* | nonstopux*)
18489       if test "$GCC" = yes; then
18490         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'
18491       else
18492         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'
18493         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18494       fi
18495       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18496       hardcode_libdir_separator_GCJ=:
18497       link_all_deplibs_GCJ=yes
18498       ;;
18499
18500     netbsd*)
18501       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18502         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18503       else
18504         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18505       fi
18506       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18507       hardcode_direct_GCJ=yes
18508       hardcode_shlibpath_var_GCJ=no
18509       ;;
18510
18511     newsos6)
18512       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18513       hardcode_direct_GCJ=yes
18514       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18515       hardcode_libdir_separator_GCJ=:
18516       hardcode_shlibpath_var_GCJ=no
18517       ;;
18518
18519     openbsd*)
18520       hardcode_direct_GCJ=yes
18521       hardcode_shlibpath_var_GCJ=no
18522       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18523         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18524         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18525         export_dynamic_flag_spec_GCJ='${wl}-E'
18526       else
18527        case $host_os in
18528          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18529            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18530            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18531            ;;
18532          *)
18533            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18534            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18535            ;;
18536        esac
18537       fi
18538       ;;
18539
18540     os2*)
18541       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18542       hardcode_minus_L_GCJ=yes
18543       allow_undefined_flag_GCJ=unsupported
18544       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'
18545       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18546       ;;
18547
18548     osf3*)
18549       if test "$GCC" = yes; then
18550         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18551         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'
18552       else
18553         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18554         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'
18555       fi
18556       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18557       hardcode_libdir_separator_GCJ=:
18558       ;;
18559
18560     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18561       if test "$GCC" = yes; then
18562         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18563         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'
18564         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18565       else
18566         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18567         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'
18568         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~
18569         $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'
18570
18571         # Both c and cxx compiler support -rpath directly
18572         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18573       fi
18574       hardcode_libdir_separator_GCJ=:
18575       ;;
18576
18577     sco3.2v5*)
18578       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18579       hardcode_shlibpath_var_GCJ=no
18580       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18581       runpath_var=LD_RUN_PATH
18582       hardcode_runpath_var=yes
18583       ;;
18584
18585     solaris*)
18586       no_undefined_flag_GCJ=' -z text'
18587       if test "$GCC" = yes; then
18588         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18589         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18590           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18591       else
18592         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18593         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18594         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18595       fi
18596       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18597       hardcode_shlibpath_var_GCJ=no
18598       case $host_os in
18599       solaris2.[0-5] | solaris2.[0-5].*) ;;
18600       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18601         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18602       esac
18603       link_all_deplibs_GCJ=yes
18604       ;;
18605
18606     sunos4*)
18607       if test "x$host_vendor" = xsequent; then
18608         # Use $CC to link under sequent, because it throws in some extra .o
18609         # files that make .init and .fini sections work.
18610         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18611       else
18612         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18613       fi
18614       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18615       hardcode_direct_GCJ=yes
18616       hardcode_minus_L_GCJ=yes
18617       hardcode_shlibpath_var_GCJ=no
18618       ;;
18619
18620     sysv4)
18621       case $host_vendor in
18622         sni)
18623           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18624           hardcode_direct_GCJ=yes # is this really true???
18625         ;;
18626         siemens)
18627           ## LD is ld it makes a PLAMLIB
18628           ## CC just makes a GrossModule.
18629           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18630           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18631           hardcode_direct_GCJ=no
18632         ;;
18633         motorola)
18634           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18635           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18636         ;;
18637       esac
18638       runpath_var='LD_RUN_PATH'
18639       hardcode_shlibpath_var_GCJ=no
18640       ;;
18641
18642     sysv4.3*)
18643       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18644       hardcode_shlibpath_var_GCJ=no
18645       export_dynamic_flag_spec_GCJ='-Bexport'
18646       ;;
18647
18648     sysv4*MP*)
18649       if test -d /usr/nec; then
18650         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18651         hardcode_shlibpath_var_GCJ=no
18652         runpath_var=LD_RUN_PATH
18653         hardcode_runpath_var=yes
18654         ld_shlibs_GCJ=yes
18655       fi
18656       ;;
18657
18658     sysv4.2uw2*)
18659       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18660       hardcode_direct_GCJ=yes
18661       hardcode_minus_L_GCJ=no
18662       hardcode_shlibpath_var_GCJ=no
18663       hardcode_runpath_var=yes
18664       runpath_var=LD_RUN_PATH
18665       ;;
18666
18667    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18668       no_undefined_flag_GCJ='${wl}-z ${wl}text'
18669       if test "$GCC" = yes; then
18670         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18671       else
18672         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18673       fi
18674       runpath_var='LD_RUN_PATH'
18675       hardcode_shlibpath_var_GCJ=no
18676       ;;
18677
18678     sysv5*)
18679       no_undefined_flag_GCJ=' -z text'
18680       # $CC -shared without GNU ld will not create a library from C++
18681       # object files and a static libstdc++, better avoid it by now
18682       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18683       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18684                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18685       hardcode_libdir_flag_spec_GCJ=
18686       hardcode_shlibpath_var_GCJ=no
18687       runpath_var='LD_RUN_PATH'
18688       ;;
18689
18690     uts4*)
18691       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18692       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18693       hardcode_shlibpath_var_GCJ=no
18694       ;;
18695
18696     *)
18697       ld_shlibs_GCJ=no
18698       ;;
18699     esac
18700   fi
18701
18702 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18703 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18704 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18705
18706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18707 if test "$GCC" = yes; then
18708   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18709 fi
18710
18711 #
18712 # Do we need to explicitly link libc?
18713 #
18714 case "x$archive_cmds_need_lc_GCJ" in
18715 x|xyes)
18716   # Assume -lc should be added
18717   archive_cmds_need_lc_GCJ=yes
18718
18719   if test "$enable_shared" = yes && test "$GCC" = yes; then
18720     case $archive_cmds_GCJ in
18721     *'~'*)
18722       # FIXME: we may have to deal with multi-command sequences.
18723       ;;
18724     '$CC '*)
18725       # Test whether the compiler implicitly links with -lc since on some
18726       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18727       # to ld, don't add -lc before -lgcc.
18728       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18729 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18730       $rm conftest*
18731       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18732
18733       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18734   (eval $ac_compile) 2>&5
18735   ac_status=$?
18736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737   (exit $ac_status); } 2>conftest.err; then
18738         soname=conftest
18739         lib=conftest
18740         libobjs=conftest.$ac_objext
18741         deplibs=
18742         wl=$lt_prog_compiler_wl_GCJ
18743         compiler_flags=-v
18744         linker_flags=-v
18745         verstring=
18746         output_objdir=.
18747         libname=conftest
18748         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18749         allow_undefined_flag_GCJ=
18750         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18751   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18752   ac_status=$?
18753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754   (exit $ac_status); }
18755         then
18756           archive_cmds_need_lc_GCJ=no
18757         else
18758           archive_cmds_need_lc_GCJ=yes
18759         fi
18760         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18761       else
18762         cat conftest.err 1>&5
18763       fi
18764       $rm conftest*
18765       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18766 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18767       ;;
18768     esac
18769   fi
18770   ;;
18771 esac
18772
18773 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18774 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18775 library_names_spec=
18776 libname_spec='lib$name'
18777 soname_spec=
18778 shrext_cmds=".so"
18779 postinstall_cmds=
18780 postuninstall_cmds=
18781 finish_cmds=
18782 finish_eval=
18783 shlibpath_var=
18784 shlibpath_overrides_runpath=unknown
18785 version_type=none
18786 dynamic_linker="$host_os ld.so"
18787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18788 if test "$GCC" = yes; then
18789   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18790   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18791     # if the path contains ";" then we assume it to be the separator
18792     # otherwise default to the standard path separator (i.e. ":") - it is
18793     # assumed that no part of a normal pathname contains ";" but that should
18794     # okay in the real world where ";" in dirpaths is itself problematic.
18795     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18796   else
18797     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18798   fi
18799 else
18800   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18801 fi
18802 need_lib_prefix=unknown
18803 hardcode_into_libs=no
18804
18805 # when you set need_version to no, make sure it does not cause -set_version
18806 # flags to be left without arguments
18807 need_version=unknown
18808
18809 case $host_os in
18810 aix3*)
18811   version_type=linux
18812   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18813   shlibpath_var=LIBPATH
18814
18815   # AIX 3 has no versioning support, so we append a major version to the name.
18816   soname_spec='${libname}${release}${shared_ext}$major'
18817   ;;
18818
18819 aix4* | aix5*)
18820   version_type=linux
18821   need_lib_prefix=no
18822   need_version=no
18823   hardcode_into_libs=yes
18824   if test "$host_cpu" = ia64; then
18825     # AIX 5 supports IA64
18826     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18827     shlibpath_var=LD_LIBRARY_PATH
18828   else
18829     # With GCC up to 2.95.x, collect2 would create an import file
18830     # for dependence libraries.  The import file would start with
18831     # the line `#! .'.  This would cause the generated library to
18832     # depend on `.', always an invalid library.  This was fixed in
18833     # development snapshots of GCC prior to 3.0.
18834     case $host_os in
18835       aix4 | aix4.[01] | aix4.[01].*)
18836       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18837            echo ' yes '
18838            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18839         :
18840       else
18841         can_build_shared=no
18842       fi
18843       ;;
18844     esac
18845     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18846     # soname into executable. Probably we can add versioning support to
18847     # collect2, so additional links can be useful in future.
18848     if test "$aix_use_runtimelinking" = yes; then
18849       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18850       # instead of lib<name>.a to let people know that these are not
18851       # typical AIX shared libraries.
18852       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18853     else
18854       # We preserve .a as extension for shared libraries through AIX4.2
18855       # and later when we are not doing run time linking.
18856       library_names_spec='${libname}${release}.a $libname.a'
18857       soname_spec='${libname}${release}${shared_ext}$major'
18858     fi
18859     shlibpath_var=LIBPATH
18860   fi
18861   ;;
18862
18863 amigaos*)
18864   library_names_spec='$libname.ixlibrary $libname.a'
18865   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18866   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'
18867   ;;
18868
18869 beos*)
18870   library_names_spec='${libname}${shared_ext}'
18871   dynamic_linker="$host_os ld.so"
18872   shlibpath_var=LIBRARY_PATH
18873   ;;
18874
18875 bsdi4*)
18876   version_type=linux
18877   need_version=no
18878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18879   soname_spec='${libname}${release}${shared_ext}$major'
18880   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18881   shlibpath_var=LD_LIBRARY_PATH
18882   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18883   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18884   # the default ld.so.conf also contains /usr/contrib/lib and
18885   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18886   # libtool to hard-code these into programs
18887   ;;
18888
18889 cygwin* | mingw* | pw32*)
18890   version_type=windows
18891   shrext_cmds=".dll"
18892   need_version=no
18893   need_lib_prefix=no
18894
18895   case $GCC,$host_os in
18896   yes,cygwin* | yes,mingw* | yes,pw32*)
18897     library_names_spec='$libname.dll.a'
18898     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18899     postinstall_cmds='base_file=`basename \${file}`~
18900       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18901       dldir=$destdir/`dirname \$dlpath`~
18902       test -d \$dldir || mkdir -p \$dldir~
18903       $install_prog $dir/$dlname \$dldir/$dlname'
18904     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18905       dlpath=$dir/\$dldll~
18906        $rm \$dlpath'
18907     shlibpath_overrides_runpath=yes
18908
18909     case $host_os in
18910     cygwin*)
18911       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18912       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18913       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18914       ;;
18915     mingw*)
18916       # MinGW DLLs use traditional 'lib' prefix
18917       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18918       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18919       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18920         # It is most probably a Windows format PATH printed by
18921         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18922         # path with ; separators, and with drive letters. We can handle the
18923         # drive letters (cygwin fileutils understands them), so leave them,
18924         # especially as we might pass files found there to a mingw objdump,
18925         # which wouldn't understand a cygwinified path. Ahh.
18926         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18927       else
18928         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18929       fi
18930       ;;
18931     pw32*)
18932       # pw32 DLLs use 'pw' prefix rather than 'lib'
18933       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18934       ;;
18935     esac
18936     ;;
18937
18938   *)
18939     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18940     ;;
18941   esac
18942   dynamic_linker='Win32 ld.exe'
18943   # FIXME: first we should search . and the directory the executable is in
18944   shlibpath_var=PATH
18945   ;;
18946
18947 darwin* | rhapsody*)
18948   dynamic_linker="$host_os dyld"
18949   version_type=darwin
18950   need_lib_prefix=no
18951   need_version=no
18952   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18953   soname_spec='${libname}${release}${major}$shared_ext'
18954   shlibpath_overrides_runpath=yes
18955   shlibpath_var=DYLD_LIBRARY_PATH
18956   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18957   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18958   if test "$GCC" = yes; then
18959     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"`
18960   else
18961     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18962   fi
18963   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18964   ;;
18965
18966 dgux*)
18967   version_type=linux
18968   need_lib_prefix=no
18969   need_version=no
18970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18971   soname_spec='${libname}${release}${shared_ext}$major'
18972   shlibpath_var=LD_LIBRARY_PATH
18973   ;;
18974
18975 freebsd1*)
18976   dynamic_linker=no
18977   ;;
18978
18979 kfreebsd*-gnu)
18980   version_type=linux
18981   need_lib_prefix=no
18982   need_version=no
18983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18984   soname_spec='${libname}${release}${shared_ext}$major'
18985   shlibpath_var=LD_LIBRARY_PATH
18986   shlibpath_overrides_runpath=no
18987   hardcode_into_libs=yes
18988   dynamic_linker='GNU ld.so'
18989   ;;
18990
18991 freebsd*)
18992   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18993   version_type=freebsd-$objformat
18994   case $version_type in
18995     freebsd-elf*)
18996       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18997       need_version=no
18998       need_lib_prefix=no
18999       ;;
19000     freebsd-*)
19001       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19002       need_version=yes
19003       ;;
19004   esac
19005   shlibpath_var=LD_LIBRARY_PATH
19006   case $host_os in
19007   freebsd2*)
19008     shlibpath_overrides_runpath=yes
19009     ;;
19010   freebsd3.01* | freebsdelf3.01*)
19011     shlibpath_overrides_runpath=yes
19012     hardcode_into_libs=yes
19013     ;;
19014   *) # from 3.2 on
19015     shlibpath_overrides_runpath=no
19016     hardcode_into_libs=yes
19017     ;;
19018   esac
19019   ;;
19020
19021 gnu*)
19022   version_type=linux
19023   need_lib_prefix=no
19024   need_version=no
19025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19026   soname_spec='${libname}${release}${shared_ext}$major'
19027   shlibpath_var=LD_LIBRARY_PATH
19028   hardcode_into_libs=yes
19029   ;;
19030
19031 hpux9* | hpux10* | hpux11*)
19032   # Give a soname corresponding to the major version so that dld.sl refuses to
19033   # link against other versions.
19034   version_type=sunos
19035   need_lib_prefix=no
19036   need_version=no
19037   case "$host_cpu" in
19038   ia64*)
19039     shrext_cmds='.so'
19040     hardcode_into_libs=yes
19041     dynamic_linker="$host_os dld.so"
19042     shlibpath_var=LD_LIBRARY_PATH
19043     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19044     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19045     soname_spec='${libname}${release}${shared_ext}$major'
19046     if test "X$HPUX_IA64_MODE" = X32; then
19047       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19048     else
19049       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19050     fi
19051     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19052     ;;
19053    hppa*64*)
19054      shrext_cmds='.sl'
19055      hardcode_into_libs=yes
19056      dynamic_linker="$host_os dld.sl"
19057      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19058      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19059      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19060      soname_spec='${libname}${release}${shared_ext}$major'
19061      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19062      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19063      ;;
19064    *)
19065     shrext_cmds='.sl'
19066     dynamic_linker="$host_os dld.sl"
19067     shlibpath_var=SHLIB_PATH
19068     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19069     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19070     soname_spec='${libname}${release}${shared_ext}$major'
19071     ;;
19072   esac
19073   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19074   postinstall_cmds='chmod 555 $lib'
19075   ;;
19076
19077 irix5* | irix6* | nonstopux*)
19078   case $host_os in
19079     nonstopux*) version_type=nonstopux ;;
19080     *)
19081         if test "$lt_cv_prog_gnu_ld" = yes; then
19082                 version_type=linux
19083         else
19084                 version_type=irix
19085         fi ;;
19086   esac
19087   need_lib_prefix=no
19088   need_version=no
19089   soname_spec='${libname}${release}${shared_ext}$major'
19090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19091   case $host_os in
19092   irix5* | nonstopux*)
19093     libsuff= shlibsuff=
19094     ;;
19095   *)
19096     case $LD in # libtool.m4 will add one of these switches to LD
19097     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19098       libsuff= shlibsuff= libmagic=32-bit;;
19099     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19100       libsuff=32 shlibsuff=N32 libmagic=N32;;
19101     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19102       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19103     *) libsuff= shlibsuff= libmagic=never-match;;
19104     esac
19105     ;;
19106   esac
19107   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19108   shlibpath_overrides_runpath=no
19109   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19110   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19111   hardcode_into_libs=yes
19112   ;;
19113
19114 # No shared lib support for Linux oldld, aout, or coff.
19115 linux*oldld* | linux*aout* | linux*coff*)
19116   dynamic_linker=no
19117   ;;
19118
19119 # This must be Linux ELF.
19120 linux*)
19121   version_type=linux
19122   need_lib_prefix=no
19123   need_version=no
19124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19125   soname_spec='${libname}${release}${shared_ext}$major'
19126   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19127   shlibpath_var=LD_LIBRARY_PATH
19128   shlibpath_overrides_runpath=no
19129   # This implies no fast_install, which is unacceptable.
19130   # Some rework will be needed to allow for fast_install
19131   # before this can be enabled.
19132   hardcode_into_libs=yes
19133
19134   # find out which ABI we are using
19135   libsuff=
19136   case "$host_cpu" in
19137   x86_64*|s390x*|powerpc64*)
19138     echo '#line 19138 "configure"' > conftest.$ac_ext
19139     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19140   (eval $ac_compile) 2>&5
19141   ac_status=$?
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); }; then
19144       case `/usr/bin/file conftest.$ac_objext` in
19145       *64-bit*)
19146         libsuff=64
19147         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19148         ;;
19149       esac
19150     fi
19151     rm -rf conftest*
19152     ;;
19153   esac
19154
19155   # Append ld.so.conf contents to the search path
19156   if test -f /etc/ld.so.conf; then
19157     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19158     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19159   fi
19160
19161   # We used to test for /lib/ld.so.1 and disable shared libraries on
19162   # powerpc, because MkLinux only supported shared libraries with the
19163   # GNU dynamic linker.  Since this was broken with cross compilers,
19164   # most powerpc-linux boxes support dynamic linking these days and
19165   # people can always --disable-shared, the test was removed, and we
19166   # assume the GNU/Linux dynamic linker is in use.
19167   dynamic_linker='GNU/Linux ld.so'
19168   ;;
19169
19170 knetbsd*-gnu)
19171   version_type=linux
19172   need_lib_prefix=no
19173   need_version=no
19174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19175   soname_spec='${libname}${release}${shared_ext}$major'
19176   shlibpath_var=LD_LIBRARY_PATH
19177   shlibpath_overrides_runpath=no
19178   hardcode_into_libs=yes
19179   dynamic_linker='GNU ld.so'
19180   ;;
19181
19182 netbsd*)
19183   version_type=sunos
19184   need_lib_prefix=no
19185   need_version=no
19186   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19188     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19189     dynamic_linker='NetBSD (a.out) ld.so'
19190   else
19191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19192     soname_spec='${libname}${release}${shared_ext}$major'
19193     dynamic_linker='NetBSD ld.elf_so'
19194   fi
19195   shlibpath_var=LD_LIBRARY_PATH
19196   shlibpath_overrides_runpath=yes
19197   hardcode_into_libs=yes
19198   ;;
19199
19200 newsos6)
19201   version_type=linux
19202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19203   shlibpath_var=LD_LIBRARY_PATH
19204   shlibpath_overrides_runpath=yes
19205   ;;
19206
19207 nto-qnx*)
19208   version_type=linux
19209   need_lib_prefix=no
19210   need_version=no
19211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19212   soname_spec='${libname}${release}${shared_ext}$major'
19213   shlibpath_var=LD_LIBRARY_PATH
19214   shlibpath_overrides_runpath=yes
19215   ;;
19216
19217 openbsd*)
19218   version_type=sunos
19219   need_lib_prefix=no
19220   need_version=yes
19221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19222   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19223   shlibpath_var=LD_LIBRARY_PATH
19224   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19225     case $host_os in
19226       openbsd2.[89] | openbsd2.[89].*)
19227         shlibpath_overrides_runpath=no
19228         ;;
19229       *)
19230         shlibpath_overrides_runpath=yes
19231         ;;
19232       esac
19233   else
19234     shlibpath_overrides_runpath=yes
19235   fi
19236   ;;
19237
19238 os2*)
19239   libname_spec='$name'
19240   shrext_cmds=".dll"
19241   need_lib_prefix=no
19242   library_names_spec='$libname${shared_ext} $libname.a'
19243   dynamic_linker='OS/2 ld.exe'
19244   shlibpath_var=LIBPATH
19245   ;;
19246
19247 osf3* | osf4* | osf5*)
19248   version_type=osf
19249   need_lib_prefix=no
19250   need_version=no
19251   soname_spec='${libname}${release}${shared_ext}$major'
19252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19253   shlibpath_var=LD_LIBRARY_PATH
19254   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19255   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19256   ;;
19257
19258 sco3.2v5*)
19259   version_type=osf
19260   soname_spec='${libname}${release}${shared_ext}$major'
19261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19262   shlibpath_var=LD_LIBRARY_PATH
19263   ;;
19264
19265 solaris*)
19266   version_type=linux
19267   need_lib_prefix=no
19268   need_version=no
19269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19270   soname_spec='${libname}${release}${shared_ext}$major'
19271   shlibpath_var=LD_LIBRARY_PATH
19272   shlibpath_overrides_runpath=yes
19273   hardcode_into_libs=yes
19274   # ldd complains unless libraries are executable
19275   postinstall_cmds='chmod +x $lib'
19276   ;;
19277
19278 sunos4*)
19279   version_type=sunos
19280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19281   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19282   shlibpath_var=LD_LIBRARY_PATH
19283   shlibpath_overrides_runpath=yes
19284   if test "$with_gnu_ld" = yes; then
19285     need_lib_prefix=no
19286   fi
19287   need_version=yes
19288   ;;
19289
19290 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19291   version_type=linux
19292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19293   soname_spec='${libname}${release}${shared_ext}$major'
19294   shlibpath_var=LD_LIBRARY_PATH
19295   case $host_vendor in
19296     sni)
19297       shlibpath_overrides_runpath=no
19298       need_lib_prefix=no
19299       export_dynamic_flag_spec='${wl}-Blargedynsym'
19300       runpath_var=LD_RUN_PATH
19301       ;;
19302     siemens)
19303       need_lib_prefix=no
19304       ;;
19305     motorola)
19306       need_lib_prefix=no
19307       need_version=no
19308       shlibpath_overrides_runpath=no
19309       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19310       ;;
19311   esac
19312   ;;
19313
19314 sysv4*MP*)
19315   if test -d /usr/nec ;then
19316     version_type=linux
19317     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19318     soname_spec='$libname${shared_ext}.$major'
19319     shlibpath_var=LD_LIBRARY_PATH
19320   fi
19321   ;;
19322
19323 uts4*)
19324   version_type=linux
19325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19326   soname_spec='${libname}${release}${shared_ext}$major'
19327   shlibpath_var=LD_LIBRARY_PATH
19328   ;;
19329
19330 *)
19331   dynamic_linker=no
19332   ;;
19333 esac
19334 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19335 echo "${ECHO_T}$dynamic_linker" >&6
19336 test "$dynamic_linker" = no && can_build_shared=no
19337
19338 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19339 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19340 hardcode_action_GCJ=
19341 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19342    test -n "$runpath_var GCJ" || \
19343    test "X$hardcode_automatic_GCJ"="Xyes" ; then
19344
19345   # We can hardcode non-existant directories.
19346   if test "$hardcode_direct_GCJ" != no &&
19347      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19348      # have to relink, otherwise we might link with an installed library
19349      # when we should be linking with a yet-to-be-installed one
19350      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19351      test "$hardcode_minus_L_GCJ" != no; then
19352     # Linking always hardcodes the temporary library directory.
19353     hardcode_action_GCJ=relink
19354   else
19355     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19356     hardcode_action_GCJ=immediate
19357   fi
19358 else
19359   # We cannot hardcode anything, or else we can only hardcode existing
19360   # directories.
19361   hardcode_action_GCJ=unsupported
19362 fi
19363 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19364 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19365
19366 if test "$hardcode_action_GCJ" = relink; then
19367   # Fast installation is not supported
19368   enable_fast_install=no
19369 elif test "$shlibpath_overrides_runpath" = yes ||
19370      test "$enable_shared" = no; then
19371   # Fast installation is not necessary
19372   enable_fast_install=needless
19373 fi
19374
19375 striplib=
19376 old_striplib=
19377 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19378 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19379 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19380   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19381   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19382   echo "$as_me:$LINENO: result: yes" >&5
19383 echo "${ECHO_T}yes" >&6
19384 else
19385 # FIXME - insert some real tests, host_os isn't really good enough
19386   case $host_os in
19387    darwin*)
19388        if test -n "$STRIP" ; then
19389          striplib="$STRIP -x"
19390          echo "$as_me:$LINENO: result: yes" >&5
19391 echo "${ECHO_T}yes" >&6
19392        else
19393   echo "$as_me:$LINENO: result: no" >&5
19394 echo "${ECHO_T}no" >&6
19395 fi
19396        ;;
19397    *)
19398   echo "$as_me:$LINENO: result: no" >&5
19399 echo "${ECHO_T}no" >&6
19400     ;;
19401   esac
19402 fi
19403
19404 if test "x$enable_dlopen" != xyes; then
19405   enable_dlopen=unknown
19406   enable_dlopen_self=unknown
19407   enable_dlopen_self_static=unknown
19408 else
19409   lt_cv_dlopen=no
19410   lt_cv_dlopen_libs=
19411
19412   case $host_os in
19413   beos*)
19414     lt_cv_dlopen="load_add_on"
19415     lt_cv_dlopen_libs=
19416     lt_cv_dlopen_self=yes
19417     ;;
19418
19419   mingw* | pw32*)
19420     lt_cv_dlopen="LoadLibrary"
19421     lt_cv_dlopen_libs=
19422    ;;
19423
19424   cygwin*)
19425     lt_cv_dlopen="dlopen"
19426     lt_cv_dlopen_libs=
19427    ;;
19428
19429   darwin*)
19430   # if libdl is installed we need to link against it
19431     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19432 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19433 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19434   echo $ECHO_N "(cached) $ECHO_C" >&6
19435 else
19436   ac_check_lib_save_LIBS=$LIBS
19437 LIBS="-ldl  $LIBS"
19438 cat >conftest.$ac_ext <<_ACEOF
19439 /* confdefs.h.  */
19440 _ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h.  */
19444
19445 /* Override any gcc2 internal prototype to avoid an error.  */
19446 #ifdef __cplusplus
19447 extern "C"
19448 #endif
19449 /* We use char because int might match the return type of a gcc2
19450    builtin and then its argument prototype would still apply.  */
19451 char dlopen ();
19452 int
19453 main ()
19454 {
19455 dlopen ();
19456   ;
19457   return 0;
19458 }
19459 _ACEOF
19460 rm -f conftest.$ac_objext conftest$ac_exeext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19462   (eval $ac_link) 2>conftest.er1
19463   ac_status=$?
19464   grep -v '^ *+' conftest.er1 >conftest.err
19465   rm -f conftest.er1
19466   cat conftest.err >&5
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); } &&
19469          { ac_try='test -z "$ac_c_werror_flag"
19470                          || test ! -s conftest.err'
19471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472   (eval $ac_try) 2>&5
19473   ac_status=$?
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); }; } &&
19476          { ac_try='test -s conftest$ac_exeext'
19477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478   (eval $ac_try) 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); }; }; then
19482   ac_cv_lib_dl_dlopen=yes
19483 else
19484   echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487 ac_cv_lib_dl_dlopen=no
19488 fi
19489 rm -f conftest.err conftest.$ac_objext \
19490       conftest$ac_exeext conftest.$ac_ext
19491 LIBS=$ac_check_lib_save_LIBS
19492 fi
19493 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19494 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19495 if test $ac_cv_lib_dl_dlopen = yes; then
19496   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19497 else
19498
19499     lt_cv_dlopen="dyld"
19500     lt_cv_dlopen_libs=
19501     lt_cv_dlopen_self=yes
19502
19503 fi
19504
19505    ;;
19506
19507   *)
19508     echo "$as_me:$LINENO: checking for shl_load" >&5
19509 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19510 if test "${ac_cv_func_shl_load+set}" = set; then
19511   echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513   cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h.  */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h.  */
19519 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19521 #define shl_load innocuous_shl_load
19522
19523 /* System header to define __stub macros and hopefully few prototypes,
19524     which can conflict with char shl_load (); below.
19525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19526     <limits.h> exists even on freestanding compilers.  */
19527
19528 #ifdef __STDC__
19529 # include <limits.h>
19530 #else
19531 # include <assert.h>
19532 #endif
19533
19534 #undef shl_load
19535
19536 /* Override any gcc2 internal prototype to avoid an error.  */
19537 #ifdef __cplusplus
19538 extern "C"
19539 {
19540 #endif
19541 /* We use char because int might match the return type of a gcc2
19542    builtin and then its argument prototype would still apply.  */
19543 char shl_load ();
19544 /* The GNU C library defines this for functions which it implements
19545     to always fail with ENOSYS.  Some functions are actually named
19546     something starting with __ and the normal name is an alias.  */
19547 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19548 choke me
19549 #else
19550 char (*f) () = shl_load;
19551 #endif
19552 #ifdef __cplusplus
19553 }
19554 #endif
19555
19556 int
19557 main ()
19558 {
19559 return f != shl_load;
19560   ;
19561   return 0;
19562 }
19563 _ACEOF
19564 rm -f conftest.$ac_objext conftest$ac_exeext
19565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19566   (eval $ac_link) 2>conftest.er1
19567   ac_status=$?
19568   grep -v '^ *+' conftest.er1 >conftest.err
19569   rm -f conftest.er1
19570   cat conftest.err >&5
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); } &&
19573          { ac_try='test -z "$ac_c_werror_flag"
19574                          || test ! -s conftest.err'
19575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576   (eval $ac_try) 2>&5
19577   ac_status=$?
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); }; } &&
19580          { ac_try='test -s conftest$ac_exeext'
19581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582   (eval $ac_try) 2>&5
19583   ac_status=$?
19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); }; }; then
19586   ac_cv_func_shl_load=yes
19587 else
19588   echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19590
19591 ac_cv_func_shl_load=no
19592 fi
19593 rm -f conftest.err conftest.$ac_objext \
19594       conftest$ac_exeext conftest.$ac_ext
19595 fi
19596 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19597 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19598 if test $ac_cv_func_shl_load = yes; then
19599   lt_cv_dlopen="shl_load"
19600 else
19601   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19602 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19603 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19604   echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606   ac_check_lib_save_LIBS=$LIBS
19607 LIBS="-ldld  $LIBS"
19608 cat >conftest.$ac_ext <<_ACEOF
19609 /* confdefs.h.  */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h.  */
19614
19615 /* Override any gcc2 internal prototype to avoid an error.  */
19616 #ifdef __cplusplus
19617 extern "C"
19618 #endif
19619 /* We use char because int might match the return type of a gcc2
19620    builtin and then its argument prototype would still apply.  */
19621 char shl_load ();
19622 int
19623 main ()
19624 {
19625 shl_load ();
19626   ;
19627   return 0;
19628 }
19629 _ACEOF
19630 rm -f conftest.$ac_objext conftest$ac_exeext
19631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19632   (eval $ac_link) 2>conftest.er1
19633   ac_status=$?
19634   grep -v '^ *+' conftest.er1 >conftest.err
19635   rm -f conftest.er1
19636   cat conftest.err >&5
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); } &&
19639          { ac_try='test -z "$ac_c_werror_flag"
19640                          || test ! -s conftest.err'
19641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642   (eval $ac_try) 2>&5
19643   ac_status=$?
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); }; } &&
19646          { ac_try='test -s conftest$ac_exeext'
19647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648   (eval $ac_try) 2>&5
19649   ac_status=$?
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); }; }; then
19652   ac_cv_lib_dld_shl_load=yes
19653 else
19654   echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657 ac_cv_lib_dld_shl_load=no
19658 fi
19659 rm -f conftest.err conftest.$ac_objext \
19660       conftest$ac_exeext conftest.$ac_ext
19661 LIBS=$ac_check_lib_save_LIBS
19662 fi
19663 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19664 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19665 if test $ac_cv_lib_dld_shl_load = yes; then
19666   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19667 else
19668   echo "$as_me:$LINENO: checking for dlopen" >&5
19669 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19670 if test "${ac_cv_func_dlopen+set}" = set; then
19671   echo $ECHO_N "(cached) $ECHO_C" >&6
19672 else
19673   cat >conftest.$ac_ext <<_ACEOF
19674 /* confdefs.h.  */
19675 _ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h.  */
19679 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19681 #define dlopen innocuous_dlopen
19682
19683 /* System header to define __stub macros and hopefully few prototypes,
19684     which can conflict with char dlopen (); below.
19685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19686     <limits.h> exists even on freestanding compilers.  */
19687
19688 #ifdef __STDC__
19689 # include <limits.h>
19690 #else
19691 # include <assert.h>
19692 #endif
19693
19694 #undef dlopen
19695
19696 /* Override any gcc2 internal prototype to avoid an error.  */
19697 #ifdef __cplusplus
19698 extern "C"
19699 {
19700 #endif
19701 /* We use char because int might match the return type of a gcc2
19702    builtin and then its argument prototype would still apply.  */
19703 char dlopen ();
19704 /* The GNU C library defines this for functions which it implements
19705     to always fail with ENOSYS.  Some functions are actually named
19706     something starting with __ and the normal name is an alias.  */
19707 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19708 choke me
19709 #else
19710 char (*f) () = dlopen;
19711 #endif
19712 #ifdef __cplusplus
19713 }
19714 #endif
19715
19716 int
19717 main ()
19718 {
19719 return f != dlopen;
19720   ;
19721   return 0;
19722 }
19723 _ACEOF
19724 rm -f conftest.$ac_objext conftest$ac_exeext
19725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19726   (eval $ac_link) 2>conftest.er1
19727   ac_status=$?
19728   grep -v '^ *+' conftest.er1 >conftest.err
19729   rm -f conftest.er1
19730   cat conftest.err >&5
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); } &&
19733          { ac_try='test -z "$ac_c_werror_flag"
19734                          || test ! -s conftest.err'
19735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736   (eval $ac_try) 2>&5
19737   ac_status=$?
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); }; } &&
19740          { ac_try='test -s conftest$ac_exeext'
19741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742   (eval $ac_try) 2>&5
19743   ac_status=$?
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); }; }; then
19746   ac_cv_func_dlopen=yes
19747 else
19748   echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19750
19751 ac_cv_func_dlopen=no
19752 fi
19753 rm -f conftest.err conftest.$ac_objext \
19754       conftest$ac_exeext conftest.$ac_ext
19755 fi
19756 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19757 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19758 if test $ac_cv_func_dlopen = yes; then
19759   lt_cv_dlopen="dlopen"
19760 else
19761   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19762 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19763 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19764   echo $ECHO_N "(cached) $ECHO_C" >&6
19765 else
19766   ac_check_lib_save_LIBS=$LIBS
19767 LIBS="-ldl  $LIBS"
19768 cat >conftest.$ac_ext <<_ACEOF
19769 /* confdefs.h.  */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h.  */
19774
19775 /* Override any gcc2 internal prototype to avoid an error.  */
19776 #ifdef __cplusplus
19777 extern "C"
19778 #endif
19779 /* We use char because int might match the return type of a gcc2
19780    builtin and then its argument prototype would still apply.  */
19781 char dlopen ();
19782 int
19783 main ()
19784 {
19785 dlopen ();
19786   ;
19787   return 0;
19788 }
19789 _ACEOF
19790 rm -f conftest.$ac_objext conftest$ac_exeext
19791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19792   (eval $ac_link) 2>conftest.er1
19793   ac_status=$?
19794   grep -v '^ *+' conftest.er1 >conftest.err
19795   rm -f conftest.er1
19796   cat conftest.err >&5
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); } &&
19799          { ac_try='test -z "$ac_c_werror_flag"
19800                          || test ! -s conftest.err'
19801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802   (eval $ac_try) 2>&5
19803   ac_status=$?
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); }; } &&
19806          { ac_try='test -s conftest$ac_exeext'
19807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808   (eval $ac_try) 2>&5
19809   ac_status=$?
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); }; }; then
19812   ac_cv_lib_dl_dlopen=yes
19813 else
19814   echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19816
19817 ac_cv_lib_dl_dlopen=no
19818 fi
19819 rm -f conftest.err conftest.$ac_objext \
19820       conftest$ac_exeext conftest.$ac_ext
19821 LIBS=$ac_check_lib_save_LIBS
19822 fi
19823 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19824 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19825 if test $ac_cv_lib_dl_dlopen = yes; then
19826   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19827 else
19828   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19829 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19830 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19831   echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833   ac_check_lib_save_LIBS=$LIBS
19834 LIBS="-lsvld  $LIBS"
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h.  */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h.  */
19841
19842 /* Override any gcc2 internal prototype to avoid an error.  */
19843 #ifdef __cplusplus
19844 extern "C"
19845 #endif
19846 /* We use char because int might match the return type of a gcc2
19847    builtin and then its argument prototype would still apply.  */
19848 char dlopen ();
19849 int
19850 main ()
19851 {
19852 dlopen ();
19853   ;
19854   return 0;
19855 }
19856 _ACEOF
19857 rm -f conftest.$ac_objext conftest$ac_exeext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19859   (eval $ac_link) 2>conftest.er1
19860   ac_status=$?
19861   grep -v '^ *+' conftest.er1 >conftest.err
19862   rm -f conftest.er1
19863   cat conftest.err >&5
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); } &&
19866          { ac_try='test -z "$ac_c_werror_flag"
19867                          || test ! -s conftest.err'
19868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869   (eval $ac_try) 2>&5
19870   ac_status=$?
19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); }; } &&
19873          { ac_try='test -s conftest$ac_exeext'
19874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875   (eval $ac_try) 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); }; }; then
19879   ac_cv_lib_svld_dlopen=yes
19880 else
19881   echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884 ac_cv_lib_svld_dlopen=no
19885 fi
19886 rm -f conftest.err conftest.$ac_objext \
19887       conftest$ac_exeext conftest.$ac_ext
19888 LIBS=$ac_check_lib_save_LIBS
19889 fi
19890 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19891 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19892 if test $ac_cv_lib_svld_dlopen = yes; then
19893   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19894 else
19895   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19896 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19897 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19898   echo $ECHO_N "(cached) $ECHO_C" >&6
19899 else
19900   ac_check_lib_save_LIBS=$LIBS
19901 LIBS="-ldld  $LIBS"
19902 cat >conftest.$ac_ext <<_ACEOF
19903 /* confdefs.h.  */
19904 _ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h.  */
19908
19909 /* Override any gcc2 internal prototype to avoid an error.  */
19910 #ifdef __cplusplus
19911 extern "C"
19912 #endif
19913 /* We use char because int might match the return type of a gcc2
19914    builtin and then its argument prototype would still apply.  */
19915 char dld_link ();
19916 int
19917 main ()
19918 {
19919 dld_link ();
19920   ;
19921   return 0;
19922 }
19923 _ACEOF
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19926   (eval $ac_link) 2>conftest.er1
19927   ac_status=$?
19928   grep -v '^ *+' conftest.er1 >conftest.err
19929   rm -f conftest.er1
19930   cat conftest.err >&5
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); } &&
19933          { ac_try='test -z "$ac_c_werror_flag"
19934                          || test ! -s conftest.err'
19935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936   (eval $ac_try) 2>&5
19937   ac_status=$?
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); }; } &&
19940          { ac_try='test -s conftest$ac_exeext'
19941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942   (eval $ac_try) 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); }; }; then
19946   ac_cv_lib_dld_dld_link=yes
19947 else
19948   echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19950
19951 ac_cv_lib_dld_dld_link=no
19952 fi
19953 rm -f conftest.err conftest.$ac_objext \
19954       conftest$ac_exeext conftest.$ac_ext
19955 LIBS=$ac_check_lib_save_LIBS
19956 fi
19957 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19958 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19959 if test $ac_cv_lib_dld_dld_link = yes; then
19960   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19961 fi
19962
19963
19964 fi
19965
19966
19967 fi
19968
19969
19970 fi
19971
19972
19973 fi
19974
19975
19976 fi
19977
19978     ;;
19979   esac
19980
19981   if test "x$lt_cv_dlopen" != xno; then
19982     enable_dlopen=yes
19983   else
19984     enable_dlopen=no
19985   fi
19986
19987   case $lt_cv_dlopen in
19988   dlopen)
19989     save_CPPFLAGS="$CPPFLAGS"
19990     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19991
19992     save_LDFLAGS="$LDFLAGS"
19993     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19994
19995     save_LIBS="$LIBS"
19996     LIBS="$lt_cv_dlopen_libs $LIBS"
19997
19998     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19999 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20000 if test "${lt_cv_dlopen_self+set}" = set; then
20001   echo $ECHO_N "(cached) $ECHO_C" >&6
20002 else
20003           if test "$cross_compiling" = yes; then :
20004   lt_cv_dlopen_self=cross
20005 else
20006   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20007   lt_status=$lt_dlunknown
20008   cat > conftest.$ac_ext <<EOF
20009 #line 20009 "configure"
20010 #include "confdefs.h"
20011
20012 #if HAVE_DLFCN_H
20013 #include <dlfcn.h>
20014 #endif
20015
20016 #include <stdio.h>
20017
20018 #ifdef RTLD_GLOBAL
20019 #  define LT_DLGLOBAL           RTLD_GLOBAL
20020 #else
20021 #  ifdef DL_GLOBAL
20022 #    define LT_DLGLOBAL         DL_GLOBAL
20023 #  else
20024 #    define LT_DLGLOBAL         0
20025 #  endif
20026 #endif
20027
20028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20029    find out it does not work in some platform. */
20030 #ifndef LT_DLLAZY_OR_NOW
20031 #  ifdef RTLD_LAZY
20032 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20033 #  else
20034 #    ifdef DL_LAZY
20035 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20036 #    else
20037 #      ifdef RTLD_NOW
20038 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20039 #      else
20040 #        ifdef DL_NOW
20041 #          define LT_DLLAZY_OR_NOW      DL_NOW
20042 #        else
20043 #          define LT_DLLAZY_OR_NOW      0
20044 #        endif
20045 #      endif
20046 #    endif
20047 #  endif
20048 #endif
20049
20050 #ifdef __cplusplus
20051 extern "C" void exit (int);
20052 #endif
20053
20054 void fnord() { int i=42;}
20055 int main ()
20056 {
20057   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20058   int status = $lt_dlunknown;
20059
20060   if (self)
20061     {
20062       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20063       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20064       /* dlclose (self); */
20065     }
20066
20067     exit (status);
20068 }
20069 EOF
20070   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20071   (eval $ac_link) 2>&5
20072   ac_status=$?
20073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20075     (./conftest; exit; ) 2>/dev/null
20076     lt_status=$?
20077     case x$lt_status in
20078       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20079       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20080       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20081     esac
20082   else :
20083     # compilation failed
20084     lt_cv_dlopen_self=no
20085   fi
20086 fi
20087 rm -fr conftest*
20088
20089
20090 fi
20091 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20092 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20093
20094     if test "x$lt_cv_dlopen_self" = xyes; then
20095       LDFLAGS="$LDFLAGS $link_static_flag"
20096       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20097 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20098 if test "${lt_cv_dlopen_self_static+set}" = set; then
20099   echo $ECHO_N "(cached) $ECHO_C" >&6
20100 else
20101           if test "$cross_compiling" = yes; then :
20102   lt_cv_dlopen_self_static=cross
20103 else
20104   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20105   lt_status=$lt_dlunknown
20106   cat > conftest.$ac_ext <<EOF
20107 #line 20107 "configure"
20108 #include "confdefs.h"
20109
20110 #if HAVE_DLFCN_H
20111 #include <dlfcn.h>
20112 #endif
20113
20114 #include <stdio.h>
20115
20116 #ifdef RTLD_GLOBAL
20117 #  define LT_DLGLOBAL           RTLD_GLOBAL
20118 #else
20119 #  ifdef DL_GLOBAL
20120 #    define LT_DLGLOBAL         DL_GLOBAL
20121 #  else
20122 #    define LT_DLGLOBAL         0
20123 #  endif
20124 #endif
20125
20126 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20127    find out it does not work in some platform. */
20128 #ifndef LT_DLLAZY_OR_NOW
20129 #  ifdef RTLD_LAZY
20130 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20131 #  else
20132 #    ifdef DL_LAZY
20133 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20134 #    else
20135 #      ifdef RTLD_NOW
20136 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20137 #      else
20138 #        ifdef DL_NOW
20139 #          define LT_DLLAZY_OR_NOW      DL_NOW
20140 #        else
20141 #          define LT_DLLAZY_OR_NOW      0
20142 #        endif
20143 #      endif
20144 #    endif
20145 #  endif
20146 #endif
20147
20148 #ifdef __cplusplus
20149 extern "C" void exit (int);
20150 #endif
20151
20152 void fnord() { int i=42;}
20153 int main ()
20154 {
20155   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20156   int status = $lt_dlunknown;
20157
20158   if (self)
20159     {
20160       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20161       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20162       /* dlclose (self); */
20163     }
20164
20165     exit (status);
20166 }
20167 EOF
20168   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20169   (eval $ac_link) 2>&5
20170   ac_status=$?
20171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20173     (./conftest; exit; ) 2>/dev/null
20174     lt_status=$?
20175     case x$lt_status in
20176       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20177       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20178       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20179     esac
20180   else :
20181     # compilation failed
20182     lt_cv_dlopen_self_static=no
20183   fi
20184 fi
20185 rm -fr conftest*
20186
20187
20188 fi
20189 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20190 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20191     fi
20192
20193     CPPFLAGS="$save_CPPFLAGS"
20194     LDFLAGS="$save_LDFLAGS"
20195     LIBS="$save_LIBS"
20196     ;;
20197   esac
20198
20199   case $lt_cv_dlopen_self in
20200   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20201   *) enable_dlopen_self=unknown ;;
20202   esac
20203
20204   case $lt_cv_dlopen_self_static in
20205   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20206   *) enable_dlopen_self_static=unknown ;;
20207   esac
20208 fi
20209
20210
20211 # The else clause should only fire when bootstrapping the
20212 # libtool distribution, otherwise you forgot to ship ltmain.sh
20213 # with your package, and you will get complaints that there are
20214 # no rules to generate ltmain.sh.
20215 if test -f "$ltmain"; then
20216   # See if we are running on zsh, and set the options which allow our commands through
20217   # without removal of \ escapes.
20218   if test -n "${ZSH_VERSION+set}" ; then
20219     setopt NO_GLOB_SUBST
20220   fi
20221   # Now quote all the things that may contain metacharacters while being
20222   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20223   # variables and quote the copies for generation of the libtool script.
20224   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20225     SED SHELL STRIP \
20226     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20227     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20228     deplibs_check_method reload_flag reload_cmds need_locks \
20229     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20230     lt_cv_sys_global_symbol_to_c_name_address \
20231     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20232     old_postinstall_cmds old_postuninstall_cmds \
20233     compiler_GCJ \
20234     CC_GCJ \
20235     LD_GCJ \
20236     lt_prog_compiler_wl_GCJ \
20237     lt_prog_compiler_pic_GCJ \
20238     lt_prog_compiler_static_GCJ \
20239     lt_prog_compiler_no_builtin_flag_GCJ \
20240     export_dynamic_flag_spec_GCJ \
20241     thread_safe_flag_spec_GCJ \
20242     whole_archive_flag_spec_GCJ \
20243     enable_shared_with_static_runtimes_GCJ \
20244     old_archive_cmds_GCJ \
20245     old_archive_from_new_cmds_GCJ \
20246     predep_objects_GCJ \
20247     postdep_objects_GCJ \
20248     predeps_GCJ \
20249     postdeps_GCJ \
20250     compiler_lib_search_path_GCJ \
20251     archive_cmds_GCJ \
20252     archive_expsym_cmds_GCJ \
20253     postinstall_cmds_GCJ \
20254     postuninstall_cmds_GCJ \
20255     old_archive_from_expsyms_cmds_GCJ \
20256     allow_undefined_flag_GCJ \
20257     no_undefined_flag_GCJ \
20258     export_symbols_cmds_GCJ \
20259     hardcode_libdir_flag_spec_GCJ \
20260     hardcode_libdir_flag_spec_ld_GCJ \
20261     hardcode_libdir_separator_GCJ \
20262     hardcode_automatic_GCJ \
20263     module_cmds_GCJ \
20264     module_expsym_cmds_GCJ \
20265     lt_cv_prog_compiler_c_o_GCJ \
20266     exclude_expsyms_GCJ \
20267     include_expsyms_GCJ; do
20268
20269     case $var in
20270     old_archive_cmds_GCJ | \
20271     old_archive_from_new_cmds_GCJ | \
20272     archive_cmds_GCJ | \
20273     archive_expsym_cmds_GCJ | \
20274     module_cmds_GCJ | \
20275     module_expsym_cmds_GCJ | \
20276     old_archive_from_expsyms_cmds_GCJ | \
20277     export_symbols_cmds_GCJ | \
20278     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20279     postinstall_cmds | postuninstall_cmds | \
20280     old_postinstall_cmds | old_postuninstall_cmds | \
20281     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20282       # Double-quote double-evaled strings.
20283       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20284       ;;
20285     *)
20286       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20287       ;;
20288     esac
20289   done
20290
20291   case $lt_echo in
20292   *'\$0 --fallback-echo"')
20293     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20294     ;;
20295   esac
20296
20297 cfgfile="$ofile"
20298
20299   cat <<__EOF__ >> "$cfgfile"
20300 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20301
20302 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20303
20304 # Shell to use when invoking shell scripts.
20305 SHELL=$lt_SHELL
20306
20307 # Whether or not to build shared libraries.
20308 build_libtool_libs=$enable_shared
20309
20310 # Whether or not to build static libraries.
20311 build_old_libs=$enable_static
20312
20313 # Whether or not to add -lc for building shared libraries.
20314 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20315
20316 # Whether or not to disallow shared libs when runtime libs are static
20317 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20318
20319 # Whether or not to optimize for fast installation.
20320 fast_install=$enable_fast_install
20321
20322 # The host system.
20323 host_alias=$host_alias
20324 host=$host
20325
20326 # An echo program that does not interpret backslashes.
20327 echo=$lt_echo
20328
20329 # The archiver.
20330 AR=$lt_AR
20331 AR_FLAGS=$lt_AR_FLAGS
20332
20333 # A C compiler.
20334 LTCC=$lt_LTCC
20335
20336 # A language-specific compiler.
20337 CC=$lt_compiler_GCJ
20338
20339 # Is the compiler the GNU C compiler?
20340 with_gcc=$GCC_GCJ
20341
20342 # An ERE matcher.
20343 EGREP=$lt_EGREP
20344
20345 # The linker used to build libraries.
20346 LD=$lt_LD_GCJ
20347
20348 # Whether we need hard or soft links.
20349 LN_S=$lt_LN_S
20350
20351 # A BSD-compatible nm program.
20352 NM=$lt_NM
20353
20354 # A symbol stripping program
20355 STRIP=$lt_STRIP
20356
20357 # Used to examine libraries when file_magic_cmd begins "file"
20358 MAGIC_CMD=$MAGIC_CMD
20359
20360 # Used on cygwin: DLL creation program.
20361 DLLTOOL="$DLLTOOL"
20362
20363 # Used on cygwin: object dumper.
20364 OBJDUMP="$OBJDUMP"
20365
20366 # Used on cygwin: assembler.
20367 AS="$AS"
20368
20369 # The name of the directory that contains temporary libtool files.
20370 objdir=$objdir
20371
20372 # How to create reloadable object files.
20373 reload_flag=$lt_reload_flag
20374 reload_cmds=$lt_reload_cmds
20375
20376 # How to pass a linker flag through the compiler.
20377 wl=$lt_lt_prog_compiler_wl_GCJ
20378
20379 # Object file suffix (normally "o").
20380 objext="$ac_objext"
20381
20382 # Old archive suffix (normally "a").
20383 libext="$libext"
20384
20385 # Shared library suffix (normally ".so").
20386 shrext_cmds='$shrext_cmds'
20387
20388 # Executable file suffix (normally "").
20389 exeext="$exeext"
20390
20391 # Additional compiler flags for building library objects.
20392 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20393 pic_mode=$pic_mode
20394
20395 # What is the maximum length of a command?
20396 max_cmd_len=$lt_cv_sys_max_cmd_len
20397
20398 # Does compiler simultaneously support -c and -o options?
20399 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20400
20401 # Must we lock files when doing compilation ?
20402 need_locks=$lt_need_locks
20403
20404 # Do we need the lib prefix for modules?
20405 need_lib_prefix=$need_lib_prefix
20406
20407 # Do we need a version for libraries?
20408 need_version=$need_version
20409
20410 # Whether dlopen is supported.
20411 dlopen_support=$enable_dlopen
20412
20413 # Whether dlopen of programs is supported.
20414 dlopen_self=$enable_dlopen_self
20415
20416 # Whether dlopen of statically linked programs is supported.
20417 dlopen_self_static=$enable_dlopen_self_static
20418
20419 # Compiler flag to prevent dynamic linking.
20420 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20421
20422 # Compiler flag to turn off builtin functions.
20423 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20424
20425 # Compiler flag to allow reflexive dlopens.
20426 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20427
20428 # Compiler flag to generate shared objects directly from archives.
20429 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20430
20431 # Compiler flag to generate thread-safe objects.
20432 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20433
20434 # Library versioning type.
20435 version_type=$version_type
20436
20437 # Format of library name prefix.
20438 libname_spec=$lt_libname_spec
20439
20440 # List of archive names.  First name is the real one, the rest are links.
20441 # The last name is the one that the linker finds with -lNAME.
20442 library_names_spec=$lt_library_names_spec
20443
20444 # The coded name of the library, if different from the real name.
20445 soname_spec=$lt_soname_spec
20446
20447 # Commands used to build and install an old-style archive.
20448 RANLIB=$lt_RANLIB
20449 old_archive_cmds=$lt_old_archive_cmds_GCJ
20450 old_postinstall_cmds=$lt_old_postinstall_cmds
20451 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20452
20453 # Create an old-style archive from a shared archive.
20454 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20455
20456 # Create a temporary old-style archive to link instead of a shared archive.
20457 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20458
20459 # Commands used to build and install a shared archive.
20460 archive_cmds=$lt_archive_cmds_GCJ
20461 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20462 postinstall_cmds=$lt_postinstall_cmds
20463 postuninstall_cmds=$lt_postuninstall_cmds
20464
20465 # Commands used to build a loadable module (assumed same as above if empty)
20466 module_cmds=$lt_module_cmds_GCJ
20467 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20468
20469 # Commands to strip libraries.
20470 old_striplib=$lt_old_striplib
20471 striplib=$lt_striplib
20472
20473 # Dependencies to place before the objects being linked to create a
20474 # shared library.
20475 predep_objects=$lt_predep_objects_GCJ
20476
20477 # Dependencies to place after the objects being linked to create a
20478 # shared library.
20479 postdep_objects=$lt_postdep_objects_GCJ
20480
20481 # Dependencies to place before the objects being linked to create a
20482 # shared library.
20483 predeps=$lt_predeps_GCJ
20484
20485 # Dependencies to place after the objects being linked to create a
20486 # shared library.
20487 postdeps=$lt_postdeps_GCJ
20488
20489 # The library search path used internally by the compiler when linking
20490 # a shared library.
20491 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20492
20493 # Method to check whether dependent libraries are shared objects.
20494 deplibs_check_method=$lt_deplibs_check_method
20495
20496 # Command to use when deplibs_check_method == file_magic.
20497 file_magic_cmd=$lt_file_magic_cmd
20498
20499 # Flag that allows shared libraries with undefined symbols to be built.
20500 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20501
20502 # Flag that forces no undefined symbols.
20503 no_undefined_flag=$lt_no_undefined_flag_GCJ
20504
20505 # Commands used to finish a libtool library installation in a directory.
20506 finish_cmds=$lt_finish_cmds
20507
20508 # Same as above, but a single script fragment to be evaled but not shown.
20509 finish_eval=$lt_finish_eval
20510
20511 # Take the output of nm and produce a listing of raw symbols and C names.
20512 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20513
20514 # Transform the output of nm in a proper C declaration
20515 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20516
20517 # Transform the output of nm in a C name address pair
20518 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20519
20520 # This is the shared library runtime path variable.
20521 runpath_var=$runpath_var
20522
20523 # This is the shared library path variable.
20524 shlibpath_var=$shlibpath_var
20525
20526 # Is shlibpath searched before the hard-coded library search path?
20527 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20528
20529 # How to hardcode a shared library path into an executable.
20530 hardcode_action=$hardcode_action_GCJ
20531
20532 # Whether we should hardcode library paths into libraries.
20533 hardcode_into_libs=$hardcode_into_libs
20534
20535 # Flag to hardcode \$libdir into a binary during linking.
20536 # This must work even if \$libdir does not exist.
20537 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20538
20539 # If ld is used when linking, flag to hardcode \$libdir into
20540 # a binary during linking. This must work even if \$libdir does
20541 # not exist.
20542 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20543
20544 # Whether we need a single -rpath flag with a separated argument.
20545 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20546
20547 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20548 # resulting binary.
20549 hardcode_direct=$hardcode_direct_GCJ
20550
20551 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20552 # resulting binary.
20553 hardcode_minus_L=$hardcode_minus_L_GCJ
20554
20555 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20556 # the resulting binary.
20557 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20558
20559 # Set to yes if building a shared library automatically hardcodes DIR into the library
20560 # and all subsequent libraries and executables linked against it.
20561 hardcode_automatic=$hardcode_automatic_GCJ
20562
20563 # Variables whose values should be saved in libtool wrapper scripts and
20564 # restored at relink time.
20565 variables_saved_for_relink="$variables_saved_for_relink"
20566
20567 # Whether libtool must link a program against all its dependency libraries.
20568 link_all_deplibs=$link_all_deplibs_GCJ
20569
20570 # Compile-time system search path for libraries
20571 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20572
20573 # Run-time system search path for libraries
20574 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20575
20576 # Fix the shell variable \$srcfile for the compiler.
20577 fix_srcfile_path="$fix_srcfile_path_GCJ"
20578
20579 # Set to yes if exported symbols are required.
20580 always_export_symbols=$always_export_symbols_GCJ
20581
20582 # The commands to list exported symbols.
20583 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20584
20585 # The commands to extract the exported symbol list from a shared archive.
20586 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20587
20588 # Symbols that should not be listed in the preloaded symbols.
20589 exclude_expsyms=$lt_exclude_expsyms_GCJ
20590
20591 # Symbols that must always be exported.
20592 include_expsyms=$lt_include_expsyms_GCJ
20593
20594 # ### END LIBTOOL TAG CONFIG: $tagname
20595
20596 __EOF__
20597
20598
20599 else
20600   # If there is no Makefile yet, we rely on a make rule to execute
20601   # `config.status --recheck' to rerun these tests and create the
20602   # libtool script then.
20603   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20604   if test -f "$ltmain_in"; then
20605     test -f Makefile && make "$ltmain"
20606   fi
20607 fi
20608
20609
20610 ac_ext=c
20611 ac_cpp='$CPP $CPPFLAGS'
20612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20615
20616 CC="$lt_save_CC"
20617
20618         else
20619           tagname=""
20620         fi
20621         ;;
20622
20623       RC)
20624
20625
20626
20627 # Source file extension for RC test sources.
20628 ac_ext=rc
20629
20630 # Object file extension for compiled RC test sources.
20631 objext=o
20632 objext_RC=$objext
20633
20634 # Code to be used in simple compile tests
20635 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20636
20637 # Code to be used in simple link tests
20638 lt_simple_link_test_code="$lt_simple_compile_test_code"
20639
20640 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20641
20642 # If no C compiler was specified, use CC.
20643 LTCC=${LTCC-"$CC"}
20644
20645 # Allow CC to be a program name with arguments.
20646 compiler=$CC
20647
20648
20649 # Allow CC to be a program name with arguments.
20650 lt_save_CC="$CC"
20651 CC=${RC-"windres"}
20652 compiler=$CC
20653 compiler_RC=$CC
20654 lt_cv_prog_compiler_c_o_RC=yes
20655
20656 # The else clause should only fire when bootstrapping the
20657 # libtool distribution, otherwise you forgot to ship ltmain.sh
20658 # with your package, and you will get complaints that there are
20659 # no rules to generate ltmain.sh.
20660 if test -f "$ltmain"; then
20661   # See if we are running on zsh, and set the options which allow our commands through
20662   # without removal of \ escapes.
20663   if test -n "${ZSH_VERSION+set}" ; then
20664     setopt NO_GLOB_SUBST
20665   fi
20666   # Now quote all the things that may contain metacharacters while being
20667   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20668   # variables and quote the copies for generation of the libtool script.
20669   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20670     SED SHELL STRIP \
20671     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20672     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20673     deplibs_check_method reload_flag reload_cmds need_locks \
20674     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20675     lt_cv_sys_global_symbol_to_c_name_address \
20676     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20677     old_postinstall_cmds old_postuninstall_cmds \
20678     compiler_RC \
20679     CC_RC \
20680     LD_RC \
20681     lt_prog_compiler_wl_RC \
20682     lt_prog_compiler_pic_RC \
20683     lt_prog_compiler_static_RC \
20684     lt_prog_compiler_no_builtin_flag_RC \
20685     export_dynamic_flag_spec_RC \
20686     thread_safe_flag_spec_RC \
20687     whole_archive_flag_spec_RC \
20688     enable_shared_with_static_runtimes_RC \
20689     old_archive_cmds_RC \
20690     old_archive_from_new_cmds_RC \
20691     predep_objects_RC \
20692     postdep_objects_RC \
20693     predeps_RC \
20694     postdeps_RC \
20695     compiler_lib_search_path_RC \
20696     archive_cmds_RC \
20697     archive_expsym_cmds_RC \
20698     postinstall_cmds_RC \
20699     postuninstall_cmds_RC \
20700     old_archive_from_expsyms_cmds_RC \
20701     allow_undefined_flag_RC \
20702     no_undefined_flag_RC \
20703     export_symbols_cmds_RC \
20704     hardcode_libdir_flag_spec_RC \
20705     hardcode_libdir_flag_spec_ld_RC \
20706     hardcode_libdir_separator_RC \
20707     hardcode_automatic_RC \
20708     module_cmds_RC \
20709     module_expsym_cmds_RC \
20710     lt_cv_prog_compiler_c_o_RC \
20711     exclude_expsyms_RC \
20712     include_expsyms_RC; do
20713
20714     case $var in
20715     old_archive_cmds_RC | \
20716     old_archive_from_new_cmds_RC | \
20717     archive_cmds_RC | \
20718     archive_expsym_cmds_RC | \
20719     module_cmds_RC | \
20720     module_expsym_cmds_RC | \
20721     old_archive_from_expsyms_cmds_RC | \
20722     export_symbols_cmds_RC | \
20723     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20724     postinstall_cmds | postuninstall_cmds | \
20725     old_postinstall_cmds | old_postuninstall_cmds | \
20726     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20727       # Double-quote double-evaled strings.
20728       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20729       ;;
20730     *)
20731       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20732       ;;
20733     esac
20734   done
20735
20736   case $lt_echo in
20737   *'\$0 --fallback-echo"')
20738     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20739     ;;
20740   esac
20741
20742 cfgfile="$ofile"
20743
20744   cat <<__EOF__ >> "$cfgfile"
20745 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20746
20747 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20748
20749 # Shell to use when invoking shell scripts.
20750 SHELL=$lt_SHELL
20751
20752 # Whether or not to build shared libraries.
20753 build_libtool_libs=$enable_shared
20754
20755 # Whether or not to build static libraries.
20756 build_old_libs=$enable_static
20757
20758 # Whether or not to add -lc for building shared libraries.
20759 build_libtool_need_lc=$archive_cmds_need_lc_RC
20760
20761 # Whether or not to disallow shared libs when runtime libs are static
20762 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20763
20764 # Whether or not to optimize for fast installation.
20765 fast_install=$enable_fast_install
20766
20767 # The host system.
20768 host_alias=$host_alias
20769 host=$host
20770
20771 # An echo program that does not interpret backslashes.
20772 echo=$lt_echo
20773
20774 # The archiver.
20775 AR=$lt_AR
20776 AR_FLAGS=$lt_AR_FLAGS
20777
20778 # A C compiler.
20779 LTCC=$lt_LTCC
20780
20781 # A language-specific compiler.
20782 CC=$lt_compiler_RC
20783
20784 # Is the compiler the GNU C compiler?
20785 with_gcc=$GCC_RC
20786
20787 # An ERE matcher.
20788 EGREP=$lt_EGREP
20789
20790 # The linker used to build libraries.
20791 LD=$lt_LD_RC
20792
20793 # Whether we need hard or soft links.
20794 LN_S=$lt_LN_S
20795
20796 # A BSD-compatible nm program.
20797 NM=$lt_NM
20798
20799 # A symbol stripping program
20800 STRIP=$lt_STRIP
20801
20802 # Used to examine libraries when file_magic_cmd begins "file"
20803 MAGIC_CMD=$MAGIC_CMD
20804
20805 # Used on cygwin: DLL creation program.
20806 DLLTOOL="$DLLTOOL"
20807
20808 # Used on cygwin: object dumper.
20809 OBJDUMP="$OBJDUMP"
20810
20811 # Used on cygwin: assembler.
20812 AS="$AS"
20813
20814 # The name of the directory that contains temporary libtool files.
20815 objdir=$objdir
20816
20817 # How to create reloadable object files.
20818 reload_flag=$lt_reload_flag
20819 reload_cmds=$lt_reload_cmds
20820
20821 # How to pass a linker flag through the compiler.
20822 wl=$lt_lt_prog_compiler_wl_RC
20823
20824 # Object file suffix (normally "o").
20825 objext="$ac_objext"
20826
20827 # Old archive suffix (normally "a").
20828 libext="$libext"
20829
20830 # Shared library suffix (normally ".so").
20831 shrext_cmds='$shrext_cmds'
20832
20833 # Executable file suffix (normally "").
20834 exeext="$exeext"
20835
20836 # Additional compiler flags for building library objects.
20837 pic_flag=$lt_lt_prog_compiler_pic_RC
20838 pic_mode=$pic_mode
20839
20840 # What is the maximum length of a command?
20841 max_cmd_len=$lt_cv_sys_max_cmd_len
20842
20843 # Does compiler simultaneously support -c and -o options?
20844 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20845
20846 # Must we lock files when doing compilation ?
20847 need_locks=$lt_need_locks
20848
20849 # Do we need the lib prefix for modules?
20850 need_lib_prefix=$need_lib_prefix
20851
20852 # Do we need a version for libraries?
20853 need_version=$need_version
20854
20855 # Whether dlopen is supported.
20856 dlopen_support=$enable_dlopen
20857
20858 # Whether dlopen of programs is supported.
20859 dlopen_self=$enable_dlopen_self
20860
20861 # Whether dlopen of statically linked programs is supported.
20862 dlopen_self_static=$enable_dlopen_self_static
20863
20864 # Compiler flag to prevent dynamic linking.
20865 link_static_flag=$lt_lt_prog_compiler_static_RC
20866
20867 # Compiler flag to turn off builtin functions.
20868 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20869
20870 # Compiler flag to allow reflexive dlopens.
20871 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20872
20873 # Compiler flag to generate shared objects directly from archives.
20874 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20875
20876 # Compiler flag to generate thread-safe objects.
20877 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20878
20879 # Library versioning type.
20880 version_type=$version_type
20881
20882 # Format of library name prefix.
20883 libname_spec=$lt_libname_spec
20884
20885 # List of archive names.  First name is the real one, the rest are links.
20886 # The last name is the one that the linker finds with -lNAME.
20887 library_names_spec=$lt_library_names_spec
20888
20889 # The coded name of the library, if different from the real name.
20890 soname_spec=$lt_soname_spec
20891
20892 # Commands used to build and install an old-style archive.
20893 RANLIB=$lt_RANLIB
20894 old_archive_cmds=$lt_old_archive_cmds_RC
20895 old_postinstall_cmds=$lt_old_postinstall_cmds
20896 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20897
20898 # Create an old-style archive from a shared archive.
20899 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20900
20901 # Create a temporary old-style archive to link instead of a shared archive.
20902 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20903
20904 # Commands used to build and install a shared archive.
20905 archive_cmds=$lt_archive_cmds_RC
20906 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20907 postinstall_cmds=$lt_postinstall_cmds
20908 postuninstall_cmds=$lt_postuninstall_cmds
20909
20910 # Commands used to build a loadable module (assumed same as above if empty)
20911 module_cmds=$lt_module_cmds_RC
20912 module_expsym_cmds=$lt_module_expsym_cmds_RC
20913
20914 # Commands to strip libraries.
20915 old_striplib=$lt_old_striplib
20916 striplib=$lt_striplib
20917
20918 # Dependencies to place before the objects being linked to create a
20919 # shared library.
20920 predep_objects=$lt_predep_objects_RC
20921
20922 # Dependencies to place after the objects being linked to create a
20923 # shared library.
20924 postdep_objects=$lt_postdep_objects_RC
20925
20926 # Dependencies to place before the objects being linked to create a
20927 # shared library.
20928 predeps=$lt_predeps_RC
20929
20930 # Dependencies to place after the objects being linked to create a
20931 # shared library.
20932 postdeps=$lt_postdeps_RC
20933
20934 # The library search path used internally by the compiler when linking
20935 # a shared library.
20936 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20937
20938 # Method to check whether dependent libraries are shared objects.
20939 deplibs_check_method=$lt_deplibs_check_method
20940
20941 # Command to use when deplibs_check_method == file_magic.
20942 file_magic_cmd=$lt_file_magic_cmd
20943
20944 # Flag that allows shared libraries with undefined symbols to be built.
20945 allow_undefined_flag=$lt_allow_undefined_flag_RC
20946
20947 # Flag that forces no undefined symbols.
20948 no_undefined_flag=$lt_no_undefined_flag_RC
20949
20950 # Commands used to finish a libtool library installation in a directory.
20951 finish_cmds=$lt_finish_cmds
20952
20953 # Same as above, but a single script fragment to be evaled but not shown.
20954 finish_eval=$lt_finish_eval
20955
20956 # Take the output of nm and produce a listing of raw symbols and C names.
20957 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20958
20959 # Transform the output of nm in a proper C declaration
20960 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20961
20962 # Transform the output of nm in a C name address pair
20963 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20964
20965 # This is the shared library runtime path variable.
20966 runpath_var=$runpath_var
20967
20968 # This is the shared library path variable.
20969 shlibpath_var=$shlibpath_var
20970
20971 # Is shlibpath searched before the hard-coded library search path?
20972 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20973
20974 # How to hardcode a shared library path into an executable.
20975 hardcode_action=$hardcode_action_RC
20976
20977 # Whether we should hardcode library paths into libraries.
20978 hardcode_into_libs=$hardcode_into_libs
20979
20980 # Flag to hardcode \$libdir into a binary during linking.
20981 # This must work even if \$libdir does not exist.
20982 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20983
20984 # If ld is used when linking, flag to hardcode \$libdir into
20985 # a binary during linking. This must work even if \$libdir does
20986 # not exist.
20987 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20988
20989 # Whether we need a single -rpath flag with a separated argument.
20990 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20991
20992 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20993 # resulting binary.
20994 hardcode_direct=$hardcode_direct_RC
20995
20996 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20997 # resulting binary.
20998 hardcode_minus_L=$hardcode_minus_L_RC
20999
21000 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21001 # the resulting binary.
21002 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21003
21004 # Set to yes if building a shared library automatically hardcodes DIR into the library
21005 # and all subsequent libraries and executables linked against it.
21006 hardcode_automatic=$hardcode_automatic_RC
21007
21008 # Variables whose values should be saved in libtool wrapper scripts and
21009 # restored at relink time.
21010 variables_saved_for_relink="$variables_saved_for_relink"
21011
21012 # Whether libtool must link a program against all its dependency libraries.
21013 link_all_deplibs=$link_all_deplibs_RC
21014
21015 # Compile-time system search path for libraries
21016 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21017
21018 # Run-time system search path for libraries
21019 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21020
21021 # Fix the shell variable \$srcfile for the compiler.
21022 fix_srcfile_path="$fix_srcfile_path_RC"
21023
21024 # Set to yes if exported symbols are required.
21025 always_export_symbols=$always_export_symbols_RC
21026
21027 # The commands to list exported symbols.
21028 export_symbols_cmds=$lt_export_symbols_cmds_RC
21029
21030 # The commands to extract the exported symbol list from a shared archive.
21031 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21032
21033 # Symbols that should not be listed in the preloaded symbols.
21034 exclude_expsyms=$lt_exclude_expsyms_RC
21035
21036 # Symbols that must always be exported.
21037 include_expsyms=$lt_include_expsyms_RC
21038
21039 # ### END LIBTOOL TAG CONFIG: $tagname
21040
21041 __EOF__
21042
21043
21044 else
21045   # If there is no Makefile yet, we rely on a make rule to execute
21046   # `config.status --recheck' to rerun these tests and create the
21047   # libtool script then.
21048   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21049   if test -f "$ltmain_in"; then
21050     test -f Makefile && make "$ltmain"
21051   fi
21052 fi
21053
21054
21055 ac_ext=c
21056 ac_cpp='$CPP $CPPFLAGS'
21057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21060
21061 CC="$lt_save_CC"
21062
21063         ;;
21064
21065       *)
21066         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21067 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21068    { (exit 1); exit 1; }; }
21069         ;;
21070       esac
21071
21072       # Append the new tag name to the list of available tags.
21073       if test -n "$tagname" ; then
21074       available_tags="$available_tags $tagname"
21075     fi
21076     fi
21077   done
21078   IFS="$lt_save_ifs"
21079
21080   # Now substitute the updated list of available tags.
21081   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21082     mv "${ofile}T" "$ofile"
21083     chmod +x "$ofile"
21084   else
21085     rm -f "${ofile}T"
21086     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21087 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21088    { (exit 1); exit 1; }; }
21089   fi
21090 fi
21091
21092
21093
21094 # This can be used to rebuild libtool when needed
21095 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21096
21097 # Always use our own libtool.
21098 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21099
21100 # Prevent multiple expansion
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122 ac_ext=c
21123 ac_cpp='$CPP $CPPFLAGS'
21124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21127
21128
21129 # Checks for typedefs, structures, and compiler characteristics.
21130 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21131 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21132 if test "${ac_cv_c_const+set}" = set; then
21133   echo $ECHO_N "(cached) $ECHO_C" >&6
21134 else
21135   cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h.  */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h.  */
21141
21142 int
21143 main ()
21144 {
21145 /* FIXME: Include the comments suggested by Paul. */
21146 #ifndef __cplusplus
21147   /* Ultrix mips cc rejects this.  */
21148   typedef int charset[2];
21149   const charset x;
21150   /* SunOS 4.1.1 cc rejects this.  */
21151   char const *const *ccp;
21152   char **p;
21153   /* NEC SVR4.0.2 mips cc rejects this.  */
21154   struct point {int x, y;};
21155   static struct point const zero = {0,0};
21156   /* AIX XL C 1.02.0.0 rejects this.
21157      It does not let you subtract one const X* pointer from another in
21158      an arm of an if-expression whose if-part is not a constant
21159      expression */
21160   const char *g = "string";
21161   ccp = &g + (g ? g-g : 0);
21162   /* HPUX 7.0 cc rejects these. */
21163   ++ccp;
21164   p = (char**) ccp;
21165   ccp = (char const *const *) p;
21166   { /* SCO 3.2v4 cc rejects this.  */
21167     char *t;
21168     char const *s = 0 ? (char *) 0 : (char const *) 0;
21169
21170     *t++ = 0;
21171   }
21172   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21173     int x[] = {25, 17};
21174     const int *foo = &x[0];
21175     ++foo;
21176   }
21177   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21178     typedef const int *iptr;
21179     iptr p = 0;
21180     ++p;
21181   }
21182   { /* AIX XL C 1.02.0.0 rejects this saying
21183        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21184     struct s { int j; const int *ap[3]; };
21185     struct s *b; b->j = 5;
21186   }
21187   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21188     const int foo = 10;
21189   }
21190 #endif
21191
21192   ;
21193   return 0;
21194 }
21195 _ACEOF
21196 rm -f conftest.$ac_objext
21197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21198   (eval $ac_compile) 2>conftest.er1
21199   ac_status=$?
21200   grep -v '^ *+' conftest.er1 >conftest.err
21201   rm -f conftest.er1
21202   cat conftest.err >&5
21203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204   (exit $ac_status); } &&
21205          { ac_try='test -z "$ac_c_werror_flag"
21206                          || test ! -s conftest.err'
21207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208   (eval $ac_try) 2>&5
21209   ac_status=$?
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); }; } &&
21212          { ac_try='test -s conftest.$ac_objext'
21213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214   (eval $ac_try) 2>&5
21215   ac_status=$?
21216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217   (exit $ac_status); }; }; then
21218   ac_cv_c_const=yes
21219 else
21220   echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21222
21223 ac_cv_c_const=no
21224 fi
21225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21226 fi
21227 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21228 echo "${ECHO_T}$ac_cv_c_const" >&6
21229 if test $ac_cv_c_const = no; then
21230
21231 cat >>confdefs.h <<\_ACEOF
21232 #define const
21233 _ACEOF
21234
21235 fi
21236
21237 echo "$as_me:$LINENO: checking for size_t" >&5
21238 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21239 if test "${ac_cv_type_size_t+set}" = set; then
21240   echo $ECHO_N "(cached) $ECHO_C" >&6
21241 else
21242   cat >conftest.$ac_ext <<_ACEOF
21243 /* confdefs.h.  */
21244 _ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h.  */
21248 $ac_includes_default
21249 int
21250 main ()
21251 {
21252 if ((size_t *) 0)
21253   return 0;
21254 if (sizeof (size_t))
21255   return 0;
21256   ;
21257   return 0;
21258 }
21259 _ACEOF
21260 rm -f conftest.$ac_objext
21261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21262   (eval $ac_compile) 2>conftest.er1
21263   ac_status=$?
21264   grep -v '^ *+' conftest.er1 >conftest.err
21265   rm -f conftest.er1
21266   cat conftest.err >&5
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); } &&
21269          { ac_try='test -z "$ac_c_werror_flag"
21270                          || test ! -s conftest.err'
21271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272   (eval $ac_try) 2>&5
21273   ac_status=$?
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); }; } &&
21276          { ac_try='test -s conftest.$ac_objext'
21277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278   (eval $ac_try) 2>&5
21279   ac_status=$?
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); }; }; then
21282   ac_cv_type_size_t=yes
21283 else
21284   echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21286
21287 ac_cv_type_size_t=no
21288 fi
21289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21290 fi
21291 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21292 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21293 if test $ac_cv_type_size_t = yes; then
21294   :
21295 else
21296
21297 cat >>confdefs.h <<_ACEOF
21298 #define size_t unsigned
21299 _ACEOF
21300
21301 fi
21302
21303 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21304 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21305 if test "${ac_cv_struct_tm+set}" = set; then
21306   echo $ECHO_N "(cached) $ECHO_C" >&6
21307 else
21308   cat >conftest.$ac_ext <<_ACEOF
21309 /* confdefs.h.  */
21310 _ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h.  */
21314 #include <sys/types.h>
21315 #include <time.h>
21316
21317 int
21318 main ()
21319 {
21320 struct tm *tp; tp->tm_sec;
21321   ;
21322   return 0;
21323 }
21324 _ACEOF
21325 rm -f conftest.$ac_objext
21326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21327   (eval $ac_compile) 2>conftest.er1
21328   ac_status=$?
21329   grep -v '^ *+' conftest.er1 >conftest.err
21330   rm -f conftest.er1
21331   cat conftest.err >&5
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); } &&
21334          { ac_try='test -z "$ac_c_werror_flag"
21335                          || test ! -s conftest.err'
21336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337   (eval $ac_try) 2>&5
21338   ac_status=$?
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); }; } &&
21341          { ac_try='test -s conftest.$ac_objext'
21342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343   (eval $ac_try) 2>&5
21344   ac_status=$?
21345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); }; }; then
21347   ac_cv_struct_tm=time.h
21348 else
21349   echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21351
21352 ac_cv_struct_tm=sys/time.h
21353 fi
21354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21355 fi
21356 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21357 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21358 if test $ac_cv_struct_tm = sys/time.h; then
21359
21360 cat >>confdefs.h <<\_ACEOF
21361 #define TM_IN_SYS_TIME 1
21362 _ACEOF
21363
21364 fi
21365
21366
21367 # Checks for library functions.
21368
21369 for ac_func in strftime
21370 do
21371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21372 echo "$as_me:$LINENO: checking for $ac_func" >&5
21373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21374 if eval "test \"\${$as_ac_var+set}\" = set"; then
21375   echo $ECHO_N "(cached) $ECHO_C" >&6
21376 else
21377   cat >conftest.$ac_ext <<_ACEOF
21378 /* confdefs.h.  */
21379 _ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h.  */
21383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21385 #define $ac_func innocuous_$ac_func
21386
21387 /* System header to define __stub macros and hopefully few prototypes,
21388     which can conflict with char $ac_func (); below.
21389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21390     <limits.h> exists even on freestanding compilers.  */
21391
21392 #ifdef __STDC__
21393 # include <limits.h>
21394 #else
21395 # include <assert.h>
21396 #endif
21397
21398 #undef $ac_func
21399
21400 /* Override any gcc2 internal prototype to avoid an error.  */
21401 #ifdef __cplusplus
21402 extern "C"
21403 {
21404 #endif
21405 /* We use char because int might match the return type of a gcc2
21406    builtin and then its argument prototype would still apply.  */
21407 char $ac_func ();
21408 /* The GNU C library defines this for functions which it implements
21409     to always fail with ENOSYS.  Some functions are actually named
21410     something starting with __ and the normal name is an alias.  */
21411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21412 choke me
21413 #else
21414 char (*f) () = $ac_func;
21415 #endif
21416 #ifdef __cplusplus
21417 }
21418 #endif
21419
21420 int
21421 main ()
21422 {
21423 return f != $ac_func;
21424   ;
21425   return 0;
21426 }
21427 _ACEOF
21428 rm -f conftest.$ac_objext conftest$ac_exeext
21429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21430   (eval $ac_link) 2>conftest.er1
21431   ac_status=$?
21432   grep -v '^ *+' conftest.er1 >conftest.err
21433   rm -f conftest.er1
21434   cat conftest.err >&5
21435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436   (exit $ac_status); } &&
21437          { ac_try='test -z "$ac_c_werror_flag"
21438                          || test ! -s conftest.err'
21439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440   (eval $ac_try) 2>&5
21441   ac_status=$?
21442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443   (exit $ac_status); }; } &&
21444          { ac_try='test -s conftest$ac_exeext'
21445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446   (eval $ac_try) 2>&5
21447   ac_status=$?
21448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449   (exit $ac_status); }; }; then
21450   eval "$as_ac_var=yes"
21451 else
21452   echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21454
21455 eval "$as_ac_var=no"
21456 fi
21457 rm -f conftest.err conftest.$ac_objext \
21458       conftest$ac_exeext conftest.$ac_ext
21459 fi
21460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21462 if test `eval echo '${'$as_ac_var'}'` = yes; then
21463   cat >>confdefs.h <<_ACEOF
21464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21465 _ACEOF
21466
21467 else
21468   # strftime is in -lintl on SCO UNIX.
21469 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21470 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21471 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21472   echo $ECHO_N "(cached) $ECHO_C" >&6
21473 else
21474   ac_check_lib_save_LIBS=$LIBS
21475 LIBS="-lintl  $LIBS"
21476 cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h.  */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h.  */
21482
21483 /* Override any gcc2 internal prototype to avoid an error.  */
21484 #ifdef __cplusplus
21485 extern "C"
21486 #endif
21487 /* We use char because int might match the return type of a gcc2
21488    builtin and then its argument prototype would still apply.  */
21489 char strftime ();
21490 int
21491 main ()
21492 {
21493 strftime ();
21494   ;
21495   return 0;
21496 }
21497 _ACEOF
21498 rm -f conftest.$ac_objext conftest$ac_exeext
21499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21500   (eval $ac_link) 2>conftest.er1
21501   ac_status=$?
21502   grep -v '^ *+' conftest.er1 >conftest.err
21503   rm -f conftest.er1
21504   cat conftest.err >&5
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); } &&
21507          { ac_try='test -z "$ac_c_werror_flag"
21508                          || test ! -s conftest.err'
21509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510   (eval $ac_try) 2>&5
21511   ac_status=$?
21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513   (exit $ac_status); }; } &&
21514          { ac_try='test -s conftest$ac_exeext'
21515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516   (eval $ac_try) 2>&5
21517   ac_status=$?
21518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519   (exit $ac_status); }; }; then
21520   ac_cv_lib_intl_strftime=yes
21521 else
21522   echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21524
21525 ac_cv_lib_intl_strftime=no
21526 fi
21527 rm -f conftest.err conftest.$ac_objext \
21528       conftest$ac_exeext conftest.$ac_ext
21529 LIBS=$ac_check_lib_save_LIBS
21530 fi
21531 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21532 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21533 if test $ac_cv_lib_intl_strftime = yes; then
21534   cat >>confdefs.h <<\_ACEOF
21535 #define HAVE_STRFTIME 1
21536 _ACEOF
21537
21538 LIBS="-lintl $LIBS"
21539 fi
21540
21541 fi
21542 done
21543
21544 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
21545 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
21546 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
21547   echo $ECHO_N "(cached) $ECHO_C" >&6
21548 else
21549   cat >conftest.$ac_ext <<_ACEOF
21550 /* confdefs.h.  */
21551 _ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h.  */
21555 $ac_includes_default
21556 int
21557 main ()
21558 {
21559 #ifndef strerror_r
21560   char *p = (char *) strerror_r;
21561 #endif
21562
21563   ;
21564   return 0;
21565 }
21566 _ACEOF
21567 rm -f conftest.$ac_objext
21568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21569   (eval $ac_compile) 2>conftest.er1
21570   ac_status=$?
21571   grep -v '^ *+' conftest.er1 >conftest.err
21572   rm -f conftest.er1
21573   cat conftest.err >&5
21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575   (exit $ac_status); } &&
21576          { ac_try='test -z "$ac_c_werror_flag"
21577                          || test ! -s conftest.err'
21578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579   (eval $ac_try) 2>&5
21580   ac_status=$?
21581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582   (exit $ac_status); }; } &&
21583          { ac_try='test -s conftest.$ac_objext'
21584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585   (eval $ac_try) 2>&5
21586   ac_status=$?
21587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588   (exit $ac_status); }; }; then
21589   ac_cv_have_decl_strerror_r=yes
21590 else
21591   echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21593
21594 ac_cv_have_decl_strerror_r=no
21595 fi
21596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21597 fi
21598 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
21599 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
21600 if test $ac_cv_have_decl_strerror_r = yes; then
21601
21602 cat >>confdefs.h <<_ACEOF
21603 #define HAVE_DECL_STRERROR_R 1
21604 _ACEOF
21605
21606
21607 else
21608   cat >>confdefs.h <<_ACEOF
21609 #define HAVE_DECL_STRERROR_R 0
21610 _ACEOF
21611
21612
21613 fi
21614
21615
21616
21617 for ac_func in strerror_r
21618 do
21619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21620 echo "$as_me:$LINENO: checking for $ac_func" >&5
21621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21622 if eval "test \"\${$as_ac_var+set}\" = set"; then
21623   echo $ECHO_N "(cached) $ECHO_C" >&6
21624 else
21625   cat >conftest.$ac_ext <<_ACEOF
21626 /* confdefs.h.  */
21627 _ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h.  */
21631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21633 #define $ac_func innocuous_$ac_func
21634
21635 /* System header to define __stub macros and hopefully few prototypes,
21636     which can conflict with char $ac_func (); below.
21637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21638     <limits.h> exists even on freestanding compilers.  */
21639
21640 #ifdef __STDC__
21641 # include <limits.h>
21642 #else
21643 # include <assert.h>
21644 #endif
21645
21646 #undef $ac_func
21647
21648 /* Override any gcc2 internal prototype to avoid an error.  */
21649 #ifdef __cplusplus
21650 extern "C"
21651 {
21652 #endif
21653 /* We use char because int might match the return type of a gcc2
21654    builtin and then its argument prototype would still apply.  */
21655 char $ac_func ();
21656 /* The GNU C library defines this for functions which it implements
21657     to always fail with ENOSYS.  Some functions are actually named
21658     something starting with __ and the normal name is an alias.  */
21659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21660 choke me
21661 #else
21662 char (*f) () = $ac_func;
21663 #endif
21664 #ifdef __cplusplus
21665 }
21666 #endif
21667
21668 int
21669 main ()
21670 {
21671 return f != $ac_func;
21672   ;
21673   return 0;
21674 }
21675 _ACEOF
21676 rm -f conftest.$ac_objext conftest$ac_exeext
21677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21678   (eval $ac_link) 2>conftest.er1
21679   ac_status=$?
21680   grep -v '^ *+' conftest.er1 >conftest.err
21681   rm -f conftest.er1
21682   cat conftest.err >&5
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); } &&
21685          { ac_try='test -z "$ac_c_werror_flag"
21686                          || test ! -s conftest.err'
21687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688   (eval $ac_try) 2>&5
21689   ac_status=$?
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); }; } &&
21692          { ac_try='test -s conftest$ac_exeext'
21693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694   (eval $ac_try) 2>&5
21695   ac_status=$?
21696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697   (exit $ac_status); }; }; then
21698   eval "$as_ac_var=yes"
21699 else
21700   echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21702
21703 eval "$as_ac_var=no"
21704 fi
21705 rm -f conftest.err conftest.$ac_objext \
21706       conftest$ac_exeext conftest.$ac_ext
21707 fi
21708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21710 if test `eval echo '${'$as_ac_var'}'` = yes; then
21711   cat >>confdefs.h <<_ACEOF
21712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21713 _ACEOF
21714
21715 fi
21716 done
21717
21718 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
21719 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
21720 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
21721   echo $ECHO_N "(cached) $ECHO_C" >&6
21722 else
21723
21724     ac_cv_func_strerror_r_char_p=no
21725     if test $ac_cv_have_decl_strerror_r = yes; then
21726       cat >conftest.$ac_ext <<_ACEOF
21727 /* confdefs.h.  */
21728 _ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h.  */
21732 $ac_includes_default
21733 int
21734 main ()
21735 {
21736
21737           char buf[100];
21738           char x = *strerror_r (0, buf, sizeof buf);
21739           char *p = strerror_r (0, buf, sizeof buf);
21740
21741   ;
21742   return 0;
21743 }
21744 _ACEOF
21745 rm -f conftest.$ac_objext
21746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21747   (eval $ac_compile) 2>conftest.er1
21748   ac_status=$?
21749   grep -v '^ *+' conftest.er1 >conftest.err
21750   rm -f conftest.er1
21751   cat conftest.err >&5
21752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753   (exit $ac_status); } &&
21754          { ac_try='test -z "$ac_c_werror_flag"
21755                          || test ! -s conftest.err'
21756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757   (eval $ac_try) 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); }; } &&
21761          { ac_try='test -s conftest.$ac_objext'
21762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763   (eval $ac_try) 2>&5
21764   ac_status=$?
21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766   (exit $ac_status); }; }; then
21767   ac_cv_func_strerror_r_char_p=yes
21768 else
21769   echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21771
21772 fi
21773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21774     else
21775       # strerror_r is not declared.  Choose between
21776       # systems that have relatively inaccessible declarations for the
21777       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
21778       # former has a strerror_r that returns char*, while the latter
21779       # has a strerror_r that returns `int'.
21780       # This test should segfault on the DEC system.
21781       if test "$cross_compiling" = yes; then
21782   :
21783 else
21784   cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h.  */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h.  */
21790 $ac_includes_default
21791         extern char *strerror_r ();
21792 int
21793 main ()
21794 {
21795 char buf[100];
21796           char x = *strerror_r (0, buf, sizeof buf);
21797           exit (!isalpha (x));
21798   ;
21799   return 0;
21800 }
21801 _ACEOF
21802 rm -f conftest$ac_exeext
21803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21804   (eval $ac_link) 2>&5
21805   ac_status=$?
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809   (eval $ac_try) 2>&5
21810   ac_status=$?
21811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812   (exit $ac_status); }; }; then
21813   ac_cv_func_strerror_r_char_p=yes
21814 else
21815   echo "$as_me: program exited with status $ac_status" >&5
21816 echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21818
21819 fi
21820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21821 fi
21822     fi
21823
21824 fi
21825 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
21826 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
21827 if test $ac_cv_func_strerror_r_char_p = yes; then
21828
21829 cat >>confdefs.h <<\_ACEOF
21830 #define STRERROR_R_CHAR_P 1
21831 _ACEOF
21832
21833 fi
21834
21835
21836
21837
21838
21839
21840
21841
21842 for ac_func in strchr strdup strstr timegm gmtime_r strtok_r strcasecmp
21843 do
21844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21845 echo "$as_me:$LINENO: checking for $ac_func" >&5
21846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21847 if eval "test \"\${$as_ac_var+set}\" = set"; then
21848   echo $ECHO_N "(cached) $ECHO_C" >&6
21849 else
21850   cat >conftest.$ac_ext <<_ACEOF
21851 /* confdefs.h.  */
21852 _ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h.  */
21856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21858 #define $ac_func innocuous_$ac_func
21859
21860 /* System header to define __stub macros and hopefully few prototypes,
21861     which can conflict with char $ac_func (); below.
21862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21863     <limits.h> exists even on freestanding compilers.  */
21864
21865 #ifdef __STDC__
21866 # include <limits.h>
21867 #else
21868 # include <assert.h>
21869 #endif
21870
21871 #undef $ac_func
21872
21873 /* Override any gcc2 internal prototype to avoid an error.  */
21874 #ifdef __cplusplus
21875 extern "C"
21876 {
21877 #endif
21878 /* We use char because int might match the return type of a gcc2
21879    builtin and then its argument prototype would still apply.  */
21880 char $ac_func ();
21881 /* The GNU C library defines this for functions which it implements
21882     to always fail with ENOSYS.  Some functions are actually named
21883     something starting with __ and the normal name is an alias.  */
21884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21885 choke me
21886 #else
21887 char (*f) () = $ac_func;
21888 #endif
21889 #ifdef __cplusplus
21890 }
21891 #endif
21892
21893 int
21894 main ()
21895 {
21896 return f != $ac_func;
21897   ;
21898   return 0;
21899 }
21900 _ACEOF
21901 rm -f conftest.$ac_objext conftest$ac_exeext
21902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21903   (eval $ac_link) 2>conftest.er1
21904   ac_status=$?
21905   grep -v '^ *+' conftest.er1 >conftest.err
21906   rm -f conftest.er1
21907   cat conftest.err >&5
21908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909   (exit $ac_status); } &&
21910          { ac_try='test -z "$ac_c_werror_flag"
21911                          || test ! -s conftest.err'
21912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913   (eval $ac_try) 2>&5
21914   ac_status=$?
21915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916   (exit $ac_status); }; } &&
21917          { ac_try='test -s conftest$ac_exeext'
21918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21919   (eval $ac_try) 2>&5
21920   ac_status=$?
21921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922   (exit $ac_status); }; }; then
21923   eval "$as_ac_var=yes"
21924 else
21925   echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21927
21928 eval "$as_ac_var=no"
21929 fi
21930 rm -f conftest.err conftest.$ac_objext \
21931       conftest$ac_exeext conftest.$ac_ext
21932 fi
21933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21935 if test `eval echo '${'$as_ac_var'}'` = yes; then
21936   cat >>confdefs.h <<_ACEOF
21937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21938 _ACEOF
21939
21940 fi
21941 done
21942
21943
21944 # checks for pthreads
21945
21946
21947
21948
21949 ac_ext=c
21950 ac_cpp='$CPP $CPPFLAGS'
21951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21954
21955 acx_pthread_ok=no
21956
21957 # We used to check for pthread.h first, but this fails if pthread.h
21958 # requires special compiler flags (e.g. on True64 or Sequent).
21959 # It gets checked for in the link test anyway.
21960
21961 # First of all, check if the user has set any of the PTHREAD_LIBS,
21962 # etcetera environment variables, and if threads linking works using
21963 # them:
21964 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21965         save_CFLAGS="$CFLAGS"
21966         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21967         save_LIBS="$LIBS"
21968         LIBS="$PTHREAD_LIBS $LIBS"
21969         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21970 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
21971         cat >conftest.$ac_ext <<_ACEOF
21972 /* confdefs.h.  */
21973 _ACEOF
21974 cat confdefs.h >>conftest.$ac_ext
21975 cat >>conftest.$ac_ext <<_ACEOF
21976 /* end confdefs.h.  */
21977
21978 /* Override any gcc2 internal prototype to avoid an error.  */
21979 #ifdef __cplusplus
21980 extern "C"
21981 #endif
21982 /* We use char because int might match the return type of a gcc2
21983    builtin and then its argument prototype would still apply.  */
21984 char pthread_join ();
21985 int
21986 main ()
21987 {
21988 pthread_join ();
21989   ;
21990   return 0;
21991 }
21992 _ACEOF
21993 rm -f conftest.$ac_objext conftest$ac_exeext
21994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21995   (eval $ac_link) 2>conftest.er1
21996   ac_status=$?
21997   grep -v '^ *+' conftest.er1 >conftest.err
21998   rm -f conftest.er1
21999   cat conftest.err >&5
22000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001   (exit $ac_status); } &&
22002          { ac_try='test -z "$ac_c_werror_flag"
22003                          || test ! -s conftest.err'
22004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22005   (eval $ac_try) 2>&5
22006   ac_status=$?
22007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008   (exit $ac_status); }; } &&
22009          { ac_try='test -s conftest$ac_exeext'
22010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011   (eval $ac_try) 2>&5
22012   ac_status=$?
22013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014   (exit $ac_status); }; }; then
22015   acx_pthread_ok=yes
22016 else
22017   echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22019
22020 fi
22021 rm -f conftest.err conftest.$ac_objext \
22022       conftest$ac_exeext conftest.$ac_ext
22023         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22024 echo "${ECHO_T}$acx_pthread_ok" >&6
22025         if test x"$acx_pthread_ok" = xno; then
22026                 PTHREAD_LIBS=""
22027                 PTHREAD_CFLAGS=""
22028         fi
22029         LIBS="$save_LIBS"
22030         CFLAGS="$save_CFLAGS"
22031 fi
22032
22033 # We must check for the threads library under a number of different
22034 # names; the ordering is very important because some systems
22035 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22036 # libraries is broken (non-POSIX).
22037
22038 # Create a list of thread flags to try.  Items starting with a "-" are
22039 # C compiler flags, and other items are library names, except for "none"
22040 # which indicates that we try without any flags at all, and "pthread-config"
22041 # which is a program returning the flags for the Pth emulation library.
22042
22043 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22044
22045 # The ordering *is* (sometimes) important.  Some notes on the
22046 # individual items follow:
22047
22048 # pthreads: AIX (must check this before -lpthread)
22049 # none: in case threads are in libc; should be tried before -Kthread and
22050 #       other compiler flags to prevent continual compiler warnings
22051 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22052 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22053 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22054 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22055 # -pthreads: Solaris/gcc
22056 # -mthreads: Mingw32/gcc, Lynx/gcc
22057 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22058 #      doesn't hurt to check since this sometimes defines pthreads too;
22059 #      also defines -D_REENTRANT)
22060 #      ... -mt is also the pthreads flag for HP/aCC
22061 # pthread: Linux, etcetera
22062 # --thread-safe: KAI C++
22063 # pthread-config: use pthread-config program (for GNU Pth library)
22064
22065 case "${host_cpu}-${host_os}" in
22066         *solaris*)
22067
22068         # On Solaris (at least, for some versions), libc contains stubbed
22069         # (non-functional) versions of the pthreads routines, so link-based
22070         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
22071         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22072         # a function called by this macro, so we could check for that, but
22073         # who knows whether they'll stub that too in a future libc.)  So,
22074         # we'll just look for -pthreads and -lpthread first:
22075
22076         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
22077         ;;
22078 esac
22079
22080 if test x"$acx_pthread_ok" = xno; then
22081 for flag in $acx_pthread_flags; do
22082
22083         case $flag in
22084                 none)
22085                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22086 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
22087                 ;;
22088
22089                 -*)
22090                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22091 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
22092                 PTHREAD_CFLAGS="$flag"
22093                 ;;
22094
22095                 pthread-config)
22096                 # Extract the first word of "pthread-config", so it can be a program name with args.
22097 set dummy pthread-config; ac_word=$2
22098 echo "$as_me:$LINENO: checking for $ac_word" >&5
22099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22100 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22101   echo $ECHO_N "(cached) $ECHO_C" >&6
22102 else
22103   if test -n "$acx_pthread_config"; then
22104   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22105 else
22106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22107 for as_dir in $PATH
22108 do
22109   IFS=$as_save_IFS
22110   test -z "$as_dir" && as_dir=.
22111   for ac_exec_ext in '' $ac_executable_extensions; do
22112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22113     ac_cv_prog_acx_pthread_config="yes"
22114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22115     break 2
22116   fi
22117 done
22118 done
22119
22120   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22121 fi
22122 fi
22123 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22124 if test -n "$acx_pthread_config"; then
22125   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22126 echo "${ECHO_T}$acx_pthread_config" >&6
22127 else
22128   echo "$as_me:$LINENO: result: no" >&5
22129 echo "${ECHO_T}no" >&6
22130 fi
22131
22132                 if test x"$acx_pthread_config" = xno; then continue; fi
22133                 PTHREAD_CFLAGS="`pthread-config --cflags`"
22134                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22135                 ;;
22136
22137                 *)
22138                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22139 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
22140                 PTHREAD_LIBS="-l$flag"
22141                 ;;
22142         esac
22143
22144         save_LIBS="$LIBS"
22145         save_CFLAGS="$CFLAGS"
22146         LIBS="$PTHREAD_LIBS $LIBS"
22147         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22148
22149         # Check for various functions.  We must include pthread.h,
22150         # since some functions may be macros.  (On the Sequent, we
22151         # need a special flag -Kthread to make this header compile.)
22152         # We check for pthread_join because it is in -lpthread on IRIX
22153         # while pthread_create is in libc.  We check for pthread_attr_init
22154         # due to DEC craziness with -lpthreads.  We check for
22155         # pthread_cleanup_push because it is one of the few pthread
22156         # functions on Solaris that doesn't have a non-functional libc stub.
22157         # We try pthread_create on general principles.
22158         cat >conftest.$ac_ext <<_ACEOF
22159 /* confdefs.h.  */
22160 _ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h.  */
22164 #include <pthread.h>
22165 int
22166 main ()
22167 {
22168 pthread_t th; pthread_join(th, 0);
22169                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22170                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22171   ;
22172   return 0;
22173 }
22174 _ACEOF
22175 rm -f conftest.$ac_objext conftest$ac_exeext
22176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22177   (eval $ac_link) 2>conftest.er1
22178   ac_status=$?
22179   grep -v '^ *+' conftest.er1 >conftest.err
22180   rm -f conftest.er1
22181   cat conftest.err >&5
22182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183   (exit $ac_status); } &&
22184          { ac_try='test -z "$ac_c_werror_flag"
22185                          || test ! -s conftest.err'
22186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22187   (eval $ac_try) 2>&5
22188   ac_status=$?
22189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190   (exit $ac_status); }; } &&
22191          { ac_try='test -s conftest$ac_exeext'
22192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22193   (eval $ac_try) 2>&5
22194   ac_status=$?
22195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196   (exit $ac_status); }; }; then
22197   acx_pthread_ok=yes
22198 else
22199   echo "$as_me: failed program was:" >&5
22200 sed 's/^/| /' conftest.$ac_ext >&5
22201
22202 fi
22203 rm -f conftest.err conftest.$ac_objext \
22204       conftest$ac_exeext conftest.$ac_ext
22205
22206         LIBS="$save_LIBS"
22207         CFLAGS="$save_CFLAGS"
22208
22209         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22210 echo "${ECHO_T}$acx_pthread_ok" >&6
22211         if test "x$acx_pthread_ok" = xyes; then
22212                 break;
22213         fi
22214
22215         PTHREAD_LIBS=""
22216         PTHREAD_CFLAGS=""
22217 done
22218 fi
22219
22220 # Various other checks:
22221 if test "x$acx_pthread_ok" = xyes; then
22222         save_LIBS="$LIBS"
22223         LIBS="$PTHREAD_LIBS $LIBS"
22224         save_CFLAGS="$CFLAGS"
22225         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22226
22227         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22228         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22229 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
22230         attr_name=unknown
22231         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22232             cat >conftest.$ac_ext <<_ACEOF
22233 /* confdefs.h.  */
22234 _ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h.  */
22238 #include <pthread.h>
22239 int
22240 main ()
22241 {
22242 int attr=$attr; return attr;
22243   ;
22244   return 0;
22245 }
22246 _ACEOF
22247 rm -f conftest.$ac_objext conftest$ac_exeext
22248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22249   (eval $ac_link) 2>conftest.er1
22250   ac_status=$?
22251   grep -v '^ *+' conftest.er1 >conftest.err
22252   rm -f conftest.er1
22253   cat conftest.err >&5
22254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255   (exit $ac_status); } &&
22256          { ac_try='test -z "$ac_c_werror_flag"
22257                          || test ! -s conftest.err'
22258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259   (eval $ac_try) 2>&5
22260   ac_status=$?
22261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262   (exit $ac_status); }; } &&
22263          { ac_try='test -s conftest$ac_exeext'
22264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265   (eval $ac_try) 2>&5
22266   ac_status=$?
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); }; }; then
22269   attr_name=$attr; break
22270 else
22271   echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22273
22274 fi
22275 rm -f conftest.err conftest.$ac_objext \
22276       conftest$ac_exeext conftest.$ac_ext
22277         done
22278         echo "$as_me:$LINENO: result: $attr_name" >&5
22279 echo "${ECHO_T}$attr_name" >&6
22280         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22281
22282 cat >>confdefs.h <<_ACEOF
22283 #define PTHREAD_CREATE_JOINABLE $attr_name
22284 _ACEOF
22285
22286         fi
22287
22288         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22289 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
22290         flag=no
22291         case "${host_cpu}-${host_os}" in
22292                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
22293                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
22294                 *solaris*)
22295                 if test "$GCC" = "yes"; then
22296                     flag="-D_REENTRANT"
22297                 else
22298                     flag="-mt -D_REENTRANT"
22299                 fi
22300                 ;;
22301         esac
22302         echo "$as_me:$LINENO: result: ${flag}" >&5
22303 echo "${ECHO_T}${flag}" >&6
22304         if test "x$flag" != xno; then
22305             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22306         fi
22307
22308         LIBS="$save_LIBS"
22309         CFLAGS="$save_CFLAGS"
22310
22311         # More AIX lossage: must compile with xlc_r or cc_r
22312         if test x"$GCC" != xyes; then
22313           for ac_prog in xlc_r cc_r
22314 do
22315   # Extract the first word of "$ac_prog", so it can be a program name with args.
22316 set dummy $ac_prog; ac_word=$2
22317 echo "$as_me:$LINENO: checking for $ac_word" >&5
22318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22319 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22320   echo $ECHO_N "(cached) $ECHO_C" >&6
22321 else
22322   if test -n "$PTHREAD_CC"; then
22323   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22324 else
22325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22326 for as_dir in $PATH
22327 do
22328   IFS=$as_save_IFS
22329   test -z "$as_dir" && as_dir=.
22330   for ac_exec_ext in '' $ac_executable_extensions; do
22331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22332     ac_cv_prog_PTHREAD_CC="$ac_prog"
22333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22334     break 2
22335   fi
22336 done
22337 done
22338
22339 fi
22340 fi
22341 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22342 if test -n "$PTHREAD_CC"; then
22343   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22344 echo "${ECHO_T}$PTHREAD_CC" >&6
22345 else
22346   echo "$as_me:$LINENO: result: no" >&5
22347 echo "${ECHO_T}no" >&6
22348 fi
22349
22350   test -n "$PTHREAD_CC" && break
22351 done
22352 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22353
22354         else
22355           PTHREAD_CC=$CC
22356         fi
22357 else
22358         PTHREAD_CC="$CC"
22359 fi
22360
22361
22362
22363
22364
22365 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22366 if test x"$acx_pthread_ok" = xyes; then
22367         enable_threads="pthread"
22368         :
22369 else
22370         acx_pthread_ok=no
22371         enable_threads="no"
22372 fi
22373 ac_ext=c
22374 ac_cpp='$CPP $CPPFLAGS'
22375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22378
22379
22380 if test $enable_threads != "pthread"; then
22381     { { echo "$as_me:$LINENO: error: unable to find pthreads, currently this is required" >&5
22382 echo "$as_me: error: unable to find pthreads, currently this is required" >&2;}
22383    { (exit 1); exit 1; }; }
22384 else
22385
22386 cat >>confdefs.h <<\_ACEOF
22387 #define HAVE_PTHREAD 1
22388 _ACEOF
22389
22390     LIBS="$PTHREAD_LIBS $LIBS"
22391     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
22392     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
22393 fi
22394
22395 # Thank you Solaris, really.
22396 echo "$as_me:$LINENO: checking for ctime_r" >&5
22397 echo $ECHO_N "checking for ctime_r... $ECHO_C" >&6
22398  if test -z "$ac_cv_ctime_args"; then
22399      cat >conftest.$ac_ext <<_ACEOF
22400 /* confdefs.h.  */
22401 _ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h.  */
22405 #include <time.h>
22406 int
22407 main ()
22408 {
22409
22410          time_t clock;
22411          char buf[26];
22412          ctime_r(&clock, buf);
22413
22414   ;
22415   return 0;
22416 }
22417 _ACEOF
22418 rm -f conftest.$ac_objext
22419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22420   (eval $ac_compile) 2>conftest.er1
22421   ac_status=$?
22422   grep -v '^ *+' conftest.er1 >conftest.err
22423   rm -f conftest.er1
22424   cat conftest.err >&5
22425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426   (exit $ac_status); } &&
22427          { ac_try='test -z "$ac_c_werror_flag"
22428                          || test ! -s conftest.err'
22429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22430   (eval $ac_try) 2>&5
22431   ac_status=$?
22432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433   (exit $ac_status); }; } &&
22434          { ac_try='test -s conftest.$ac_objext'
22435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436   (eval $ac_try) 2>&5
22437   ac_status=$?
22438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439   (exit $ac_status); }; }; then
22440   ac_cv_ctime_args=2
22441 else
22442   echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22444
22445 fi
22446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22447
22448      cat >conftest.$ac_ext <<_ACEOF
22449 /* confdefs.h.  */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h.  */
22454 #include <time.h>
22455 int
22456 main ()
22457 {
22458
22459          time_t clock;
22460          char buf[26];
22461          ctime_r(&clock, buf, 26);
22462
22463   ;
22464   return 0;
22465 }
22466 _ACEOF
22467 rm -f conftest.$ac_objext
22468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22469   (eval $ac_compile) 2>conftest.er1
22470   ac_status=$?
22471   grep -v '^ *+' conftest.er1 >conftest.err
22472   rm -f conftest.er1
22473   cat conftest.err >&5
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); } &&
22476          { ac_try='test -z "$ac_c_werror_flag"
22477                          || test ! -s conftest.err'
22478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479   (eval $ac_try) 2>&5
22480   ac_status=$?
22481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482   (exit $ac_status); }; } &&
22483          { ac_try='test -s conftest.$ac_objext'
22484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22485   (eval $ac_try) 2>&5
22486   ac_status=$?
22487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488   (exit $ac_status); }; }; then
22489   ac_cv_ctime_args=3
22490 else
22491   echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22493
22494 fi
22495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22496  fi
22497  if test -z "$ac_cv_ctime_args"; then
22498      echo "$as_me:$LINENO: result: no" >&5
22499 echo "${ECHO_T}no" >&6
22500  else
22501      if test "$ac_cv_ctime_args" = 2; then
22502
22503 cat >>confdefs.h <<\_ACEOF
22504 #define HAVE_CTIME_R_2 1
22505 _ACEOF
22506
22507      elif test "$ac_cv_ctime_args" = 3; then
22508
22509 cat >>confdefs.h <<\_ACEOF
22510 #define HAVE_CTIME_R_3 1
22511 _ACEOF
22512
22513      fi
22514      echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_ctime_args arguments" >&5
22515 echo "${ECHO_T}yes, and it takes $ac_cv_ctime_args arguments" >&6
22516  fi
22517
22518 # OpenSSL settings
22519
22520 # Check whether --with-openssl or --without-openssl was given.
22521 if test "${with_openssl+set}" = set; then
22522   withval="$with_openssl"
22523   if test x_$with_openssl != x_/usr; then
22524         SSLFLAGS="-I${with_openssl}/include"
22525     fi
22526 fi;
22527
22528 if test "x$SSLFLAGS" = "x" ; then
22529     # Extract the first word of "pkg-config", so it can be a program name with args.
22530 set dummy pkg-config; ac_word=$2
22531 echo "$as_me:$LINENO: checking for $ac_word" >&5
22532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22533 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22534   echo $ECHO_N "(cached) $ECHO_C" >&6
22535 else
22536   case $PKG_CONFIG in
22537   [\\/]* | ?:[\\/]*)
22538   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22539   ;;
22540   *)
22541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22542 for as_dir in $PATH
22543 do
22544   IFS=$as_save_IFS
22545   test -z "$as_dir" && as_dir=.
22546   for ac_exec_ext in '' $ac_executable_extensions; do
22547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22548     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22550     break 2
22551   fi
22552 done
22553 done
22554
22555   ;;
22556 esac
22557 fi
22558 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22559
22560 if test -n "$PKG_CONFIG"; then
22561   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22562 echo "${ECHO_T}$PKG_CONFIG" >&6
22563 else
22564   echo "$as_me:$LINENO: result: no" >&5
22565 echo "${ECHO_T}no" >&6
22566 fi
22567
22568     if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
22569         if pkg-config openssl ; then
22570             SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
22571         else
22572             { { echo "$as_me:$LINENO: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
22573 echo "$as_me: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
22574    { (exit 1); exit 1; }; }
22575         fi
22576     fi
22577 fi
22578
22579 echo "$as_me:$LINENO: checking for OpenSSL cflags" >&5
22580 echo $ECHO_N "checking for OpenSSL cflags... $ECHO_C" >&6
22581 echo "$as_me:$LINENO: result: $SSLFLAGS" >&5
22582 echo "${ECHO_T}$SSLFLAGS" >&6
22583 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
22584
22585 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22586   echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22587 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22588 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22589   echo $ECHO_N "(cached) $ECHO_C" >&6
22590 fi
22591 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22592 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22593 else
22594   # Is the header compilable?
22595 echo "$as_me:$LINENO: checking openssl/x509.h usability" >&5
22596 echo $ECHO_N "checking openssl/x509.h usability... $ECHO_C" >&6
22597 cat >conftest.$ac_ext <<_ACEOF
22598 /* confdefs.h.  */
22599 _ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h.  */
22603 $ac_includes_default
22604 #include <openssl/x509.h>
22605 _ACEOF
22606 rm -f conftest.$ac_objext
22607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22608   (eval $ac_compile) 2>conftest.er1
22609   ac_status=$?
22610   grep -v '^ *+' conftest.er1 >conftest.err
22611   rm -f conftest.er1
22612   cat conftest.err >&5
22613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614   (exit $ac_status); } &&
22615          { ac_try='test -z "$ac_c_werror_flag"
22616                          || test ! -s conftest.err'
22617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618   (eval $ac_try) 2>&5
22619   ac_status=$?
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); }; } &&
22622          { ac_try='test -s conftest.$ac_objext'
22623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22624   (eval $ac_try) 2>&5
22625   ac_status=$?
22626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627   (exit $ac_status); }; }; then
22628   ac_header_compiler=yes
22629 else
22630   echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22632
22633 ac_header_compiler=no
22634 fi
22635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22637 echo "${ECHO_T}$ac_header_compiler" >&6
22638
22639 # Is the header present?
22640 echo "$as_me:$LINENO: checking openssl/x509.h presence" >&5
22641 echo $ECHO_N "checking openssl/x509.h presence... $ECHO_C" >&6
22642 cat >conftest.$ac_ext <<_ACEOF
22643 /* confdefs.h.  */
22644 _ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h.  */
22648 #include <openssl/x509.h>
22649 _ACEOF
22650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22652   ac_status=$?
22653   grep -v '^ *+' conftest.er1 >conftest.err
22654   rm -f conftest.er1
22655   cat conftest.err >&5
22656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657   (exit $ac_status); } >/dev/null; then
22658   if test -s conftest.err; then
22659     ac_cpp_err=$ac_c_preproc_warn_flag
22660     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22661   else
22662     ac_cpp_err=
22663   fi
22664 else
22665   ac_cpp_err=yes
22666 fi
22667 if test -z "$ac_cpp_err"; then
22668   ac_header_preproc=yes
22669 else
22670   echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22672
22673   ac_header_preproc=no
22674 fi
22675 rm -f conftest.err conftest.$ac_ext
22676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22677 echo "${ECHO_T}$ac_header_preproc" >&6
22678
22679 # So?  What about this header?
22680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22681   yes:no: )
22682     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&5
22683 echo "$as_me: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22684     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the compiler's result" >&5
22685 echo "$as_me: WARNING: openssl/x509.h: proceeding with the compiler's result" >&2;}
22686     ac_header_preproc=yes
22687     ;;
22688   no:yes:* )
22689     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: present but cannot be compiled" >&5
22690 echo "$as_me: WARNING: openssl/x509.h: present but cannot be compiled" >&2;}
22691     { echo "$as_me:$LINENO: WARNING: openssl/x509.h:     check for missing prerequisite headers?" >&5
22692 echo "$as_me: WARNING: openssl/x509.h:     check for missing prerequisite headers?" >&2;}
22693     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: see the Autoconf documentation" >&5
22694 echo "$as_me: WARNING: openssl/x509.h: see the Autoconf documentation" >&2;}
22695     { echo "$as_me:$LINENO: WARNING: openssl/x509.h:     section \"Present But Cannot Be Compiled\"" >&5
22696 echo "$as_me: WARNING: openssl/x509.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22697     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&5
22698 echo "$as_me: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&2;}
22699     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&5
22700 echo "$as_me: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&2;}
22701     (
22702       cat <<\_ASBOX
22703 ## --------------------------------------------- ##
22704 ## Report this to shibboleth-users@internet2.edu ##
22705 ## --------------------------------------------- ##
22706 _ASBOX
22707     ) |
22708       sed "s/^/$as_me: WARNING:     /" >&2
22709     ;;
22710 esac
22711 echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22712 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22713 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22714   echo $ECHO_N "(cached) $ECHO_C" >&6
22715 else
22716   ac_cv_header_openssl_x509_h=$ac_header_preproc
22717 fi
22718 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22719 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22720
22721 fi
22722 if test $ac_cv_header_openssl_x509_h = yes; then
22723   :
22724 else
22725   { { echo "$as_me:$LINENO: error: unable to find openssl header files" >&5
22726 echo "$as_me: error: unable to find openssl header files" >&2;}
22727    { (exit 1); exit 1; }; }
22728 fi
22729
22730
22731
22732 ac_ext=cc
22733 ac_cpp='$CXXCPP $CPPFLAGS'
22734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22737
22738
22739 # C++ requirements
22740 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22741 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22742 if test "${ac_cv_cxx_namespaces+set}" = set; then
22743   echo $ECHO_N "(cached) $ECHO_C" >&6
22744 else
22745
22746
22747  ac_ext=cc
22748 ac_cpp='$CXXCPP $CPPFLAGS'
22749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22752
22753  cat >conftest.$ac_ext <<_ACEOF
22754 /* confdefs.h.  */
22755 _ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h.  */
22759 namespace Outer { namespace Inner { int i = 0; }}
22760 int
22761 main ()
22762 {
22763 using namespace Outer::Inner; return i;
22764   ;
22765   return 0;
22766 }
22767 _ACEOF
22768 rm -f conftest.$ac_objext
22769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22770   (eval $ac_compile) 2>conftest.er1
22771   ac_status=$?
22772   grep -v '^ *+' conftest.er1 >conftest.err
22773   rm -f conftest.er1
22774   cat conftest.err >&5
22775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776   (exit $ac_status); } &&
22777          { ac_try='test -z "$ac_cxx_werror_flag"
22778                          || test ! -s conftest.err'
22779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22780   (eval $ac_try) 2>&5
22781   ac_status=$?
22782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783   (exit $ac_status); }; } &&
22784          { ac_try='test -s conftest.$ac_objext'
22785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22786   (eval $ac_try) 2>&5
22787   ac_status=$?
22788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789   (exit $ac_status); }; }; then
22790   ac_cv_cxx_namespaces=yes
22791 else
22792   echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22794
22795 ac_cv_cxx_namespaces=no
22796 fi
22797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22798  ac_ext=cc
22799 ac_cpp='$CXXCPP $CPPFLAGS'
22800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22803
22804
22805 fi
22806 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22807 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22808 if test "$ac_cv_cxx_namespaces" = yes; then
22809
22810 cat >>confdefs.h <<\_ACEOF
22811 #define HAVE_NAMESPACES 1
22812 _ACEOF
22813
22814 fi
22815
22816 echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
22817 echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
22818 if test "${ac_cv_cxx_have_stl+set}" = set; then
22819   echo $ECHO_N "(cached) $ECHO_C" >&6
22820 else
22821
22822
22823
22824  ac_ext=cc
22825 ac_cpp='$CXXCPP $CPPFLAGS'
22826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22829
22830  cat >conftest.$ac_ext <<_ACEOF
22831 /* confdefs.h.  */
22832 _ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h.  */
22836 #include <list>
22837 #include <deque>
22838 #ifdef HAVE_NAMESPACES
22839 using namespace std;
22840 #endif
22841 int
22842 main ()
22843 {
22844 list<int> x; x.push_back(5);
22845 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
22846   ;
22847   return 0;
22848 }
22849 _ACEOF
22850 rm -f conftest.$ac_objext
22851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22852   (eval $ac_compile) 2>conftest.er1
22853   ac_status=$?
22854   grep -v '^ *+' conftest.er1 >conftest.err
22855   rm -f conftest.er1
22856   cat conftest.err >&5
22857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858   (exit $ac_status); } &&
22859          { ac_try='test -z "$ac_cxx_werror_flag"
22860                          || test ! -s conftest.err'
22861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862   (eval $ac_try) 2>&5
22863   ac_status=$?
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); }; } &&
22866          { ac_try='test -s conftest.$ac_objext'
22867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868   (eval $ac_try) 2>&5
22869   ac_status=$?
22870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871   (exit $ac_status); }; }; then
22872   ac_cv_cxx_have_stl=yes
22873 else
22874   echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22876
22877 ac_cv_cxx_have_stl=no
22878 fi
22879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22880  ac_ext=cc
22881 ac_cpp='$CXXCPP $CPPFLAGS'
22882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22885
22886
22887 fi
22888 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
22889 echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
22890 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
22891   { { echo "$as_me:$LINENO: error: C++ Standard Template Libary unsupported" >&5
22892 echo "$as_me: error: C++ Standard Template Libary unsupported" >&2;}
22893    { (exit 1); exit 1; }; }
22894 fi
22895
22896 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22897 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22898 if test "${ac_cv_cxx_namespaces+set}" = set; then
22899   echo $ECHO_N "(cached) $ECHO_C" >&6
22900 else
22901
22902
22903  ac_ext=cc
22904 ac_cpp='$CXXCPP $CPPFLAGS'
22905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22908
22909  cat >conftest.$ac_ext <<_ACEOF
22910 /* confdefs.h.  */
22911 _ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h.  */
22915 namespace Outer { namespace Inner { int i = 0; }}
22916 int
22917 main ()
22918 {
22919 using namespace Outer::Inner; return i;
22920   ;
22921   return 0;
22922 }
22923 _ACEOF
22924 rm -f conftest.$ac_objext
22925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22926   (eval $ac_compile) 2>conftest.er1
22927   ac_status=$?
22928   grep -v '^ *+' conftest.er1 >conftest.err
22929   rm -f conftest.er1
22930   cat conftest.err >&5
22931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932   (exit $ac_status); } &&
22933          { ac_try='test -z "$ac_cxx_werror_flag"
22934                          || test ! -s conftest.err'
22935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936   (eval $ac_try) 2>&5
22937   ac_status=$?
22938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939   (exit $ac_status); }; } &&
22940          { ac_try='test -s conftest.$ac_objext'
22941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22942   (eval $ac_try) 2>&5
22943   ac_status=$?
22944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945   (exit $ac_status); }; }; then
22946   ac_cv_cxx_namespaces=yes
22947 else
22948   echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22950
22951 ac_cv_cxx_namespaces=no
22952 fi
22953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22954  ac_ext=cc
22955 ac_cpp='$CXXCPP $CPPFLAGS'
22956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22959
22960
22961 fi
22962 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22963 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22964 if test "$ac_cv_cxx_namespaces" = yes; then
22965
22966 cat >>confdefs.h <<\_ACEOF
22967 #define HAVE_NAMESPACES 1
22968 _ACEOF
22969
22970 fi
22971
22972
22973 # log4shib settings (favor this version over the log4cpp code)
22974 # Extract the first word of "log4shib-config", so it can be a program name with args.
22975 set dummy log4shib-config; ac_word=$2
22976 echo "$as_me:$LINENO: checking for $ac_word" >&5
22977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22978 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then
22979   echo $ECHO_N "(cached) $ECHO_C" >&6
22980 else
22981   case $LOG4SHIB_CONFIG in
22982   [\\/]* | ?:[\\/]*)
22983   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
22984   ;;
22985   *)
22986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22987 for as_dir in $PATH
22988 do
22989   IFS=$as_save_IFS
22990   test -z "$as_dir" && as_dir=.
22991   for ac_exec_ext in '' $ac_executable_extensions; do
22992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22993     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22995     break 2
22996   fi
22997 done
22998 done
22999
23000   ;;
23001 esac
23002 fi
23003 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
23004
23005 if test -n "$LOG4SHIB_CONFIG"; then
23006   echo "$as_me:$LINENO: result: $LOG4SHIB_CONFIG" >&5
23007 echo "${ECHO_T}$LOG4SHIB_CONFIG" >&6
23008 else
23009   echo "$as_me:$LINENO: result: no" >&5
23010 echo "${ECHO_T}no" >&6
23011 fi
23012
23013
23014 # Check whether --with-log4shib or --without-log4shib was given.
23015 if test "${with_log4shib+set}" = set; then
23016   withval="$with_log4shib"
23017
23018     LOG4SHIB_CONFIG="${with_log4shib}"
23019     if ! test -f "${LOG4SHIB_CONFIG}" ; then
23020         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
23021     fi
23022
23023 fi;
23024 if test -f "${LOG4SHIB_CONFIG}"; then
23025     LDFLAGS="`${LOG4SHIB_CONFIG} --libs` $LDFLAGS"
23026     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
23027
23028 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23029   echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23030 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23031 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23032   echo $ECHO_N "(cached) $ECHO_C" >&6
23033 fi
23034 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23035 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23036 else
23037   # Is the header compilable?
23038 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh usability" >&5
23039 echo $ECHO_N "checking log4shib/CategoryStream.hh usability... $ECHO_C" >&6
23040 cat >conftest.$ac_ext <<_ACEOF
23041 /* confdefs.h.  */
23042 _ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h.  */
23046 $ac_includes_default
23047 #include <log4shib/CategoryStream.hh>
23048 _ACEOF
23049 rm -f conftest.$ac_objext
23050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23051   (eval $ac_compile) 2>conftest.er1
23052   ac_status=$?
23053   grep -v '^ *+' conftest.er1 >conftest.err
23054   rm -f conftest.er1
23055   cat conftest.err >&5
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); } &&
23058          { ac_try='test -z "$ac_cxx_werror_flag"
23059                          || test ! -s conftest.err'
23060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23061   (eval $ac_try) 2>&5
23062   ac_status=$?
23063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); }; } &&
23065          { ac_try='test -s conftest.$ac_objext'
23066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23067   (eval $ac_try) 2>&5
23068   ac_status=$?
23069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070   (exit $ac_status); }; }; then
23071   ac_header_compiler=yes
23072 else
23073   echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23075
23076 ac_header_compiler=no
23077 fi
23078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23080 echo "${ECHO_T}$ac_header_compiler" >&6
23081
23082 # Is the header present?
23083 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh presence" >&5
23084 echo $ECHO_N "checking log4shib/CategoryStream.hh presence... $ECHO_C" >&6
23085 cat >conftest.$ac_ext <<_ACEOF
23086 /* confdefs.h.  */
23087 _ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h.  */
23091 #include <log4shib/CategoryStream.hh>
23092 _ACEOF
23093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23095   ac_status=$?
23096   grep -v '^ *+' conftest.er1 >conftest.err
23097   rm -f conftest.er1
23098   cat conftest.err >&5
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); } >/dev/null; then
23101   if test -s conftest.err; then
23102     ac_cpp_err=$ac_cxx_preproc_warn_flag
23103     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23104   else
23105     ac_cpp_err=
23106   fi
23107 else
23108   ac_cpp_err=yes
23109 fi
23110 if test -z "$ac_cpp_err"; then
23111   ac_header_preproc=yes
23112 else
23113   echo "$as_me: failed program was:" >&5
23114 sed 's/^/| /' conftest.$ac_ext >&5
23115
23116   ac_header_preproc=no
23117 fi
23118 rm -f conftest.err conftest.$ac_ext
23119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23120 echo "${ECHO_T}$ac_header_preproc" >&6
23121
23122 # So?  What about this header?
23123 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23124   yes:no: )
23125     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23126 echo "$as_me: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23127     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&5
23128 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23129     ac_header_preproc=yes
23130     ;;
23131   no:yes:* )
23132     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&5
23133 echo "$as_me: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&2;}
23134     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh:     check for missing prerequisite headers?" >&5
23135 echo "$as_me: WARNING: log4shib/CategoryStream.hh:     check for missing prerequisite headers?" >&2;}
23136     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&5
23137 echo "$as_me: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&2;}
23138     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&5
23139 echo "$as_me: WARNING: log4shib/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&2;}
23140     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23141 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23142     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23143 echo "$as_me: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23144     (
23145       cat <<\_ASBOX
23146 ## --------------------------------------------- ##
23147 ## Report this to shibboleth-users@internet2.edu ##
23148 ## --------------------------------------------- ##
23149 _ASBOX
23150     ) |
23151       sed "s/^/$as_me: WARNING:     /" >&2
23152     ;;
23153 esac
23154 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23155 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23156 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23157   echo $ECHO_N "(cached) $ECHO_C" >&6
23158 else
23159   ac_cv_header_log4shib_CategoryStream_hh=$ac_header_preproc
23160 fi
23161 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23162 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23163
23164 fi
23165 if test $ac_cv_header_log4shib_CategoryStream_hh = yes; then
23166   :
23167 else
23168   { { echo "$as_me:$LINENO: error: unable to find log4shib header files" >&5
23169 echo "$as_me: error: unable to find log4shib header files" >&2;}
23170    { (exit 1); exit 1; }; }
23171 fi
23172
23173
23174         cat >conftest.$ac_ext <<_ACEOF
23175 /* confdefs.h.  */
23176 _ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h.  */
23180 #include <log4shib/Category.hh>
23181 #include <log4shib/CategoryStream.hh>
23182 int
23183 main ()
23184 {
23185 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
23186   ;
23187   return 0;
23188 }
23189 _ACEOF
23190 rm -f conftest.$ac_objext conftest$ac_exeext
23191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23192   (eval $ac_link) 2>conftest.er1
23193   ac_status=$?
23194   grep -v '^ *+' conftest.er1 >conftest.err
23195   rm -f conftest.er1
23196   cat conftest.err >&5
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); } &&
23199          { ac_try='test -z "$ac_cxx_werror_flag"
23200                          || test ! -s conftest.err'
23201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202   (eval $ac_try) 2>&5
23203   ac_status=$?
23204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205   (exit $ac_status); }; } &&
23206          { ac_try='test -s conftest$ac_exeext'
23207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208   (eval $ac_try) 2>&5
23209   ac_status=$?
23210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211   (exit $ac_status); }; }; then
23212
23213 cat >>confdefs.h <<\_ACEOF
23214 #define SHIBSP_LOG4SHIB 1
23215 _ACEOF
23216
23217 else
23218   echo "$as_me: failed program was:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23220
23221 { { echo "$as_me:$LINENO: error: unable to link with log4shib" >&5
23222 echo "$as_me: error: unable to link with log4shib" >&2;}
23223    { (exit 1); exit 1; }; }
23224 fi
23225 rm -f conftest.err conftest.$ac_objext \
23226       conftest$ac_exeext conftest.$ac_ext
23227 else
23228     { echo "$as_me:$LINENO: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
23229 echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
23230     { echo "$as_me:$LINENO: WARNING: will look for original log4cpp library" >&5
23231 echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
23232
23233         # log4cpp settings
23234         # Extract the first word of "log4cpp-config", so it can be a program name with args.
23235 set dummy log4cpp-config; ac_word=$2
23236 echo "$as_me:$LINENO: checking for $ac_word" >&5
23237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23238 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then
23239   echo $ECHO_N "(cached) $ECHO_C" >&6
23240 else
23241   case $LOG4CPP_CONFIG in
23242   [\\/]* | ?:[\\/]*)
23243   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
23244   ;;
23245   *)
23246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23247 for as_dir in $PATH
23248 do
23249   IFS=$as_save_IFS
23250   test -z "$as_dir" && as_dir=.
23251   for ac_exec_ext in '' $ac_executable_extensions; do
23252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23253     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23255     break 2
23256   fi
23257 done
23258 done
23259
23260   ;;
23261 esac
23262 fi
23263 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
23264
23265 if test -n "$LOG4CPP_CONFIG"; then
23266   echo "$as_me:$LINENO: result: $LOG4CPP_CONFIG" >&5
23267 echo "${ECHO_T}$LOG4CPP_CONFIG" >&6
23268 else
23269   echo "$as_me:$LINENO: result: no" >&5
23270 echo "${ECHO_T}no" >&6
23271 fi
23272
23273
23274 # Check whether --with-log4cpp or --without-log4cpp was given.
23275 if test "${with_log4cpp+set}" = set; then
23276   withval="$with_log4cpp"
23277
23278             LOG4CPP_CONFIG="${with_log4cpp}"
23279             if ! test -f "${LOG4CPP_CONFIG}" ; then
23280                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
23281             fi
23282
23283 fi;
23284         if test -f "${LOG4CPP_CONFIG}"; then
23285                 { echo "$as_me:$LINENO: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
23286 echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
23287             LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS"
23288             CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
23289                 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23290   echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23291 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23292 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23293   echo $ECHO_N "(cached) $ECHO_C" >&6
23294 fi
23295 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23296 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23297 else
23298   # Is the header compilable?
23299 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh usability" >&5
23300 echo $ECHO_N "checking log4cpp/CategoryStream.hh usability... $ECHO_C" >&6
23301 cat >conftest.$ac_ext <<_ACEOF
23302 /* confdefs.h.  */
23303 _ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h.  */
23307 $ac_includes_default
23308 #include <log4cpp/CategoryStream.hh>
23309 _ACEOF
23310 rm -f conftest.$ac_objext
23311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23312   (eval $ac_compile) 2>conftest.er1
23313   ac_status=$?
23314   grep -v '^ *+' conftest.er1 >conftest.err
23315   rm -f conftest.er1
23316   cat conftest.err >&5
23317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318   (exit $ac_status); } &&
23319          { ac_try='test -z "$ac_cxx_werror_flag"
23320                          || test ! -s conftest.err'
23321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322   (eval $ac_try) 2>&5
23323   ac_status=$?
23324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325   (exit $ac_status); }; } &&
23326          { ac_try='test -s conftest.$ac_objext'
23327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23328   (eval $ac_try) 2>&5
23329   ac_status=$?
23330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331   (exit $ac_status); }; }; then
23332   ac_header_compiler=yes
23333 else
23334   echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23336
23337 ac_header_compiler=no
23338 fi
23339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23341 echo "${ECHO_T}$ac_header_compiler" >&6
23342
23343 # Is the header present?
23344 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh presence" >&5
23345 echo $ECHO_N "checking log4cpp/CategoryStream.hh presence... $ECHO_C" >&6
23346 cat >conftest.$ac_ext <<_ACEOF
23347 /* confdefs.h.  */
23348 _ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h.  */
23352 #include <log4cpp/CategoryStream.hh>
23353 _ACEOF
23354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23356   ac_status=$?
23357   grep -v '^ *+' conftest.er1 >conftest.err
23358   rm -f conftest.er1
23359   cat conftest.err >&5
23360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361   (exit $ac_status); } >/dev/null; then
23362   if test -s conftest.err; then
23363     ac_cpp_err=$ac_cxx_preproc_warn_flag
23364     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23365   else
23366     ac_cpp_err=
23367   fi
23368 else
23369   ac_cpp_err=yes
23370 fi
23371 if test -z "$ac_cpp_err"; then
23372   ac_header_preproc=yes
23373 else
23374   echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23376
23377   ac_header_preproc=no
23378 fi
23379 rm -f conftest.err conftest.$ac_ext
23380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23381 echo "${ECHO_T}$ac_header_preproc" >&6
23382
23383 # So?  What about this header?
23384 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23385   yes:no: )
23386     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23387 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23388     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&5
23389 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23390     ac_header_preproc=yes
23391     ;;
23392   no:yes:* )
23393     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&5
23394 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&2;}
23395     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh:     check for missing prerequisite headers?" >&5
23396 echo "$as_me: WARNING: log4cpp/CategoryStream.hh:     check for missing prerequisite headers?" >&2;}
23397     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&5
23398 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&2;}
23399     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&5
23400 echo "$as_me: WARNING: log4cpp/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&2;}
23401     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23402 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23403     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23404 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23405     (
23406       cat <<\_ASBOX
23407 ## --------------------------------------------- ##
23408 ## Report this to shibboleth-users@internet2.edu ##
23409 ## --------------------------------------------- ##
23410 _ASBOX
23411     ) |
23412       sed "s/^/$as_me: WARNING:     /" >&2
23413     ;;
23414 esac
23415 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23416 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23417 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23418   echo $ECHO_N "(cached) $ECHO_C" >&6
23419 else
23420   ac_cv_header_log4cpp_CategoryStream_hh=$ac_header_preproc
23421 fi
23422 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23423 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23424
23425 fi
23426 if test $ac_cv_header_log4cpp_CategoryStream_hh = yes; then
23427   :
23428 else
23429   { { echo "$as_me:$LINENO: error: unable to find log4cpp header files" >&5
23430 echo "$as_me: error: unable to find log4cpp header files" >&2;}
23431    { (exit 1); exit 1; }; }
23432 fi
23433
23434
23435                 cat >conftest.$ac_ext <<_ACEOF
23436 /* confdefs.h.  */
23437 _ACEOF
23438 cat confdefs.h >>conftest.$ac_ext
23439 cat >>conftest.$ac_ext <<_ACEOF
23440 /* end confdefs.h.  */
23441 #include <log4cpp/Category.hh>
23442 #include <log4cpp/CategoryStream.hh>
23443 int
23444 main ()
23445 {
23446 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
23447   ;
23448   return 0;
23449 }
23450 _ACEOF
23451 rm -f conftest.$ac_objext conftest$ac_exeext
23452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23453   (eval $ac_link) 2>conftest.er1
23454   ac_status=$?
23455   grep -v '^ *+' conftest.er1 >conftest.err
23456   rm -f conftest.er1
23457   cat conftest.err >&5
23458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459   (exit $ac_status); } &&
23460          { ac_try='test -z "$ac_cxx_werror_flag"
23461                          || test ! -s conftest.err'
23462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23463   (eval $ac_try) 2>&5
23464   ac_status=$?
23465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466   (exit $ac_status); }; } &&
23467          { ac_try='test -s conftest$ac_exeext'
23468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23469   (eval $ac_try) 2>&5
23470   ac_status=$?
23471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472   (exit $ac_status); }; }; then
23473
23474 cat >>confdefs.h <<\_ACEOF
23475 #define SHIBSP_LOG4CPP 1
23476 _ACEOF
23477
23478 else
23479   echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23481
23482 { { echo "$as_me:$LINENO: error: unable to link with log4cpp, need version 1.0 or later" >&5
23483 echo "$as_me: error: unable to link with log4cpp, need version 1.0 or later" >&2;}
23484    { (exit 1); exit 1; }; }
23485 fi
23486 rm -f conftest.err conftest.$ac_objext \
23487       conftest$ac_exeext conftest.$ac_ext
23488         else
23489             { { echo "$as_me:$LINENO: error: log4cpp-config not found, may need to use --with-log4cpp option" >&5
23490 echo "$as_me: error: log4cpp-config not found, may need to use --with-log4cpp option" >&2;}
23491    { (exit 1); exit 1; }; }
23492         fi
23493 fi
23494
23495 # Xerces settings
23496
23497 # Check whether --with-xerces or --without-xerces was given.
23498 if test "${with_xerces+set}" = set; then
23499   withval="$with_xerces"
23500   if test x_$with_xerces != x_/usr; then
23501                 LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
23502                 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
23503             fi
23504 fi;
23505 LIBS="-lxerces-c $LIBS"
23506 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23507   echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23508 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23509 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23510   echo $ECHO_N "(cached) $ECHO_C" >&6
23511 fi
23512 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23513 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23514 else
23515   # Is the header compilable?
23516 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp usability" >&5
23517 echo $ECHO_N "checking xercesc/dom/DOM.hpp usability... $ECHO_C" >&6
23518 cat >conftest.$ac_ext <<_ACEOF
23519 /* confdefs.h.  */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h.  */
23524 $ac_includes_default
23525 #include <xercesc/dom/DOM.hpp>
23526 _ACEOF
23527 rm -f conftest.$ac_objext
23528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23529   (eval $ac_compile) 2>conftest.er1
23530   ac_status=$?
23531   grep -v '^ *+' conftest.er1 >conftest.err
23532   rm -f conftest.er1
23533   cat conftest.err >&5
23534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535   (exit $ac_status); } &&
23536          { ac_try='test -z "$ac_cxx_werror_flag"
23537                          || test ! -s conftest.err'
23538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23539   (eval $ac_try) 2>&5
23540   ac_status=$?
23541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542   (exit $ac_status); }; } &&
23543          { ac_try='test -s conftest.$ac_objext'
23544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23545   (eval $ac_try) 2>&5
23546   ac_status=$?
23547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548   (exit $ac_status); }; }; then
23549   ac_header_compiler=yes
23550 else
23551   echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23553
23554 ac_header_compiler=no
23555 fi
23556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23558 echo "${ECHO_T}$ac_header_compiler" >&6
23559
23560 # Is the header present?
23561 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp presence" >&5
23562 echo $ECHO_N "checking xercesc/dom/DOM.hpp presence... $ECHO_C" >&6
23563 cat >conftest.$ac_ext <<_ACEOF
23564 /* confdefs.h.  */
23565 _ACEOF
23566 cat confdefs.h >>conftest.$ac_ext
23567 cat >>conftest.$ac_ext <<_ACEOF
23568 /* end confdefs.h.  */
23569 #include <xercesc/dom/DOM.hpp>
23570 _ACEOF
23571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23572   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23573   ac_status=$?
23574   grep -v '^ *+' conftest.er1 >conftest.err
23575   rm -f conftest.er1
23576   cat conftest.err >&5
23577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578   (exit $ac_status); } >/dev/null; then
23579   if test -s conftest.err; then
23580     ac_cpp_err=$ac_cxx_preproc_warn_flag
23581     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23582   else
23583     ac_cpp_err=
23584   fi
23585 else
23586   ac_cpp_err=yes
23587 fi
23588 if test -z "$ac_cpp_err"; then
23589   ac_header_preproc=yes
23590 else
23591   echo "$as_me: failed program was:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23593
23594   ac_header_preproc=no
23595 fi
23596 rm -f conftest.err conftest.$ac_ext
23597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23598 echo "${ECHO_T}$ac_header_preproc" >&6
23599
23600 # So?  What about this header?
23601 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23602   yes:no: )
23603     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
23604 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
23605     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&5
23606 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&2;}
23607     ac_header_preproc=yes
23608     ;;
23609   no:yes:* )
23610     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&5
23611 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&2;}
23612     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp:     check for missing prerequisite headers?" >&5
23613 echo "$as_me: WARNING: xercesc/dom/DOM.hpp:     check for missing prerequisite headers?" >&2;}
23614     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&5
23615 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&2;}
23616     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp:     section \"Present But Cannot Be Compiled\"" >&5
23617 echo "$as_me: WARNING: xercesc/dom/DOM.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
23618     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&5
23619 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&2;}
23620     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&5
23621 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&2;}
23622     (
23623       cat <<\_ASBOX
23624 ## --------------------------------------------- ##
23625 ## Report this to shibboleth-users@internet2.edu ##
23626 ## --------------------------------------------- ##
23627 _ASBOX
23628     ) |
23629       sed "s/^/$as_me: WARNING:     /" >&2
23630     ;;
23631 esac
23632 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23633 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23634 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23635   echo $ECHO_N "(cached) $ECHO_C" >&6
23636 else
23637   ac_cv_header_xercesc_dom_DOM_hpp=$ac_header_preproc
23638 fi
23639 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23640 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23641
23642 fi
23643 if test $ac_cv_header_xercesc_dom_DOM_hpp = yes; then
23644   :
23645 else
23646   { { echo "$as_me:$LINENO: error: unable to find xerces header files" >&5
23647 echo "$as_me: error: unable to find xerces header files" >&2;}
23648    { (exit 1); exit 1; }; }
23649 fi
23650
23651
23652 echo "$as_me:$LINENO: checking Xerces version" >&5
23653 echo $ECHO_N "checking Xerces version... $ECHO_C" >&6
23654 cat >conftest.$ac_ext <<_ACEOF
23655 /* confdefs.h.  */
23656 _ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h.  */
23660 #include <xercesc/util/XercesVersion.hpp>
23661 int
23662 main ()
23663 {
23664 #if  _XERCES_VERSION != 20600
23665 int i = 0;
23666 #else
23667 #error cannot use version 2.6.0
23668 #endif
23669   ;
23670   return 0;
23671 }
23672 _ACEOF
23673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23674   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23675   ac_status=$?
23676   grep -v '^ *+' conftest.er1 >conftest.err
23677   rm -f conftest.er1
23678   cat conftest.err >&5
23679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680   (exit $ac_status); } >/dev/null; then
23681   if test -s conftest.err; then
23682     ac_cpp_err=$ac_cxx_preproc_warn_flag
23683     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23684   else
23685     ac_cpp_err=
23686   fi
23687 else
23688   ac_cpp_err=yes
23689 fi
23690 if test -z "$ac_cpp_err"; then
23691   echo "$as_me:$LINENO: result: OK" >&5
23692 echo "${ECHO_T}OK" >&6
23693 else
23694   echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23696
23697   { { echo "$as_me:$LINENO: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23698 See \`config.log' for more details." >&5
23699 echo "$as_me: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23700 See \`config.log' for more details." >&2;}
23701    { (exit 1); exit 1; }; }
23702 fi
23703 rm -f conftest.err conftest.$ac_ext
23704 cat >conftest.$ac_ext <<_ACEOF
23705 /* confdefs.h.  */
23706 _ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h.  */
23710 #include <xercesc/util/PlatformUtils.hpp>
23711 int
23712 main ()
23713 {
23714 xercesc::XMLPlatformUtils::Initialize()
23715   ;
23716   return 0;
23717 }
23718 _ACEOF
23719 rm -f conftest.$ac_objext conftest$ac_exeext
23720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23721   (eval $ac_link) 2>conftest.er1
23722   ac_status=$?
23723   grep -v '^ *+' conftest.er1 >conftest.err
23724   rm -f conftest.er1
23725   cat conftest.err >&5
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); } &&
23728          { ac_try='test -z "$ac_cxx_werror_flag"
23729                          || test ! -s conftest.err'
23730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731   (eval $ac_try) 2>&5
23732   ac_status=$?
23733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734   (exit $ac_status); }; } &&
23735          { ac_try='test -s conftest$ac_exeext'
23736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737   (eval $ac_try) 2>&5
23738   ac_status=$?
23739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740   (exit $ac_status); }; }; then
23741
23742 cat >>confdefs.h <<\_ACEOF
23743 #define HAVE_LIBXERCESC 1
23744 _ACEOF
23745
23746 else
23747   echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23749
23750 { { echo "$as_me:$LINENO: error: unable to link with Xerces" >&5
23751 echo "$as_me: error: unable to link with Xerces" >&2;}
23752    { (exit 1); exit 1; }; }
23753 fi
23754 rm -f conftest.err conftest.$ac_objext \
23755       conftest$ac_exeext conftest.$ac_ext
23756
23757
23758 #XML-Tooling settings
23759
23760 # Check whether --with-xmltooling or --without-xmltooling was given.
23761 if test "${with_xmltooling+set}" = set; then
23762   withval="$with_xmltooling"
23763   if test x_$with_xmltooling != x_/usr; then
23764                 LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
23765                 CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
23766             fi
23767 fi;
23768 LITE_LIBS="-lxmltooling-lite"
23769 XMLSEC_LIBS="-lxmltooling"
23770 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23771   echo "$as_me:$LINENO: checking for xmltooling/base.h" >&5
23772 echo $ECHO_N "checking for xmltooling/base.h... $ECHO_C" >&6
23773 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23774   echo $ECHO_N "(cached) $ECHO_C" >&6
23775 fi
23776 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_base_h" >&5
23777 echo "${ECHO_T}$ac_cv_header_xmltooling_base_h" >&6
23778 else
23779   # Is the header compilable?
23780 echo "$as_me:$LINENO: checking xmltooling/base.h usability" >&5
23781 echo $ECHO_N "checking xmltooling/base.h usability... $ECHO_C" >&6
23782 cat >conftest.$ac_ext <<_ACEOF
23783 /* confdefs.h.  */
23784 _ACEOF
23785 cat confdefs.h >>conftest.$ac_ext
23786 cat >>conftest.$ac_ext <<_ACEOF
23787 /* end confdefs.h.  */
23788 $ac_includes_default
23789 #include <xmltooling/base.h>
23790 _ACEOF
23791 rm -f conftest.$ac_objext
23792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23793   (eval $ac_compile) 2>conftest.er1
23794   ac_status=$?
23795   grep -v '^ *+' conftest.er1 >conftest.err
23796   rm -f conftest.er1
23797   cat conftest.err >&5
23798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); } &&
23800          { ac_try='test -z "$ac_cxx_werror_flag"
23801                          || test ! -s conftest.err'
23802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23803   (eval $ac_try) 2>&5
23804   ac_status=$?
23805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806   (exit $ac_status); }; } &&
23807          { ac_try='test -s conftest.$ac_objext'
23808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23809   (eval $ac_try) 2>&5
23810   ac_status=$?
23811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812   (exit $ac_status); }; }; then
23813   ac_header_compiler=yes
23814 else
23815   echo "$as_me: failed program was:" >&5
23816 sed 's/^/| /' conftest.$ac_ext >&5
23817
23818 ac_header_compiler=no
23819 fi
23820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23822 echo "${ECHO_T}$ac_header_compiler" >&6
23823
23824 # Is the header present?
23825 echo "$as_me:$LINENO: checking xmltooling/base.h presence" >&5
23826 echo $ECHO_N "checking xmltooling/base.h presence... $ECHO_C" >&6
23827 cat >conftest.$ac_ext <<_ACEOF
23828 /* confdefs.h.  */
23829 _ACEOF
23830 cat confdefs.h >>conftest.$ac_ext
23831 cat >>conftest.$ac_ext <<_ACEOF
23832 /* end confdefs.h.  */
23833 #include <xmltooling/base.h>
23834 _ACEOF
23835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23836   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23837   ac_status=$?
23838   grep -v '^ *+' conftest.er1 >conftest.err
23839   rm -f conftest.er1
23840   cat conftest.err >&5
23841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842   (exit $ac_status); } >/dev/null; then
23843   if test -s conftest.err; then
23844     ac_cpp_err=$ac_cxx_preproc_warn_flag
23845     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23846   else
23847     ac_cpp_err=
23848   fi
23849 else
23850   ac_cpp_err=yes
23851 fi
23852 if test -z "$ac_cpp_err"; then
23853   ac_header_preproc=yes
23854 else
23855   echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23857
23858   ac_header_preproc=no
23859 fi
23860 rm -f conftest.err conftest.$ac_ext
23861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23862 echo "${ECHO_T}$ac_header_preproc" >&6
23863
23864 # So?  What about this header?
23865 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23866   yes:no: )
23867     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: accepted by the compiler, rejected by the preprocessor!" >&5
23868 echo "$as_me: WARNING: xmltooling/base.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23869     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: proceeding with the compiler's result" >&5
23870 echo "$as_me: WARNING: xmltooling/base.h: proceeding with the compiler's result" >&2;}
23871     ac_header_preproc=yes
23872     ;;
23873   no:yes:* )
23874     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: present but cannot be compiled" >&5
23875 echo "$as_me: WARNING: xmltooling/base.h: present but cannot be compiled" >&2;}
23876     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h:     check for missing prerequisite headers?" >&5
23877 echo "$as_me: WARNING: xmltooling/base.h:     check for missing prerequisite headers?" >&2;}
23878     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: see the Autoconf documentation" >&5
23879 echo "$as_me: WARNING: xmltooling/base.h: see the Autoconf documentation" >&2;}
23880     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h:     section \"Present But Cannot Be Compiled\"" >&5
23881 echo "$as_me: WARNING: xmltooling/base.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23882     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: proceeding with the preprocessor's result" >&5
23883 echo "$as_me: WARNING: xmltooling/base.h: proceeding with the preprocessor's result" >&2;}
23884     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: in the future, the compiler will take precedence" >&5
23885 echo "$as_me: WARNING: xmltooling/base.h: in the future, the compiler will take precedence" >&2;}
23886     (
23887       cat <<\_ASBOX
23888 ## --------------------------------------------- ##
23889 ## Report this to shibboleth-users@internet2.edu ##
23890 ## --------------------------------------------- ##
23891 _ASBOX
23892     ) |
23893       sed "s/^/$as_me: WARNING:     /" >&2
23894     ;;
23895 esac
23896 echo "$as_me:$LINENO: checking for xmltooling/base.h" >&5
23897 echo $ECHO_N "checking for xmltooling/base.h... $ECHO_C" >&6
23898 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23899   echo $ECHO_N "(cached) $ECHO_C" >&6
23900 else
23901   ac_cv_header_xmltooling_base_h=$ac_header_preproc
23902 fi
23903 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_base_h" >&5
23904 echo "${ECHO_T}$ac_cv_header_xmltooling_base_h" >&6
23905
23906 fi
23907 if test $ac_cv_header_xmltooling_base_h = yes; then
23908   :
23909 else
23910   { { echo "$as_me:$LINENO: error: unable to find xmltooling header files" >&5
23911 echo "$as_me: error: unable to find xmltooling header files" >&2;}
23912    { (exit 1); exit 1; }; }
23913 fi
23914
23915
23916
23917 # Establish location of xmltooling catalog.
23918 XMLTOOLINGXMLDIR=""
23919 if test "x$with_xmltooling" = "x" ; then
23920    with_xmltooling="/usr"
23921 fi
23922 if test -f $with_xmltooling/share/xml/xmltooling/catalog.xml ; then
23923     XMLTOOLINGXMLDIR="$with_xmltooling"
23924 elif test -f $with_xerces/share/xml/xmltooling/catalog.xml ; then
23925     XMLTOOLINGXMLDIR="$with_xerces"
23926 elif test -f $with_log4shib/share/xml/xmltooling/catalog.xml ; then
23927     XMLTOOLINGXMLDIR="$with_log4shib"
23928 fi
23929 if test "x$XMLTOOLINGXMLDIR" = "x" ; then
23930     { { echo "$as_me:$LINENO: error: xmltooling XML catalog not found, may need to use --with-xmltooling option" >&5
23931 echo "$as_me: error: xmltooling XML catalog not found, may need to use --with-xmltooling option" >&2;}
23932    { (exit 1); exit 1; }; }
23933 fi
23934 XMLTOOLINGXMLDIR="$XMLTOOLINGXMLDIR/share/xml/xmltooling"
23935
23936
23937 # XML-Security settings
23938
23939 # Check whether --with-xmlsec or --without-xmlsec was given.
23940 if test "${with_xmlsec+set}" = set; then
23941   withval="$with_xmlsec"
23942
23943 else
23944   with_xmlsec=/usr
23945 fi;
23946
23947 if test x_$with_xmlsec != x_/usr; then
23948     LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
23949     CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
23950 fi
23951 XMLSEC_LIBS="-lxml-security-c $XMLSEC_LIBS"
23952
23953 # save and append master libs
23954 save_LIBS="$LIBS"
23955 LIBS="$XMLSEC_LIBS $LIBS"
23956
23957 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23958   echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
23959 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
23960 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23961   echo $ECHO_N "(cached) $ECHO_C" >&6
23962 fi
23963 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
23964 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
23965 else
23966   # Is the header compilable?
23967 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp usability" >&5
23968 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp usability... $ECHO_C" >&6
23969 cat >conftest.$ac_ext <<_ACEOF
23970 /* confdefs.h.  */
23971 _ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h.  */
23975 $ac_includes_default
23976 #include <xsec/utils/XSECPlatformUtils.hpp>
23977 _ACEOF
23978 rm -f conftest.$ac_objext
23979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23980   (eval $ac_compile) 2>conftest.er1
23981   ac_status=$?
23982   grep -v '^ *+' conftest.er1 >conftest.err
23983   rm -f conftest.er1
23984   cat conftest.err >&5
23985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986   (exit $ac_status); } &&
23987          { ac_try='test -z "$ac_cxx_werror_flag"
23988                          || test ! -s conftest.err'
23989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23990   (eval $ac_try) 2>&5
23991   ac_status=$?
23992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993   (exit $ac_status); }; } &&
23994          { ac_try='test -s conftest.$ac_objext'
23995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23996   (eval $ac_try) 2>&5
23997   ac_status=$?
23998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999   (exit $ac_status); }; }; then
24000   ac_header_compiler=yes
24001 else
24002   echo "$as_me: failed program was:" >&5
24003 sed 's/^/| /' conftest.$ac_ext >&5
24004
24005 ac_header_compiler=no
24006 fi
24007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24009 echo "${ECHO_T}$ac_header_compiler" >&6
24010
24011 # Is the header present?
24012 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp presence" >&5
24013 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp presence... $ECHO_C" >&6
24014 cat >conftest.$ac_ext <<_ACEOF
24015 /* confdefs.h.  */
24016 _ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h.  */
24020 #include <xsec/utils/XSECPlatformUtils.hpp>
24021 _ACEOF
24022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24023   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24024   ac_status=$?
24025   grep -v '^ *+' conftest.er1 >conftest.err
24026   rm -f conftest.er1
24027   cat conftest.err >&5
24028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029   (exit $ac_status); } >/dev/null; then
24030   if test -s conftest.err; then
24031     ac_cpp_err=$ac_cxx_preproc_warn_flag
24032     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24033   else
24034     ac_cpp_err=
24035   fi
24036 else
24037   ac_cpp_err=yes
24038 fi
24039 if test -z "$ac_cpp_err"; then
24040   ac_header_preproc=yes
24041 else
24042   echo "$as_me: failed program was:" >&5
24043 sed 's/^/| /' conftest.$ac_ext >&5
24044
24045   ac_header_preproc=no
24046 fi
24047 rm -f conftest.err conftest.$ac_ext
24048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24049 echo "${ECHO_T}$ac_header_preproc" >&6
24050
24051 # So?  What about this header?
24052 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24053   yes:no: )
24054     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
24055 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
24056     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&5
24057 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&2;}
24058     ac_header_preproc=yes
24059     ;;
24060   no:yes:* )
24061     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&5
24062 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&2;}
24063     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp:     check for missing prerequisite headers?" >&5
24064 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp:     check for missing prerequisite headers?" >&2;}
24065     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&5
24066 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&2;}
24067     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp:     section \"Present But Cannot Be Compiled\"" >&5
24068 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
24069     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&5
24070 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&2;}
24071     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&5
24072 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&2;}
24073     (
24074       cat <<\_ASBOX
24075 ## --------------------------------------------- ##
24076 ## Report this to shibboleth-users@internet2.edu ##
24077 ## --------------------------------------------- ##
24078 _ASBOX
24079     ) |
24080       sed "s/^/$as_me: WARNING:     /" >&2
24081     ;;
24082 esac
24083 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
24084 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
24085 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24086   echo $ECHO_N "(cached) $ECHO_C" >&6
24087 else
24088   ac_cv_header_xsec_utils_XSECPlatformUtils_hpp=$ac_header_preproc
24089 fi
24090 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
24091 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
24092
24093 fi
24094 if test $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp = yes; then
24095   :
24096 else
24097   { { echo "$as_me:$LINENO: error: unable to find XML-Security header files" >&5
24098 echo "$as_me: error: unable to find XML-Security header files" >&2;}
24099    { (exit 1); exit 1; }; }
24100 fi
24101
24102
24103 echo "$as_me:$LINENO: checking XML-Security version" >&5
24104 echo $ECHO_N "checking XML-Security version... $ECHO_C" >&6
24105 cat >conftest.$ac_ext <<_ACEOF
24106 /* confdefs.h.  */
24107 _ACEOF
24108 cat confdefs.h >>conftest.$ac_ext
24109 cat >>conftest.$ac_ext <<_ACEOF
24110 /* end confdefs.h.  */
24111 #include <xsec/utils/XSECPlatformUtils.hpp>
24112 int
24113 main ()
24114 {
24115 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
24116 int i = 0;
24117 #else
24118 #error need version 1.4.0 or later
24119 #endif
24120   ;
24121   return 0;
24122 }
24123 _ACEOF
24124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24126   ac_status=$?
24127   grep -v '^ *+' conftest.er1 >conftest.err
24128   rm -f conftest.er1
24129   cat conftest.err >&5
24130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131   (exit $ac_status); } >/dev/null; then
24132   if test -s conftest.err; then
24133     ac_cpp_err=$ac_cxx_preproc_warn_flag
24134     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24135   else
24136     ac_cpp_err=
24137   fi
24138 else
24139   ac_cpp_err=yes
24140 fi
24141 if test -z "$ac_cpp_err"; then
24142   echo "$as_me:$LINENO: result: OK" >&5
24143 echo "${ECHO_T}OK" >&6
24144 else
24145   echo "$as_me: failed program was:" >&5
24146 sed 's/^/| /' conftest.$ac_ext >&5
24147
24148   { { echo "$as_me:$LINENO: error: XML-Security version 1.4.0 or greater is required.
24149 See \`config.log' for more details." >&5
24150 echo "$as_me: error: XML-Security version 1.4.0 or greater is required.
24151 See \`config.log' for more details." >&2;}
24152    { (exit 1); exit 1; }; }
24153 fi
24154 rm -f conftest.err conftest.$ac_ext
24155 cat >conftest.$ac_ext <<_ACEOF
24156 /* confdefs.h.  */
24157 _ACEOF
24158 cat confdefs.h >>conftest.$ac_ext
24159 cat >>conftest.$ac_ext <<_ACEOF
24160 /* end confdefs.h.  */
24161 #include <xsec/utils/XSECPlatformUtils.hpp>
24162 int
24163 main ()
24164 {
24165 XSECPlatformUtils::Initialise()
24166   ;
24167   return 0;
24168 }
24169 _ACEOF
24170 rm -f conftest.$ac_objext conftest$ac_exeext
24171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24172   (eval $ac_link) 2>conftest.er1
24173   ac_status=$?
24174   grep -v '^ *+' conftest.er1 >conftest.err
24175   rm -f conftest.er1
24176   cat conftest.err >&5
24177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178   (exit $ac_status); } &&
24179          { ac_try='test -z "$ac_cxx_werror_flag"
24180                          || test ! -s conftest.err'
24181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24182   (eval $ac_try) 2>&5
24183   ac_status=$?
24184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185   (exit $ac_status); }; } &&
24186          { ac_try='test -s conftest$ac_exeext'
24187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188   (eval $ac_try) 2>&5
24189   ac_status=$?
24190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191   (exit $ac_status); }; }; then
24192   :
24193 else
24194   echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24196
24197 { { echo "$as_me:$LINENO: error: unable to link with XML-Security" >&5
24198 echo "$as_me: error: unable to link with XML-Security" >&2;}
24199    { (exit 1); exit 1; }; }
24200 fi
24201 rm -f conftest.err conftest.$ac_objext \
24202       conftest$ac_exeext conftest.$ac_ext
24203
24204 # restore master libs
24205 LIBS="$save_LIBS"
24206
24207 # OpenSAML settings
24208
24209 # Check whether --with-saml or --without-saml was given.
24210 if test "${with_saml+set}" = set; then
24211   withval="$with_saml"
24212   if test x_$with_saml != x_/usr; then
24213         LDFLAGS="-L${with_saml}/lib $LDFLAGS"
24214         CPPFLAGS="-I${with_saml}/include $CPPFLAGS"
24215     fi
24216 fi;
24217 XMLSEC_LIBS="-lsaml $XMLSEC_LIBS"
24218
24219 # save and append master libs
24220 save_LIBS="$LIBS"
24221 LIBS="$XMLSEC_LIBS $LIBS"
24222
24223 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24224   echo "$as_me:$LINENO: checking for saml/saml2/metadata/Metadata.h" >&5
24225 echo $ECHO_N "checking for saml/saml2/metadata/Metadata.h... $ECHO_C" >&6
24226 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24227   echo $ECHO_N "(cached) $ECHO_C" >&6
24228 fi
24229 echo "$as_me:$LINENO: result: $ac_cv_header_saml_saml2_metadata_Metadata_h" >&5
24230 echo "${ECHO_T}$ac_cv_header_saml_saml2_metadata_Metadata_h" >&6
24231 else
24232   # Is the header compilable?
24233 echo "$as_me:$LINENO: checking saml/saml2/metadata/Metadata.h usability" >&5
24234 echo $ECHO_N "checking saml/saml2/metadata/Metadata.h usability... $ECHO_C" >&6
24235 cat >conftest.$ac_ext <<_ACEOF
24236 /* confdefs.h.  */
24237 _ACEOF
24238 cat confdefs.h >>conftest.$ac_ext
24239 cat >>conftest.$ac_ext <<_ACEOF
24240 /* end confdefs.h.  */
24241 $ac_includes_default
24242 #include <saml/saml2/metadata/Metadata.h>
24243 _ACEOF
24244 rm -f conftest.$ac_objext
24245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24246   (eval $ac_compile) 2>conftest.er1
24247   ac_status=$?
24248   grep -v '^ *+' conftest.er1 >conftest.err
24249   rm -f conftest.er1
24250   cat conftest.err >&5
24251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252   (exit $ac_status); } &&
24253          { ac_try='test -z "$ac_cxx_werror_flag"
24254                          || test ! -s conftest.err'
24255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24256   (eval $ac_try) 2>&5
24257   ac_status=$?
24258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259   (exit $ac_status); }; } &&
24260          { ac_try='test -s conftest.$ac_objext'
24261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24262   (eval $ac_try) 2>&5
24263   ac_status=$?
24264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265   (exit $ac_status); }; }; then
24266   ac_header_compiler=yes
24267 else
24268   echo "$as_me: failed program was:" >&5
24269 sed 's/^/| /' conftest.$ac_ext >&5
24270
24271 ac_header_compiler=no
24272 fi
24273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24275 echo "${ECHO_T}$ac_header_compiler" >&6
24276
24277 # Is the header present?
24278 echo "$as_me:$LINENO: checking saml/saml2/metadata/Metadata.h presence" >&5
24279 echo $ECHO_N "checking saml/saml2/metadata/Metadata.h presence... $ECHO_C" >&6
24280 cat >conftest.$ac_ext <<_ACEOF
24281 /* confdefs.h.  */
24282 _ACEOF
24283 cat confdefs.h >>conftest.$ac_ext
24284 cat >>conftest.$ac_ext <<_ACEOF
24285 /* end confdefs.h.  */
24286 #include <saml/saml2/metadata/Metadata.h>
24287 _ACEOF
24288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24290   ac_status=$?
24291   grep -v '^ *+' conftest.er1 >conftest.err
24292   rm -f conftest.er1
24293   cat conftest.err >&5
24294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295   (exit $ac_status); } >/dev/null; then
24296   if test -s conftest.err; then
24297     ac_cpp_err=$ac_cxx_preproc_warn_flag
24298     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24299   else
24300     ac_cpp_err=
24301   fi
24302 else
24303   ac_cpp_err=yes
24304 fi
24305 if test -z "$ac_cpp_err"; then
24306   ac_header_preproc=yes
24307 else
24308   echo "$as_me: failed program was:" >&5
24309 sed 's/^/| /' conftest.$ac_ext >&5
24310
24311   ac_header_preproc=no
24312 fi
24313 rm -f conftest.err conftest.$ac_ext
24314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24315 echo "${ECHO_T}$ac_header_preproc" >&6
24316
24317 # So?  What about this header?
24318 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24319   yes:no: )
24320     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: accepted by the compiler, rejected by the preprocessor!" >&5
24321 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24322     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the compiler's result" >&5
24323 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the compiler's result" >&2;}
24324     ac_header_preproc=yes
24325     ;;
24326   no:yes:* )
24327     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: present but cannot be compiled" >&5
24328 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: present but cannot be compiled" >&2;}
24329     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h:     check for missing prerequisite headers?" >&5
24330 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h:     check for missing prerequisite headers?" >&2;}
24331     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: see the Autoconf documentation" >&5
24332 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: see the Autoconf documentation" >&2;}
24333     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h:     section \"Present But Cannot Be Compiled\"" >&5
24334 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24335     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the preprocessor's result" >&5
24336 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the preprocessor's result" >&2;}
24337     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: in the future, the compiler will take precedence" >&5
24338 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: in the future, the compiler will take precedence" >&2;}
24339     (
24340       cat <<\_ASBOX
24341 ## --------------------------------------------- ##
24342 ## Report this to shibboleth-users@internet2.edu ##
24343 ## --------------------------------------------- ##
24344 _ASBOX
24345     ) |
24346       sed "s/^/$as_me: WARNING:     /" >&2
24347     ;;
24348 esac
24349 echo "$as_me:$LINENO: checking for saml/saml2/metadata/Metadata.h" >&5
24350 echo $ECHO_N "checking for saml/saml2/metadata/Metadata.h... $ECHO_C" >&6
24351 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24352   echo $ECHO_N "(cached) $ECHO_C" >&6
24353 else
24354   ac_cv_header_saml_saml2_metadata_Metadata_h=$ac_header_preproc
24355 fi
24356 echo "$as_me:$LINENO: result: $ac_cv_header_saml_saml2_metadata_Metadata_h" >&5
24357 echo "${ECHO_T}$ac_cv_header_saml_saml2_metadata_Metadata_h" >&6
24358
24359 fi
24360 if test $ac_cv_header_saml_saml2_metadata_Metadata_h = yes; then
24361   :
24362 else
24363   { { echo "$as_me:$LINENO: error: unable to find OpenSAML header files" >&5
24364 echo "$as_me: error: unable to find OpenSAML header files" >&2;}
24365    { (exit 1); exit 1; }; }
24366 fi
24367
24368
24369 cat >conftest.$ac_ext <<_ACEOF
24370 /* confdefs.h.  */
24371 _ACEOF
24372 cat confdefs.h >>conftest.$ac_ext
24373 cat >>conftest.$ac_ext <<_ACEOF
24374 /* end confdefs.h.  */
24375 #include <saml/SAMLConfig.h>
24376 #include <saml/version.h>
24377 int
24378 main ()
24379 {
24380 #if _OPENSAML_VERSION >= 20000
24381 opensaml::SAMLConfig::getConfig();
24382 #else
24383 #error Need OpenSAML version 2.0 or higher
24384 #endif
24385   ;
24386   return 0;
24387 }
24388 _ACEOF
24389 rm -f conftest.$ac_objext conftest$ac_exeext
24390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24391   (eval $ac_link) 2>conftest.er1
24392   ac_status=$?
24393   grep -v '^ *+' conftest.er1 >conftest.err
24394   rm -f conftest.er1
24395   cat conftest.err >&5
24396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397   (exit $ac_status); } &&
24398          { ac_try='test -z "$ac_cxx_werror_flag"
24399                          || test ! -s conftest.err'
24400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24401   (eval $ac_try) 2>&5
24402   ac_status=$?
24403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404   (exit $ac_status); }; } &&
24405          { ac_try='test -s conftest$ac_exeext'
24406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24407   (eval $ac_try) 2>&5
24408   ac_status=$?
24409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410   (exit $ac_status); }; }; then
24411
24412 cat >>confdefs.h <<\_ACEOF
24413 #define HAVE_SAML 1
24414 _ACEOF
24415
24416 else
24417   echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.$ac_ext >&5
24419
24420 { { echo "$as_me:$LINENO: error: unable to link with OpenSAML, or version was too old" >&5
24421 echo "$as_me: error: unable to link with OpenSAML, or version was too old" >&2;}
24422    { (exit 1); exit 1; }; }
24423 fi
24424 rm -f conftest.err conftest.$ac_objext \
24425       conftest$ac_exeext conftest.$ac_ext
24426
24427 # restore master libs
24428 LIBS="$save_LIBS"
24429
24430 # Establish location of opensaml catalogs.
24431 OPENSAMLXMLDIR=""
24432 if test "x$with_saml" = "x" ; then
24433     with_saml="/usr"
24434 fi
24435 if test -f $with_saml/share/xml/opensaml/saml20-catalog.xml ; then
24436     OPENSAMLXMLDIR="$with_saml"
24437 elif test -f $with_xmltooling/share/xml/opensaml/saml20-catalog.xml ; then
24438     OPENSAMLXMLDIR="$with_xmltooling"
24439 elif test -f $with_xerces/share/xml/opensaml/saml20-catalog.xml ; then
24440     OPENSAMLXMLDIR="$with_xerces"
24441 elif test -f $with_log4shib/share/xml/opensaml/saml20-catalog.xml ; then
24442     OPENSAMLXMLDIR="$with_log4shib"
24443 fi
24444 if test "x$OPENSAMLXMLDIR" = "x" ; then
24445     { { echo "$as_me:$LINENO: error: opensaml XML catalogs not found, may need to use --with-saml option" >&5
24446 echo "$as_me: error: opensaml XML catalogs not found, may need to use --with-saml option" >&2;}
24447    { (exit 1); exit 1; }; }
24448 fi
24449 OPENSAMLXMLDIR="$OPENSAMLXMLDIR/share/xml/opensaml"
24450
24451
24452
24453
24454
24455 # output the underlying makefiles
24456 WANT_SUBDIRS="doc schemas configs shibsp shibd util"
24457                                                                                 ac_config_files="$ac_config_files Makefile doc/Makefile schemas/Makefile configs/Makefile shibsp/Makefile shibd/Makefile util/Makefile selinux/Makefile"
24458
24459
24460 ## ADFS?
24461           ac_config_files="$ac_config_files adfs/Makefile"
24462
24463 # Check whether --enable-adfs or --disable-adfs was given.
24464 if test "${enable_adfs+set}" = set; then
24465   enableval="$enable_adfs"
24466   adfs_enabled=$enableval
24467 else
24468   adfs_enabled=yes
24469 fi;
24470 if test "x$adfs_enabled" = "x" ; then
24471    adfs_enabled=yes
24472 fi
24473 echo "$as_me:$LINENO: checking whether to build the ADFS module" >&5
24474 echo $ECHO_N "checking whether to build the ADFS module... $ECHO_C" >&6
24475 if test "$adfs_enabled" = "no" ; then
24476    echo "$as_me:$LINENO: result: no" >&5
24477 echo "${ECHO_T}no" >&6
24478 else
24479    echo "$as_me:$LINENO: result: yes" >&5
24480 echo "${ECHO_T}yes" >&6
24481    WANT_SUBDIRS="$WANT_SUBDIRS adfs"
24482 fi
24483
24484
24485 #
24486 # Build NSAPI module?
24487 #
24488 echo "$as_me:$LINENO: checking for NSAPI module option" >&5
24489 echo $ECHO_N "checking for NSAPI module option... $ECHO_C" >&6
24490
24491 # Check whether --with-nsapi or --without-nsapi was given.
24492 if test "${with_nsapi+set}" = set; then
24493   withval="$with_nsapi"
24494   WANT_NSAPI=$withval
24495 else
24496   WANT_NSAPI=no
24497 fi;
24498 echo "$as_me:$LINENO: result: $WANT_NSAPI" >&5
24499 echo "${ECHO_T}$WANT_NSAPI" >&6
24500
24501 if test "$WANT_NSAPI" != "no"; then
24502   if test ! -d $WANT_NSAPI/bin ; then
24503     { { echo "$as_me:$LINENO: error: Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" >&5
24504 echo "$as_me: error: Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" >&2;}
24505    { (exit 1); exit 1; }; }
24506   fi
24507   echo "$as_me:$LINENO: checking for NSAPI include files" >&5
24508 echo $ECHO_N "checking for NSAPI include files... $ECHO_C" >&6
24509   if test -d $WANT_NSAPI/include ; then
24510     NSAPI_INCLUDE=$WANT_NSAPI/include
24511     echo "$as_me:$LINENO: result: Netscape-Enterprise 3.x style" >&5
24512 echo "${ECHO_T}Netscape-Enterprise 3.x style" >&6
24513
24514 for ac_header in $NSAPI_INCLUDE/nsapi.h
24515 do
24516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24517 echo "$as_me:$LINENO: checking for $ac_header" >&5
24518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24520   echo $ECHO_N "(cached) $ECHO_C" >&6
24521 else
24522   cat >conftest.$ac_ext <<_ACEOF
24523 /* confdefs.h.  */
24524 _ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h.  */
24528 #define XP_UNIX
24529
24530 #include <$ac_header>
24531 _ACEOF
24532 rm -f conftest.$ac_objext
24533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24534   (eval $ac_compile) 2>conftest.er1
24535   ac_status=$?
24536   grep -v '^ *+' conftest.er1 >conftest.err
24537   rm -f conftest.er1
24538   cat conftest.err >&5
24539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540   (exit $ac_status); } &&
24541          { ac_try='test -z "$ac_cxx_werror_flag"
24542                          || test ! -s conftest.err'
24543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24544   (eval $ac_try) 2>&5
24545   ac_status=$?
24546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547   (exit $ac_status); }; } &&
24548          { ac_try='test -s conftest.$ac_objext'
24549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24550   (eval $ac_try) 2>&5
24551   ac_status=$?
24552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553   (exit $ac_status); }; }; then
24554   eval "$as_ac_Header=yes"
24555 else
24556   echo "$as_me: failed program was:" >&5
24557 sed 's/^/| /' conftest.$ac_ext >&5
24558
24559 eval "$as_ac_Header=no"
24560 fi
24561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24562 fi
24563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24566   cat >>confdefs.h <<_ACEOF
24567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24568 _ACEOF
24569
24570 fi
24571
24572 done
24573
24574     NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
24575   fi
24576   if test -d $WANT_NSAPI/plugins/include ; then
24577     test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE"
24578     NSAPI_INCLUDE="$WANT_NSAPI/plugins/include"
24579     echo "$as_me:$LINENO: result: iPlanet 4.x / SunONE 6.x style" >&5
24580 echo "${ECHO_T}iPlanet 4.x / SunONE 6.x style" >&6
24581
24582 for ac_header in $NSAPI_INCLUDE/nsapi.h
24583 do
24584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24585 echo "$as_me:$LINENO: checking for $ac_header" >&5
24586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24588   echo $ECHO_N "(cached) $ECHO_C" >&6
24589 else
24590   cat >conftest.$ac_ext <<_ACEOF
24591 /* confdefs.h.  */
24592 _ACEOF
24593 cat confdefs.h >>conftest.$ac_ext
24594 cat >>conftest.$ac_ext <<_ACEOF
24595 /* end confdefs.h.  */
24596 #define XP_UNIX
24597
24598 #include <$ac_header>
24599 _ACEOF
24600 rm -f conftest.$ac_objext
24601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24602   (eval $ac_compile) 2>conftest.er1
24603   ac_status=$?
24604   grep -v '^ *+' conftest.er1 >conftest.err
24605   rm -f conftest.er1
24606   cat conftest.err >&5
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); } &&
24609          { ac_try='test -z "$ac_cxx_werror_flag"
24610                          || test ! -s conftest.err'
24611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24612   (eval $ac_try) 2>&5
24613   ac_status=$?
24614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615   (exit $ac_status); }; } &&
24616          { ac_try='test -s conftest.$ac_objext'
24617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24618   (eval $ac_try) 2>&5
24619   ac_status=$?
24620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621   (exit $ac_status); }; }; then
24622   eval "$as_ac_Header=yes"
24623 else
24624   echo "$as_me: failed program was:" >&5
24625 sed 's/^/| /' conftest.$ac_ext >&5
24626
24627 eval "$as_ac_Header=no"
24628 fi
24629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24630 fi
24631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24634   cat >>confdefs.h <<_ACEOF
24635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24636 _ACEOF
24637
24638 fi
24639
24640 done
24641
24642     NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
24643   fi
24644   if test "$NSAPI_INCLUDE" = ""; then
24645     { { echo "$as_me:$LINENO: error: Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" >&5
24646 echo "$as_me: error: Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" >&2;}
24647    { (exit 1); exit 1; }; }
24648   fi
24649 fi
24650
24651
24652
24653 # always output the Makefile, even if you don't use it
24654           ac_config_files="$ac_config_files nsapi_shib/Makefile"
24655
24656
24657
24658 if test ! "$WANT_NSAPI" = "no"; then
24659   BUILD_NSAPI_TRUE=
24660   BUILD_NSAPI_FALSE='#'
24661 else
24662   BUILD_NSAPI_TRUE='#'
24663   BUILD_NSAPI_FALSE=
24664 fi
24665
24666
24667 # add the NSAPI module to the list of wanted subdirs..
24668 if test ! "$WANT_NSAPI" = "no" ; then
24669     WANT_SUBDIRS="$WANT_SUBDIRS nsapi_shib"
24670 fi
24671
24672
24673 #
24674 # Build FastCGI support?
24675 #
24676 echo "$as_me:$LINENO: checking for FastCGI support" >&5
24677 echo $ECHO_N "checking for FastCGI support... $ECHO_C" >&6
24678
24679 # Check whether --with-fastcgi or --without-fastcgi was given.
24680 if test "${with_fastcgi+set}" = set; then
24681   withval="$with_fastcgi"
24682   WANT_FASTCGI=$withval
24683 else
24684   WANT_FASTCGI=no
24685 fi;
24686 echo "$as_me:$LINENO: result: $WANT_FASTCGI" >&5
24687 echo "${ECHO_T}$WANT_FASTCGI" >&6
24688
24689 if test "$WANT_FASTCGI" != "no"; then
24690     if test "$WANT_FASTCGI" != "yes"; then
24691         if test x_$WANT_FASTCGI != x_/usr; then
24692             FASTCGI_INCLUDE="-I$WANT_FASTCGI/include"
24693             FASTCGI_LDFLAGS="-L$WANT_FASTCGI/lib"
24694         fi
24695     fi
24696     if test "${ac_cv_header_fcgio_h+set}" = set; then
24697   echo "$as_me:$LINENO: checking for fcgio.h" >&5
24698 echo $ECHO_N "checking for fcgio.h... $ECHO_C" >&6
24699 if test "${ac_cv_header_fcgio_h+set}" = set; then
24700   echo $ECHO_N "(cached) $ECHO_C" >&6
24701 fi
24702 echo "$as_me:$LINENO: result: $ac_cv_header_fcgio_h" >&5
24703 echo "${ECHO_T}$ac_cv_header_fcgio_h" >&6
24704 else
24705   # Is the header compilable?
24706 echo "$as_me:$LINENO: checking fcgio.h usability" >&5
24707 echo $ECHO_N "checking fcgio.h usability... $ECHO_C" >&6
24708 cat >conftest.$ac_ext <<_ACEOF
24709 /* confdefs.h.  */
24710 _ACEOF
24711 cat confdefs.h >>conftest.$ac_ext
24712 cat >>conftest.$ac_ext <<_ACEOF
24713 /* end confdefs.h.  */
24714 $ac_includes_default
24715 #include <fcgio.h>
24716 _ACEOF
24717 rm -f conftest.$ac_objext
24718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24719   (eval $ac_compile) 2>conftest.er1
24720   ac_status=$?
24721   grep -v '^ *+' conftest.er1 >conftest.err
24722   rm -f conftest.er1
24723   cat conftest.err >&5
24724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725   (exit $ac_status); } &&
24726          { ac_try='test -z "$ac_cxx_werror_flag"
24727                          || test ! -s conftest.err'
24728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24729   (eval $ac_try) 2>&5
24730   ac_status=$?
24731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732   (exit $ac_status); }; } &&
24733          { ac_try='test -s conftest.$ac_objext'
24734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735   (eval $ac_try) 2>&5
24736   ac_status=$?
24737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738   (exit $ac_status); }; }; then
24739   ac_header_compiler=yes
24740 else
24741   echo "$as_me: failed program was:" >&5
24742 sed 's/^/| /' conftest.$ac_ext >&5
24743
24744 ac_header_compiler=no
24745 fi
24746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24748 echo "${ECHO_T}$ac_header_compiler" >&6
24749
24750 # Is the header present?
24751 echo "$as_me:$LINENO: checking fcgio.h presence" >&5
24752 echo $ECHO_N "checking fcgio.h presence... $ECHO_C" >&6
24753 cat >conftest.$ac_ext <<_ACEOF
24754 /* confdefs.h.  */
24755 _ACEOF
24756 cat confdefs.h >>conftest.$ac_ext
24757 cat >>conftest.$ac_ext <<_ACEOF
24758 /* end confdefs.h.  */
24759 #include <fcgio.h>
24760 _ACEOF
24761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24763   ac_status=$?
24764   grep -v '^ *+' conftest.er1 >conftest.err
24765   rm -f conftest.er1
24766   cat conftest.err >&5
24767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768   (exit $ac_status); } >/dev/null; then
24769   if test -s conftest.err; then
24770     ac_cpp_err=$ac_cxx_preproc_warn_flag
24771     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24772   else
24773     ac_cpp_err=
24774   fi
24775 else
24776   ac_cpp_err=yes
24777 fi
24778 if test -z "$ac_cpp_err"; then
24779   ac_header_preproc=yes
24780 else
24781   echo "$as_me: failed program was:" >&5
24782 sed 's/^/| /' conftest.$ac_ext >&5
24783
24784   ac_header_preproc=no
24785 fi
24786 rm -f conftest.err conftest.$ac_ext
24787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24788 echo "${ECHO_T}$ac_header_preproc" >&6
24789
24790 # So?  What about this header?
24791 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24792   yes:no: )
24793     { echo "$as_me:$LINENO: WARNING: fcgio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24794 echo "$as_me: WARNING: fcgio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24795     { echo "$as_me:$LINENO: WARNING: fcgio.h: proceeding with the compiler's result" >&5
24796 echo "$as_me: WARNING: fcgio.h: proceeding with the compiler's result" >&2;}
24797     ac_header_preproc=yes
24798     ;;
24799   no:yes:* )
24800     { echo "$as_me:$LINENO: WARNING: fcgio.h: present but cannot be compiled" >&5
24801 echo "$as_me: WARNING: fcgio.h: present but cannot be compiled" >&2;}
24802     { echo "$as_me:$LINENO: WARNING: fcgio.h:     check for missing prerequisite headers?" >&5
24803 echo "$as_me: WARNING: fcgio.h:     check for missing prerequisite headers?" >&2;}
24804     { echo "$as_me:$LINENO: WARNING: fcgio.h: see the Autoconf documentation" >&5
24805 echo "$as_me: WARNING: fcgio.h: see the Autoconf documentation" >&2;}
24806     { echo "$as_me:$LINENO: WARNING: fcgio.h:     section \"Present But Cannot Be Compiled\"" >&5
24807 echo "$as_me: WARNING: fcgio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24808     { echo "$as_me:$LINENO: WARNING: fcgio.h: proceeding with the preprocessor's result" >&5
24809 echo "$as_me: WARNING: fcgio.h: proceeding with the preprocessor's result" >&2;}
24810     { echo "$as_me:$LINENO: WARNING: fcgio.h: in the future, the compiler will take precedence" >&5
24811 echo "$as_me: WARNING: fcgio.h: in the future, the compiler will take precedence" >&2;}
24812     (
24813       cat <<\_ASBOX
24814 ## --------------------------------------------- ##
24815 ## Report this to shibboleth-users@internet2.edu ##
24816 ## --------------------------------------------- ##
24817 _ASBOX
24818     ) |
24819       sed "s/^/$as_me: WARNING:     /" >&2
24820     ;;
24821 esac
24822 echo "$as_me:$LINENO: checking for fcgio.h" >&5
24823 echo $ECHO_N "checking for fcgio.h... $ECHO_C" >&6
24824 if test "${ac_cv_header_fcgio_h+set}" = set; then
24825   echo $ECHO_N "(cached) $ECHO_C" >&6
24826 else
24827   ac_cv_header_fcgio_h=$ac_header_preproc
24828 fi
24829 echo "$as_me:$LINENO: result: $ac_cv_header_fcgio_h" >&5
24830 echo "${ECHO_T}$ac_cv_header_fcgio_h" >&6
24831
24832 fi
24833 if test $ac_cv_header_fcgio_h = yes; then
24834   :
24835 else
24836   { { echo "$as_me:$LINENO: error: unable to find FastCGI header files" >&5
24837 echo "$as_me: error: unable to find FastCGI header files" >&2;}
24838    { (exit 1); exit 1; }; }
24839 fi
24840
24841
24842     FASTCGI_LIBS="-lfcgi -lfcgi++"
24843 fi
24844
24845
24846
24847
24848
24849 # always output the Makefile, even if you don't use it
24850           ac_config_files="$ac_config_files fastcgi/Makefile"
24851
24852
24853
24854 if test ! "$WANT_FASTCGI" = "no"; then
24855   BUILD_FASTCGI_TRUE=
24856   BUILD_FASTCGI_FALSE='#'
24857 else
24858   BUILD_FASTCGI_TRUE='#'
24859   BUILD_FASTCGI_FALSE=
24860 fi
24861
24862
24863 if test ! "$WANT_FASTCGI" = "no" ; then
24864     WANT_SUBDIRS="$WANT_SUBDIRS fastcgi"
24865 fi
24866
24867 #
24868 # Build Memcached support?
24869 #
24870 echo "$as_me:$LINENO: checking for Memcached support" >&5
24871 echo $ECHO_N "checking for Memcached support... $ECHO_C" >&6
24872
24873 # Check whether --with-memcached or --without-memcached was given.
24874 if test "${with_memcached+set}" = set; then
24875   withval="$with_memcached"
24876   WANT_MEMCACHED=$withval
24877 else
24878   WANT_MEMCACHED=no
24879 fi;
24880 echo "$as_me:$LINENO: result: $WANT_MEMCACHED" >&5
24881 echo "${ECHO_T}$WANT_MEMCACHED" >&6
24882
24883 if test "$WANT_MEMCACHED" != "no"; then
24884     if test "$WANT_MEMCACHED" != "yes"; then
24885         if test x_$WANT_MEMCACHED != x_/usr; then
24886             MEMCACHED_INCLUDE="-I$WANT_MEMCACHED/include"
24887             MEMCACHED_LDFLAGS="-L$WANT_MEMCACHED/lib"
24888         fi
24889     fi
24890     if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
24891   echo "$as_me:$LINENO: checking for libmemcached/memcached.h" >&5
24892 echo $ECHO_N "checking for libmemcached/memcached.h... $ECHO_C" >&6
24893 if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
24894   echo $ECHO_N "(cached) $ECHO_C" >&6
24895 fi
24896 echo "$as_me:$LINENO: result: $ac_cv_header_libmemcached_memcached_h" >&5
24897 echo "${ECHO_T}$ac_cv_header_libmemcached_memcached_h" >&6
24898 else
24899   # Is the header compilable?
24900 echo "$as_me:$LINENO: checking libmemcached/memcached.h usability" >&5
24901 echo $ECHO_N "checking libmemcached/memcached.h usability... $ECHO_C" >&6
24902 cat >conftest.$ac_ext <<_ACEOF
24903 /* confdefs.h.  */
24904 _ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h.  */
24908 $ac_includes_default
24909 #include <libmemcached/memcached.h>
24910 _ACEOF
24911 rm -f conftest.$ac_objext
24912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24913   (eval $ac_compile) 2>conftest.er1
24914   ac_status=$?
24915   grep -v '^ *+' conftest.er1 >conftest.err
24916   rm -f conftest.er1
24917   cat conftest.err >&5
24918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919   (exit $ac_status); } &&
24920          { ac_try='test -z "$ac_cxx_werror_flag"
24921                          || test ! -s conftest.err'
24922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24923   (eval $ac_try) 2>&5
24924   ac_status=$?
24925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926   (exit $ac_status); }; } &&
24927          { ac_try='test -s conftest.$ac_objext'
24928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929   (eval $ac_try) 2>&5
24930   ac_status=$?
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); }; }; then
24933   ac_header_compiler=yes
24934 else
24935   echo "$as_me: failed program was:" >&5
24936 sed 's/^/| /' conftest.$ac_ext >&5
24937
24938 ac_header_compiler=no
24939 fi
24940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24942 echo "${ECHO_T}$ac_header_compiler" >&6
24943
24944 # Is the header present?
24945 echo "$as_me:$LINENO: checking libmemcached/memcached.h presence" >&5
24946 echo $ECHO_N "checking libmemcached/memcached.h presence... $ECHO_C" >&6
24947 cat >conftest.$ac_ext <<_ACEOF
24948 /* confdefs.h.  */
24949 _ACEOF
24950 cat confdefs.h >>conftest.$ac_ext
24951 cat >>conftest.$ac_ext <<_ACEOF
24952 /* end confdefs.h.  */
24953 #include <libmemcached/memcached.h>
24954 _ACEOF
24955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24957   ac_status=$?
24958   grep -v '^ *+' conftest.er1 >conftest.err
24959   rm -f conftest.er1
24960   cat conftest.err >&5
24961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962   (exit $ac_status); } >/dev/null; then
24963   if test -s conftest.err; then
24964     ac_cpp_err=$ac_cxx_preproc_warn_flag
24965     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24966   else
24967     ac_cpp_err=
24968   fi
24969 else
24970   ac_cpp_err=yes
24971 fi
24972 if test -z "$ac_cpp_err"; then
24973   ac_header_preproc=yes
24974 else
24975   echo "$as_me: failed program was:" >&5
24976 sed 's/^/| /' conftest.$ac_ext >&5
24977
24978   ac_header_preproc=no
24979 fi
24980 rm -f conftest.err conftest.$ac_ext
24981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24982 echo "${ECHO_T}$ac_header_preproc" >&6
24983
24984 # So?  What about this header?
24985 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24986   yes:no: )
24987     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: accepted by the compiler, rejected by the preprocessor!" >&5
24988 echo "$as_me: WARNING: libmemcached/memcached.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24989     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: proceeding with the compiler's result" >&5
24990 echo "$as_me: WARNING: libmemcached/memcached.h: proceeding with the compiler's result" >&2;}
24991     ac_header_preproc=yes
24992     ;;
24993   no:yes:* )
24994     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: present but cannot be compiled" >&5
24995 echo "$as_me: WARNING: libmemcached/memcached.h: present but cannot be compiled" >&2;}
24996     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h:     check for missing prerequisite headers?" >&5
24997 echo "$as_me: WARNING: libmemcached/memcached.h:     check for missing prerequisite headers?" >&2;}
24998     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: see the Autoconf documentation" >&5
24999 echo "$as_me: WARNING: libmemcached/memcached.h: see the Autoconf documentation" >&2;}
25000     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h:     section \"Present But Cannot Be Compiled\"" >&5
25001 echo "$as_me: WARNING: libmemcached/memcached.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25002     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: proceeding with the preprocessor's result" >&5
25003 echo "$as_me: WARNING: libmemcached/memcached.h: proceeding with the preprocessor's result" >&2;}
25004     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: in the future, the compiler will take precedence" >&5
25005 echo "$as_me: WARNING: libmemcached/memcached.h: in the future, the compiler will take precedence" >&2;}
25006     (
25007       cat <<\_ASBOX
25008 ## --------------------------------------------- ##
25009 ## Report this to shibboleth-users@internet2.edu ##
25010 ## --------------------------------------------- ##
25011 _ASBOX
25012     ) |
25013       sed "s/^/$as_me: WARNING:     /" >&2
25014     ;;
25015 esac
25016 echo "$as_me:$LINENO: checking for libmemcached/memcached.h" >&5
25017 echo $ECHO_N "checking for libmemcached/memcached.h... $ECHO_C" >&6
25018 if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
25019   echo $ECHO_N "(cached) $ECHO_C" >&6
25020 else
25021   ac_cv_header_libmemcached_memcached_h=$ac_header_preproc
25022 fi
25023 echo "$as_me:$LINENO: result: $ac_cv_header_libmemcached_memcached_h" >&5
25024 echo "${ECHO_T}$ac_cv_header_libmemcached_memcached_h" >&6
25025
25026 fi
25027 if test $ac_cv_header_libmemcached_memcached_h = yes; then
25028   :
25029 else
25030   { { echo "$as_me:$LINENO: error: unable to find Memcached header files" >&5
25031 echo "$as_me: error: unable to find Memcached header files" >&2;}
25032    { (exit 1); exit 1; }; }
25033 fi
25034
25035
25036     MEMCACHED_LIBS="-lmemcached"
25037 fi
25038
25039
25040
25041
25042
25043 # always output the Makefile, even if you don't use it
25044           ac_config_files="$ac_config_files memcache-store/Makefile"
25045
25046
25047
25048 if test ! "$WANT_MEMCACHED" = "no"; then
25049   BUILD_MEMCACHED_TRUE=
25050   BUILD_MEMCACHED_FALSE='#'
25051 else
25052   BUILD_MEMCACHED_TRUE='#'
25053   BUILD_MEMCACHED_FALSE=
25054 fi
25055
25056
25057 if test ! "$WANT_MEMCACHED" = "no" ; then
25058     WANT_SUBDIRS="$WANT_SUBDIRS memcache-store"
25059 fi
25060
25061
25062 #
25063 # If no --enable-apache-xx specified
25064 # find a default and fake the specific parameters
25065 #
25066
25067 # simple macro to peek at an enable or a with
25068
25069
25070 echo "$as_me:$LINENO: checking if default apache needed" >&5
25071 echo $ECHO_N "checking if default apache needed... $ECHO_C" >&6
25072 need_default=yes
25073 if test "${enable_apache_13+set}" = set; then
25074   peekval="${enable_apache_13}"
25075   need_default=no
25076 fi;
25077 if test "${enable_apache_20+set}" = set; then
25078   peekval="${enable_apache_20}"
25079   need_default=no
25080 fi;
25081 if test "${enable_apache_22+set}" = set; then
25082   peekval="${enable_apache_22}"
25083   need_default=no
25084 fi;
25085 echo "$as_me:$LINENO: result: $need_default" >&5
25086 echo "${ECHO_T}$need_default" >&6
25087
25088 if test "$need_default" = "yes"; then
25089   # find an apxs, then the httpd
25090   xs=
25091   if test "${with_apxs+set}" = set; then
25092   peekval="${with_apxs}"
25093   xs="$peekval"
25094 fi;
25095   if test "${with_apxs2+set}" = set; then
25096   peekval="${with_apxs2}"
25097   xs="$peekval"
25098 fi;
25099   if test "${with_apxs22+set}" = set; then
25100   peekval="${with_apxs22}"
25101   xs="$peekval"
25102 fi;
25103   if test "x$xs" = "x"; then
25104      for ac_prog in apxs2 apxs
25105 do
25106   # Extract the first word of "$ac_prog", so it can be a program name with args.
25107 set dummy $ac_prog; ac_word=$2
25108 echo "$as_me:$LINENO: checking for $ac_word" >&5
25109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25110 if test "${ac_cv_path_xs+set}" = set; then
25111   echo $ECHO_N "(cached) $ECHO_C" >&6
25112 else
25113   case $xs in
25114   [\\/]* | ?:[\\/]*)
25115   ac_cv_path_xs="$xs" # Let the user override the test with a path.
25116   ;;
25117   *)
25118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25119 as_dummy="/usr/local/apache2/bin:/usr/local/apache/bin:/usr/sbin:$PATH"
25120 for as_dir in $as_dummy
25121 do
25122   IFS=$as_save_IFS
25123   test -z "$as_dir" && as_dir=.
25124   for ac_exec_ext in '' $ac_executable_extensions; do
25125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25126     ac_cv_path_xs="$as_dir/$ac_word$ac_exec_ext"
25127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25128     break 2
25129   fi
25130 done
25131 done
25132
25133   ;;
25134 esac
25135 fi
25136 xs=$ac_cv_path_xs
25137
25138 if test -n "$xs"; then
25139   echo "$as_me:$LINENO: result: $xs" >&5
25140 echo "${ECHO_T}$xs" >&6
25141 else
25142   echo "$as_me:$LINENO: result: no" >&5
25143 echo "${ECHO_T}no" >&6
25144 fi
25145
25146   test -n "$xs" && break
25147 done
25148 test -n "$xs" || xs="{ { echo "$as_me:$LINENO: error: No apxs" >&5
25149 echo "$as_me: error: No apxs" >&2;}
25150    { (exit no apache found.  Try --with-apxs); exit no apache found.  Try --with-apxs; }; }"
25151
25152   fi
25153   # ask the daemon for the version and set parameters
25154   echo "$as_me:$LINENO: checking default apache version" >&5
25155 echo $ECHO_N "checking default apache version... $ECHO_C" >&6
25156   httpd="`$xs -q SBINDIR`/`$xs -q TARGET`"
25157   if test "x$httpd" != "x" && test -f $httpd ; then
25158      v=`$httpd -v|$SED -n -e 's/.*Apache\/\.*//p'`
25159      case $v in
25160        1.3*)   enable_apache_13=yes
25161                with_apxs=$xs
25162                echo "$as_me:$LINENO: result: 1.3" >&5
25163 echo "${ECHO_T}1.3" >&6
25164                ;;
25165        2.0*)   enable_apache_20=yes
25166                with_apxs2=$xs
25167                echo "$as_me:$LINENO: result: 2.0" >&5
25168 echo "${ECHO_T}2.0" >&6
25169                ;;
25170        2.2*)   enable_apache_22=yes
25171                with_apxs22=$xs
25172                echo "$as_me:$LINENO: result: 2.2" >&5
25173 echo "${ECHO_T}2.2" >&6
25174                ;;
25175        *)      { { echo "$as_me:$LINENO: error: unusable apache versions: $v. Try setting --with-apxs" >&5
25176 echo "$as_me: error: unusable apache versions: $v. Try setting --with-apxs" >&2;}
25177    { (exit 1); exit 1; }; }
25178      esac
25179   else
25180      echo "$as_me:$LINENO: result: cannot determine version.  Try setting --with-apxs" >&5
25181 echo "${ECHO_T}cannot determine version.  Try setting --with-apxs" >&6
25182   fi
25183 fi
25184
25185 # Apache 1.3 (mod_shib_13)
25186 #   --enable-apache-13
25187 #   --with-apxs      (DSO build, the normal way, uses apxs to derive build flags)
25188
25189 # Check whether --enable-apache-13 or --disable-apache-13 was given.
25190 if test "${enable_apache_13+set}" = set; then
25191   enableval="$enable_apache_13"
25192    if test "x$enableval" = "x" ; then
25193               WANT_APACHE_13=yes
25194           else
25195               WANT_APACHE_13="$enableval"
25196           fi
25197
25198 else
25199    WANT_APACHE_13=no
25200 fi;
25201 echo "$as_me:$LINENO: checking whether to build Apache 1.3 module" >&5
25202 echo $ECHO_N "checking whether to build Apache 1.3 module... $ECHO_C" >&6
25203 if test "$WANT_APACHE_13" != yes && test "$WANT_APACHE_13" != no ; then
25204    WANT_APACHE_13=yes
25205 fi
25206 echo "$as_me:$LINENO: result: $WANT_APACHE_13" >&5
25207 echo "${ECHO_T}$WANT_APACHE_13" >&6
25208
25209 if test "$WANT_APACHE_13" = "yes" ; then
25210
25211 # Check whether --with-apxs or --without-apxs was given.
25212 if test "${with_apxs+set}" = set; then
25213   withval="$with_apxs"
25214
25215         echo "$as_me:$LINENO: checking for user-specified apxs name/location" >&5
25216 echo $ECHO_N "checking for user-specified apxs name/location... $ECHO_C" >&6
25217         if test "$withval" != "no" ; then
25218           if test "$withval" != "yes"; then
25219             APXS=$withval
25220             echo "$as_me:$LINENO: result: \"$withval\"" >&5
25221 echo "${ECHO_T}\"$withval\"" >&6
25222           fi
25223         fi
25224
25225 else
25226
25227         # Extract the first word of "apxs", so it can be a program name with args.
25228 set dummy apxs; ac_word=$2
25229 echo "$as_me:$LINENO: checking for $ac_word" >&5
25230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25231 if test "${ac_cv_path_APXS+set}" = set; then
25232   echo $ECHO_N "(cached) $ECHO_C" >&6
25233 else
25234   case $APXS in
25235   [\\/]* | ?:[\\/]*)
25236   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
25237   ;;
25238   *)
25239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25240 for as_dir in $PATH
25241 do
25242   IFS=$as_save_IFS
25243   test -z "$as_dir" && as_dir=.
25244   for ac_exec_ext in '' $ac_executable_extensions; do
25245   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25246     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
25247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25248     break 2
25249   fi
25250 done
25251 done
25252
25253   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
25254   ;;
25255 esac
25256 fi
25257 APXS=$ac_cv_path_APXS
25258
25259 if test -n "$APXS"; then
25260   echo "$as_me:$LINENO: result: $APXS" >&5
25261 echo "${ECHO_T}$APXS" >&6
25262 else
25263   echo "$as_me:$LINENO: result: no" >&5
25264 echo "${ECHO_T}no" >&6
25265 fi
25266
25267         if test "$APXS" = "no" ; then
25268           for i in /usr/sbin /usr/local/apache/bin ; do
25269             if test "$APXS" = "no" && test -f "$i/apxs"; then
25270               APXS="$i/apxs"
25271             fi
25272           done
25273         fi
25274
25275 fi;
25276
25277     echo "$as_me:$LINENO: checking to see if apxs was located" >&5
25278 echo $ECHO_N "checking to see if apxs was located... $ECHO_C" >&6
25279     if test ! -f "$APXS" ; then
25280         echo "$as_me:$LINENO: result: no" >&5
25281 echo "${ECHO_T}no" >&6
25282         { { 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
25283 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;}
25284    { (exit 1); exit 1; }; }
25285     fi
25286     echo "$as_me:$LINENO: result: $APXS" >&5
25287 echo "${ECHO_T}$APXS" >&6
25288
25289
25290     # extract settings we need from APXS -q
25291     APXS_CC="`$APXS -q CC`"
25292     APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q CFLAGS_SHLIB`"
25293     APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
25294 fi
25295
25296
25297
25298
25299
25300 # Apache 2.0 (mod_shib_20)
25301 #   --enable-apache-20
25302 #   --with-apxs2      (DSO build, the normal way, uses apxs to derive build flags)
25303 #       --with-apr        (DSO build, APR development package installed separately)
25304
25305 # Check whether --enable-apache-20 or --disable-apache-20 was given.
25306 if test "${enable_apache_20+set}" = set; then
25307   enableval="$enable_apache_20"
25308    if test "x$enableval" = "x" ; then
25309               WANT_APACHE_20=yes
25310           else
25311               WANT_APACHE_20="$enableval"
25312           fi
25313
25314 else
25315    WANT_APACHE_20=no
25316 fi;
25317 echo "$as_me:$LINENO: checking whether to build Apache 2.0 module" >&5
25318 echo $ECHO_N "checking whether to build Apache 2.0 module... $ECHO_C" >&6
25319 if test "$WANT_APACHE_20" != yes && test "$WANT_APACHE_20" != no ; then
25320    WANT_APACHE_20=yes
25321 fi
25322 echo "$as_me:$LINENO: result: $WANT_APACHE_20" >&5
25323 echo "${ECHO_T}$WANT_APACHE_20" >&6
25324
25325 if test "$WANT_APACHE_20" = "yes" ; then
25326
25327 # Check whether --with-apxs2 or --without-apxs2 was given.
25328 if test "${with_apxs2+set}" = set; then
25329   withval="$with_apxs2"
25330
25331         echo "$as_me:$LINENO: checking for user-specified Apache2 apxs name/location" >&5
25332 echo $ECHO_N "checking for user-specified Apache2 apxs name/location... $ECHO_C" >&6
25333         if test "$withval" != "no" ; then
25334           if test "$withval" != "yes"; then
25335             APXS2=$withval
25336             echo "$as_me:$LINENO: result: \"$withval\"" >&5
25337 echo "${ECHO_T}\"$withval\"" >&6
25338           fi
25339         fi
25340
25341 else
25342
25343         # Extract the first word of "apxs2", so it can be a program name with args.
25344 set dummy apxs2; ac_word=$2
25345 echo "$as_me:$LINENO: checking for $ac_word" >&5
25346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25347 if test "${ac_cv_path_APXS2+set}" = set; then
25348   echo $ECHO_N "(cached) $ECHO_C" >&6
25349 else
25350   case $APXS2 in
25351   [\\/]* | ?:[\\/]*)
25352   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
25353   ;;
25354   *)
25355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25356 for as_dir in $PATH
25357 do
25358   IFS=$as_save_IFS
25359   test -z "$as_dir" && as_dir=.
25360   for ac_exec_ext in '' $ac_executable_extensions; do
25361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25362     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
25363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25364     break 2
25365   fi
25366 done
25367 done
25368
25369   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
25370   ;;
25371 esac
25372 fi
25373 APXS2=$ac_cv_path_APXS2
25374
25375 if test -n "$APXS2"; then
25376   echo "$as_me:$LINENO: result: $APXS2" >&5
25377 echo "${ECHO_T}$APXS2" >&6
25378 else
25379   echo "$as_me:$LINENO: result: no" >&5
25380 echo "${ECHO_T}no" >&6
25381 fi
25382
25383         if test "$APXS2" = "no" ; then
25384             # Extract the first word of "apxs", so it can be a program name with args.
25385 set dummy apxs; ac_word=$2
25386 echo "$as_me:$LINENO: checking for $ac_word" >&5
25387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25388 if test "${ac_cv_path_APXS2+set}" = set; then
25389   echo $ECHO_N "(cached) $ECHO_C" >&6
25390 else
25391   case $APXS2 in
25392   [\\/]* | ?:[\\/]*)
25393   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
25394   ;;
25395   *)
25396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25397 for as_dir in $PATH
25398 do
25399   IFS=$as_save_IFS
25400   test -z "$as_dir" && as_dir=.
25401   for ac_exec_ext in '' $ac_executable_extensions; do
25402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25403     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
25404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25405     break 2
25406   fi
25407 done
25408 done
25409
25410   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
25411   ;;
25412 esac
25413 fi
25414 APXS2=$ac_cv_path_APXS2
25415
25416 if test -n "$APXS2"; then
25417   echo "$as_me:$LINENO: result: $APXS2" >&5
25418 echo "${ECHO_T}$APXS2" >&6
25419 else
25420   echo "$as_me:$LINENO: result: no" >&5
25421 echo "${ECHO_T}no" >&6
25422 fi
25423
25424         fi
25425         if test "$APXS2" = "no" ; then
25426           for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25427             if test "$APXS2" = "no" && test -f "$i/apxs2" ; then
25428               APXS2="$i/apxs2"
25429             fi
25430           done
25431           if test "$APXS2" = "no" ; then
25432             for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25433               if test "$APXS2" = "no" && test -f "$i/apxs" ; then
25434                 APXS2="$i/apxs"
25435               fi
25436             done
25437           fi
25438         fi
25439
25440 fi;
25441
25442     echo "$as_me:$LINENO: checking to see if Apache2 apxs was located" >&5
25443 echo $ECHO_N "checking to see if Apache2 apxs was located... $ECHO_C" >&6
25444     if test ! -f "$APXS2" ; then
25445         echo "$as_me:$LINENO: result: no" >&5
25446 echo "${ECHO_T}no" >&6
25447         { { 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
25448 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;}
25449    { (exit 1); exit 1; }; }
25450     fi
25451     echo "$as_me:$LINENO: result: $APXS2" >&5
25452 echo "${ECHO_T}$APXS2" >&6
25453
25454
25455     # APR settings
25456
25457 # Check whether --with-apr or --without-apr was given.
25458 if test "${with_apr+set}" = set; then
25459   withval="$with_apr"
25460
25461         echo "$as_me:$LINENO: checking for user-specified apr-config name/location" >&5
25462 echo $ECHO_N "checking for user-specified apr-config name/location... $ECHO_C" >&6
25463         if test "$withval" != "no" ; then
25464             if test "$withval" != "yes"; then
25465                 APR_CONFIG=$withval
25466                 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25467 echo "${ECHO_T}\"$withval\"" >&6
25468             fi
25469         fi
25470
25471 else
25472
25473         # Extract the first word of "apr-config", so it can be a program name with args.
25474 set dummy apr-config; ac_word=$2
25475 echo "$as_me:$LINENO: checking for $ac_word" >&5
25476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25477 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
25478   echo $ECHO_N "(cached) $ECHO_C" >&6
25479 else
25480   case $APR_CONFIG in
25481   [\\/]* | ?:[\\/]*)
25482   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
25483   ;;
25484   *)
25485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25486 as_dummy="`$APXS2 -q SBINDIR`:$PATH"
25487 for as_dir in $as_dummy
25488 do
25489   IFS=$as_save_IFS
25490   test -z "$as_dir" && as_dir=.
25491   for ac_exec_ext in '' $ac_executable_extensions; do
25492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25493     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25495     break 2
25496   fi
25497 done
25498 done
25499
25500   ;;
25501 esac
25502 fi
25503 APR_CONFIG=$ac_cv_path_APR_CONFIG
25504
25505 if test -n "$APR_CONFIG"; then
25506   echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
25507 echo "${ECHO_T}$APR_CONFIG" >&6
25508 else
25509   echo "$as_me:$LINENO: result: no" >&5
25510 echo "${ECHO_T}no" >&6
25511 fi
25512
25513
25514 fi;
25515         if test -f "${APR_CONFIG}"; then
25516         APR_CFLAGS="`${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags` `${APR_CONFIG} --includes`"
25517     else
25518         { { echo "$as_me:$LINENO: error: Unable to locate apr-config, may need --with-apr option." >&5
25519 echo "$as_me: error: Unable to locate apr-config, may need --with-apr option." >&2;}
25520    { (exit 1); exit 1; }; }
25521     fi
25522
25523     # extract settings we need from APXS2 -q
25524     APXS2_CC="`$APXS2 -q CC`"
25525     APXS2_CFLAGS="`$APXS2 -q CPPFLAGS` `$APXS2 -q CFLAGS` $APR_CFLAGS"
25526     APXS2_INCLUDE="`$APXS2 -q INCLUDEDIR`"
25527 fi
25528
25529
25530
25531
25532
25533 # Apache 2.2 (mod_shib_22)
25534 #   --enable-apache-22
25535 #   --with-apxs22     (DSO build, the normal way, uses apxs to derive build flags)
25536 #       --with-apr1       (DSO build, APR development package installed separately)
25537
25538 # Check whether --enable-apache-22 or --disable-apache-22 was given.
25539 if test "${enable_apache_22+set}" = set; then
25540   enableval="$enable_apache_22"
25541    if test "x$enableval" = "x" ; then
25542               WANT_APACHE_22=yes
25543           else
25544               WANT_APACHE_22="$enableval"
25545           fi
25546
25547 else
25548    WANT_APACHE_22=no
25549 fi;
25550 echo "$as_me:$LINENO: checking whether to build Apache 2.2 module" >&5
25551 echo $ECHO_N "checking whether to build Apache 2.2 module... $ECHO_C" >&6
25552 if test "$WANT_APACHE_22" != yes && test "$WANT_APACHE_22" != no ; then
25553    WANT_APACHE_22=yes
25554 fi
25555 echo "$as_me:$LINENO: result: $WANT_APACHE_22" >&5
25556 echo "${ECHO_T}$WANT_APACHE_22" >&6
25557
25558 if test "$WANT_APACHE_22" = "yes" ; then
25559
25560 # Check whether --with-apxs22 or --without-apxs22 was given.
25561 if test "${with_apxs22+set}" = set; then
25562   withval="$with_apxs22"
25563
25564         echo "$as_me:$LINENO: checking for user-specified Apache2.2 apxs name/location" >&5
25565 echo $ECHO_N "checking for user-specified Apache2.2 apxs name/location... $ECHO_C" >&6
25566         if test "$withval" != "no" ; then
25567           if test "$withval" != "yes"; then
25568             APXS22=$withval
25569             echo "$as_me:$LINENO: result: \"$withval\"" >&5
25570 echo "${ECHO_T}\"$withval\"" >&6
25571           fi
25572         fi
25573
25574 else
25575
25576         # Extract the first word of "apxs2", so it can be a program name with args.
25577 set dummy apxs2; ac_word=$2
25578 echo "$as_me:$LINENO: checking for $ac_word" >&5
25579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25580 if test "${ac_cv_path_APXS22+set}" = set; then
25581   echo $ECHO_N "(cached) $ECHO_C" >&6
25582 else
25583   case $APXS22 in
25584   [\\/]* | ?:[\\/]*)
25585   ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
25586   ;;
25587   *)
25588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25589 for as_dir in $PATH
25590 do
25591   IFS=$as_save_IFS
25592   test -z "$as_dir" && as_dir=.
25593   for ac_exec_ext in '' $ac_executable_extensions; do
25594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25595     ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
25596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25597     break 2
25598   fi
25599 done
25600 done
25601
25602   test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
25603   ;;
25604 esac
25605 fi
25606 APXS22=$ac_cv_path_APXS22
25607
25608 if test -n "$APXS22"; then
25609   echo "$as_me:$LINENO: result: $APXS22" >&5
25610 echo "${ECHO_T}$APXS22" >&6
25611 else
25612   echo "$as_me:$LINENO: result: no" >&5
25613 echo "${ECHO_T}no" >&6
25614 fi
25615
25616         if test "$APXS22" = "no" ; then
25617             # Extract the first word of "apxs", so it can be a program name with args.
25618 set dummy apxs; ac_word=$2
25619 echo "$as_me:$LINENO: checking for $ac_word" >&5
25620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25621 if test "${ac_cv_path_APXS22+set}" = set; then
25622   echo $ECHO_N "(cached) $ECHO_C" >&6
25623 else
25624   case $APXS22 in
25625   [\\/]* | ?:[\\/]*)
25626   ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
25627   ;;
25628   *)
25629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25630 for as_dir in $PATH
25631 do
25632   IFS=$as_save_IFS
25633   test -z "$as_dir" && as_dir=.
25634   for ac_exec_ext in '' $ac_executable_extensions; do
25635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25636     ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
25637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25638     break 2
25639   fi
25640 done
25641 done
25642
25643   test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
25644   ;;
25645 esac
25646 fi
25647 APXS22=$ac_cv_path_APXS22
25648
25649 if test -n "$APXS22"; then
25650   echo "$as_me:$LINENO: result: $APXS22" >&5
25651 echo "${ECHO_T}$APXS22" >&6
25652 else
25653   echo "$as_me:$LINENO: result: no" >&5
25654 echo "${ECHO_T}no" >&6
25655 fi
25656
25657         fi
25658         if test "$APXS22" = "no" ; then
25659           for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25660             if test "$APXS22" = "no" && test -f "$i/apxs2" ; then
25661               APXS22="$i/apxs2"
25662             fi
25663           done
25664           if test "$APXS22" = "no" ; then
25665             for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25666               if test "$APXS22" = "no" && test -f "$i/apxs" ; then
25667                 APXS22="$i/apxs"
25668               fi
25669             done
25670           fi
25671         fi
25672
25673 fi;
25674
25675     echo "$as_me:$LINENO: checking to see if Apache2.2 apxs was located" >&5
25676 echo $ECHO_N "checking to see if Apache2.2 apxs was located... $ECHO_C" >&6
25677     if test ! -f "$APXS22" ; then
25678         echo "$as_me:$LINENO: result: no" >&5
25679 echo "${ECHO_T}no" >&6
25680         { { 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
25681 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;}
25682    { (exit 1); exit 1; }; }
25683     fi
25684     echo "$as_me:$LINENO: result: $APXS22" >&5
25685 echo "${ECHO_T}$APXS22" >&6
25686
25687
25688     # APR1 settings
25689
25690 # Check whether --with-apr1 or --without-apr1 was given.
25691 if test "${with_apr1+set}" = set; then
25692   withval="$with_apr1"
25693
25694         echo "$as_me:$LINENO: checking for user-specified apr-1-config name/location" >&5
25695 echo $ECHO_N "checking for user-specified apr-1-config name/location... $ECHO_C" >&6
25696         if test "$withval" != "no" ; then
25697             if test "$withval" != "yes"; then
25698                 APR1_CONFIG=$withval
25699                 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25700 echo "${ECHO_T}\"$withval\"" >&6
25701             fi
25702         fi
25703
25704 else
25705
25706         # Extract the first word of "apr-1-config", so it can be a program name with args.
25707 set dummy apr-1-config; ac_word=$2
25708 echo "$as_me:$LINENO: checking for $ac_word" >&5
25709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25710 if test "${ac_cv_path_APR1_CONFIG+set}" = set; then
25711   echo $ECHO_N "(cached) $ECHO_C" >&6
25712 else
25713   case $APR1_CONFIG in
25714   [\\/]* | ?:[\\/]*)
25715   ac_cv_path_APR1_CONFIG="$APR1_CONFIG" # Let the user override the test with a path.
25716   ;;
25717   *)
25718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25719 as_dummy="`$APXS22 -q SBINDIR`:$PATH"
25720 for as_dir in $as_dummy
25721 do
25722   IFS=$as_save_IFS
25723   test -z "$as_dir" && as_dir=.
25724   for ac_exec_ext in '' $ac_executable_extensions; do
25725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25726     ac_cv_path_APR1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25728     break 2
25729   fi
25730 done
25731 done
25732
25733   ;;
25734 esac
25735 fi
25736 APR1_CONFIG=$ac_cv_path_APR1_CONFIG
25737
25738 if test -n "$APR1_CONFIG"; then
25739   echo "$as_me:$LINENO: result: $APR1_CONFIG" >&5
25740 echo "${ECHO_T}$APR1_CONFIG" >&6
25741 else
25742   echo "$as_me:$LINENO: result: no" >&5
25743 echo "${ECHO_T}no" >&6
25744 fi
25745
25746
25747 fi;
25748         if test -f "${APR1_CONFIG}"; then
25749         APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags` `${APR1_CONFIG} --includes`"
25750     else
25751         { { echo "$as_me:$LINENO: error: Unable to locate apr-1-config, may need --with-apr1 option." >&5
25752 echo "$as_me: error: Unable to locate apr-1-config, may need --with-apr1 option." >&2;}
25753    { (exit 1); exit 1; }; }
25754     fi
25755
25756     # extract settings we need from APXS22 -q
25757     APXS22_CC="`$APXS22 -q CC`"
25758     APXS22_CFLAGS="`$APXS22 -q CPPFLAGS` `$APXS22 -q CFLAGS` $APR1_CFLAGS"
25759     APXS22_INCLUDE="`$APXS22 -q INCLUDEDIR`"
25760 fi
25761
25762
25763
25764
25765 # always output the Makefile, even if you don't use it
25766           ac_config_files="$ac_config_files apache/Makefile"
25767
25768
25769
25770 if test "$WANT_APACHE_13" = "yes"; then
25771   BUILD_AP13_TRUE=
25772   BUILD_AP13_FALSE='#'
25773 else
25774   BUILD_AP13_TRUE='#'
25775   BUILD_AP13_FALSE=
25776 fi
25777
25778
25779
25780 if test "$WANT_APACHE_20" = "yes"; then
25781   BUILD_AP20_TRUE=
25782   BUILD_AP20_FALSE='#'
25783 else
25784   BUILD_AP20_TRUE='#'
25785   BUILD_AP20_FALSE=
25786 fi
25787
25788
25789
25790 if test "$WANT_APACHE_22" = "yes"; then
25791   BUILD_AP22_TRUE=
25792   BUILD_AP22_FALSE='#'
25793 else
25794   BUILD_AP22_TRUE='#'
25795   BUILD_AP22_FALSE=
25796 fi
25797
25798
25799 # add the apache module to the list of wanted subdirs..
25800 if test "$WANT_APACHE_13" = "yes" || test "$WANT_APACHE_20" = "yes" || test "$WANT_APACHE_22" = "yes" ; then
25801     WANT_SUBDIRS="$WANT_SUBDIRS apache"
25802 fi
25803
25804
25805 #
25806 # Implement the checks of the ODBC Storage Service
25807 #
25808 # 1) Assume the user wants ODBC; if it's not found then just continue without
25809 # 2) If the user specifically requested odbc, look for it and ERROR if not found
25810 # 3) If the user specifically requested no odbc, don't build it.
25811 #
25812
25813           ac_config_files="$ac_config_files odbc-store/Makefile"
25814
25815
25816 # determine whether we should enable the odbc ccache
25817 # Check whether --enable-odbc or --disable-odbc was given.
25818 if test "${enable_odbc+set}" = set; then
25819   enableval="$enable_odbc"
25820   odbc_enabled=$enableval
25821 else
25822   odbc_enabled=default
25823 fi;
25824
25825 if test "x$odbc_enabled" = "x" ; then
25826    odbc_enabled=yes
25827 fi
25828
25829 # Are we trying to build ODBC?
25830 echo "$as_me:$LINENO: checking whether to build the ODBC storage service" >&5
25831 echo $ECHO_N "checking whether to build the ODBC storage service... $ECHO_C" >&6
25832 if test "$odbc_enabled" = "yes" ; then
25833    build_odbc=yes
25834    echo "$as_me:$LINENO: result: yes" >&5
25835 echo "${ECHO_T}yes" >&6
25836 elif test "$odbc_enabled" = "default" ; then
25837    build_odbc=yes
25838    echo "$as_me:$LINENO: result: yes, if it can be found" >&5
25839 echo "${ECHO_T}yes, if it can be found" >&6
25840 else
25841    build_odbc=no
25842    echo "$as_me:$LINENO: result: no" >&5
25843 echo "${ECHO_T}no" >&6
25844 fi
25845
25846 # If we're trying to build ODBC, try to find the odbc_config program.
25847 if test "$build_odbc" = "yes" ; then
25848    odbc_dir=""
25849
25850 # Check whether --with-odbc or --without-odbc was given.
25851 if test "${with_odbc+set}" = set; then
25852   withval="$with_odbc"
25853   if test "$with_odbc" = no ; then
25854                { { echo "$as_me:$LINENO: error: Try running --disable-odbc instead." >&5
25855 echo "$as_me: error: Try running --disable-odbc instead." >&2;}
25856    { (exit 1); exit 1; }; }
25857              elif test "$with_odbc" != yes ; then
25858                odbc_dir="$with_odbc/bin"
25859                if test "$with_odbc" != /usr ; then
25860                  ODBC_CFLAGS="-I$with_odbc/include"
25861                  ODBC_LIBS="-L$with_odbc/lib"
25862                fi
25863              fi
25864 fi;
25865
25866    # Extract the first word of "odbc_config", so it can be a program name with args.
25867 set dummy odbc_config; ac_word=$2
25868 echo "$as_me:$LINENO: checking for $ac_word" >&5
25869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25870 if test "${ac_cv_path_ODBC_CONFIG+set}" = set; then
25871   echo $ECHO_N "(cached) $ECHO_C" >&6
25872 else
25873   case $ODBC_CONFIG in
25874   [\\/]* | ?:[\\/]*)
25875   ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path.
25876   ;;
25877   *)
25878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25879 for as_dir in $odbc_dir $PATH
25880 do
25881   IFS=$as_save_IFS
25882   test -z "$as_dir" && as_dir=.
25883   for ac_exec_ext in '' $ac_executable_extensions; do
25884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25885     ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25887     break 2
25888   fi
25889 done
25890 done
25891
25892   test -z "$ac_cv_path_ODBC_CONFIG" && ac_cv_path_ODBC_CONFIG="no"
25893   ;;
25894 esac
25895 fi
25896 ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG
25897
25898 if test -n "$ODBC_CONFIG"; then
25899   echo "$as_me:$LINENO: result: $ODBC_CONFIG" >&5
25900 echo "${ECHO_T}$ODBC_CONFIG" >&6
25901 else
25902   echo "$as_me:$LINENO: result: no" >&5
25903 echo "${ECHO_T}no" >&6
25904 fi
25905
25906    if test "$ODBC_CONFIG" = no ; then
25907       { echo "$as_me:$LINENO: WARNING: Cannot find odbc_config, will try to guess settings." >&5
25908 echo "$as_me: WARNING: Cannot find odbc_config, will try to guess settings." >&2;}
25909       ODBC_LIBS="$ODBC_LIBS -lodbc"
25910    else
25911       ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
25912       ODBC_LIBS=`$ODBC_CONFIG --libs`
25913    fi
25914
25915    save_CPPFLAGS="$CPPFLAGS"
25916    CPPFLAGS="$CPPFLAGS $ODBC_CFLAGS"
25917
25918    if test "${ac_cv_header_sql_h+set}" = set; then
25919   echo "$as_me:$LINENO: checking for sql.h" >&5
25920 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25921 if test "${ac_cv_header_sql_h+set}" = set; then
25922   echo $ECHO_N "(cached) $ECHO_C" >&6
25923 fi
25924 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25925 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25926 else
25927   # Is the header compilable?
25928 echo "$as_me:$LINENO: checking sql.h usability" >&5
25929 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
25930 cat >conftest.$ac_ext <<_ACEOF
25931 /* confdefs.h.  */
25932 _ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h.  */
25936 $ac_includes_default
25937 #include <sql.h>
25938 _ACEOF
25939 rm -f conftest.$ac_objext
25940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25941   (eval $ac_compile) 2>conftest.er1
25942   ac_status=$?
25943   grep -v '^ *+' conftest.er1 >conftest.err
25944   rm -f conftest.er1
25945   cat conftest.err >&5
25946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947   (exit $ac_status); } &&
25948          { ac_try='test -z "$ac_cxx_werror_flag"
25949                          || test ! -s conftest.err'
25950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25951   (eval $ac_try) 2>&5
25952   ac_status=$?
25953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954   (exit $ac_status); }; } &&
25955          { ac_try='test -s conftest.$ac_objext'
25956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25957   (eval $ac_try) 2>&5
25958   ac_status=$?
25959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960   (exit $ac_status); }; }; then
25961   ac_header_compiler=yes
25962 else
25963   echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25965
25966 ac_header_compiler=no
25967 fi
25968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25970 echo "${ECHO_T}$ac_header_compiler" >&6
25971
25972 # Is the header present?
25973 echo "$as_me:$LINENO: checking sql.h presence" >&5
25974 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
25975 cat >conftest.$ac_ext <<_ACEOF
25976 /* confdefs.h.  */
25977 _ACEOF
25978 cat confdefs.h >>conftest.$ac_ext
25979 cat >>conftest.$ac_ext <<_ACEOF
25980 /* end confdefs.h.  */
25981 #include <sql.h>
25982 _ACEOF
25983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25985   ac_status=$?
25986   grep -v '^ *+' conftest.er1 >conftest.err
25987   rm -f conftest.er1
25988   cat conftest.err >&5
25989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990   (exit $ac_status); } >/dev/null; then
25991   if test -s conftest.err; then
25992     ac_cpp_err=$ac_cxx_preproc_warn_flag
25993     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25994   else
25995     ac_cpp_err=
25996   fi
25997 else
25998   ac_cpp_err=yes
25999 fi
26000 if test -z "$ac_cpp_err"; then
26001   ac_header_preproc=yes
26002 else
26003   echo "$as_me: failed program was:" >&5
26004 sed 's/^/| /' conftest.$ac_ext >&5
26005
26006   ac_header_preproc=no
26007 fi
26008 rm -f conftest.err conftest.$ac_ext
26009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26010 echo "${ECHO_T}$ac_header_preproc" >&6
26011
26012 # So?  What about this header?
26013 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26014   yes:no: )
26015     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26016 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26017     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26018 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26019     ac_header_preproc=yes
26020     ;;
26021   no:yes:* )
26022     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26023 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
26024     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
26025 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
26026     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26027 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26028     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
26029 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26030     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26031 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
26032     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26033 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
26034     (
26035       cat <<\_ASBOX
26036 ## --------------------------------------------- ##
26037 ## Report this to shibboleth-users@internet2.edu ##
26038 ## --------------------------------------------- ##
26039 _ASBOX
26040     ) |
26041       sed "s/^/$as_me: WARNING:     /" >&2
26042     ;;
26043 esac
26044 echo "$as_me:$LINENO: checking for sql.h" >&5
26045 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26046 if test "${ac_cv_header_sql_h+set}" = set; then
26047   echo $ECHO_N "(cached) $ECHO_C" >&6
26048 else
26049   ac_cv_header_sql_h=$ac_header_preproc
26050 fi
26051 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26052 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26053
26054 fi
26055 if test $ac_cv_header_sql_h = yes; then
26056   have_sql_h=yes
26057 else
26058   have_sql_h=no
26059 fi
26060
26061
26062    if test "$have_sql_h" = no -a "$odbc_enabled" = "yes" ; then
26063      { { echo "$as_me:$LINENO: error: unable to find ODBC header files" >&5
26064 echo "$as_me: error: unable to find ODBC header files" >&2;}
26065    { (exit 1); exit 1; }; }
26066    fi
26067
26068    if test "$have_sql_h" = yes ; then
26069       save_LIBS="$LIBS"
26070       LIBS="$LIBS $ODBC_LIBS"
26071       echo "$as_me:$LINENO: checking if we can link againt ODBC" >&5
26072 echo $ECHO_N "checking if we can link againt ODBC... $ECHO_C" >&6
26073       cat >conftest.$ac_ext <<_ACEOF
26074 /* confdefs.h.  */
26075 _ACEOF
26076 cat confdefs.h >>conftest.$ac_ext
26077 cat >>conftest.$ac_ext <<_ACEOF
26078 /* end confdefs.h.  */
26079 #include <sql.h>
26080          #include <sqlext.h>
26081          #include <stdio.h>
26082 int
26083 main ()
26084 {
26085 SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)SQL_CP_ONE_PER_HENV, 0)
26086   ;
26087   return 0;
26088 }
26089 _ACEOF
26090 rm -f conftest.$ac_objext conftest$ac_exeext
26091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26092   (eval $ac_link) 2>conftest.er1
26093   ac_status=$?
26094   grep -v '^ *+' conftest.er1 >conftest.err
26095   rm -f conftest.er1
26096   cat conftest.err >&5
26097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098   (exit $ac_status); } &&
26099          { ac_try='test -z "$ac_cxx_werror_flag"
26100                          || test ! -s conftest.err'
26101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102   (eval $ac_try) 2>&5
26103   ac_status=$?
26104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105   (exit $ac_status); }; } &&
26106          { ac_try='test -s conftest$ac_exeext'
26107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26108   (eval $ac_try) 2>&5
26109   ac_status=$?
26110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111   (exit $ac_status); }; }; then
26112   have_odbc_libs=yes
26113 else
26114   echo "$as_me: failed program was:" >&5
26115 sed 's/^/| /' conftest.$ac_ext >&5
26116
26117 have_odbc_libs=no
26118 fi
26119 rm -f conftest.err conftest.$ac_objext \
26120       conftest$ac_exeext conftest.$ac_ext
26121       LIBS="$save_LIBS"
26122
26123       if test "$have_odbc_libs" = no ; then
26124          if test "$odbc_enabled" = "yes" ; then
26125             { { echo "$as_me:$LINENO: error: unable to link with ODBC Library" >&5
26126 echo "$as_me: error: unable to link with ODBC Library" >&2;}
26127    { (exit 1); exit 1; }; }
26128          else
26129             echo "$as_me:$LINENO: result: no" >&5
26130 echo "${ECHO_T}no" >&6
26131          fi
26132       fi
26133    fi
26134
26135    CPPFLAGS="$save_CPPFLAGS"
26136 fi
26137
26138 # if have_odbc_libs=yes then go ahead with building ODBC
26139 if test "$have_odbc_libs" = yes ; then
26140    # this AC_MSG_RESULT is from above!
26141    echo "$as_me:$LINENO: result: yes" >&5
26142 echo "${ECHO_T}yes" >&6
26143    WANT_SUBDIRS="$WANT_SUBDIRS odbc-store"
26144
26145
26146 fi
26147
26148
26149
26150
26151 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
26152   echo "=================================================================="
26153   echo "WARNING: You have chosen to compile Apache-1.3 modules with a different"
26154   echo "         compiler than the one used to compile Apache."
26155   echo ""
26156   echo "    Current compiler:      $CC"
26157   echo "   Apache's compiler:      $APXS_CC"
26158   echo ""
26159   echo "This could cause problems."
26160   echo "=================================================================="
26161 fi
26162
26163 if test -n "$APXS2_CC" && test "$APXS2_CC" != "$CC" ; then
26164   echo "=================================================================="
26165   echo "WARNING: You have chosen to compile Apache-2.0 modules with a different"
26166   echo "         compiler than the one used to compile Apache."
26167   echo ""
26168   echo "    Current compiler:      $CC"
26169   echo "   Apache's compiler:      $APXS2_CC"
26170   echo ""
26171   echo "This could cause problems."
26172   echo "=================================================================="
26173 fi
26174
26175 if test -n "$APXS22_CC" && test "$APXS22_CC" != "$CC" ; then
26176   echo "=================================================================="
26177   echo "WARNING: You have chosen to compile Apache-2.2 modules with a different"
26178   echo "         compiler than the one used to compile Apache."
26179   echo ""
26180   echo "    Current compiler:      $CC"
26181   echo "   Apache's compiler:      $APXS22_CC"
26182   echo ""
26183   echo "This could cause problems."
26184   echo "=================================================================="
26185 fi
26186
26187 LIBTOOL="$LIBTOOL --silent"
26188
26189 cat >confcache <<\_ACEOF
26190 # This file is a shell script that caches the results of configure
26191 # tests run on this system so they can be shared between configure
26192 # scripts and configure runs, see configure's option --config-cache.
26193 # It is not useful on other systems.  If it contains results you don't
26194 # want to keep, you may remove or edit it.
26195 #
26196 # config.status only pays attention to the cache file if you give it
26197 # the --recheck option to rerun configure.
26198 #
26199 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26200 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26201 # following values.
26202
26203 _ACEOF
26204
26205 # The following way of writing the cache mishandles newlines in values,
26206 # but we know of no workaround that is simple, portable, and efficient.
26207 # So, don't put newlines in cache variables' values.
26208 # Ultrix sh set writes to stderr and can't be redirected directly,
26209 # and sets the high bit in the cache file unless we assign to the vars.
26210 {
26211   (set) 2>&1 |
26212     case `(ac_space=' '; set | grep ac_space) 2>&1` in
26213     *ac_space=\ *)
26214       # `set' does not quote correctly, so add quotes (double-quote
26215       # substitution turns \\\\ into \\, and sed turns \\ into \).
26216       sed -n \
26217         "s/'/'\\\\''/g;
26218           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26219       ;;
26220     *)
26221       # `set' quotes correctly as required by POSIX, so do not add quotes.
26222       sed -n \
26223         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26224       ;;
26225     esac;
26226 } |
26227   sed '
26228      t clear
26229      : clear
26230      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26231      t end
26232      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26233      : end' >>confcache
26234 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26235   if test -w $cache_file; then
26236     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26237     cat confcache >$cache_file
26238   else
26239     echo "not updating unwritable cache $cache_file"
26240   fi
26241 fi
26242 rm -f confcache
26243
26244 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26245 # Let make expand exec_prefix.
26246 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26247
26248 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26249 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26250 # trailing colons and then remove the whole line if VPATH becomes empty
26251 # (actually we leave an empty line to preserve line numbers).
26252 if test "x$srcdir" = x.; then
26253   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26254 s/:*\$(srcdir):*/:/;
26255 s/:*\${srcdir}:*/:/;
26256 s/:*@srcdir@:*/:/;
26257 s/^\([^=]*=[     ]*\):*/\1/;
26258 s/:*$//;
26259 s/^[^=]*=[       ]*$//;
26260 }'
26261 fi
26262
26263 DEFS=-DHAVE_CONFIG_H
26264
26265 ac_libobjs=
26266 ac_ltlibobjs=
26267 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26268   # 1. Remove the extension, and $U if already installed.
26269   ac_i=`echo "$ac_i" |
26270          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26271   # 2. Add them.
26272   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26273   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26274 done
26275 LIBOBJS=$ac_libobjs
26276
26277 LTLIBOBJS=$ac_ltlibobjs
26278
26279
26280 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
26281   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
26282 Usually this means the macro was only invoked conditionally." >&5
26283 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
26284 Usually this means the macro was only invoked conditionally." >&2;}
26285    { (exit 1); exit 1; }; }
26286 fi
26287 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
26288   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
26289 Usually this means the macro was only invoked conditionally." >&5
26290 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
26291 Usually this means the macro was only invoked conditionally." >&2;}
26292    { (exit 1); exit 1; }; }
26293 fi
26294 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
26295   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
26296 Usually this means the macro was only invoked conditionally." >&5
26297 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
26298 Usually this means the macro was only invoked conditionally." >&2;}
26299    { (exit 1); exit 1; }; }
26300 fi
26301 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
26302   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
26303 Usually this means the macro was only invoked conditionally." >&5
26304 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
26305 Usually this means the macro was only invoked conditionally." >&2;}
26306    { (exit 1); exit 1; }; }
26307 fi
26308 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
26309   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
26310 Usually this means the macro was only invoked conditionally." >&5
26311 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
26312 Usually this means the macro was only invoked conditionally." >&2;}
26313    { (exit 1); exit 1; }; }
26314 fi
26315 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
26316   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
26317 Usually this means the macro was only invoked conditionally." >&5
26318 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
26319 Usually this means the macro was only invoked conditionally." >&2;}
26320    { (exit 1); exit 1; }; }
26321 fi
26322 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
26323   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
26324 Usually this means the macro was only invoked conditionally." >&5
26325 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
26326 Usually this means the macro was only invoked conditionally." >&2;}
26327    { (exit 1); exit 1; }; }
26328 fi
26329 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
26330   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
26331 Usually this means the macro was only invoked conditionally." >&5
26332 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
26333 Usually this means the macro was only invoked conditionally." >&2;}
26334    { (exit 1); exit 1; }; }
26335 fi
26336 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
26337   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
26338 Usually this means the macro was only invoked conditionally." >&5
26339 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
26340 Usually this means the macro was only invoked conditionally." >&2;}
26341    { (exit 1); exit 1; }; }
26342 fi
26343 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
26344   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
26345 Usually this means the macro was only invoked conditionally." >&5
26346 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
26347 Usually this means the macro was only invoked conditionally." >&2;}
26348    { (exit 1); exit 1; }; }
26349 fi
26350 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
26351   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
26352 Usually this means the macro was only invoked conditionally." >&5
26353 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
26354 Usually this means the macro was only invoked conditionally." >&2;}
26355    { (exit 1); exit 1; }; }
26356 fi
26357 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
26358   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
26359 Usually this means the macro was only invoked conditionally." >&5
26360 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
26361 Usually this means the macro was only invoked conditionally." >&2;}
26362    { (exit 1); exit 1; }; }
26363 fi
26364 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
26365   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
26366 Usually this means the macro was only invoked conditionally." >&5
26367 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
26368 Usually this means the macro was only invoked conditionally." >&2;}
26369    { (exit 1); exit 1; }; }
26370 fi
26371 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
26372   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
26373 Usually this means the macro was only invoked conditionally." >&5
26374 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
26375 Usually this means the macro was only invoked conditionally." >&2;}
26376    { (exit 1); exit 1; }; }
26377 fi
26378 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
26379   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
26380 Usually this means the macro was only invoked conditionally." >&5
26381 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
26382 Usually this means the macro was only invoked conditionally." >&2;}
26383    { (exit 1); exit 1; }; }
26384 fi
26385 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
26386   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
26387 Usually this means the macro was only invoked conditionally." >&5
26388 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
26389 Usually this means the macro was only invoked conditionally." >&2;}
26390    { (exit 1); exit 1; }; }
26391 fi
26392 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
26393   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
26394 Usually this means the macro was only invoked conditionally." >&5
26395 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
26396 Usually this means the macro was only invoked conditionally." >&2;}
26397    { (exit 1); exit 1; }; }
26398 fi
26399 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
26400   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
26401 Usually this means the macro was only invoked conditionally." >&5
26402 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
26403 Usually this means the macro was only invoked conditionally." >&2;}
26404    { (exit 1); exit 1; }; }
26405 fi
26406 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
26407   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
26408 Usually this means the macro was only invoked conditionally." >&5
26409 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
26410 Usually this means the macro was only invoked conditionally." >&2;}
26411    { (exit 1); exit 1; }; }
26412 fi
26413 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
26414   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
26415 Usually this means the macro was only invoked conditionally." >&5
26416 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
26417 Usually this means the macro was only invoked conditionally." >&2;}
26418    { (exit 1); exit 1; }; }
26419 fi
26420 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
26421   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
26422 Usually this means the macro was only invoked conditionally." >&5
26423 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
26424 Usually this means the macro was only invoked conditionally." >&2;}
26425    { (exit 1); exit 1; }; }
26426 fi
26427 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
26428   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
26429 Usually this means the macro was only invoked conditionally." >&5
26430 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
26431 Usually this means the macro was only invoked conditionally." >&2;}
26432    { (exit 1); exit 1; }; }
26433 fi
26434 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26435   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26436 Usually this means the macro was only invoked conditionally." >&5
26437 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26438 Usually this means the macro was only invoked conditionally." >&2;}
26439    { (exit 1); exit 1; }; }
26440 fi
26441 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26442   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26443 Usually this means the macro was only invoked conditionally." >&5
26444 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26445 Usually this means the macro was only invoked conditionally." >&2;}
26446    { (exit 1); exit 1; }; }
26447 fi
26448 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26449   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26450 Usually this means the macro was only invoked conditionally." >&5
26451 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26452 Usually this means the macro was only invoked conditionally." >&2;}
26453    { (exit 1); exit 1; }; }
26454 fi
26455 if test -z "${BUILD_NSAPI_TRUE}" && test -z "${BUILD_NSAPI_FALSE}"; then
26456   { { echo "$as_me:$LINENO: error: conditional \"BUILD_NSAPI\" was never defined.
26457 Usually this means the macro was only invoked conditionally." >&5
26458 echo "$as_me: error: conditional \"BUILD_NSAPI\" was never defined.
26459 Usually this means the macro was only invoked conditionally." >&2;}
26460    { (exit 1); exit 1; }; }
26461 fi
26462 if test -z "${BUILD_FASTCGI_TRUE}" && test -z "${BUILD_FASTCGI_FALSE}"; then
26463   { { echo "$as_me:$LINENO: error: conditional \"BUILD_FASTCGI\" was never defined.
26464 Usually this means the macro was only invoked conditionally." >&5
26465 echo "$as_me: error: conditional \"BUILD_FASTCGI\" was never defined.
26466 Usually this means the macro was only invoked conditionally." >&2;}
26467    { (exit 1); exit 1; }; }
26468 fi
26469 if test -z "${BUILD_MEMCACHED_TRUE}" && test -z "${BUILD_MEMCACHED_FALSE}"; then
26470   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MEMCACHED\" was never defined.
26471 Usually this means the macro was only invoked conditionally." >&5
26472 echo "$as_me: error: conditional \"BUILD_MEMCACHED\" was never defined.
26473 Usually this means the macro was only invoked conditionally." >&2;}
26474    { (exit 1); exit 1; }; }
26475 fi
26476 if test -z "${BUILD_AP13_TRUE}" && test -z "${BUILD_AP13_FALSE}"; then
26477   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP13\" was never defined.
26478 Usually this means the macro was only invoked conditionally." >&5
26479 echo "$as_me: error: conditional \"BUILD_AP13\" was never defined.
26480 Usually this means the macro was only invoked conditionally." >&2;}
26481    { (exit 1); exit 1; }; }
26482 fi
26483 if test -z "${BUILD_AP20_TRUE}" && test -z "${BUILD_AP20_FALSE}"; then
26484   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP20\" was never defined.
26485 Usually this means the macro was only invoked conditionally." >&5
26486 echo "$as_me: error: conditional \"BUILD_AP20\" was never defined.
26487 Usually this means the macro was only invoked conditionally." >&2;}
26488    { (exit 1); exit 1; }; }
26489 fi
26490 if test -z "${BUILD_AP22_TRUE}" && test -z "${BUILD_AP22_FALSE}"; then
26491   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP22\" was never defined.
26492 Usually this means the macro was only invoked conditionally." >&5
26493 echo "$as_me: error: conditional \"BUILD_AP22\" was never defined.
26494 Usually this means the macro was only invoked conditionally." >&2;}
26495    { (exit 1); exit 1; }; }
26496 fi
26497
26498 : ${CONFIG_STATUS=./config.status}
26499 ac_clean_files_save=$ac_clean_files
26500 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26501 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26502 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26503 cat >$CONFIG_STATUS <<_ACEOF
26504 #! $SHELL
26505 # Generated by $as_me.
26506 # Run this file to recreate the current configuration.
26507 # Compiler output produced by configure, useful for debugging
26508 # configure, is in config.log if it exists.
26509
26510 debug=false
26511 ac_cs_recheck=false
26512 ac_cs_silent=false
26513 SHELL=\${CONFIG_SHELL-$SHELL}
26514 _ACEOF
26515
26516 cat >>$CONFIG_STATUS <<\_ACEOF
26517 ## --------------------- ##
26518 ## M4sh Initialization.  ##
26519 ## --------------------- ##
26520
26521 # Be Bourne compatible
26522 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26523   emulate sh
26524   NULLCMD=:
26525   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26526   # is contrary to our usage.  Disable this feature.
26527   alias -g '${1+"$@"}'='"$@"'
26528 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26529   set -o posix
26530 fi
26531 DUALCASE=1; export DUALCASE # for MKS sh
26532
26533 # Support unset when possible.
26534 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26535   as_unset=unset
26536 else
26537   as_unset=false
26538 fi
26539
26540
26541 # Work around bugs in pre-3.0 UWIN ksh.
26542 $as_unset ENV MAIL MAILPATH
26543 PS1='$ '
26544 PS2='> '
26545 PS4='+ '
26546
26547 # NLS nuisances.
26548 for as_var in \
26549   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26550   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26551   LC_TELEPHONE LC_TIME
26552 do
26553   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26554     eval $as_var=C; export $as_var
26555   else
26556     $as_unset $as_var
26557   fi
26558 done
26559
26560 # Required to use basename.
26561 if expr a : '\(a\)' >/dev/null 2>&1; then
26562   as_expr=expr
26563 else
26564   as_expr=false
26565 fi
26566
26567 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26568   as_basename=basename
26569 else
26570   as_basename=false
26571 fi
26572
26573
26574 # Name of the executable.
26575 as_me=`$as_basename "$0" ||
26576 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26577          X"$0" : 'X\(//\)$' \| \
26578          X"$0" : 'X\(/\)$' \| \
26579          .     : '\(.\)' 2>/dev/null ||
26580 echo X/"$0" |
26581     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26582           /^X\/\(\/\/\)$/{ s//\1/; q; }
26583           /^X\/\(\/\).*/{ s//\1/; q; }
26584           s/.*/./; q'`
26585
26586
26587 # PATH needs CR, and LINENO needs CR and PATH.
26588 # Avoid depending upon Character Ranges.
26589 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26590 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26591 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26592 as_cr_digits='0123456789'
26593 as_cr_alnum=$as_cr_Letters$as_cr_digits
26594
26595 # The user is always right.
26596 if test "${PATH_SEPARATOR+set}" != set; then
26597   echo "#! /bin/sh" >conf$$.sh
26598   echo  "exit 0"   >>conf$$.sh
26599   chmod +x conf$$.sh
26600   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26601     PATH_SEPARATOR=';'
26602   else
26603     PATH_SEPARATOR=:
26604   fi
26605   rm -f conf$$.sh
26606 fi
26607
26608
26609   as_lineno_1=$LINENO
26610   as_lineno_2=$LINENO
26611   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26612   test "x$as_lineno_1" != "x$as_lineno_2" &&
26613   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26614   # Find who we are.  Look in the path if we contain no path at all
26615   # relative or not.
26616   case $0 in
26617     *[\\/]* ) as_myself=$0 ;;
26618     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26619 for as_dir in $PATH
26620 do
26621   IFS=$as_save_IFS
26622   test -z "$as_dir" && as_dir=.
26623   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26624 done
26625
26626        ;;
26627   esac
26628   # We did not find ourselves, most probably we were run as `sh COMMAND'
26629   # in which case we are not to be found in the path.
26630   if test "x$as_myself" = x; then
26631     as_myself=$0
26632   fi
26633   if test ! -f "$as_myself"; then
26634     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26635 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26636    { (exit 1); exit 1; }; }
26637   fi
26638   case $CONFIG_SHELL in
26639   '')
26640     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26641 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26642 do
26643   IFS=$as_save_IFS
26644   test -z "$as_dir" && as_dir=.
26645   for as_base in sh bash ksh sh5; do
26646          case $as_dir in
26647          /*)
26648            if ("$as_dir/$as_base" -c '
26649   as_lineno_1=$LINENO
26650   as_lineno_2=$LINENO
26651   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26652   test "x$as_lineno_1" != "x$as_lineno_2" &&
26653   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26654              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26655              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26656              CONFIG_SHELL=$as_dir/$as_base
26657              export CONFIG_SHELL
26658              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26659            fi;;
26660          esac
26661        done
26662 done
26663 ;;
26664   esac
26665
26666   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26667   # uniformly replaced by the line number.  The first 'sed' inserts a
26668   # line-number line before each line; the second 'sed' does the real
26669   # work.  The second script uses 'N' to pair each line-number line
26670   # with the numbered line, and appends trailing '-' during
26671   # substitution so that $LINENO is not a special case at line end.
26672   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26673   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26674   sed '=' <$as_myself |
26675     sed '
26676       N
26677       s,$,-,
26678       : loop
26679       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26680       t loop
26681       s,-$,,
26682       s,^['$as_cr_digits']*\n,,
26683     ' >$as_me.lineno &&
26684   chmod +x $as_me.lineno ||
26685     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26686 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26687    { (exit 1); exit 1; }; }
26688
26689   # Don't try to exec as it changes $[0], causing all sort of problems
26690   # (the dirname of $[0] is not the place where we might find the
26691   # original and so on.  Autoconf is especially sensible to this).
26692   . ./$as_me.lineno
26693   # Exit status is that of the last command.
26694   exit
26695 }
26696
26697
26698 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26699   *c*,-n*) ECHO_N= ECHO_C='
26700 ' ECHO_T='      ' ;;
26701   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26702   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26703 esac
26704
26705 if expr a : '\(a\)' >/dev/null 2>&1; then
26706   as_expr=expr
26707 else
26708   as_expr=false
26709 fi
26710
26711 rm -f conf$$ conf$$.exe conf$$.file
26712 echo >conf$$.file
26713 if ln -s conf$$.file conf$$ 2>/dev/null; then
26714   # We could just check for DJGPP; but this test a) works b) is more generic
26715   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26716   if test -f conf$$.exe; then
26717     # Don't use ln at all; we don't have any links
26718     as_ln_s='cp -p'
26719   else
26720     as_ln_s='ln -s'
26721   fi
26722 elif ln conf$$.file conf$$ 2>/dev/null; then
26723   as_ln_s=ln
26724 else
26725   as_ln_s='cp -p'
26726 fi
26727 rm -f conf$$ conf$$.exe conf$$.file
26728
26729 if mkdir -p . 2>/dev/null; then
26730   as_mkdir_p=:
26731 else
26732   test -d ./-p && rmdir ./-p
26733   as_mkdir_p=false
26734 fi
26735
26736 as_executable_p="test -f"
26737
26738 # Sed expression to map a string onto a valid CPP name.
26739 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26740
26741 # Sed expression to map a string onto a valid variable name.
26742 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26743
26744
26745 # IFS
26746 # We need space, tab and new line, in precisely that order.
26747 as_nl='
26748 '
26749 IFS="   $as_nl"
26750
26751 # CDPATH.
26752 $as_unset CDPATH
26753
26754 exec 6>&1
26755
26756 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26757 # report actual input values of CONFIG_FILES etc. instead of their
26758 # values after options handling.  Logging --version etc. is OK.
26759 exec 5>>config.log
26760 {
26761   echo
26762   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26763 ## Running $as_me. ##
26764 _ASBOX
26765 } >&5
26766 cat >&5 <<_CSEOF
26767
26768 This file was extended by shibboleth $as_me 2.1, which was
26769 generated by GNU Autoconf 2.59.  Invocation command line was
26770
26771   CONFIG_FILES    = $CONFIG_FILES
26772   CONFIG_HEADERS  = $CONFIG_HEADERS
26773   CONFIG_LINKS    = $CONFIG_LINKS
26774   CONFIG_COMMANDS = $CONFIG_COMMANDS
26775   $ $0 $@
26776
26777 _CSEOF
26778 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26779 echo >&5
26780 _ACEOF
26781
26782 # Files that config.status was made for.
26783 if test -n "$ac_config_files"; then
26784   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26785 fi
26786
26787 if test -n "$ac_config_headers"; then
26788   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26789 fi
26790
26791 if test -n "$ac_config_links"; then
26792   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26793 fi
26794
26795 if test -n "$ac_config_commands"; then
26796   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26797 fi
26798
26799 cat >>$CONFIG_STATUS <<\_ACEOF
26800
26801 ac_cs_usage="\
26802 \`$as_me' instantiates files from templates according to the
26803 current configuration.
26804
26805 Usage: $0 [OPTIONS] [FILE]...
26806
26807   -h, --help       print this help, then exit
26808   -V, --version    print version number, then exit
26809   -q, --quiet      do not print progress messages
26810   -d, --debug      don't remove temporary files
26811       --recheck    update $as_me by reconfiguring in the same conditions
26812   --file=FILE[:TEMPLATE]
26813                    instantiate the configuration file FILE
26814   --header=FILE[:TEMPLATE]
26815                    instantiate the configuration header FILE
26816
26817 Configuration files:
26818 $config_files
26819
26820 Configuration headers:
26821 $config_headers
26822
26823 Configuration commands:
26824 $config_commands
26825
26826 Report bugs to <bug-autoconf@gnu.org>."
26827 _ACEOF
26828
26829 cat >>$CONFIG_STATUS <<_ACEOF
26830 ac_cs_version="\\
26831 shibboleth config.status 2.1
26832 configured by $0, generated by GNU Autoconf 2.59,
26833   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26834
26835 Copyright (C) 2003 Free Software Foundation, Inc.
26836 This config.status script is free software; the Free Software Foundation
26837 gives unlimited permission to copy, distribute and modify it."
26838 srcdir=$srcdir
26839 INSTALL="$INSTALL"
26840 _ACEOF
26841
26842 cat >>$CONFIG_STATUS <<\_ACEOF
26843 # If no file are specified by the user, then we need to provide default
26844 # value.  By we need to know if files were specified by the user.
26845 ac_need_defaults=:
26846 while test $# != 0
26847 do
26848   case $1 in
26849   --*=*)
26850     ac_option=`expr "x$1" : 'x\([^=]*\)='`
26851     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26852     ac_shift=:
26853     ;;
26854   -*)
26855     ac_option=$1
26856     ac_optarg=$2
26857     ac_shift=shift
26858     ;;
26859   *) # This is not an option, so the user has probably given explicit
26860      # arguments.
26861      ac_option=$1
26862      ac_need_defaults=false;;
26863   esac
26864
26865   case $ac_option in
26866   # Handling of the options.
26867 _ACEOF
26868 cat >>$CONFIG_STATUS <<\_ACEOF
26869   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26870     ac_cs_recheck=: ;;
26871   --version | --vers* | -V )
26872     echo "$ac_cs_version"; exit 0 ;;
26873   --he | --h)
26874     # Conflict between --help and --header
26875     { { echo "$as_me:$LINENO: error: ambiguous option: $1
26876 Try \`$0 --help' for more information." >&5
26877 echo "$as_me: error: ambiguous option: $1
26878 Try \`$0 --help' for more information." >&2;}
26879    { (exit 1); exit 1; }; };;
26880   --help | --hel | -h )
26881     echo "$ac_cs_usage"; exit 0 ;;
26882   --debug | --d* | -d )
26883     debug=: ;;
26884   --file | --fil | --fi | --f )
26885     $ac_shift
26886     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26887     ac_need_defaults=false;;
26888   --header | --heade | --head | --hea )
26889     $ac_shift
26890     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26891     ac_need_defaults=false;;
26892   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26893   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26894     ac_cs_silent=: ;;
26895
26896   # This is an error.
26897   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26898 Try \`$0 --help' for more information." >&5
26899 echo "$as_me: error: unrecognized option: $1
26900 Try \`$0 --help' for more information." >&2;}
26901    { (exit 1); exit 1; }; } ;;
26902
26903   *) ac_config_targets="$ac_config_targets $1" ;;
26904
26905   esac
26906   shift
26907 done
26908
26909 ac_configure_extra_args=
26910
26911 if $ac_cs_silent; then
26912   exec 6>/dev/null
26913   ac_configure_extra_args="$ac_configure_extra_args --silent"
26914 fi
26915
26916 _ACEOF
26917 cat >>$CONFIG_STATUS <<_ACEOF
26918 if \$ac_cs_recheck; then
26919   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26920   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26921 fi
26922
26923 _ACEOF
26924
26925 cat >>$CONFIG_STATUS <<_ACEOF
26926 #
26927 # INIT-COMMANDS section.
26928 #
26929
26930 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26931
26932 _ACEOF
26933
26934
26935
26936 cat >>$CONFIG_STATUS <<\_ACEOF
26937 for ac_config_target in $ac_config_targets
26938 do
26939   case "$ac_config_target" in
26940   # Handling of arguments.
26941   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26942   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26943   "schemas/Makefile" ) CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
26944   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
26945   "shibsp/Makefile" ) CONFIG_FILES="$CONFIG_FILES shibsp/Makefile" ;;
26946   "shibd/Makefile" ) CONFIG_FILES="$CONFIG_FILES shibd/Makefile" ;;
26947   "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
26948   "selinux/Makefile" ) CONFIG_FILES="$CONFIG_FILES selinux/Makefile" ;;
26949   "adfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES adfs/Makefile" ;;
26950   "nsapi_shib/Makefile" ) CONFIG_FILES="$CONFIG_FILES nsapi_shib/Makefile" ;;
26951   "fastcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES fastcgi/Makefile" ;;
26952   "memcache-store/Makefile" ) CONFIG_FILES="$CONFIG_FILES memcache-store/Makefile" ;;
26953   "apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES apache/Makefile" ;;
26954   "odbc-store/Makefile" ) CONFIG_FILES="$CONFIG_FILES odbc-store/Makefile" ;;
26955   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26956   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26957   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26958 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26959    { (exit 1); exit 1; }; };;
26960   esac
26961 done
26962
26963 # If the user did not use the arguments to specify the items to instantiate,
26964 # then the envvar interface is used.  Set only those that are not.
26965 # We use the long form for the default assignment because of an extremely
26966 # bizarre bug on SunOS 4.1.3.
26967 if $ac_need_defaults; then
26968   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26969   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26970   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26971 fi
26972
26973 # Have a temporary directory for convenience.  Make it in the build tree
26974 # simply because there is no reason to put it here, and in addition,
26975 # creating and moving files from /tmp can sometimes cause problems.
26976 # Create a temporary directory, and hook for its removal unless debugging.
26977 $debug ||
26978 {
26979   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26980   trap '{ (exit 1); exit 1; }' 1 2 13 15
26981 }
26982
26983 # Create a (secure) tmp directory for tmp files.
26984
26985 {
26986   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26987   test -n "$tmp" && test -d "$tmp"
26988 }  ||
26989 {
26990   tmp=./confstat$$-$RANDOM
26991   (umask 077 && mkdir $tmp)
26992 } ||
26993 {
26994    echo "$me: cannot create a temporary directory in ." >&2
26995    { (exit 1); exit 1; }
26996 }
26997
26998 _ACEOF
26999
27000 cat >>$CONFIG_STATUS <<_ACEOF
27001
27002 #
27003 # CONFIG_FILES section.
27004 #
27005
27006 # No need to generate the scripts if there are no CONFIG_FILES.
27007 # This happens for instance when ./config.status config.h
27008 if test -n "\$CONFIG_FILES"; then
27009   # Protect against being on the right side of a sed subst in config.status.
27010   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27011    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27012 s,@SHELL@,$SHELL,;t t
27013 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27014 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27015 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27016 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27017 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27018 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27019 s,@exec_prefix@,$exec_prefix,;t t
27020 s,@prefix@,$prefix,;t t
27021 s,@program_transform_name@,$program_transform_name,;t t
27022 s,@bindir@,$bindir,;t t
27023 s,@sbindir@,$sbindir,;t t
27024 s,@libexecdir@,$libexecdir,;t t
27025 s,@datadir@,$datadir,;t t
27026 s,@sysconfdir@,$sysconfdir,;t t
27027 s,@sharedstatedir@,$sharedstatedir,;t t
27028 s,@localstatedir@,$localstatedir,;t t
27029 s,@libdir@,$libdir,;t t
27030 s,@includedir@,$includedir,;t t
27031 s,@oldincludedir@,$oldincludedir,;t t
27032 s,@infodir@,$infodir,;t t
27033 s,@mandir@,$mandir,;t t
27034 s,@build_alias@,$build_alias,;t t
27035 s,@host_alias@,$host_alias,;t t
27036 s,@target_alias@,$target_alias,;t t
27037 s,@DEFS@,$DEFS,;t t
27038 s,@ECHO_C@,$ECHO_C,;t t
27039 s,@ECHO_N@,$ECHO_N,;t t
27040 s,@ECHO_T@,$ECHO_T,;t t
27041 s,@LIBS@,$LIBS,;t t
27042 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27043 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27044 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27045 s,@CYGPATH_W@,$CYGPATH_W,;t t
27046 s,@PACKAGE@,$PACKAGE,;t t
27047 s,@VERSION@,$VERSION,;t t
27048 s,@ACLOCAL@,$ACLOCAL,;t t
27049 s,@AUTOCONF@,$AUTOCONF,;t t
27050 s,@AUTOMAKE@,$AUTOMAKE,;t t
27051 s,@AUTOHEADER@,$AUTOHEADER,;t t
27052 s,@MAKEINFO@,$MAKEINFO,;t t
27053 s,@install_sh@,$install_sh,;t t
27054 s,@STRIP@,$STRIP,;t t
27055 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27056 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27057 s,@mkdir_p@,$mkdir_p,;t t
27058 s,@AWK@,$AWK,;t t
27059 s,@SET_MAKE@,$SET_MAKE,;t t
27060 s,@am__leading_dot@,$am__leading_dot,;t t
27061 s,@AMTAR@,$AMTAR,;t t
27062 s,@am__tar@,$am__tar,;t t
27063 s,@am__untar@,$am__untar,;t t
27064 s,@DX_PROJECT@,$DX_PROJECT,;t t
27065 s,@DX_CONFIG@,$DX_CONFIG,;t t
27066 s,@DX_DOCDIR@,$DX_DOCDIR,;t t
27067 s,@DX_ENV@,$DX_ENV,;t t
27068 s,@DX_FLAG_doc@,$DX_FLAG_doc,;t t
27069 s,@DX_DOXYGEN@,$DX_DOXYGEN,;t t
27070 s,@ac_pt_DX_DOXYGEN@,$ac_pt_DX_DOXYGEN,;t t
27071 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27072 s,@DX_PERL@,$DX_PERL,;t t
27073 s,@ac_pt_DX_PERL@,$ac_pt_DX_PERL,;t t
27074 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27075 s,@DX_COND_doc_TRUE@,$DX_COND_doc_TRUE,;t t
27076 s,@DX_COND_doc_FALSE@,$DX_COND_doc_FALSE,;t t
27077 s,@DX_FLAG_dot@,$DX_FLAG_dot,;t t
27078 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27079 s,@DX_DOT@,$DX_DOT,;t t
27080 s,@ac_pt_DX_DOT@,$ac_pt_DX_DOT,;t t
27081 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27082 s,@DX_COND_dot_TRUE@,$DX_COND_dot_TRUE,;t t
27083 s,@DX_COND_dot_FALSE@,$DX_COND_dot_FALSE,;t t
27084 s,@DX_FLAG_man@,$DX_FLAG_man,;t t
27085 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27086 s,@DX_COND_man_TRUE@,$DX_COND_man_TRUE,;t t
27087 s,@DX_COND_man_FALSE@,$DX_COND_man_FALSE,;t t
27088 s,@DX_FLAG_rtf@,$DX_FLAG_rtf,;t t
27089 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27090 s,@DX_COND_rtf_TRUE@,$DX_COND_rtf_TRUE,;t t
27091 s,@DX_COND_rtf_FALSE@,$DX_COND_rtf_FALSE,;t t
27092 s,@DX_FLAG_xml@,$DX_FLAG_xml,;t t
27093 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27094 s,@DX_COND_xml_TRUE@,$DX_COND_xml_TRUE,;t t
27095 s,@DX_COND_xml_FALSE@,$DX_COND_xml_FALSE,;t t
27096 s,@DX_FLAG_chm@,$DX_FLAG_chm,;t t
27097 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27098 s,@DX_HHC@,$DX_HHC,;t t
27099 s,@ac_pt_DX_HHC@,$ac_pt_DX_HHC,;t t
27100 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27101 s,@DX_COND_chm_TRUE@,$DX_COND_chm_TRUE,;t t
27102 s,@DX_COND_chm_FALSE@,$DX_COND_chm_FALSE,;t t
27103 s,@DX_FLAG_chi@,$DX_FLAG_chi,;t t
27104 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27105 s,@DX_COND_chi_TRUE@,$DX_COND_chi_TRUE,;t t
27106 s,@DX_COND_chi_FALSE@,$DX_COND_chi_FALSE,;t t
27107 s,@DX_FLAG_html@,$DX_FLAG_html,;t t
27108 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27109 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27110 s,@DX_COND_html_TRUE@,$DX_COND_html_TRUE,;t t
27111 s,@DX_COND_html_FALSE@,$DX_COND_html_FALSE,;t t
27112 s,@DX_FLAG_ps@,$DX_FLAG_ps,;t t
27113 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27114 s,@DX_LATEX@,$DX_LATEX,;t t
27115 s,@ac_pt_DX_LATEX@,$ac_pt_DX_LATEX,;t t
27116 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27117 s,@DX_MAKEINDEX@,$DX_MAKEINDEX,;t t
27118 s,@ac_pt_DX_MAKEINDEX@,$ac_pt_DX_MAKEINDEX,;t t
27119 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27120 s,@DX_DVIPS@,$DX_DVIPS,;t t
27121 s,@ac_pt_DX_DVIPS@,$ac_pt_DX_DVIPS,;t t
27122 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27123 s,@DX_EGREP@,$DX_EGREP,;t t
27124 s,@ac_pt_DX_EGREP@,$ac_pt_DX_EGREP,;t t
27125 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27126 s,@DX_COND_ps_TRUE@,$DX_COND_ps_TRUE,;t t
27127 s,@DX_COND_ps_FALSE@,$DX_COND_ps_FALSE,;t t
27128 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27129 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27130 s,@DX_PDFLATEX@,$DX_PDFLATEX,;t t
27131 s,@ac_pt_DX_PDFLATEX@,$ac_pt_DX_PDFLATEX,;t t
27132 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27133 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27134 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27135 s,@DX_COND_pdf_TRUE@,$DX_COND_pdf_TRUE,;t t
27136 s,@DX_COND_pdf_FALSE@,$DX_COND_pdf_FALSE,;t t
27137 s,@DX_COND_latex_TRUE@,$DX_COND_latex_TRUE,;t t
27138 s,@DX_COND_latex_FALSE@,$DX_COND_latex_FALSE,;t t
27139 s,@DOXYGEN_PAPER_SIZE@,$DOXYGEN_PAPER_SIZE,;t t
27140 s,@CC@,$CC,;t t
27141 s,@CFLAGS@,$CFLAGS,;t t
27142 s,@LDFLAGS@,$LDFLAGS,;t t
27143 s,@CPPFLAGS@,$CPPFLAGS,;t t
27144 s,@ac_ct_CC@,$ac_ct_CC,;t t
27145 s,@EXEEXT@,$EXEEXT,;t t
27146 s,@OBJEXT@,$OBJEXT,;t t
27147 s,@DEPDIR@,$DEPDIR,;t t
27148 s,@am__include@,$am__include,;t t
27149 s,@am__quote@,$am__quote,;t t
27150 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27151 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27152 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27153 s,@CCDEPMODE@,$CCDEPMODE,;t t
27154 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27155 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27156 s,@CXX@,$CXX,;t t
27157 s,@CXXFLAGS@,$CXXFLAGS,;t t
27158 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27159 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27160 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27161 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27162 s,@build@,$build,;t t
27163 s,@build_cpu@,$build_cpu,;t t
27164 s,@build_vendor@,$build_vendor,;t t
27165 s,@build_os@,$build_os,;t t
27166 s,@host@,$host,;t t
27167 s,@host_cpu@,$host_cpu,;t t
27168 s,@host_vendor@,$host_vendor,;t t
27169 s,@host_os@,$host_os,;t t
27170 s,@EGREP@,$EGREP,;t t
27171 s,@LN_S@,$LN_S,;t t
27172 s,@ECHO@,$ECHO,;t t
27173 s,@AR@,$AR,;t t
27174 s,@ac_ct_AR@,$ac_ct_AR,;t t
27175 s,@RANLIB@,$RANLIB,;t t
27176 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27177 s,@CPP@,$CPP,;t t
27178 s,@CXXCPP@,$CXXCPP,;t t
27179 s,@F77@,$F77,;t t
27180 s,@FFLAGS@,$FFLAGS,;t t
27181 s,@ac_ct_F77@,$ac_ct_F77,;t t
27182 s,@LIBTOOL@,$LIBTOOL,;t t
27183 s,@acx_pthread_config@,$acx_pthread_config,;t t
27184 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
27185 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
27186 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
27187 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
27188 s,@LOG4SHIB_CONFIG@,$LOG4SHIB_CONFIG,;t t
27189 s,@LOG4CPP_CONFIG@,$LOG4CPP_CONFIG,;t t
27190 s,@XMLTOOLINGXMLDIR@,$XMLTOOLINGXMLDIR,;t t
27191 s,@OPENSAMLXMLDIR@,$OPENSAMLXMLDIR,;t t
27192 s,@LITE_LIBS@,$LITE_LIBS,;t t
27193 s,@XMLSEC_LIBS@,$XMLSEC_LIBS,;t t
27194 s,@NSAPI_INCLUDE@,$NSAPI_INCLUDE,;t t
27195 s,@BUILD_NSAPI_TRUE@,$BUILD_NSAPI_TRUE,;t t
27196 s,@BUILD_NSAPI_FALSE@,$BUILD_NSAPI_FALSE,;t t
27197 s,@FASTCGI_INCLUDE@,$FASTCGI_INCLUDE,;t t
27198 s,@FASTCGI_LDFLAGS@,$FASTCGI_LDFLAGS,;t t
27199 s,@FASTCGI_LIBS@,$FASTCGI_LIBS,;t t
27200 s,@BUILD_FASTCGI_TRUE@,$BUILD_FASTCGI_TRUE,;t t
27201 s,@BUILD_FASTCGI_FALSE@,$BUILD_FASTCGI_FALSE,;t t
27202 s,@MEMCACHED_INCLUDE@,$MEMCACHED_INCLUDE,;t t
27203 s,@MEMCACHED_LDFLAGS@,$MEMCACHED_LDFLAGS,;t t
27204 s,@MEMCACHED_LIBS@,$MEMCACHED_LIBS,;t t
27205 s,@BUILD_MEMCACHED_TRUE@,$BUILD_MEMCACHED_TRUE,;t t
27206 s,@BUILD_MEMCACHED_FALSE@,$BUILD_MEMCACHED_FALSE,;t t
27207 s,@xs@,$xs,;t t
27208 s,@APXS@,$APXS,;t t
27209 s,@APXS_CFLAGS@,$APXS_CFLAGS,;t t
27210 s,@APXS_INCLUDE@,$APXS_INCLUDE,;t t
27211 s,@APXS2@,$APXS2,;t t
27212 s,@APR_CONFIG@,$APR_CONFIG,;t t
27213 s,@APXS2_CFLAGS@,$APXS2_CFLAGS,;t t
27214 s,@APXS2_INCLUDE@,$APXS2_INCLUDE,;t t
27215 s,@APXS22@,$APXS22,;t t
27216 s,@APR1_CONFIG@,$APR1_CONFIG,;t t
27217 s,@APXS22_CFLAGS@,$APXS22_CFLAGS,;t t
27218 s,@APXS22_INCLUDE@,$APXS22_INCLUDE,;t t
27219 s,@BUILD_AP13_TRUE@,$BUILD_AP13_TRUE,;t t
27220 s,@BUILD_AP13_FALSE@,$BUILD_AP13_FALSE,;t t
27221 s,@BUILD_AP20_TRUE@,$BUILD_AP20_TRUE,;t t
27222 s,@BUILD_AP20_FALSE@,$BUILD_AP20_FALSE,;t t
27223 s,@BUILD_AP22_TRUE@,$BUILD_AP22_TRUE,;t t
27224 s,@BUILD_AP22_FALSE@,$BUILD_AP22_FALSE,;t t
27225 s,@ODBC_CONFIG@,$ODBC_CONFIG,;t t
27226 s,@ODBC_CFLAGS@,$ODBC_CFLAGS,;t t
27227 s,@ODBC_LIBS@,$ODBC_LIBS,;t t
27228 s,@WANT_SUBDIRS@,$WANT_SUBDIRS,;t t
27229 s,@LIBOBJS@,$LIBOBJS,;t t
27230 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27231 CEOF
27232
27233 _ACEOF
27234
27235   cat >>$CONFIG_STATUS <<\_ACEOF
27236   # Split the substitutions into bite-sized pieces for seds with
27237   # small command number limits, like on Digital OSF/1 and HP-UX.
27238   ac_max_sed_lines=48
27239   ac_sed_frag=1 # Number of current file.
27240   ac_beg=1 # First line for current file.
27241   ac_end=$ac_max_sed_lines # Line after last line for current file.
27242   ac_more_lines=:
27243   ac_sed_cmds=
27244   while $ac_more_lines; do
27245     if test $ac_beg -gt 1; then
27246       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27247     else
27248       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27249     fi
27250     if test ! -s $tmp/subs.frag; then
27251       ac_more_lines=false
27252     else
27253       # The purpose of the label and of the branching condition is to
27254       # speed up the sed processing (if there are no `@' at all, there
27255       # is no need to browse any of the substitutions).
27256       # These are the two extra sed commands mentioned above.
27257       (echo ':t
27258   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27259       if test -z "$ac_sed_cmds"; then
27260         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27261       else
27262         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27263       fi
27264       ac_sed_frag=`expr $ac_sed_frag + 1`
27265       ac_beg=$ac_end
27266       ac_end=`expr $ac_end + $ac_max_sed_lines`
27267     fi
27268   done
27269   if test -z "$ac_sed_cmds"; then
27270     ac_sed_cmds=cat
27271   fi
27272 fi # test -n "$CONFIG_FILES"
27273
27274 _ACEOF
27275 cat >>$CONFIG_STATUS <<\_ACEOF
27276 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27277   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27278   case $ac_file in
27279   - | *:- | *:-:* ) # input from stdin
27280         cat >$tmp/stdin
27281         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27282         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27283   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27284         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27285   * )   ac_file_in=$ac_file.in ;;
27286   esac
27287
27288   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27289   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27291          X"$ac_file" : 'X\(//\)[^/]' \| \
27292          X"$ac_file" : 'X\(//\)$' \| \
27293          X"$ac_file" : 'X\(/\)' \| \
27294          .     : '\(.\)' 2>/dev/null ||
27295 echo X"$ac_file" |
27296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27297           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27298           /^X\(\/\/\)$/{ s//\1/; q; }
27299           /^X\(\/\).*/{ s//\1/; q; }
27300           s/.*/./; q'`
27301   { if $as_mkdir_p; then
27302     mkdir -p "$ac_dir"
27303   else
27304     as_dir="$ac_dir"
27305     as_dirs=
27306     while test ! -d "$as_dir"; do
27307       as_dirs="$as_dir $as_dirs"
27308       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27310          X"$as_dir" : 'X\(//\)[^/]' \| \
27311          X"$as_dir" : 'X\(//\)$' \| \
27312          X"$as_dir" : 'X\(/\)' \| \
27313          .     : '\(.\)' 2>/dev/null ||
27314 echo X"$as_dir" |
27315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27316           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27317           /^X\(\/\/\)$/{ s//\1/; q; }
27318           /^X\(\/\).*/{ s//\1/; q; }
27319           s/.*/./; q'`
27320     done
27321     test ! -n "$as_dirs" || mkdir $as_dirs
27322   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27323 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27324    { (exit 1); exit 1; }; }; }
27325
27326   ac_builddir=.
27327
27328 if test "$ac_dir" != .; then
27329   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27330   # A "../" for each directory in $ac_dir_suffix.
27331   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27332 else
27333   ac_dir_suffix= ac_top_builddir=
27334 fi
27335
27336 case $srcdir in
27337   .)  # No --srcdir option.  We are building in place.
27338     ac_srcdir=.
27339     if test -z "$ac_top_builddir"; then
27340        ac_top_srcdir=.
27341     else
27342        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27343     fi ;;
27344   [\\/]* | ?:[\\/]* )  # Absolute path.
27345     ac_srcdir=$srcdir$ac_dir_suffix;
27346     ac_top_srcdir=$srcdir ;;
27347   *) # Relative path.
27348     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27349     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27350 esac
27351
27352 # Do not use `cd foo && pwd` to compute absolute paths, because
27353 # the directories may not exist.
27354 case `pwd` in
27355 .) ac_abs_builddir="$ac_dir";;
27356 *)
27357   case "$ac_dir" in
27358   .) ac_abs_builddir=`pwd`;;
27359   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27360   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27361   esac;;
27362 esac
27363 case $ac_abs_builddir in
27364 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27365 *)
27366   case ${ac_top_builddir}. in
27367   .) ac_abs_top_builddir=$ac_abs_builddir;;
27368   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27369   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27370   esac;;
27371 esac
27372 case $ac_abs_builddir in
27373 .) ac_abs_srcdir=$ac_srcdir;;
27374 *)
27375   case $ac_srcdir in
27376   .) ac_abs_srcdir=$ac_abs_builddir;;
27377   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27378   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27379   esac;;
27380 esac
27381 case $ac_abs_builddir in
27382 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27383 *)
27384   case $ac_top_srcdir in
27385   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27386   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27387   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27388   esac;;
27389 esac
27390
27391
27392   case $INSTALL in
27393   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27394   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27395   esac
27396
27397   if test x"$ac_file" != x-; then
27398     { echo "$as_me:$LINENO: creating $ac_file" >&5
27399 echo "$as_me: creating $ac_file" >&6;}
27400     rm -f "$ac_file"
27401   fi
27402   # Let's still pretend it is `configure' which instantiates (i.e., don't
27403   # use $as_me), people would be surprised to read:
27404   #    /* config.h.  Generated by config.status.  */
27405   if test x"$ac_file" = x-; then
27406     configure_input=
27407   else
27408     configure_input="$ac_file.  "
27409   fi
27410   configure_input=$configure_input"Generated from `echo $ac_file_in |
27411                                      sed 's,.*/,,'` by configure."
27412
27413   # First look for the input files in the build tree, otherwise in the
27414   # src tree.
27415   ac_file_inputs=`IFS=:
27416     for f in $ac_file_in; do
27417       case $f in
27418       -) echo $tmp/stdin ;;
27419       [\\/$]*)
27420          # Absolute (can't be DOS-style, as IFS=:)
27421          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27422 echo "$as_me: error: cannot find input file: $f" >&2;}
27423    { (exit 1); exit 1; }; }
27424          echo "$f";;
27425       *) # Relative
27426          if test -f "$f"; then
27427            # Build tree
27428            echo "$f"
27429          elif test -f "$srcdir/$f"; then
27430            # Source tree
27431            echo "$srcdir/$f"
27432          else
27433            # /dev/null tree
27434            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27435 echo "$as_me: error: cannot find input file: $f" >&2;}
27436    { (exit 1); exit 1; }; }
27437          fi;;
27438       esac
27439     done` || { (exit 1); exit 1; }
27440 _ACEOF
27441 cat >>$CONFIG_STATUS <<_ACEOF
27442   sed "$ac_vpsub
27443 $extrasub
27444 _ACEOF
27445 cat >>$CONFIG_STATUS <<\_ACEOF
27446 :t
27447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27448 s,@configure_input@,$configure_input,;t t
27449 s,@srcdir@,$ac_srcdir,;t t
27450 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27451 s,@top_srcdir@,$ac_top_srcdir,;t t
27452 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27453 s,@builddir@,$ac_builddir,;t t
27454 s,@abs_builddir@,$ac_abs_builddir,;t t
27455 s,@top_builddir@,$ac_top_builddir,;t t
27456 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27457 s,@INSTALL@,$ac_INSTALL,;t t
27458 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27459   rm -f $tmp/stdin
27460   if test x"$ac_file" != x-; then
27461     mv $tmp/out $ac_file
27462   else
27463     cat $tmp/out
27464     rm -f $tmp/out
27465   fi
27466
27467 done
27468 _ACEOF
27469 cat >>$CONFIG_STATUS <<\_ACEOF
27470
27471 #
27472 # CONFIG_HEADER section.
27473 #
27474
27475 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27476 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27477 #
27478 # ac_d sets the value in "#define NAME VALUE" lines.
27479 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27480 ac_dB='[         ].*$,\1#\2'
27481 ac_dC=' '
27482 ac_dD=',;t'
27483 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27484 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27485 ac_uB='$,\1#\2define\3'
27486 ac_uC=' '
27487 ac_uD=',;t'
27488
27489 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27490   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27491   case $ac_file in
27492   - | *:- | *:-:* ) # input from stdin
27493         cat >$tmp/stdin
27494         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27495         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27496   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27497         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27498   * )   ac_file_in=$ac_file.in ;;
27499   esac
27500
27501   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27502 echo "$as_me: creating $ac_file" >&6;}
27503
27504   # First look for the input files in the build tree, otherwise in the
27505   # src tree.
27506   ac_file_inputs=`IFS=:
27507     for f in $ac_file_in; do
27508       case $f in
27509       -) echo $tmp/stdin ;;
27510       [\\/$]*)
27511          # Absolute (can't be DOS-style, as IFS=:)
27512          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27513 echo "$as_me: error: cannot find input file: $f" >&2;}
27514    { (exit 1); exit 1; }; }
27515          # Do quote $f, to prevent DOS paths from being IFS'd.
27516          echo "$f";;
27517       *) # Relative
27518          if test -f "$f"; then
27519            # Build tree
27520            echo "$f"
27521          elif test -f "$srcdir/$f"; then
27522            # Source tree
27523            echo "$srcdir/$f"
27524          else
27525            # /dev/null tree
27526            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27527 echo "$as_me: error: cannot find input file: $f" >&2;}
27528    { (exit 1); exit 1; }; }
27529          fi;;
27530       esac
27531     done` || { (exit 1); exit 1; }
27532   # Remove the trailing spaces.
27533   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27534
27535 _ACEOF
27536
27537 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27538 # `conftest.undefs', that substitutes the proper values into
27539 # config.h.in to produce config.h.  The first handles `#define'
27540 # templates, and the second `#undef' templates.
27541 # And first: Protect against being on the right side of a sed subst in
27542 # config.status.  Protect against being in an unquoted here document
27543 # in config.status.
27544 rm -f conftest.defines conftest.undefs
27545 # Using a here document instead of a string reduces the quoting nightmare.
27546 # Putting comments in sed scripts is not portable.
27547 #
27548 # `end' is used to avoid that the second main sed command (meant for
27549 # 0-ary CPP macros) applies to n-ary macro definitions.
27550 # See the Autoconf documentation for `clear'.
27551 cat >confdef2sed.sed <<\_ACEOF
27552 s/[\\&,]/\\&/g
27553 s,[\\$`],\\&,g
27554 t clear
27555 : clear
27556 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27557 t end
27558 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27559 : end
27560 _ACEOF
27561 # If some macros were called several times there might be several times
27562 # the same #defines, which is useless.  Nevertheless, we may not want to
27563 # sort them, since we want the *last* AC-DEFINE to be honored.
27564 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27565 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27566 rm -f confdef2sed.sed
27567
27568 # This sed command replaces #undef with comments.  This is necessary, for
27569 # example, in the case of _POSIX_SOURCE, which is predefined and required
27570 # on some systems where configure will not decide to define it.
27571 cat >>conftest.undefs <<\_ACEOF
27572 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27573 _ACEOF
27574
27575 # Break up conftest.defines because some shells have a limit on the size
27576 # of here documents, and old seds have small limits too (100 cmds).
27577 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27578 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27579 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27580 echo '  :' >>$CONFIG_STATUS
27581 rm -f conftest.tail
27582 while grep . conftest.defines >/dev/null
27583 do
27584   # Write a limited-size here document to $tmp/defines.sed.
27585   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27586   # Speed up: don't consider the non `#define' lines.
27587   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27588   # Work around the forget-to-reset-the-flag bug.
27589   echo 't clr' >>$CONFIG_STATUS
27590   echo ': clr' >>$CONFIG_STATUS
27591   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27592   echo 'CEOF
27593   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27594   rm -f $tmp/in
27595   mv $tmp/out $tmp/in
27596 ' >>$CONFIG_STATUS
27597   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27598   rm -f conftest.defines
27599   mv conftest.tail conftest.defines
27600 done
27601 rm -f conftest.defines
27602 echo '  fi # grep' >>$CONFIG_STATUS
27603 echo >>$CONFIG_STATUS
27604
27605 # Break up conftest.undefs because some shells have a limit on the size
27606 # of here documents, and old seds have small limits too (100 cmds).
27607 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27608 rm -f conftest.tail
27609 while grep . conftest.undefs >/dev/null
27610 do
27611   # Write a limited-size here document to $tmp/undefs.sed.
27612   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27613   # Speed up: don't consider the non `#undef'
27614   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27615   # Work around the forget-to-reset-the-flag bug.
27616   echo 't clr' >>$CONFIG_STATUS
27617   echo ': clr' >>$CONFIG_STATUS
27618   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27619   echo 'CEOF
27620   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27621   rm -f $tmp/in
27622   mv $tmp/out $tmp/in
27623 ' >>$CONFIG_STATUS
27624   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27625   rm -f conftest.undefs
27626   mv conftest.tail conftest.undefs
27627 done
27628 rm -f conftest.undefs
27629
27630 cat >>$CONFIG_STATUS <<\_ACEOF
27631   # Let's still pretend it is `configure' which instantiates (i.e., don't
27632   # use $as_me), people would be surprised to read:
27633   #    /* config.h.  Generated by config.status.  */
27634   if test x"$ac_file" = x-; then
27635     echo "/* Generated by configure.  */" >$tmp/config.h
27636   else
27637     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27638   fi
27639   cat $tmp/in >>$tmp/config.h
27640   rm -f $tmp/in
27641   if test x"$ac_file" != x-; then
27642     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27643       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27644 echo "$as_me: $ac_file is unchanged" >&6;}
27645     else
27646       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27647 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27648          X"$ac_file" : 'X\(//\)[^/]' \| \
27649          X"$ac_file" : 'X\(//\)$' \| \
27650          X"$ac_file" : 'X\(/\)' \| \
27651          .     : '\(.\)' 2>/dev/null ||
27652 echo X"$ac_file" |
27653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27654           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27655           /^X\(\/\/\)$/{ s//\1/; q; }
27656           /^X\(\/\).*/{ s//\1/; q; }
27657           s/.*/./; q'`
27658       { if $as_mkdir_p; then
27659     mkdir -p "$ac_dir"
27660   else
27661     as_dir="$ac_dir"
27662     as_dirs=
27663     while test ! -d "$as_dir"; do
27664       as_dirs="$as_dir $as_dirs"
27665       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27667          X"$as_dir" : 'X\(//\)[^/]' \| \
27668          X"$as_dir" : 'X\(//\)$' \| \
27669          X"$as_dir" : 'X\(/\)' \| \
27670          .     : '\(.\)' 2>/dev/null ||
27671 echo X"$as_dir" |
27672     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27673           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27674           /^X\(\/\/\)$/{ s//\1/; q; }
27675           /^X\(\/\).*/{ s//\1/; q; }
27676           s/.*/./; q'`
27677     done
27678     test ! -n "$as_dirs" || mkdir $as_dirs
27679   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27680 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27681    { (exit 1); exit 1; }; }; }
27682
27683       rm -f $ac_file
27684       mv $tmp/config.h $ac_file
27685     fi
27686   else
27687     cat $tmp/config.h
27688     rm -f $tmp/config.h
27689   fi
27690 # Compute $ac_file's index in $config_headers.
27691 _am_stamp_count=1
27692 for _am_header in $config_headers :; do
27693   case $_am_header in
27694     $ac_file | $ac_file:* )
27695       break ;;
27696     * )
27697       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27698   esac
27699 done
27700 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27701 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27702          X$ac_file : 'X\(//\)[^/]' \| \
27703          X$ac_file : 'X\(//\)$' \| \
27704          X$ac_file : 'X\(/\)' \| \
27705          .     : '\(.\)' 2>/dev/null ||
27706 echo X$ac_file |
27707     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27708           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27709           /^X\(\/\/\)$/{ s//\1/; q; }
27710           /^X\(\/\).*/{ s//\1/; q; }
27711           s/.*/./; q'`/stamp-h$_am_stamp_count
27712 done
27713 _ACEOF
27714 cat >>$CONFIG_STATUS <<\_ACEOF
27715
27716 #
27717 # CONFIG_COMMANDS section.
27718 #
27719 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27720   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27721   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27722   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27723 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27724          X"$ac_dest" : 'X\(//\)[^/]' \| \
27725          X"$ac_dest" : 'X\(//\)$' \| \
27726          X"$ac_dest" : 'X\(/\)' \| \
27727          .     : '\(.\)' 2>/dev/null ||
27728 echo X"$ac_dest" |
27729     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27730           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27731           /^X\(\/\/\)$/{ s//\1/; q; }
27732           /^X\(\/\).*/{ s//\1/; q; }
27733           s/.*/./; q'`
27734   { if $as_mkdir_p; then
27735     mkdir -p "$ac_dir"
27736   else
27737     as_dir="$ac_dir"
27738     as_dirs=
27739     while test ! -d "$as_dir"; do
27740       as_dirs="$as_dir $as_dirs"
27741       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27743          X"$as_dir" : 'X\(//\)[^/]' \| \
27744          X"$as_dir" : 'X\(//\)$' \| \
27745          X"$as_dir" : 'X\(/\)' \| \
27746          .     : '\(.\)' 2>/dev/null ||
27747 echo X"$as_dir" |
27748     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27749           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27750           /^X\(\/\/\)$/{ s//\1/; q; }
27751           /^X\(\/\).*/{ s//\1/; q; }
27752           s/.*/./; q'`
27753     done
27754     test ! -n "$as_dirs" || mkdir $as_dirs
27755   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27756 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27757    { (exit 1); exit 1; }; }; }
27758
27759   ac_builddir=.
27760
27761 if test "$ac_dir" != .; then
27762   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27763   # A "../" for each directory in $ac_dir_suffix.
27764   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27765 else
27766   ac_dir_suffix= ac_top_builddir=
27767 fi
27768
27769 case $srcdir in
27770   .)  # No --srcdir option.  We are building in place.
27771     ac_srcdir=.
27772     if test -z "$ac_top_builddir"; then
27773        ac_top_srcdir=.
27774     else
27775        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27776     fi ;;
27777   [\\/]* | ?:[\\/]* )  # Absolute path.
27778     ac_srcdir=$srcdir$ac_dir_suffix;
27779     ac_top_srcdir=$srcdir ;;
27780   *) # Relative path.
27781     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27782     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27783 esac
27784
27785 # Do not use `cd foo && pwd` to compute absolute paths, because
27786 # the directories may not exist.
27787 case `pwd` in
27788 .) ac_abs_builddir="$ac_dir";;
27789 *)
27790   case "$ac_dir" in
27791   .) ac_abs_builddir=`pwd`;;
27792   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27793   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27794   esac;;
27795 esac
27796 case $ac_abs_builddir in
27797 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27798 *)
27799   case ${ac_top_builddir}. in
27800   .) ac_abs_top_builddir=$ac_abs_builddir;;
27801   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27802   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27803   esac;;
27804 esac
27805 case $ac_abs_builddir in
27806 .) ac_abs_srcdir=$ac_srcdir;;
27807 *)
27808   case $ac_srcdir in
27809   .) ac_abs_srcdir=$ac_abs_builddir;;
27810   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27811   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27812   esac;;
27813 esac
27814 case $ac_abs_builddir in
27815 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27816 *)
27817   case $ac_top_srcdir in
27818   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27819   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27820   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27821   esac;;
27822 esac
27823
27824
27825   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27826 echo "$as_me: executing $ac_dest commands" >&6;}
27827   case $ac_dest in
27828     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27829   # Strip MF so we end up with the name of the file.
27830   mf=`echo "$mf" | sed -e 's/:.*$//'`
27831   # Check whether this is an Automake generated Makefile or not.
27832   # We used to match only the files named `Makefile.in', but
27833   # some people rename them; so instead we look at the file content.
27834   # Grep'ing the first line is not enough: some people post-process
27835   # each Makefile.in and add a new line on top of each file to say so.
27836   # So let's grep whole file.
27837   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27838     dirpart=`(dirname "$mf") 2>/dev/null ||
27839 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27840          X"$mf" : 'X\(//\)[^/]' \| \
27841          X"$mf" : 'X\(//\)$' \| \
27842          X"$mf" : 'X\(/\)' \| \
27843          .     : '\(.\)' 2>/dev/null ||
27844 echo X"$mf" |
27845     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27846           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27847           /^X\(\/\/\)$/{ s//\1/; q; }
27848           /^X\(\/\).*/{ s//\1/; q; }
27849           s/.*/./; q'`
27850   else
27851     continue
27852   fi
27853   # Extract the definition of DEPDIR, am__include, and am__quote
27854   # from the Makefile without running `make'.
27855   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27856   test -z "$DEPDIR" && continue
27857   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27858   test -z "am__include" && continue
27859   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27860   # When using ansi2knr, U may be empty or an underscore; expand it
27861   U=`sed -n 's/^U = //p' < "$mf"`
27862   # Find all dependency output files, they are included files with
27863   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27864   # simplest approach to changing $(DEPDIR) to its actual value in the
27865   # expansion.
27866   for file in `sed -n "
27867     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27868        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27869     # Make sure the directory exists.
27870     test -f "$dirpart/$file" && continue
27871     fdir=`(dirname "$file") 2>/dev/null ||
27872 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27873          X"$file" : 'X\(//\)[^/]' \| \
27874          X"$file" : 'X\(//\)$' \| \
27875          X"$file" : 'X\(/\)' \| \
27876          .     : '\(.\)' 2>/dev/null ||
27877 echo X"$file" |
27878     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27879           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27880           /^X\(\/\/\)$/{ s//\1/; q; }
27881           /^X\(\/\).*/{ s//\1/; q; }
27882           s/.*/./; q'`
27883     { if $as_mkdir_p; then
27884     mkdir -p $dirpart/$fdir
27885   else
27886     as_dir=$dirpart/$fdir
27887     as_dirs=
27888     while test ! -d "$as_dir"; do
27889       as_dirs="$as_dir $as_dirs"
27890       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27892          X"$as_dir" : 'X\(//\)[^/]' \| \
27893          X"$as_dir" : 'X\(//\)$' \| \
27894          X"$as_dir" : 'X\(/\)' \| \
27895          .     : '\(.\)' 2>/dev/null ||
27896 echo X"$as_dir" |
27897     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27898           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27899           /^X\(\/\/\)$/{ s//\1/; q; }
27900           /^X\(\/\).*/{ s//\1/; q; }
27901           s/.*/./; q'`
27902     done
27903     test ! -n "$as_dirs" || mkdir $as_dirs
27904   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27905 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27906    { (exit 1); exit 1; }; }; }
27907
27908     # echo "creating $dirpart/$file"
27909     echo '# dummy' > "$dirpart/$file"
27910   done
27911 done
27912  ;;
27913   esac
27914 done
27915 _ACEOF
27916
27917 cat >>$CONFIG_STATUS <<\_ACEOF
27918
27919 { (exit 0); exit 0; }
27920 _ACEOF
27921 chmod +x $CONFIG_STATUS
27922 ac_clean_files=$ac_clean_files_save
27923
27924
27925 # configure is writing to config.log, and then calls config.status.
27926 # config.status does its own redirection, appending to config.log.
27927 # Unfortunately, on DOS this fails, as config.log is still kept open
27928 # by configure, so config.status won't be able to write to it; its
27929 # output is simply discarded.  So we exec the FD to /dev/null,
27930 # effectively closing config.log, so it can be properly (re)opened and
27931 # appended to by config.status.  When coming back to configure, we
27932 # need to make the FD available again.
27933 if test "$no_create" != yes; then
27934   ac_cs_success=:
27935   ac_config_status_args=
27936   test "$silent" = yes &&
27937     ac_config_status_args="$ac_config_status_args --quiet"
27938   exec 5>/dev/null
27939   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27940   exec 5>>config.log
27941   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27942   # would make configure fail if this is the last instruction.
27943   $ac_cs_success || { (exit 1); exit 1; }
27944 fi
27945
27946