Imported Upstream version 1.4.1
[shibboleth/xmltooling.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xmltooling 1.4.1.
4 #
5 # Report bugs to <https://bugs.internet2.edu/>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.internet2.edu/ about your system,
251 $0: including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='xmltooling'
572 PACKAGE_TARNAME='xmltooling'
573 PACKAGE_VERSION='1.4.1'
574 PACKAGE_STRING='xmltooling 1.4.1'
575 PACKAGE_BUGREPORT='https://bugs.internet2.edu/'
576 PACKAGE_URL=''
577
578 ac_unique_file="xmltooling"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 pkgconfig_libfile
620 pkgconfig_libdir
621 BUILD_UNITTEST_FALSE
622 BUILD_UNITTEST_TRUE
623 CXXTESTFLAGS
624 CXXTEST
625 BUILD_XMLSEC_FALSE
626 BUILD_XMLSEC_TRUE
627 XMLSEC_LIBS
628 CURL_CONFIG
629 PKG_CONFIG
630 LOG4CPP_CONFIG
631 LOG4SHIB_CONFIG
632 BUILD_PTHREAD_FALSE
633 BUILD_PTHREAD_TRUE
634 PTHREAD_CFLAGS
635 PTHREAD_LIBS
636 PTHREAD_CC
637 acx_pthread_config
638 CXXCPP
639 am__fastdepCXX_FALSE
640 am__fastdepCXX_TRUE
641 CXXDEPMODE
642 ac_ct_CXX
643 CXXFLAGS
644 CXX
645 DOXYGEN_PAPER_SIZE
646 DX_COND_latex_FALSE
647 DX_COND_latex_TRUE
648 DX_COND_pdf_FALSE
649 DX_COND_pdf_TRUE
650 DX_PDFLATEX
651 DX_FLAG_pdf
652 DX_COND_ps_FALSE
653 DX_COND_ps_TRUE
654 DX_EGREP
655 DX_DVIPS
656 DX_MAKEINDEX
657 DX_LATEX
658 DX_FLAG_ps
659 DX_COND_html_FALSE
660 DX_COND_html_TRUE
661 DX_FLAG_html
662 DX_COND_chi_FALSE
663 DX_COND_chi_TRUE
664 DX_FLAG_chi
665 DX_COND_chm_FALSE
666 DX_COND_chm_TRUE
667 DX_HHC
668 DX_FLAG_chm
669 DX_COND_xml_FALSE
670 DX_COND_xml_TRUE
671 DX_FLAG_xml
672 DX_COND_rtf_FALSE
673 DX_COND_rtf_TRUE
674 DX_FLAG_rtf
675 DX_COND_man_FALSE
676 DX_COND_man_TRUE
677 DX_FLAG_man
678 DX_COND_dot_FALSE
679 DX_COND_dot_TRUE
680 DX_DOT
681 DX_FLAG_dot
682 DX_COND_doc_FALSE
683 DX_COND_doc_TRUE
684 DX_PERL
685 DX_DOXYGEN
686 DX_FLAG_doc
687 DX_ENV
688 DX_DOCDIR
689 DX_CONFIG
690 DX_PROJECT
691 CPP
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 MANIFEST_TOOL
698 RANLIB
699 ac_ct_AR
700 AR
701 DLLTOOL
702 OBJDUMP
703 LN_S
704 NM
705 ac_ct_DUMPBIN
706 DUMPBIN
707 LD
708 FGREP
709 EGREP
710 GREP
711 SED
712 am__fastdepCC_FALSE
713 am__fastdepCC_TRUE
714 CCDEPMODE
715 AMDEPBACKSLASH
716 AMDEP_FALSE
717 AMDEP_TRUE
718 am__quote
719 am__include
720 DEPDIR
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
727 CC
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 LIBTOOL
737 am__untar
738 am__tar
739 AMTAR
740 am__leading_dot
741 SET_MAKE
742 AWK
743 mkdir_p
744 MKDIR_P
745 INSTALL_STRIP_PROGRAM
746 STRIP
747 install_sh
748 MAKEINFO
749 AUTOHEADER
750 AUTOMAKE
751 AUTOCONF
752 ACLOCAL
753 VERSION
754 PACKAGE
755 CYGPATH_W
756 am__isrc
757 INSTALL_DATA
758 INSTALL_SCRIPT
759 INSTALL_PROGRAM
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 enable_static
802 enable_shared
803 with_pic
804 enable_fast_install
805 enable_dependency_tracking
806 with_gnu_ld
807 with_sysroot
808 enable_libtool_lock
809 enable_doxygen_doc
810 enable_doxygen_dot
811 enable_doxygen_man
812 enable_doxygen_rtf
813 enable_doxygen_xml
814 enable_doxygen_chm
815 enable_doxygen_chi
816 enable_doxygen_html
817 enable_doxygen_ps
818 enable_doxygen_pdf
819 enable_debug
820 with_gnu_ld
821 with_log4shib
822 with_log4cpp
823 with_xerces
824 with_xmlsec
825 with_openssl
826 with_curl
827 with_cxxtest
828 '
829       ac_precious_vars='build_alias
830 host_alias
831 target_alias
832 CC
833 CFLAGS
834 LDFLAGS
835 LIBS
836 CPPFLAGS
837 CPP
838 CPPFLAGS
839 DOXYGEN_PAPER_SIZE
840 CC
841 LDFLAGS
842 LIBS
843 CPPFLAGS
844 CXX
845 CXXFLAGS
846 LIBS
847 CCC
848 CXXCPP'
849
850
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 ac_unrecognized_opts=
855 ac_unrecognized_sep=
856 # The variables have the same names as the options, with
857 # dashes changed to underlines.
858 cache_file=/dev/null
859 exec_prefix=NONE
860 no_create=
861 no_recursion=
862 prefix=NONE
863 program_prefix=NONE
864 program_suffix=NONE
865 program_transform_name=s,x,x,
866 silent=
867 site=
868 srcdir=
869 verbose=
870 x_includes=NONE
871 x_libraries=NONE
872
873 # Installation directory options.
874 # These are left unexpanded so users can "make install exec_prefix=/foo"
875 # and all the variables that are supposed to be based on exec_prefix
876 # by default will actually change.
877 # Use braces instead of parens because sh, perl, etc. also accept them.
878 # (The list follows the same order as the GNU Coding Standards.)
879 bindir='${exec_prefix}/bin'
880 sbindir='${exec_prefix}/sbin'
881 libexecdir='${exec_prefix}/libexec'
882 datarootdir='${prefix}/share'
883 datadir='${datarootdir}'
884 sysconfdir='${prefix}/etc'
885 sharedstatedir='${prefix}/com'
886 localstatedir='${prefix}/var'
887 includedir='${prefix}/include'
888 oldincludedir='/usr/include'
889 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890 infodir='${datarootdir}/info'
891 htmldir='${docdir}'
892 dvidir='${docdir}'
893 pdfdir='${docdir}'
894 psdir='${docdir}'
895 libdir='${exec_prefix}/lib'
896 localedir='${datarootdir}/locale'
897 mandir='${datarootdir}/man'
898
899 ac_prev=
900 ac_dashdash=
901 for ac_option
902 do
903   # If the previous option needs an argument, assign it.
904   if test -n "$ac_prev"; then
905     eval $ac_prev=\$ac_option
906     ac_prev=
907     continue
908   fi
909
910   case $ac_option in
911   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912   *=)   ac_optarg= ;;
913   *)    ac_optarg=yes ;;
914   esac
915
916   # Accept the important Cygnus configure options, so we can diagnose typos.
917
918   case $ac_dashdash$ac_option in
919   --)
920     ac_dashdash=yes ;;
921
922   -bindir | --bindir | --bindi | --bind | --bin | --bi)
923     ac_prev=bindir ;;
924   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925     bindir=$ac_optarg ;;
926
927   -build | --build | --buil | --bui | --bu)
928     ac_prev=build_alias ;;
929   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930     build_alias=$ac_optarg ;;
931
932   -cache-file | --cache-file | --cache-fil | --cache-fi \
933   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934     ac_prev=cache_file ;;
935   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937     cache_file=$ac_optarg ;;
938
939   --config-cache | -C)
940     cache_file=config.cache ;;
941
942   -datadir | --datadir | --datadi | --datad)
943     ac_prev=datadir ;;
944   -datadir=* | --datadir=* | --datadi=* | --datad=*)
945     datadir=$ac_optarg ;;
946
947   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948   | --dataroo | --dataro | --datar)
949     ac_prev=datarootdir ;;
950   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952     datarootdir=$ac_optarg ;;
953
954   -disable-* | --disable-*)
955     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958       as_fn_error $? "invalid feature name: $ac_useropt"
959     ac_useropt_orig=$ac_useropt
960     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961     case $ac_user_opts in
962       *"
963 "enable_$ac_useropt"
964 "*) ;;
965       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966          ac_unrecognized_sep=', ';;
967     esac
968     eval enable_$ac_useropt=no ;;
969
970   -docdir | --docdir | --docdi | --doc | --do)
971     ac_prev=docdir ;;
972   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973     docdir=$ac_optarg ;;
974
975   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976     ac_prev=dvidir ;;
977   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978     dvidir=$ac_optarg ;;
979
980   -enable-* | --enable-*)
981     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982     # Reject names that are not valid shell variable names.
983     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984       as_fn_error $? "invalid feature name: $ac_useropt"
985     ac_useropt_orig=$ac_useropt
986     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987     case $ac_user_opts in
988       *"
989 "enable_$ac_useropt"
990 "*) ;;
991       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992          ac_unrecognized_sep=', ';;
993     esac
994     eval enable_$ac_useropt=\$ac_optarg ;;
995
996   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998   | --exec | --exe | --ex)
999     ac_prev=exec_prefix ;;
1000   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002   | --exec=* | --exe=* | --ex=*)
1003     exec_prefix=$ac_optarg ;;
1004
1005   -gas | --gas | --ga | --g)
1006     # Obsolete; use --with-gas.
1007     with_gas=yes ;;
1008
1009   -help | --help | --hel | --he | -h)
1010     ac_init_help=long ;;
1011   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012     ac_init_help=recursive ;;
1013   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014     ac_init_help=short ;;
1015
1016   -host | --host | --hos | --ho)
1017     ac_prev=host_alias ;;
1018   -host=* | --host=* | --hos=* | --ho=*)
1019     host_alias=$ac_optarg ;;
1020
1021   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022     ac_prev=htmldir ;;
1023   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024   | --ht=*)
1025     htmldir=$ac_optarg ;;
1026
1027   -includedir | --includedir | --includedi | --included | --include \
1028   | --includ | --inclu | --incl | --inc)
1029     ac_prev=includedir ;;
1030   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031   | --includ=* | --inclu=* | --incl=* | --inc=*)
1032     includedir=$ac_optarg ;;
1033
1034   -infodir | --infodir | --infodi | --infod | --info | --inf)
1035     ac_prev=infodir ;;
1036   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037     infodir=$ac_optarg ;;
1038
1039   -libdir | --libdir | --libdi | --libd)
1040     ac_prev=libdir ;;
1041   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042     libdir=$ac_optarg ;;
1043
1044   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045   | --libexe | --libex | --libe)
1046     ac_prev=libexecdir ;;
1047   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048   | --libexe=* | --libex=* | --libe=*)
1049     libexecdir=$ac_optarg ;;
1050
1051   -localedir | --localedir | --localedi | --localed | --locale)
1052     ac_prev=localedir ;;
1053   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054     localedir=$ac_optarg ;;
1055
1056   -localstatedir | --localstatedir | --localstatedi | --localstated \
1057   | --localstate | --localstat | --localsta | --localst | --locals)
1058     ac_prev=localstatedir ;;
1059   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061     localstatedir=$ac_optarg ;;
1062
1063   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064     ac_prev=mandir ;;
1065   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066     mandir=$ac_optarg ;;
1067
1068   -nfp | --nfp | --nf)
1069     # Obsolete; use --without-fp.
1070     with_fp=no ;;
1071
1072   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073   | --no-cr | --no-c | -n)
1074     no_create=yes ;;
1075
1076   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078     no_recursion=yes ;;
1079
1080   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082   | --oldin | --oldi | --old | --ol | --o)
1083     ac_prev=oldincludedir ;;
1084   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087     oldincludedir=$ac_optarg ;;
1088
1089   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090     ac_prev=prefix ;;
1091   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092     prefix=$ac_optarg ;;
1093
1094   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095   | --program-pre | --program-pr | --program-p)
1096     ac_prev=program_prefix ;;
1097   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099     program_prefix=$ac_optarg ;;
1100
1101   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102   | --program-suf | --program-su | --program-s)
1103     ac_prev=program_suffix ;;
1104   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106     program_suffix=$ac_optarg ;;
1107
1108   -program-transform-name | --program-transform-name \
1109   | --program-transform-nam | --program-transform-na \
1110   | --program-transform-n | --program-transform- \
1111   | --program-transform | --program-transfor \
1112   | --program-transfo | --program-transf \
1113   | --program-trans | --program-tran \
1114   | --progr-tra | --program-tr | --program-t)
1115     ac_prev=program_transform_name ;;
1116   -program-transform-name=* | --program-transform-name=* \
1117   | --program-transform-nam=* | --program-transform-na=* \
1118   | --program-transform-n=* | --program-transform-=* \
1119   | --program-transform=* | --program-transfor=* \
1120   | --program-transfo=* | --program-transf=* \
1121   | --program-trans=* | --program-tran=* \
1122   | --progr-tra=* | --program-tr=* | --program-t=*)
1123     program_transform_name=$ac_optarg ;;
1124
1125   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126     ac_prev=pdfdir ;;
1127   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128     pdfdir=$ac_optarg ;;
1129
1130   -psdir | --psdir | --psdi | --psd | --ps)
1131     ac_prev=psdir ;;
1132   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133     psdir=$ac_optarg ;;
1134
1135   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136   | -silent | --silent | --silen | --sile | --sil)
1137     silent=yes ;;
1138
1139   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140     ac_prev=sbindir ;;
1141   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142   | --sbi=* | --sb=*)
1143     sbindir=$ac_optarg ;;
1144
1145   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147   | --sharedst | --shareds | --shared | --share | --shar \
1148   | --sha | --sh)
1149     ac_prev=sharedstatedir ;;
1150   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153   | --sha=* | --sh=*)
1154     sharedstatedir=$ac_optarg ;;
1155
1156   -site | --site | --sit)
1157     ac_prev=site ;;
1158   -site=* | --site=* | --sit=*)
1159     site=$ac_optarg ;;
1160
1161   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162     ac_prev=srcdir ;;
1163   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164     srcdir=$ac_optarg ;;
1165
1166   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167   | --syscon | --sysco | --sysc | --sys | --sy)
1168     ac_prev=sysconfdir ;;
1169   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171     sysconfdir=$ac_optarg ;;
1172
1173   -target | --target | --targe | --targ | --tar | --ta | --t)
1174     ac_prev=target_alias ;;
1175   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176     target_alias=$ac_optarg ;;
1177
1178   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179     verbose=yes ;;
1180
1181   -version | --version | --versio | --versi | --vers | -V)
1182     ac_init_version=: ;;
1183
1184   -with-* | --with-*)
1185     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186     # Reject names that are not valid shell variable names.
1187     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188       as_fn_error $? "invalid package name: $ac_useropt"
1189     ac_useropt_orig=$ac_useropt
1190     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191     case $ac_user_opts in
1192       *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196          ac_unrecognized_sep=', ';;
1197     esac
1198     eval with_$ac_useropt=\$ac_optarg ;;
1199
1200   -without-* | --without-*)
1201     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202     # Reject names that are not valid shell variable names.
1203     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204       as_fn_error $? "invalid package name: $ac_useropt"
1205     ac_useropt_orig=$ac_useropt
1206     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207     case $ac_user_opts in
1208       *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212          ac_unrecognized_sep=', ';;
1213     esac
1214     eval with_$ac_useropt=no ;;
1215
1216   --x)
1217     # Obsolete; use --with-x.
1218     with_x=yes ;;
1219
1220   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221   | --x-incl | --x-inc | --x-in | --x-i)
1222     ac_prev=x_includes ;;
1223   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225     x_includes=$ac_optarg ;;
1226
1227   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229     ac_prev=x_libraries ;;
1230   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232     x_libraries=$ac_optarg ;;
1233
1234   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1235 Try \`$0 --help' for more information"
1236     ;;
1237
1238   *=*)
1239     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240     # Reject names that are not valid shell variable names.
1241     case $ac_envvar in #(
1242       '' | [0-9]* | *[!_$as_cr_alnum]* )
1243       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1244     esac
1245     eval $ac_envvar=\$ac_optarg
1246     export $ac_envvar ;;
1247
1248   *)
1249     # FIXME: should be removed in autoconf 3.0.
1250     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1251     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1253     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1254     ;;
1255
1256   esac
1257 done
1258
1259 if test -n "$ac_prev"; then
1260   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261   as_fn_error $? "missing argument to $ac_option"
1262 fi
1263
1264 if test -n "$ac_unrecognized_opts"; then
1265   case $enable_option_checking in
1266     no) ;;
1267     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1268     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269   esac
1270 fi
1271
1272 # Check all directory arguments for consistency.
1273 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274                 datadir sysconfdir sharedstatedir localstatedir includedir \
1275                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276                 libdir localedir mandir
1277 do
1278   eval ac_val=\$$ac_var
1279   # Remove trailing slashes.
1280   case $ac_val in
1281     */ )
1282       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283       eval $ac_var=\$ac_val;;
1284   esac
1285   # Be sure to have absolute directory names.
1286   case $ac_val in
1287     [\\/$]* | ?:[\\/]* )  continue;;
1288     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289   esac
1290   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1291 done
1292
1293 # There might be people who depend on the old broken behavior: `$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1296 build=$build_alias
1297 host=$host_alias
1298 target=$target_alias
1299
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x; then
1302   if test "x$build_alias" = x; then
1303     cross_compiling=maybe
1304     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1305     If a cross compiler is detected then cross compile mode will be used" >&2
1306   elif test "x$build_alias" != "x$host_alias"; then
1307     cross_compiling=yes
1308   fi
1309 fi
1310
1311 ac_tool_prefix=
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314 test "$silent" = yes && exec 6>/dev/null
1315
1316
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320   as_fn_error $? "working directory cannot be determined"
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322   as_fn_error $? "pwd does not report name of working directory"
1323
1324
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327   ac_srcdir_defaulted=yes
1328   # Try the directory containing this script, then the parent directory.
1329   ac_confdir=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331          X"$as_myself" : 'X\(//\)[^/]' \| \
1332          X"$as_myself" : 'X\(//\)$' \| \
1333          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\/\)[^/].*/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)$/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\).*/{
1348             s//\1/
1349             q
1350           }
1351           s/.*/./; q'`
1352   srcdir=$ac_confdir
1353   if test ! -r "$srcdir/$ac_unique_file"; then
1354     srcdir=..
1355   fi
1356 else
1357   ac_srcdir_defaulted=no
1358 fi
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1362 fi
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1366         pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369   srcdir=.
1370 fi
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379   eval ac_env_${ac_var}_value=\$${ac_var}
1380   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1383
1384 #
1385 # Report the --help message.
1386 #
1387 if test "$ac_init_help" = "long"; then
1388   # Omit some internal or obsolete options to make the list less imposing.
1389   # This message is too long to be a string in the A/UX 3.1 sh.
1390   cat <<_ACEOF
1391 \`configure' configures xmltooling 1.4.1 to adapt to many kinds of systems.
1392
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE.  See below for descriptions of some of the useful variables.
1397
1398 Defaults for the options are specified in brackets.
1399
1400 Configuration:
1401   -h, --help              display this help and exit
1402       --help=short        display options specific to this package
1403       --help=recursive    display the short help of all the included packages
1404   -V, --version           display version information and exit
1405   -q, --quiet, --silent   do not print \`checking ...' messages
1406       --cache-file=FILE   cache test results in FILE [disabled]
1407   -C, --config-cache      alias for \`--cache-file=config.cache'
1408   -n, --no-create         do not create output files
1409       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1410
1411 Installation directories:
1412   --prefix=PREFIX         install architecture-independent files in PREFIX
1413                           [$ac_default_prefix]
1414   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1415                           [PREFIX]
1416
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1421
1422 For better control, use the options below.
1423
1424 Fine tuning of the installation directories:
1425   --bindir=DIR            user executables [EPREFIX/bin]
1426   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1427   --libexecdir=DIR        program executables [EPREFIX/libexec]
1428   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1429   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1430   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1431   --libdir=DIR            object code libraries [EPREFIX/lib]
1432   --includedir=DIR        C header files [PREFIX/include]
1433   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1434   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1435   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1436   --infodir=DIR           info documentation [DATAROOTDIR/info]
1437   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1438   --mandir=DIR            man documentation [DATAROOTDIR/man]
1439   --docdir=DIR            documentation root [DATAROOTDIR/doc/xmltooling]
1440   --htmldir=DIR           html documentation [DOCDIR]
1441   --dvidir=DIR            dvi documentation [DOCDIR]
1442   --pdfdir=DIR            pdf documentation [DOCDIR]
1443   --psdir=DIR             ps documentation [DOCDIR]
1444 _ACEOF
1445
1446   cat <<\_ACEOF
1447
1448 Program names:
1449   --program-prefix=PREFIX            prepend PREFIX to installed program names
1450   --program-suffix=SUFFIX            append SUFFIX to installed program names
1451   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1452
1453 System types:
1454   --build=BUILD     configure for building on BUILD [guessed]
1455   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1456 _ACEOF
1457 fi
1458
1459 if test -n "$ac_init_help"; then
1460   case $ac_init_help in
1461      short | recursive ) echo "Configuration of xmltooling 1.4.1:";;
1462    esac
1463   cat <<\_ACEOF
1464
1465 Optional Features:
1466   --disable-option-checking  ignore unrecognized --enable/--with options
1467   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469   --enable-static[=PKGS]  build static libraries [default=no]
1470   --enable-shared[=PKGS]  build shared libraries [default=yes]
1471   --enable-fast-install[=PKGS]
1472                           optimize for fast installation [default=yes]
1473   --disable-dependency-tracking  speeds up one-time build
1474   --enable-dependency-tracking   do not reject slow dependency extractors
1475   --disable-libtool-lock  avoid locking (might break parallel builds)
1476   --disable-doxygen-doc   don't generate any doxygen documentation
1477   --disable-doxygen-dot   don't generate graphics for doxygen documentation
1478   --enable-doxygen-man    generate doxygen manual pages
1479   --enable-doxygen-rtf    generate doxygen RTF documentation
1480   --enable-doxygen-xml    generate doxygen XML documentation
1481   --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1482   --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1483                           file
1484   --disable-doxygen-html  don't generate doxygen plain HTML documentation
1485   --enable-doxygen-ps     generate doxygen PostScript documentation
1486   --enable-doxygen-pdf    generate doxygen PDF documentation
1487   --enable-debug          Have GCC compile with symbols (Default = no)
1488
1489 Optional Packages:
1490   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1491   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1492   --with-pic              try to use only PIC/non-PIC objects [default=use
1493                           both]
1494   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1495   --with-sysroot=DIR Search for dependent libraries within DIR
1496                         (or the compiler's sysroot if not specified).
1497   --with-log4shib=PATH    where log4shib-config is installed
1498   --with-log4cpp=PATH     where log4cpp-config is installed
1499   --with-xerces=PATH      where xerces-c is installed
1500   --with-xmlsec=PATH      where xmlsec is installed
1501   --with-openssl=PATH     where openssl is installed
1502   --with-curl=PATH        where curl-config is installed
1503   --with-cxxtest=PATH     where cxxtest is installed
1504
1505 Some influential environment variables:
1506   CC          C compiler command
1507   CFLAGS      C compiler flags
1508   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1509               nonstandard directory <lib dir>
1510   LIBS        libraries to pass to the linker, e.g. -l<library>
1511   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1512               you have headers in a nonstandard directory <include dir>
1513   CPP         C preprocessor
1514   DOXYGEN_PAPER_SIZE
1515               a4wide (default), a4, letter, legal or executive
1516   CXX         C++ compiler command
1517   CXXFLAGS    C++ compiler flags
1518   CXXCPP      C++ preprocessor
1519
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1522
1523 Report bugs to <https://bugs.internet2.edu/>.
1524 _ACEOF
1525 ac_status=$?
1526 fi
1527
1528 if test "$ac_init_help" = "recursive"; then
1529   # If there are subdirs, report their specific --help.
1530   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531     test -d "$ac_dir" ||
1532       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533       continue
1534     ac_builddir=.
1535
1536 case "$ac_dir" in
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *)
1539   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1540   # A ".." for each directory in $ac_dir_suffix.
1541   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542   case $ac_top_builddir_sub in
1543   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545   esac ;;
1546 esac
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1551
1552 case $srcdir in
1553   .)  # We are building in place.
1554     ac_srcdir=.
1555     ac_top_srcdir=$ac_top_builddir_sub
1556     ac_abs_top_srcdir=$ac_pwd ;;
1557   [\\/]* | ?:[\\/]* )  # Absolute name.
1558     ac_srcdir=$srcdir$ac_dir_suffix;
1559     ac_top_srcdir=$srcdir
1560     ac_abs_top_srcdir=$srcdir ;;
1561   *) # Relative name.
1562     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563     ac_top_srcdir=$ac_top_build_prefix$srcdir
1564     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 esac
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568     cd "$ac_dir" || { ac_status=$?; continue; }
1569     # Check for guested configure.
1570     if test -f "$ac_srcdir/configure.gnu"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573     elif test -f "$ac_srcdir/configure"; then
1574       echo &&
1575       $SHELL "$ac_srcdir/configure" --help=recursive
1576     else
1577       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578     fi || ac_status=$?
1579     cd "$ac_pwd" || { ac_status=$?; break; }
1580   done
1581 fi
1582
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1585   cat <<\_ACEOF
1586 xmltooling configure 1.4.1
1587 generated by GNU Autoconf 2.68
1588
1589 Copyright (C) 2010 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1592 _ACEOF
1593   exit
1594 fi
1595
1596 ## ------------------------ ##
1597 ## Autoconf initialization. ##
1598 ## ------------------------ ##
1599
1600 # ac_fn_c_try_compile LINENO
1601 # --------------------------
1602 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_compile ()
1604 {
1605   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606   rm -f conftest.$ac_objext
1607   if { { ac_try="$ac_compile"
1608 case "(($ac_try" in
1609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610   *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614   (eval "$ac_compile") 2>conftest.err
1615   ac_status=$?
1616   if test -s conftest.err; then
1617     grep -v '^ *+' conftest.err >conftest.er1
1618     cat conftest.er1 >&5
1619     mv -f conftest.er1 conftest.err
1620   fi
1621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622   test $ac_status = 0; } && {
1623          test -z "$ac_c_werror_flag" ||
1624          test ! -s conftest.err
1625        } && test -s conftest.$ac_objext; then :
1626   ac_retval=0
1627 else
1628   $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1630
1631         ac_retval=1
1632 fi
1633   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634   as_fn_set_status $ac_retval
1635
1636 } # ac_fn_c_try_compile
1637
1638 # ac_fn_c_try_link LINENO
1639 # -----------------------
1640 # Try to link conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_c_try_link ()
1642 {
1643   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644   rm -f conftest.$ac_objext conftest$ac_exeext
1645   if { { ac_try="$ac_link"
1646 case "(($ac_try" in
1647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648   *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652   (eval "$ac_link") 2>conftest.err
1653   ac_status=$?
1654   if test -s conftest.err; then
1655     grep -v '^ *+' conftest.err >conftest.er1
1656     cat conftest.er1 >&5
1657     mv -f conftest.er1 conftest.err
1658   fi
1659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660   test $ac_status = 0; } && {
1661          test -z "$ac_c_werror_flag" ||
1662          test ! -s conftest.err
1663        } && test -s conftest$ac_exeext && {
1664          test "$cross_compiling" = yes ||
1665          $as_test_x conftest$ac_exeext
1666        }; then :
1667   ac_retval=0
1668 else
1669   $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672         ac_retval=1
1673 fi
1674   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1675   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1676   # interfere with the next link command; also delete a directory that is
1677   # left behind by Apple's compiler.  We do this before executing the actions.
1678   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680   as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_link
1683
1684 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685 # -------------------------------------------------------
1686 # Tests whether HEADER exists and can be compiled using the include files in
1687 # INCLUDES, setting the cache variable VAR accordingly.
1688 ac_fn_c_check_header_compile ()
1689 {
1690   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \${$3+:} false; then :
1694   $as_echo_n "(cached) " >&6
1695 else
1696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h.  */
1698 $4
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_compile "$LINENO"; then :
1702   eval "$3=yes"
1703 else
1704   eval "$3=no"
1705 fi
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 fi
1708 eval ac_res=\$$3
1709                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710 $as_echo "$ac_res" >&6; }
1711   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713 } # ac_fn_c_check_header_compile
1714
1715 # ac_fn_c_try_cpp LINENO
1716 # ----------------------
1717 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_cpp ()
1719 {
1720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721   if { { ac_try="$ac_cpp conftest.$ac_ext"
1722 case "(($ac_try" in
1723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724   *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729   ac_status=$?
1730   if test -s conftest.err; then
1731     grep -v '^ *+' conftest.err >conftest.er1
1732     cat conftest.er1 >&5
1733     mv -f conftest.er1 conftest.err
1734   fi
1735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736   test $ac_status = 0; } > conftest.i && {
1737          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738          test ! -s conftest.err
1739        }; then :
1740   ac_retval=0
1741 else
1742   $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745     ac_retval=1
1746 fi
1747   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748   as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_cpp
1751
1752 # ac_fn_c_try_run LINENO
1753 # ----------------------
1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755 # that executables *can* be run.
1756 ac_fn_c_try_run ()
1757 {
1758   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759   if { { ac_try="$ac_link"
1760 case "(($ac_try" in
1761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762   *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766   (eval "$ac_link") 2>&5
1767   ac_status=$?
1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770   { { case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_try") 2>&5
1777   ac_status=$?
1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; }; }; then :
1780   ac_retval=0
1781 else
1782   $as_echo "$as_me: program exited with status $ac_status" >&5
1783        $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1785
1786        ac_retval=$ac_status
1787 fi
1788   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790   as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_run
1793
1794 # ac_fn_c_check_func LINENO FUNC VAR
1795 # ----------------------------------
1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1797 ac_fn_c_check_func ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803   $as_echo_n "(cached) " >&6
1804 else
1805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h.  */
1807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1809 #define $2 innocuous_$2
1810
1811 /* System header to define __stub macros and hopefully few prototypes,
1812     which can conflict with char $2 (); below.
1813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814     <limits.h> exists even on freestanding compilers.  */
1815
1816 #ifdef __STDC__
1817 # include <limits.h>
1818 #else
1819 # include <assert.h>
1820 #endif
1821
1822 #undef $2
1823
1824 /* Override any GCC internal prototype to avoid an error.
1825    Use char because int might match the return type of a GCC
1826    builtin and then its argument prototype would still apply.  */
1827 #ifdef __cplusplus
1828 extern "C"
1829 #endif
1830 char $2 ();
1831 /* The GNU C library defines this for functions which it implements
1832     to always fail with ENOSYS.  Some functions are actually named
1833     something starting with __ and the normal name is an alias.  */
1834 #if defined __stub_$2 || defined __stub___$2
1835 choke me
1836 #endif
1837
1838 int
1839 main ()
1840 {
1841 return $2 ();
1842   ;
1843   return 0;
1844 }
1845 _ACEOF
1846 if ac_fn_c_try_link "$LINENO"; then :
1847   eval "$3=yes"
1848 else
1849   eval "$3=no"
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext \
1852     conftest$ac_exeext conftest.$ac_ext
1853 fi
1854 eval ac_res=\$$3
1855                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_func
1860
1861 # ac_fn_cxx_try_compile LINENO
1862 # ----------------------------
1863 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_cxx_try_compile ()
1865 {
1866   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867   rm -f conftest.$ac_objext
1868   if { { ac_try="$ac_compile"
1869 case "(($ac_try" in
1870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871   *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875   (eval "$ac_compile") 2>conftest.err
1876   ac_status=$?
1877   if test -s conftest.err; then
1878     grep -v '^ *+' conftest.err >conftest.er1
1879     cat conftest.er1 >&5
1880     mv -f conftest.er1 conftest.err
1881   fi
1882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883   test $ac_status = 0; } && {
1884          test -z "$ac_cxx_werror_flag" ||
1885          test ! -s conftest.err
1886        } && test -s conftest.$ac_objext; then :
1887   ac_retval=0
1888 else
1889   $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892         ac_retval=1
1893 fi
1894   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895   as_fn_set_status $ac_retval
1896
1897 } # ac_fn_cxx_try_compile
1898
1899 # ac_fn_cxx_try_cpp LINENO
1900 # ------------------------
1901 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1902 ac_fn_cxx_try_cpp ()
1903 {
1904   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905   if { { ac_try="$ac_cpp conftest.$ac_ext"
1906 case "(($ac_try" in
1907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908   *) ac_try_echo=$ac_try;;
1909 esac
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1913   ac_status=$?
1914   if test -s conftest.err; then
1915     grep -v '^ *+' conftest.err >conftest.er1
1916     cat conftest.er1 >&5
1917     mv -f conftest.er1 conftest.err
1918   fi
1919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920   test $ac_status = 0; } > conftest.i && {
1921          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1922          test ! -s conftest.err
1923        }; then :
1924   ac_retval=0
1925 else
1926   $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1928
1929     ac_retval=1
1930 fi
1931   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932   as_fn_set_status $ac_retval
1933
1934 } # ac_fn_cxx_try_cpp
1935
1936 # ac_fn_cxx_try_link LINENO
1937 # -------------------------
1938 # Try to link conftest.$ac_ext, and return whether this succeeded.
1939 ac_fn_cxx_try_link ()
1940 {
1941   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942   rm -f conftest.$ac_objext conftest$ac_exeext
1943   if { { ac_try="$ac_link"
1944 case "(($ac_try" in
1945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946   *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950   (eval "$ac_link") 2>conftest.err
1951   ac_status=$?
1952   if test -s conftest.err; then
1953     grep -v '^ *+' conftest.err >conftest.er1
1954     cat conftest.er1 >&5
1955     mv -f conftest.er1 conftest.err
1956   fi
1957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958   test $ac_status = 0; } && {
1959          test -z "$ac_cxx_werror_flag" ||
1960          test ! -s conftest.err
1961        } && test -s conftest$ac_exeext && {
1962          test "$cross_compiling" = yes ||
1963          $as_test_x conftest$ac_exeext
1964        }; then :
1965   ac_retval=0
1966 else
1967   $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970         ac_retval=1
1971 fi
1972   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1973   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1974   # interfere with the next link command; also delete a directory that is
1975   # left behind by Apple's compiler.  We do this before executing the actions.
1976   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978   as_fn_set_status $ac_retval
1979
1980 } # ac_fn_cxx_try_link
1981
1982 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1983 # -------------------------------------------
1984 # Tests whether TYPE exists after having included INCLUDES, setting cache
1985 # variable VAR accordingly.
1986 ac_fn_c_check_type ()
1987 {
1988   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992   $as_echo_n "(cached) " >&6
1993 else
1994   eval "$3=no"
1995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h.  */
1997 $4
1998 int
1999 main ()
2000 {
2001 if (sizeof ($2))
2002          return 0;
2003   ;
2004   return 0;
2005 }
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"; then :
2008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h.  */
2010 $4
2011 int
2012 main ()
2013 {
2014 if (sizeof (($2)))
2015             return 0;
2016   ;
2017   return 0;
2018 }
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021
2022 else
2023   eval "$3=yes"
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 fi
2029 eval ac_res=\$$3
2030                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2031 $as_echo "$ac_res" >&6; }
2032   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033
2034 } # ac_fn_c_check_type
2035
2036 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2037 # --------------------------------------------
2038 # Tries to find the compile-time value of EXPR in a program that includes
2039 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2040 # computed
2041 ac_fn_c_compute_int ()
2042 {
2043   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044   if test "$cross_compiling" = yes; then
2045     # Depending upon the size, compute the lo and hi bounds.
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h.  */
2048 $4
2049 int
2050 main ()
2051 {
2052 static int test_array [1 - 2 * !(($2) >= 0)];
2053 test_array [0] = 0
2054
2055   ;
2056   return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060   ac_lo=0 ac_mid=0
2061   while :; do
2062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h.  */
2064 $4
2065 int
2066 main ()
2067 {
2068 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2069 test_array [0] = 0
2070
2071   ;
2072   return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076   ac_hi=$ac_mid; break
2077 else
2078   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2079                         if test $ac_lo -le $ac_mid; then
2080                           ac_lo= ac_hi=
2081                           break
2082                         fi
2083                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086   done
2087 else
2088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h.  */
2090 $4
2091 int
2092 main ()
2093 {
2094 static int test_array [1 - 2 * !(($2) < 0)];
2095 test_array [0] = 0
2096
2097   ;
2098   return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102   ac_hi=-1 ac_mid=-1
2103   while :; do
2104     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h.  */
2106 $4
2107 int
2108 main ()
2109 {
2110 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2111 test_array [0] = 0
2112
2113   ;
2114   return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2118   ac_lo=$ac_mid; break
2119 else
2120   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2121                         if test $ac_mid -le $ac_hi; then
2122                           ac_lo= ac_hi=
2123                           break
2124                         fi
2125                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128   done
2129 else
2130   ac_lo= ac_hi=
2131 fi
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 fi
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 # Binary search between lo and hi bounds.
2136 while test "x$ac_lo" != "x$ac_hi"; do
2137   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h.  */
2140 $4
2141 int
2142 main ()
2143 {
2144 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2145 test_array [0] = 0
2146
2147   ;
2148   return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_compile "$LINENO"; then :
2152   ac_hi=$ac_mid
2153 else
2154   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 done
2158 case $ac_lo in #((
2159 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2160 '') ac_retval=1 ;;
2161 esac
2162   else
2163     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h.  */
2165 $4
2166 static long int longval () { return $2; }
2167 static unsigned long int ulongval () { return $2; }
2168 #include <stdio.h>
2169 #include <stdlib.h>
2170 int
2171 main ()
2172 {
2173
2174   FILE *f = fopen ("conftest.val", "w");
2175   if (! f)
2176     return 1;
2177   if (($2) < 0)
2178     {
2179       long int i = longval ();
2180       if (i != ($2))
2181         return 1;
2182       fprintf (f, "%ld", i);
2183     }
2184   else
2185     {
2186       unsigned long int i = ulongval ();
2187       if (i != ($2))
2188         return 1;
2189       fprintf (f, "%lu", i);
2190     }
2191   /* Do not output a trailing newline, as this causes \r\n confusion
2192      on some platforms.  */
2193   return ferror (f) || fclose (f) != 0;
2194
2195   ;
2196   return 0;
2197 }
2198 _ACEOF
2199 if ac_fn_c_try_run "$LINENO"; then :
2200   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2201 else
2202   ac_retval=1
2203 fi
2204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2205   conftest.$ac_objext conftest.beam conftest.$ac_ext
2206 rm -f conftest.val
2207
2208   fi
2209   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210   as_fn_set_status $ac_retval
2211
2212 } # ac_fn_c_compute_int
2213
2214 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2215 # -------------------------------------------------------
2216 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2217 # the include files in INCLUDES and setting the cache variable VAR
2218 # accordingly.
2219 ac_fn_c_check_header_mongrel ()
2220 {
2221   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222   if eval \${$3+:} false; then :
2223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \${$3+:} false; then :
2226   $as_echo_n "(cached) " >&6
2227 fi
2228 eval ac_res=\$$3
2229                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2231 else
2232   # Is the header compilable?
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2234 $as_echo_n "checking $2 usability... " >&6; }
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h.  */
2237 $4
2238 #include <$2>
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241   ac_header_compiler=yes
2242 else
2243   ac_header_compiler=no
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2247 $as_echo "$ac_header_compiler" >&6; }
2248
2249 # Is the header present?
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2251 $as_echo_n "checking $2 presence... " >&6; }
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h.  */
2254 #include <$2>
2255 _ACEOF
2256 if ac_fn_c_try_cpp "$LINENO"; then :
2257   ac_header_preproc=yes
2258 else
2259   ac_header_preproc=no
2260 fi
2261 rm -f conftest.err conftest.i conftest.$ac_ext
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2263 $as_echo "$ac_header_preproc" >&6; }
2264
2265 # So?  What about this header?
2266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2267   yes:no: )
2268     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2269 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2270     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2271 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2272     ;;
2273   no:yes:* )
2274     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2275 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2276     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2277 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2278     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2279 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2280     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2281 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2282     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2283 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2284 ( $as_echo "## ------------------------------------------ ##
2285 ## Report this to https://bugs.internet2.edu/ ##
2286 ## ------------------------------------------ ##"
2287      ) | sed "s/^/$as_me: WARNING:     /" >&2
2288     ;;
2289 esac
2290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2291 $as_echo_n "checking for $2... " >&6; }
2292 if eval \${$3+:} false; then :
2293   $as_echo_n "(cached) " >&6
2294 else
2295   eval "$3=\$ac_header_compiler"
2296 fi
2297 eval ac_res=\$$3
2298                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 fi
2301   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2302
2303 } # ac_fn_c_check_header_mongrel
2304
2305 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2306 # ---------------------------------------------------------
2307 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2308 # the include files in INCLUDES and setting the cache variable VAR
2309 # accordingly.
2310 ac_fn_cxx_check_header_mongrel ()
2311 {
2312   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2313   if eval \${$3+:} false; then :
2314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2315 $as_echo_n "checking for $2... " >&6; }
2316 if eval \${$3+:} false; then :
2317   $as_echo_n "(cached) " >&6
2318 fi
2319 eval ac_res=\$$3
2320                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 $as_echo "$ac_res" >&6; }
2322 else
2323   # Is the header compilable?
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2325 $as_echo_n "checking $2 usability... " >&6; }
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h.  */
2328 $4
2329 #include <$2>
2330 _ACEOF
2331 if ac_fn_cxx_try_compile "$LINENO"; then :
2332   ac_header_compiler=yes
2333 else
2334   ac_header_compiler=no
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2338 $as_echo "$ac_header_compiler" >&6; }
2339
2340 # Is the header present?
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2342 $as_echo_n "checking $2 presence... " >&6; }
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h.  */
2345 #include <$2>
2346 _ACEOF
2347 if ac_fn_cxx_try_cpp "$LINENO"; then :
2348   ac_header_preproc=yes
2349 else
2350   ac_header_preproc=no
2351 fi
2352 rm -f conftest.err conftest.i conftest.$ac_ext
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2354 $as_echo "$ac_header_preproc" >&6; }
2355
2356 # So?  What about this header?
2357 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2358   yes:no: )
2359     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2360 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2361     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2362 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2363     ;;
2364   no:yes:* )
2365     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2366 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2367     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2368 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2369     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2370 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2371     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2372 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2374 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2375 ( $as_echo "## ------------------------------------------ ##
2376 ## Report this to https://bugs.internet2.edu/ ##
2377 ## ------------------------------------------ ##"
2378      ) | sed "s/^/$as_me: WARNING:     /" >&2
2379     ;;
2380 esac
2381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2382 $as_echo_n "checking for $2... " >&6; }
2383 if eval \${$3+:} false; then :
2384   $as_echo_n "(cached) " >&6
2385 else
2386   eval "$3=\$ac_header_compiler"
2387 fi
2388 eval ac_res=\$$3
2389                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390 $as_echo "$ac_res" >&6; }
2391 fi
2392   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2393
2394 } # ac_fn_cxx_check_header_mongrel
2395
2396 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2397 # -----------------------------------------------
2398 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2399 # accordingly.
2400 ac_fn_cxx_check_decl ()
2401 {
2402   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403   as_decl_name=`echo $2|sed 's/ *(.*//'`
2404   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2406 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2407 if eval \${$3+:} false; then :
2408   $as_echo_n "(cached) " >&6
2409 else
2410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h.  */
2412 $4
2413 int
2414 main ()
2415 {
2416 #ifndef $as_decl_name
2417 #ifdef __cplusplus
2418   (void) $as_decl_use;
2419 #else
2420   (void) $as_decl_name;
2421 #endif
2422 #endif
2423
2424   ;
2425   return 0;
2426 }
2427 _ACEOF
2428 if ac_fn_cxx_try_compile "$LINENO"; then :
2429   eval "$3=yes"
2430 else
2431   eval "$3=no"
2432 fi
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 fi
2435 eval ac_res=\$$3
2436                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2437 $as_echo "$ac_res" >&6; }
2438   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2439
2440 } # ac_fn_cxx_check_decl
2441
2442 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2443 # ---------------------------------------------
2444 # Tests whether TYPE exists after having included INCLUDES, setting cache
2445 # variable VAR accordingly.
2446 ac_fn_cxx_check_type ()
2447 {
2448   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2450 $as_echo_n "checking for $2... " >&6; }
2451 if eval \${$3+:} false; then :
2452   $as_echo_n "(cached) " >&6
2453 else
2454   eval "$3=no"
2455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h.  */
2457 $4
2458 int
2459 main ()
2460 {
2461 if (sizeof ($2))
2462          return 0;
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 if ac_fn_cxx_try_compile "$LINENO"; then :
2468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h.  */
2470 $4
2471 int
2472 main ()
2473 {
2474 if (sizeof (($2)))
2475             return 0;
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 if ac_fn_cxx_try_compile "$LINENO"; then :
2481
2482 else
2483   eval "$3=yes"
2484 fi
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486 fi
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 fi
2489 eval ac_res=\$$3
2490                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2493
2494 } # ac_fn_cxx_check_type
2495 cat >config.log <<_ACEOF
2496 This file contains any messages produced by compilers while
2497 running configure, to aid debugging if configure makes a mistake.
2498
2499 It was created by xmltooling $as_me 1.4.1, which was
2500 generated by GNU Autoconf 2.68.  Invocation command line was
2501
2502   $ $0 $@
2503
2504 _ACEOF
2505 exec 5>>config.log
2506 {
2507 cat <<_ASUNAME
2508 ## --------- ##
2509 ## Platform. ##
2510 ## --------- ##
2511
2512 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2513 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2514 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2515 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2516 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2517
2518 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2519 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2520
2521 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2522 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2523 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2524 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2525 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2526 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2527 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2528
2529 _ASUNAME
2530
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534   IFS=$as_save_IFS
2535   test -z "$as_dir" && as_dir=.
2536     $as_echo "PATH: $as_dir"
2537   done
2538 IFS=$as_save_IFS
2539
2540 } >&5
2541
2542 cat >&5 <<_ACEOF
2543
2544
2545 ## ----------- ##
2546 ## Core tests. ##
2547 ## ----------- ##
2548
2549 _ACEOF
2550
2551
2552 # Keep a trace of the command line.
2553 # Strip out --no-create and --no-recursion so they do not pile up.
2554 # Strip out --silent because we don't want to record it for future runs.
2555 # Also quote any args containing shell meta-characters.
2556 # Make two passes to allow for proper duplicate-argument suppression.
2557 ac_configure_args=
2558 ac_configure_args0=
2559 ac_configure_args1=
2560 ac_must_keep_next=false
2561 for ac_pass in 1 2
2562 do
2563   for ac_arg
2564   do
2565     case $ac_arg in
2566     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2567     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2568     | -silent | --silent | --silen | --sile | --sil)
2569       continue ;;
2570     *\'*)
2571       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2572     esac
2573     case $ac_pass in
2574     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2575     2)
2576       as_fn_append ac_configure_args1 " '$ac_arg'"
2577       if test $ac_must_keep_next = true; then
2578         ac_must_keep_next=false # Got value, back to normal.
2579       else
2580         case $ac_arg in
2581           *=* | --config-cache | -C | -disable-* | --disable-* \
2582           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2583           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2584           | -with-* | --with-* | -without-* | --without-* | --x)
2585             case "$ac_configure_args0 " in
2586               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2587             esac
2588             ;;
2589           -* ) ac_must_keep_next=true ;;
2590         esac
2591       fi
2592       as_fn_append ac_configure_args " '$ac_arg'"
2593       ;;
2594     esac
2595   done
2596 done
2597 { ac_configure_args0=; unset ac_configure_args0;}
2598 { ac_configure_args1=; unset ac_configure_args1;}
2599
2600 # When interrupted or exit'd, cleanup temporary files, and complete
2601 # config.log.  We remove comments because anyway the quotes in there
2602 # would cause problems or look ugly.
2603 # WARNING: Use '\'' to represent an apostrophe within the trap.
2604 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2605 trap 'exit_status=$?
2606   # Save into config.log some information that might help in debugging.
2607   {
2608     echo
2609
2610     $as_echo "## ---------------- ##
2611 ## Cache variables. ##
2612 ## ---------------- ##"
2613     echo
2614     # The following way of writing the cache mishandles newlines in values,
2615 (
2616   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2617     eval ac_val=\$$ac_var
2618     case $ac_val in #(
2619     *${as_nl}*)
2620       case $ac_var in #(
2621       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2622 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2623       esac
2624       case $ac_var in #(
2625       _ | IFS | as_nl) ;; #(
2626       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2627       *) { eval $ac_var=; unset $ac_var;} ;;
2628       esac ;;
2629     esac
2630   done
2631   (set) 2>&1 |
2632     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2633     *${as_nl}ac_space=\ *)
2634       sed -n \
2635         "s/'\''/'\''\\\\'\'''\''/g;
2636           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2637       ;; #(
2638     *)
2639       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2640       ;;
2641     esac |
2642     sort
2643 )
2644     echo
2645
2646     $as_echo "## ----------------- ##
2647 ## Output variables. ##
2648 ## ----------------- ##"
2649     echo
2650     for ac_var in $ac_subst_vars
2651     do
2652       eval ac_val=\$$ac_var
2653       case $ac_val in
2654       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2655       esac
2656       $as_echo "$ac_var='\''$ac_val'\''"
2657     done | sort
2658     echo
2659
2660     if test -n "$ac_subst_files"; then
2661       $as_echo "## ------------------- ##
2662 ## File substitutions. ##
2663 ## ------------------- ##"
2664       echo
2665       for ac_var in $ac_subst_files
2666       do
2667         eval ac_val=\$$ac_var
2668         case $ac_val in
2669         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2670         esac
2671         $as_echo "$ac_var='\''$ac_val'\''"
2672       done | sort
2673       echo
2674     fi
2675
2676     if test -s confdefs.h; then
2677       $as_echo "## ----------- ##
2678 ## confdefs.h. ##
2679 ## ----------- ##"
2680       echo
2681       cat confdefs.h
2682       echo
2683     fi
2684     test "$ac_signal" != 0 &&
2685       $as_echo "$as_me: caught signal $ac_signal"
2686     $as_echo "$as_me: exit $exit_status"
2687   } >&5
2688   rm -f core *.core core.conftest.* &&
2689     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2690     exit $exit_status
2691 ' 0
2692 for ac_signal in 1 2 13 15; do
2693   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2694 done
2695 ac_signal=0
2696
2697 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2698 rm -f -r conftest* confdefs.h
2699
2700 $as_echo "/* confdefs.h */" > confdefs.h
2701
2702 # Predefined preprocessor variables.
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_NAME "$PACKAGE_NAME"
2706 _ACEOF
2707
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2710 _ACEOF
2711
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2714 _ACEOF
2715
2716 cat >>confdefs.h <<_ACEOF
2717 #define PACKAGE_STRING "$PACKAGE_STRING"
2718 _ACEOF
2719
2720 cat >>confdefs.h <<_ACEOF
2721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2722 _ACEOF
2723
2724 cat >>confdefs.h <<_ACEOF
2725 #define PACKAGE_URL "$PACKAGE_URL"
2726 _ACEOF
2727
2728
2729 # Let the site file select an alternate cache file if it wants to.
2730 # Prefer an explicitly selected file to automatically selected ones.
2731 ac_site_file1=NONE
2732 ac_site_file2=NONE
2733 if test -n "$CONFIG_SITE"; then
2734   # We do not want a PATH search for config.site.
2735   case $CONFIG_SITE in #((
2736     -*)  ac_site_file1=./$CONFIG_SITE;;
2737     */*) ac_site_file1=$CONFIG_SITE;;
2738     *)   ac_site_file1=./$CONFIG_SITE;;
2739   esac
2740 elif test "x$prefix" != xNONE; then
2741   ac_site_file1=$prefix/share/config.site
2742   ac_site_file2=$prefix/etc/config.site
2743 else
2744   ac_site_file1=$ac_default_prefix/share/config.site
2745   ac_site_file2=$ac_default_prefix/etc/config.site
2746 fi
2747 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2748 do
2749   test "x$ac_site_file" = xNONE && continue
2750   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2751     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2752 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2753     sed 's/^/| /' "$ac_site_file" >&5
2754     . "$ac_site_file" \
2755       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2757 as_fn_error $? "failed to load site script $ac_site_file
2758 See \`config.log' for more details" "$LINENO" 5; }
2759   fi
2760 done
2761
2762 if test -r "$cache_file"; then
2763   # Some versions of bash will fail to source /dev/null (special files
2764   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2765   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2766     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2767 $as_echo "$as_me: loading cache $cache_file" >&6;}
2768     case $cache_file in
2769       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2770       *)                      . "./$cache_file";;
2771     esac
2772   fi
2773 else
2774   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2775 $as_echo "$as_me: creating cache $cache_file" >&6;}
2776   >$cache_file
2777 fi
2778
2779 # Check that the precious variables saved in the cache have kept the same
2780 # value.
2781 ac_cache_corrupted=false
2782 for ac_var in $ac_precious_vars; do
2783   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2784   eval ac_new_set=\$ac_env_${ac_var}_set
2785   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2786   eval ac_new_val=\$ac_env_${ac_var}_value
2787   case $ac_old_set,$ac_new_set in
2788     set,)
2789       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2790 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2791       ac_cache_corrupted=: ;;
2792     ,set)
2793       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2794 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2795       ac_cache_corrupted=: ;;
2796     ,);;
2797     *)
2798       if test "x$ac_old_val" != "x$ac_new_val"; then
2799         # differences in whitespace do not lead to failure.
2800         ac_old_val_w=`echo x $ac_old_val`
2801         ac_new_val_w=`echo x $ac_new_val`
2802         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2803           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2804 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2805           ac_cache_corrupted=:
2806         else
2807           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2808 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2809           eval $ac_var=\$ac_old_val
2810         fi
2811         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2812 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2813         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2814 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2815       fi;;
2816   esac
2817   # Pass precious variables to config.status.
2818   if test "$ac_new_set" = set; then
2819     case $ac_new_val in
2820     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2821     *) ac_arg=$ac_var=$ac_new_val ;;
2822     esac
2823     case " $ac_configure_args " in
2824       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2825       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2826     esac
2827   fi
2828 done
2829 if $ac_cache_corrupted; then
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2833 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2834   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2835 fi
2836 ## -------------------- ##
2837 ## Main body of script. ##
2838 ## -------------------- ##
2839
2840 ac_ext=c
2841 ac_cpp='$CPP $CPPFLAGS'
2842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2845
2846
2847
2848 ac_aux_dir=
2849 for ac_dir in build-aux "$srcdir"/build-aux; do
2850   if test -f "$ac_dir/install-sh"; then
2851     ac_aux_dir=$ac_dir
2852     ac_install_sh="$ac_aux_dir/install-sh -c"
2853     break
2854   elif test -f "$ac_dir/install.sh"; then
2855     ac_aux_dir=$ac_dir
2856     ac_install_sh="$ac_aux_dir/install.sh -c"
2857     break
2858   elif test -f "$ac_dir/shtool"; then
2859     ac_aux_dir=$ac_dir
2860     ac_install_sh="$ac_aux_dir/shtool install -c"
2861     break
2862   fi
2863 done
2864 if test -z "$ac_aux_dir"; then
2865   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2866 fi
2867
2868 # These three variables are undocumented and unsupported,
2869 # and are intended to be withdrawn in a future Autoconf release.
2870 # They can cause serious problems if a builder's source tree is in a directory
2871 # whose full name contains unusual characters.
2872 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2873 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2874 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2875
2876
2877
2878 am__api_version='1.11'
2879
2880 # Find a good install program.  We prefer a C program (faster),
2881 # so one script is as good as another.  But avoid the broken or
2882 # incompatible versions:
2883 # SysV /etc/install, /usr/sbin/install
2884 # SunOS /usr/etc/install
2885 # IRIX /sbin/install
2886 # AIX /bin/install
2887 # AmigaOS /C/install, which installs bootblocks on floppy discs
2888 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2889 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2890 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2891 # OS/2's system install, which has a completely different semantic
2892 # ./install, which can be erroneously created by make from ./install.sh.
2893 # Reject install programs that cannot install multiple files.
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2895 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2896 if test -z "$INSTALL"; then
2897 if ${ac_cv_path_install+:} false; then :
2898   $as_echo_n "(cached) " >&6
2899 else
2900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903   IFS=$as_save_IFS
2904   test -z "$as_dir" && as_dir=.
2905     # Account for people who put trailing slashes in PATH elements.
2906 case $as_dir/ in #((
2907   ./ | .// | /[cC]/* | \
2908   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2909   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2910   /usr/ucb/* ) ;;
2911   *)
2912     # OSF1 and SCO ODT 3.0 have their own names for install.
2913     # Don't use installbsd from OSF since it installs stuff as root
2914     # by default.
2915     for ac_prog in ginstall scoinst install; do
2916       for ac_exec_ext in '' $ac_executable_extensions; do
2917         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2918           if test $ac_prog = install &&
2919             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2920             # AIX install.  It has an incompatible calling convention.
2921             :
2922           elif test $ac_prog = install &&
2923             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2924             # program-specific install script used by HP pwplus--don't use.
2925             :
2926           else
2927             rm -rf conftest.one conftest.two conftest.dir
2928             echo one > conftest.one
2929             echo two > conftest.two
2930             mkdir conftest.dir
2931             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2932               test -s conftest.one && test -s conftest.two &&
2933               test -s conftest.dir/conftest.one &&
2934               test -s conftest.dir/conftest.two
2935             then
2936               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2937               break 3
2938             fi
2939           fi
2940         fi
2941       done
2942     done
2943     ;;
2944 esac
2945
2946   done
2947 IFS=$as_save_IFS
2948
2949 rm -rf conftest.one conftest.two conftest.dir
2950
2951 fi
2952   if test "${ac_cv_path_install+set}" = set; then
2953     INSTALL=$ac_cv_path_install
2954   else
2955     # As a last resort, use the slow shell script.  Don't cache a
2956     # value for INSTALL within a source directory, because that will
2957     # break other packages using the cache if that directory is
2958     # removed, or if the value is a relative name.
2959     INSTALL=$ac_install_sh
2960   fi
2961 fi
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2963 $as_echo "$INSTALL" >&6; }
2964
2965 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2966 # It thinks the first close brace ends the variable substitution.
2967 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2968
2969 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2970
2971 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2972
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2974 $as_echo_n "checking whether build environment is sane... " >&6; }
2975 # Just in case
2976 sleep 1
2977 echo timestamp > conftest.file
2978 # Reject unsafe characters in $srcdir or the absolute working directory
2979 # name.  Accept space and tab only in the latter.
2980 am_lf='
2981 '
2982 case `pwd` in
2983   *[\\\"\#\$\&\'\`$am_lf]*)
2984     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2985 esac
2986 case $srcdir in
2987   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2988     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2989 esac
2990
2991 # Do `set' in a subshell so we don't clobber the current shell's
2992 # arguments.  Must try -L first in case configure is actually a
2993 # symlink; some systems play weird games with the mod time of symlinks
2994 # (eg FreeBSD returns the mod time of the symlink's containing
2995 # directory).
2996 if (
2997    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2998    if test "$*" = "X"; then
2999       # -L didn't work.
3000       set X `ls -t "$srcdir/configure" conftest.file`
3001    fi
3002    rm -f conftest.file
3003    if test "$*" != "X $srcdir/configure conftest.file" \
3004       && test "$*" != "X conftest.file $srcdir/configure"; then
3005
3006       # If neither matched, then we have a broken ls.  This can happen
3007       # if, for instance, CONFIG_SHELL is bash and it inherits a
3008       # broken ls alias from the environment.  This has actually
3009       # happened.  Such a system could not be considered "sane".
3010       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3011 alias in your environment" "$LINENO" 5
3012    fi
3013
3014    test "$2" = conftest.file
3015    )
3016 then
3017    # Ok.
3018    :
3019 else
3020    as_fn_error $? "newly created file is older than distributed files!
3021 Check your system clock" "$LINENO" 5
3022 fi
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3024 $as_echo "yes" >&6; }
3025 test "$program_prefix" != NONE &&
3026   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3027 # Use a double $ so make ignores it.
3028 test "$program_suffix" != NONE &&
3029   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3030 # Double any \ or $.
3031 # By default was `s,x,x', remove it if useless.
3032 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3033 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3034
3035 # expand $ac_aux_dir to an absolute path
3036 am_aux_dir=`cd $ac_aux_dir && pwd`
3037
3038 if test x"${MISSING+set}" != xset; then
3039   case $am_aux_dir in
3040   *\ * | *\     *)
3041     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3042   *)
3043     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3044   esac
3045 fi
3046 # Use eval to expand $SHELL
3047 if eval "$MISSING --run true"; then
3048   am_missing_run="$MISSING --run "
3049 else
3050   am_missing_run=
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3052 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3053 fi
3054
3055 if test x"${install_sh}" != xset; then
3056   case $am_aux_dir in
3057   *\ * | *\     *)
3058     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3059   *)
3060     install_sh="\${SHELL} $am_aux_dir/install-sh"
3061   esac
3062 fi
3063
3064 # Installed binaries are usually stripped using `strip' when the user
3065 # run `make install-strip'.  However `strip' might not be the right
3066 # tool to use in cross-compilation environments, therefore Automake
3067 # will honor the `STRIP' environment variable to overrule this program.
3068 if test "$cross_compiling" != no; then
3069   if test -n "$ac_tool_prefix"; then
3070   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3071 set dummy ${ac_tool_prefix}strip; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_STRIP+:} false; then :
3075   $as_echo_n "(cached) " >&6
3076 else
3077   if test -n "$STRIP"; then
3078   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083   IFS=$as_save_IFS
3084   test -z "$as_dir" && as_dir=.
3085     for ac_exec_ext in '' $ac_executable_extensions; do
3086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089     break 2
3090   fi
3091 done
3092   done
3093 IFS=$as_save_IFS
3094
3095 fi
3096 fi
3097 STRIP=$ac_cv_prog_STRIP
3098 if test -n "$STRIP"; then
3099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3100 $as_echo "$STRIP" >&6; }
3101 else
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 fi
3105
3106
3107 fi
3108 if test -z "$ac_cv_prog_STRIP"; then
3109   ac_ct_STRIP=$STRIP
3110   # Extract the first word of "strip", so it can be a program name with args.
3111 set dummy strip; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3115   $as_echo_n "(cached) " >&6
3116 else
3117   if test -n "$ac_ct_STRIP"; then
3118   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123   IFS=$as_save_IFS
3124   test -z "$as_dir" && as_dir=.
3125     for ac_exec_ext in '' $ac_executable_extensions; do
3126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127     ac_cv_prog_ac_ct_STRIP="strip"
3128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132   done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3138 if test -n "$ac_ct_STRIP"; then
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3140 $as_echo "$ac_ct_STRIP" >&6; }
3141 else
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146   if test "x$ac_ct_STRIP" = x; then
3147     STRIP=":"
3148   else
3149     case $cross_compiling:$ac_tool_warned in
3150 yes:)
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3153 ac_tool_warned=yes ;;
3154 esac
3155     STRIP=$ac_ct_STRIP
3156   fi
3157 else
3158   STRIP="$ac_cv_prog_STRIP"
3159 fi
3160
3161 fi
3162 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3163
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3165 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3166 if test -z "$MKDIR_P"; then
3167   if ${ac_cv_path_mkdir+:} false; then :
3168   $as_echo_n "(cached) " >&6
3169 else
3170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3172 do
3173   IFS=$as_save_IFS
3174   test -z "$as_dir" && as_dir=.
3175     for ac_prog in mkdir gmkdir; do
3176          for ac_exec_ext in '' $ac_executable_extensions; do
3177            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3178            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3179              'mkdir (GNU coreutils) '* | \
3180              'mkdir (coreutils) '* | \
3181              'mkdir (fileutils) '4.1*)
3182                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3183                break 3;;
3184            esac
3185          done
3186        done
3187   done
3188 IFS=$as_save_IFS
3189
3190 fi
3191
3192   test -d ./--version && rmdir ./--version
3193   if test "${ac_cv_path_mkdir+set}" = set; then
3194     MKDIR_P="$ac_cv_path_mkdir -p"
3195   else
3196     # As a last resort, use the slow shell script.  Don't cache a
3197     # value for MKDIR_P within a source directory, because that will
3198     # break other packages using the cache if that directory is
3199     # removed, or if the value is a relative name.
3200     MKDIR_P="$ac_install_sh -d"
3201   fi
3202 fi
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3204 $as_echo "$MKDIR_P" >&6; }
3205
3206 mkdir_p="$MKDIR_P"
3207 case $mkdir_p in
3208   [\\/$]* | ?:[\\/]*) ;;
3209   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3210 esac
3211
3212 for ac_prog in gawk mawk nawk awk
3213 do
3214   # Extract the first word of "$ac_prog", so it can be a program name with args.
3215 set dummy $ac_prog; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_AWK+:} false; then :
3219   $as_echo_n "(cached) " >&6
3220 else
3221   if test -n "$AWK"; then
3222   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227   IFS=$as_save_IFS
3228   test -z "$as_dir" && as_dir=.
3229     for ac_exec_ext in '' $ac_executable_extensions; do
3230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231     ac_cv_prog_AWK="$ac_prog"
3232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233     break 2
3234   fi
3235 done
3236   done
3237 IFS=$as_save_IFS
3238
3239 fi
3240 fi
3241 AWK=$ac_cv_prog_AWK
3242 if test -n "$AWK"; then
3243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3244 $as_echo "$AWK" >&6; }
3245 else
3246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3248 fi
3249
3250
3251   test -n "$AWK" && break
3252 done
3253
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3255 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3256 set x ${MAKE-make}
3257 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3258 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3259   $as_echo_n "(cached) " >&6
3260 else
3261   cat >conftest.make <<\_ACEOF
3262 SHELL = /bin/sh
3263 all:
3264         @echo '@@@%%%=$(MAKE)=@@@%%%'
3265 _ACEOF
3266 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3267 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3268   *@@@%%%=?*=@@@%%%*)
3269     eval ac_cv_prog_make_${ac_make}_set=yes;;
3270   *)
3271     eval ac_cv_prog_make_${ac_make}_set=no;;
3272 esac
3273 rm -f conftest.make
3274 fi
3275 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277 $as_echo "yes" >&6; }
3278   SET_MAKE=
3279 else
3280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3282   SET_MAKE="MAKE=${MAKE-make}"
3283 fi
3284
3285 rm -rf .tst 2>/dev/null
3286 mkdir .tst 2>/dev/null
3287 if test -d .tst; then
3288   am__leading_dot=.
3289 else
3290   am__leading_dot=_
3291 fi
3292 rmdir .tst 2>/dev/null
3293
3294 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3295   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3296   # is not polluted with repeated "-I."
3297   am__isrc=' -I$(srcdir)'
3298   # test to see if srcdir already configured
3299   if test -f $srcdir/config.status; then
3300     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3301   fi
3302 fi
3303
3304 # test whether we have cygpath
3305 if test -z "$CYGPATH_W"; then
3306   if (cygpath --version) >/dev/null 2>/dev/null; then
3307     CYGPATH_W='cygpath -w'
3308   else
3309     CYGPATH_W=echo
3310   fi
3311 fi
3312
3313
3314 # Define the identity of the package.
3315  PACKAGE='xmltooling'
3316  VERSION='1.4.1'
3317
3318
3319 cat >>confdefs.h <<_ACEOF
3320 #define PACKAGE "$PACKAGE"
3321 _ACEOF
3322
3323
3324 cat >>confdefs.h <<_ACEOF
3325 #define VERSION "$VERSION"
3326 _ACEOF
3327
3328 # Some tools Automake needs.
3329
3330 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3331
3332
3333 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3334
3335
3336 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3337
3338
3339 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3340
3341
3342 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3343
3344 # We need awk for the "check" target.  The system "awk" is bad on
3345 # some platforms.
3346 # Always define AMTAR for backward compatibility.
3347
3348 AMTAR=${AMTAR-"${am_missing_run}tar"}
3349
3350 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3351
3352
3353
3354
3355
3356 # Check whether --enable-static was given.
3357 if test "${enable_static+set}" = set; then :
3358   enableval=$enable_static; p=${PACKAGE-default}
3359     case $enableval in
3360     yes) enable_static=yes ;;
3361     no) enable_static=no ;;
3362     *)
3363      enable_static=no
3364       # Look at the argument we got.  We use all the common list separators.
3365       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3366       for pkg in $enableval; do
3367         IFS="$lt_save_ifs"
3368         if test "X$pkg" = "X$p"; then
3369           enable_static=yes
3370         fi
3371       done
3372       IFS="$lt_save_ifs"
3373       ;;
3374     esac
3375 else
3376   enable_static=no
3377 fi
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387 case `pwd` in
3388   *\ * | *\     *)
3389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3390 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3391 esac
3392
3393
3394
3395 macro_version='2.4'
3396 macro_revision='1.3293'
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410 ltmain="$ac_aux_dir/ltmain.sh"
3411
3412 # Make sure we can run config.sub.
3413 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3414   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3415
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3417 $as_echo_n "checking build system type... " >&6; }
3418 if ${ac_cv_build+:} false; then :
3419   $as_echo_n "(cached) " >&6
3420 else
3421   ac_build_alias=$build_alias
3422 test "x$ac_build_alias" = x &&
3423   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3424 test "x$ac_build_alias" = x &&
3425   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3426 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3427   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3428
3429 fi
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3431 $as_echo "$ac_cv_build" >&6; }
3432 case $ac_cv_build in
3433 *-*-*) ;;
3434 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3435 esac
3436 build=$ac_cv_build
3437 ac_save_IFS=$IFS; IFS='-'
3438 set x $ac_cv_build
3439 shift
3440 build_cpu=$1
3441 build_vendor=$2
3442 shift; shift
3443 # Remember, the first character of IFS is used to create $*,
3444 # except with old shells:
3445 build_os=$*
3446 IFS=$ac_save_IFS
3447 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3448
3449
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3451 $as_echo_n "checking host system type... " >&6; }
3452 if ${ac_cv_host+:} false; then :
3453   $as_echo_n "(cached) " >&6
3454 else
3455   if test "x$host_alias" = x; then
3456   ac_cv_host=$ac_cv_build
3457 else
3458   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3459     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3460 fi
3461
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3464 $as_echo "$ac_cv_host" >&6; }
3465 case $ac_cv_host in
3466 *-*-*) ;;
3467 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3468 esac
3469 host=$ac_cv_host
3470 ac_save_IFS=$IFS; IFS='-'
3471 set x $ac_cv_host
3472 shift
3473 host_cpu=$1
3474 host_vendor=$2
3475 shift; shift
3476 # Remember, the first character of IFS is used to create $*,
3477 # except with old shells:
3478 host_os=$*
3479 IFS=$ac_save_IFS
3480 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3481
3482
3483 # Backslashify metacharacters that are still active within
3484 # double-quoted strings.
3485 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3486
3487 # Same as above, but do not quote variable references.
3488 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3489
3490 # Sed substitution to delay expansion of an escaped shell variable in a
3491 # double_quote_subst'ed string.
3492 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3493
3494 # Sed substitution to delay expansion of an escaped single quote.
3495 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3496
3497 # Sed substitution to avoid accidental globbing in evaled expressions
3498 no_glob_subst='s/\*/\\\*/g'
3499
3500 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3501 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3502 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3503
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3505 $as_echo_n "checking how to print strings... " >&6; }
3506 # Test print first, because it will be a builtin if present.
3507 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3508    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3509   ECHO='print -r --'
3510 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3511   ECHO='printf %s\n'
3512 else
3513   # Use this function as a fallback that always works.
3514   func_fallback_echo ()
3515   {
3516     eval 'cat <<_LTECHO_EOF
3517 $1
3518 _LTECHO_EOF'
3519   }
3520   ECHO='func_fallback_echo'
3521 fi
3522
3523 # func_echo_all arg...
3524 # Invoke $ECHO with all args, space-separated.
3525 func_echo_all ()
3526 {
3527     $ECHO ""
3528 }
3529
3530 case "$ECHO" in
3531   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3532 $as_echo "printf" >&6; } ;;
3533   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3534 $as_echo "print -r" >&6; } ;;
3535   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3536 $as_echo "cat" >&6; } ;;
3537 esac
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552 DEPDIR="${am__leading_dot}deps"
3553
3554 ac_config_commands="$ac_config_commands depfiles"
3555
3556
3557 am_make=${MAKE-make}
3558 cat > confinc << 'END'
3559 am__doit:
3560         @echo this is the am__doit target
3561 .PHONY: am__doit
3562 END
3563 # If we don't find an include directive, just comment out the code.
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3565 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3566 am__include="#"
3567 am__quote=
3568 _am_result=none
3569 # First try GNU make style include.
3570 echo "include confinc" > confmf
3571 # Ignore all kinds of additional output from `make'.
3572 case `$am_make -s -f confmf 2> /dev/null` in #(
3573 *the\ am__doit\ target*)
3574   am__include=include
3575   am__quote=
3576   _am_result=GNU
3577   ;;
3578 esac
3579 # Now try BSD make style include.
3580 if test "$am__include" = "#"; then
3581    echo '.include "confinc"' > confmf
3582    case `$am_make -s -f confmf 2> /dev/null` in #(
3583    *the\ am__doit\ target*)
3584      am__include=.include
3585      am__quote="\""
3586      _am_result=BSD
3587      ;;
3588    esac
3589 fi
3590
3591
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3593 $as_echo "$_am_result" >&6; }
3594 rm -f confinc confmf
3595
3596 # Check whether --enable-dependency-tracking was given.
3597 if test "${enable_dependency_tracking+set}" = set; then :
3598   enableval=$enable_dependency_tracking;
3599 fi
3600
3601 if test "x$enable_dependency_tracking" != xno; then
3602   am_depcomp="$ac_aux_dir/depcomp"
3603   AMDEPBACKSLASH='\'
3604 fi
3605  if test "x$enable_dependency_tracking" != xno; then
3606   AMDEP_TRUE=
3607   AMDEP_FALSE='#'
3608 else
3609   AMDEP_TRUE='#'
3610   AMDEP_FALSE=
3611 fi
3612
3613
3614 ac_ext=c
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619 if test -n "$ac_tool_prefix"; then
3620   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3621 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if ${ac_cv_prog_CC+:} false; then :
3625   $as_echo_n "(cached) " >&6
3626 else
3627   if test -n "$CC"; then
3628   ac_cv_prog_CC="$CC" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635     for ac_exec_ext in '' $ac_executable_extensions; do
3636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642   done
3643 IFS=$as_save_IFS
3644
3645 fi
3646 fi
3647 CC=$ac_cv_prog_CC
3648 if test -n "$CC"; then
3649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3650 $as_echo "$CC" >&6; }
3651 else
3652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3654 fi
3655
3656
3657 fi
3658 if test -z "$ac_cv_prog_CC"; then
3659   ac_ct_CC=$CC
3660   # Extract the first word of "gcc", so it can be a program name with args.
3661 set dummy gcc; ac_word=$2
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663 $as_echo_n "checking for $ac_word... " >&6; }
3664 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3665   $as_echo_n "(cached) " >&6
3666 else
3667   if test -n "$ac_ct_CC"; then
3668   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675     for ac_exec_ext in '' $ac_executable_extensions; do
3676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3677     ac_cv_prog_ac_ct_CC="gcc"
3678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682   done
3683 IFS=$as_save_IFS
3684
3685 fi
3686 fi
3687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3688 if test -n "$ac_ct_CC"; then
3689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3690 $as_echo "$ac_ct_CC" >&6; }
3691 else
3692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3694 fi
3695
3696   if test "x$ac_ct_CC" = x; then
3697     CC=""
3698   else
3699     case $cross_compiling:$ac_tool_warned in
3700 yes:)
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3703 ac_tool_warned=yes ;;
3704 esac
3705     CC=$ac_ct_CC
3706   fi
3707 else
3708   CC="$ac_cv_prog_CC"
3709 fi
3710
3711 if test -z "$CC"; then
3712           if test -n "$ac_tool_prefix"; then
3713     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3714 set dummy ${ac_tool_prefix}cc; ac_word=$2
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716 $as_echo_n "checking for $ac_word... " >&6; }
3717 if ${ac_cv_prog_CC+:} false; then :
3718   $as_echo_n "(cached) " >&6
3719 else
3720   if test -n "$CC"; then
3721   ac_cv_prog_CC="$CC" # Let the user override the test.
3722 else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726   IFS=$as_save_IFS
3727   test -z "$as_dir" && as_dir=.
3728     for ac_exec_ext in '' $ac_executable_extensions; do
3729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3730     ac_cv_prog_CC="${ac_tool_prefix}cc"
3731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732     break 2
3733   fi
3734 done
3735   done
3736 IFS=$as_save_IFS
3737
3738 fi
3739 fi
3740 CC=$ac_cv_prog_CC
3741 if test -n "$CC"; then
3742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3743 $as_echo "$CC" >&6; }
3744 else
3745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3747 fi
3748
3749
3750   fi
3751 fi
3752 if test -z "$CC"; then
3753   # Extract the first word of "cc", so it can be a program name with args.
3754 set dummy cc; ac_word=$2
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if ${ac_cv_prog_CC+:} false; then :
3758   $as_echo_n "(cached) " >&6
3759 else
3760   if test -n "$CC"; then
3761   ac_cv_prog_CC="$CC" # Let the user override the test.
3762 else
3763   ac_prog_rejected=no
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767   IFS=$as_save_IFS
3768   test -z "$as_dir" && as_dir=.
3769     for ac_exec_ext in '' $ac_executable_extensions; do
3770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3772        ac_prog_rejected=yes
3773        continue
3774      fi
3775     ac_cv_prog_CC="cc"
3776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777     break 2
3778   fi
3779 done
3780   done
3781 IFS=$as_save_IFS
3782
3783 if test $ac_prog_rejected = yes; then
3784   # We found a bogon in the path, so make sure we never use it.
3785   set dummy $ac_cv_prog_CC
3786   shift
3787   if test $# != 0; then
3788     # We chose a different compiler from the bogus one.
3789     # However, it has the same basename, so the bogon will be chosen
3790     # first if we set CC to just the basename; use the full file name.
3791     shift
3792     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3793   fi
3794 fi
3795 fi
3796 fi
3797 CC=$ac_cv_prog_CC
3798 if test -n "$CC"; then
3799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3800 $as_echo "$CC" >&6; }
3801 else
3802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3804 fi
3805
3806
3807 fi
3808 if test -z "$CC"; then
3809   if test -n "$ac_tool_prefix"; then
3810   for ac_prog in cl.exe
3811   do
3812     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_CC+:} false; then :
3817   $as_echo_n "(cached) " >&6
3818 else
3819   if test -n "$CC"; then
3820   ac_cv_prog_CC="$CC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825   IFS=$as_save_IFS
3826   test -z "$as_dir" && as_dir=.
3827     for ac_exec_ext in '' $ac_executable_extensions; do
3828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831     break 2
3832   fi
3833 done
3834   done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 CC=$ac_cv_prog_CC
3840 if test -n "$CC"; then
3841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3842 $as_echo "$CC" >&6; }
3843 else
3844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3846 fi
3847
3848
3849     test -n "$CC" && break
3850   done
3851 fi
3852 if test -z "$CC"; then
3853   ac_ct_CC=$CC
3854   for ac_prog in cl.exe
3855 do
3856   # Extract the first word of "$ac_prog", so it can be a program name with args.
3857 set dummy $ac_prog; ac_word=$2
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3859 $as_echo_n "checking for $ac_word... " >&6; }
3860 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3861   $as_echo_n "(cached) " >&6
3862 else
3863   if test -n "$ac_ct_CC"; then
3864   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3865 else
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH
3868 do
3869   IFS=$as_save_IFS
3870   test -z "$as_dir" && as_dir=.
3871     for ac_exec_ext in '' $ac_executable_extensions; do
3872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3873     ac_cv_prog_ac_ct_CC="$ac_prog"
3874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875     break 2
3876   fi
3877 done
3878   done
3879 IFS=$as_save_IFS
3880
3881 fi
3882 fi
3883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3884 if test -n "$ac_ct_CC"; then
3885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3886 $as_echo "$ac_ct_CC" >&6; }
3887 else
3888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 $as_echo "no" >&6; }
3890 fi
3891
3892
3893   test -n "$ac_ct_CC" && break
3894 done
3895
3896   if test "x$ac_ct_CC" = x; then
3897     CC=""
3898   else
3899     case $cross_compiling:$ac_tool_warned in
3900 yes:)
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3903 ac_tool_warned=yes ;;
3904 esac
3905     CC=$ac_ct_CC
3906   fi
3907 fi
3908
3909 fi
3910
3911
3912 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3914 as_fn_error $? "no acceptable C compiler found in \$PATH
3915 See \`config.log' for more details" "$LINENO" 5; }
3916
3917 # Provide some information about the compiler.
3918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3919 set X $ac_compile
3920 ac_compiler=$2
3921 for ac_option in --version -v -V -qversion; do
3922   { { ac_try="$ac_compiler $ac_option >&5"
3923 case "(($ac_try" in
3924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925   *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3930   ac_status=$?
3931   if test -s conftest.err; then
3932     sed '10a\
3933 ... rest of stderr output deleted ...
3934          10q' conftest.err >conftest.er1
3935     cat conftest.er1 >&5
3936   fi
3937   rm -f conftest.er1 conftest.err
3938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939   test $ac_status = 0; }
3940 done
3941
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h.  */
3944
3945 int
3946 main ()
3947 {
3948
3949   ;
3950   return 0;
3951 }
3952 _ACEOF
3953 ac_clean_files_save=$ac_clean_files
3954 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3955 # Try to create an executable without -o first, disregard a.out.
3956 # It will help us diagnose broken compilers, and finding out an intuition
3957 # of exeext.
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3959 $as_echo_n "checking whether the C compiler works... " >&6; }
3960 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3961
3962 # The possible output files:
3963 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3964
3965 ac_rmfiles=
3966 for ac_file in $ac_files
3967 do
3968   case $ac_file in
3969     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3970     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3971   esac
3972 done
3973 rm -f $ac_rmfiles
3974
3975 if { { ac_try="$ac_link_default"
3976 case "(($ac_try" in
3977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978   *) ac_try_echo=$ac_try;;
3979 esac
3980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3981 $as_echo "$ac_try_echo"; } >&5
3982   (eval "$ac_link_default") 2>&5
3983   ac_status=$?
3984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3985   test $ac_status = 0; }; then :
3986   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3987 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3988 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3989 # so that the user can short-circuit this test for compilers unknown to
3990 # Autoconf.
3991 for ac_file in $ac_files ''
3992 do
3993   test -f "$ac_file" || continue
3994   case $ac_file in
3995     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3996         ;;
3997     [ab].out )
3998         # We found the default executable, but exeext='' is most
3999         # certainly right.
4000         break;;
4001     *.* )
4002         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4003         then :; else
4004            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4005         fi
4006         # We set ac_cv_exeext here because the later test for it is not
4007         # safe: cross compilers may not add the suffix if given an `-o'
4008         # argument, so we may need to know it at that point already.
4009         # Even if this section looks crufty: it has the advantage of
4010         # actually working.
4011         break;;
4012     * )
4013         break;;
4014   esac
4015 done
4016 test "$ac_cv_exeext" = no && ac_cv_exeext=
4017
4018 else
4019   ac_file=''
4020 fi
4021 if test -z "$ac_file"; then :
4022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4024 $as_echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error 77 "C compiler cannot create executables
4030 See \`config.log' for more details" "$LINENO" 5; }
4031 else
4032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4033 $as_echo "yes" >&6; }
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4036 $as_echo_n "checking for C compiler default output file name... " >&6; }
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4038 $as_echo "$ac_file" >&6; }
4039 ac_exeext=$ac_cv_exeext
4040
4041 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4042 ac_clean_files=$ac_clean_files_save
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4044 $as_echo_n "checking for suffix of executables... " >&6; }
4045 if { { ac_try="$ac_link"
4046 case "(($ac_try" in
4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048   *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052   (eval "$ac_link") 2>&5
4053   ac_status=$?
4054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055   test $ac_status = 0; }; then :
4056   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4057 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4058 # work properly (i.e., refer to `conftest.exe'), while it won't with
4059 # `rm'.
4060 for ac_file in conftest.exe conftest conftest.*; do
4061   test -f "$ac_file" || continue
4062   case $ac_file in
4063     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4064     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4065           break;;
4066     * ) break;;
4067   esac
4068 done
4069 else
4070   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4073 See \`config.log' for more details" "$LINENO" 5; }
4074 fi
4075 rm -f conftest conftest$ac_cv_exeext
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4077 $as_echo "$ac_cv_exeext" >&6; }
4078
4079 rm -f conftest.$ac_ext
4080 EXEEXT=$ac_cv_exeext
4081 ac_exeext=$EXEEXT
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h.  */
4084 #include <stdio.h>
4085 int
4086 main ()
4087 {
4088 FILE *f = fopen ("conftest.out", "w");
4089  return ferror (f) || fclose (f) != 0;
4090
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 ac_clean_files="$ac_clean_files conftest.out"
4096 # Check that the compiler produces executables we can run.  If not, either
4097 # the compiler is broken, or we cross compile.
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4099 $as_echo_n "checking whether we are cross compiling... " >&6; }
4100 if test "$cross_compiling" != yes; then
4101   { { ac_try="$ac_link"
4102 case "(($ac_try" in
4103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104   *) ac_try_echo=$ac_try;;
4105 esac
4106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4107 $as_echo "$ac_try_echo"; } >&5
4108   (eval "$ac_link") 2>&5
4109   ac_status=$?
4110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111   test $ac_status = 0; }
4112   if { ac_try='./conftest$ac_cv_exeext'
4113   { { case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 $as_echo "$ac_try_echo"; } >&5
4119   (eval "$ac_try") 2>&5
4120   ac_status=$?
4121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122   test $ac_status = 0; }; }; then
4123     cross_compiling=no
4124   else
4125     if test "$cross_compiling" = maybe; then
4126         cross_compiling=yes
4127     else
4128         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4130 as_fn_error $? "cannot run C compiled programs.
4131 If you meant to cross compile, use \`--host'.
4132 See \`config.log' for more details" "$LINENO" 5; }
4133     fi
4134   fi
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4137 $as_echo "$cross_compiling" >&6; }
4138
4139 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4140 ac_clean_files=$ac_clean_files_save
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4142 $as_echo_n "checking for suffix of object files... " >&6; }
4143 if ${ac_cv_objext+:} false; then :
4144   $as_echo_n "(cached) " >&6
4145 else
4146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h.  */
4148
4149 int
4150 main ()
4151 {
4152
4153   ;
4154   return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.o conftest.obj
4158 if { { ac_try="$ac_compile"
4159 case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4164 $as_echo "$ac_try_echo"; } >&5
4165   (eval "$ac_compile") 2>&5
4166   ac_status=$?
4167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4168   test $ac_status = 0; }; then :
4169   for ac_file in conftest.o conftest.obj conftest.*; do
4170   test -f "$ac_file" || continue;
4171   case $ac_file in
4172     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4173     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4174        break;;
4175   esac
4176 done
4177 else
4178   $as_echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4183 as_fn_error $? "cannot compute suffix of object files: cannot compile
4184 See \`config.log' for more details" "$LINENO" 5; }
4185 fi
4186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4189 $as_echo "$ac_cv_objext" >&6; }
4190 OBJEXT=$ac_cv_objext
4191 ac_objext=$OBJEXT
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4193 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4194 if ${ac_cv_c_compiler_gnu+:} false; then :
4195   $as_echo_n "(cached) " >&6
4196 else
4197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h.  */
4199
4200 int
4201 main ()
4202 {
4203 #ifndef __GNUC__
4204        choke me
4205 #endif
4206
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212   ac_compiler_gnu=yes
4213 else
4214   ac_compiler_gnu=no
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4218
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4221 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4222 if test $ac_compiler_gnu = yes; then
4223   GCC=yes
4224 else
4225   GCC=
4226 fi
4227 ac_test_CFLAGS=${CFLAGS+set}
4228 ac_save_CFLAGS=$CFLAGS
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4230 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4231 if ${ac_cv_prog_cc_g+:} false; then :
4232   $as_echo_n "(cached) " >&6
4233 else
4234   ac_save_c_werror_flag=$ac_c_werror_flag
4235    ac_c_werror_flag=yes
4236    ac_cv_prog_cc_g=no
4237    CFLAGS="-g"
4238    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h.  */
4240
4241 int
4242 main ()
4243 {
4244
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 if ac_fn_c_try_compile "$LINENO"; then :
4250   ac_cv_prog_cc_g=yes
4251 else
4252   CFLAGS=""
4253       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h.  */
4255
4256 int
4257 main ()
4258 {
4259
4260   ;
4261   return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_c_try_compile "$LINENO"; then :
4265
4266 else
4267   ac_c_werror_flag=$ac_save_c_werror_flag
4268          CFLAGS="-g"
4269          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h.  */
4271
4272 int
4273 main ()
4274 {
4275
4276   ;
4277   return 0;
4278 }
4279 _ACEOF
4280 if ac_fn_c_try_compile "$LINENO"; then :
4281   ac_cv_prog_cc_g=yes
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 fi
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288    ac_c_werror_flag=$ac_save_c_werror_flag
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4291 $as_echo "$ac_cv_prog_cc_g" >&6; }
4292 if test "$ac_test_CFLAGS" = set; then
4293   CFLAGS=$ac_save_CFLAGS
4294 elif test $ac_cv_prog_cc_g = yes; then
4295   if test "$GCC" = yes; then
4296     CFLAGS="-g -O2"
4297   else
4298     CFLAGS="-g"
4299   fi
4300 else
4301   if test "$GCC" = yes; then
4302     CFLAGS="-O2"
4303   else
4304     CFLAGS=
4305   fi
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4308 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4309 if ${ac_cv_prog_cc_c89+:} false; then :
4310   $as_echo_n "(cached) " >&6
4311 else
4312   ac_cv_prog_cc_c89=no
4313 ac_save_CC=$CC
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h.  */
4316 #include <stdarg.h>
4317 #include <stdio.h>
4318 #include <sys/types.h>
4319 #include <sys/stat.h>
4320 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4321 struct buf { int x; };
4322 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4323 static char *e (p, i)
4324      char **p;
4325      int i;
4326 {
4327   return p[i];
4328 }
4329 static char *f (char * (*g) (char **, int), char **p, ...)
4330 {
4331   char *s;
4332   va_list v;
4333   va_start (v,p);
4334   s = g (p, va_arg (v,int));
4335   va_end (v);
4336   return s;
4337 }
4338
4339 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4340    function prototypes and stuff, but not '\xHH' hex character constants.
4341    These don't provoke an error unfortunately, instead are silently treated
4342    as 'x'.  The following induces an error, until -std is added to get
4343    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4344    array size at least.  It's necessary to write '\x00'==0 to get something
4345    that's true only with -std.  */
4346 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4347
4348 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4349    inside strings and character constants.  */
4350 #define FOO(x) 'x'
4351 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4352
4353 int test (int i, double x);
4354 struct s1 {int (*f) (int a);};
4355 struct s2 {int (*f) (double a);};
4356 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4357 int argc;
4358 char **argv;
4359 int
4360 main ()
4361 {
4362 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4363   ;
4364   return 0;
4365 }
4366 _ACEOF
4367 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4368         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4369 do
4370   CC="$ac_save_CC $ac_arg"
4371   if ac_fn_c_try_compile "$LINENO"; then :
4372   ac_cv_prog_cc_c89=$ac_arg
4373 fi
4374 rm -f core conftest.err conftest.$ac_objext
4375   test "x$ac_cv_prog_cc_c89" != "xno" && break
4376 done
4377 rm -f conftest.$ac_ext
4378 CC=$ac_save_CC
4379
4380 fi
4381 # AC_CACHE_VAL
4382 case "x$ac_cv_prog_cc_c89" in
4383   x)
4384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4385 $as_echo "none needed" >&6; } ;;
4386   xno)
4387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4388 $as_echo "unsupported" >&6; } ;;
4389   *)
4390     CC="$CC $ac_cv_prog_cc_c89"
4391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4392 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4393 esac
4394 if test "x$ac_cv_prog_cc_c89" != xno; then :
4395
4396 fi
4397
4398 ac_ext=c
4399 ac_cpp='$CPP $CPPFLAGS'
4400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403
4404 depcc="$CC"   am_compiler_list=
4405
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4407 $as_echo_n "checking dependency style of $depcc... " >&6; }
4408 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4409   $as_echo_n "(cached) " >&6
4410 else
4411   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4412   # We make a subdir and do the tests there.  Otherwise we can end up
4413   # making bogus files that we don't know about and never remove.  For
4414   # instance it was reported that on HP-UX the gcc test will end up
4415   # making a dummy file named `D' -- because `-MD' means `put the output
4416   # in D'.
4417   mkdir conftest.dir
4418   # Copy depcomp to subdir because otherwise we won't find it if we're
4419   # using a relative directory.
4420   cp "$am_depcomp" conftest.dir
4421   cd conftest.dir
4422   # We will build objects and dependencies in a subdirectory because
4423   # it helps to detect inapplicable dependency modes.  For instance
4424   # both Tru64's cc and ICC support -MD to output dependencies as a
4425   # side effect of compilation, but ICC will put the dependencies in
4426   # the current directory while Tru64 will put them in the object
4427   # directory.
4428   mkdir sub
4429
4430   am_cv_CC_dependencies_compiler_type=none
4431   if test "$am_compiler_list" = ""; then
4432      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4433   fi
4434   am__universal=false
4435   case " $depcc " in #(
4436      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4437      esac
4438
4439   for depmode in $am_compiler_list; do
4440     # Setup a source with many dependencies, because some compilers
4441     # like to wrap large dependency lists on column 80 (with \), and
4442     # we should not choose a depcomp mode which is confused by this.
4443     #
4444     # We need to recreate these files for each test, as the compiler may
4445     # overwrite some of them when testing with obscure command lines.
4446     # This happens at least with the AIX C compiler.
4447     : > sub/conftest.c
4448     for i in 1 2 3 4 5 6; do
4449       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4450       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4451       # Solaris 8's {/usr,}/bin/sh.
4452       touch sub/conftst$i.h
4453     done
4454     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4455
4456     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4457     # mode.  It turns out that the SunPro C++ compiler does not properly
4458     # handle `-M -o', and we need to detect this.  Also, some Intel
4459     # versions had trouble with output in subdirs
4460     am__obj=sub/conftest.${OBJEXT-o}
4461     am__minus_obj="-o $am__obj"
4462     case $depmode in
4463     gcc)
4464       # This depmode causes a compiler race in universal mode.
4465       test "$am__universal" = false || continue
4466       ;;
4467     nosideeffect)
4468       # after this tag, mechanisms are not by side-effect, so they'll
4469       # only be used when explicitly requested
4470       if test "x$enable_dependency_tracking" = xyes; then
4471         continue
4472       else
4473         break
4474       fi
4475       ;;
4476     msvisualcpp | msvcmsys)
4477       # This compiler won't grok `-c -o', but also, the minuso test has
4478       # not run yet.  These depmodes are late enough in the game, and
4479       # so weak that their functioning should not be impacted.
4480       am__obj=conftest.${OBJEXT-o}
4481       am__minus_obj=
4482       ;;
4483     none) break ;;
4484     esac
4485     if depmode=$depmode \
4486        source=sub/conftest.c object=$am__obj \
4487        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4488        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4489          >/dev/null 2>conftest.err &&
4490        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4491        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4492        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4493        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4494       # icc doesn't choke on unknown options, it will just issue warnings
4495       # or remarks (even with -Werror).  So we grep stderr for any message
4496       # that says an option was ignored or not supported.
4497       # When given -MP, icc 7.0 and 7.1 complain thusly:
4498       #   icc: Command line warning: ignoring option '-M'; no argument required
4499       # The diagnosis changed in icc 8.0:
4500       #   icc: Command line remark: option '-MP' not supported
4501       if (grep 'ignoring option' conftest.err ||
4502           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4503         am_cv_CC_dependencies_compiler_type=$depmode
4504         break
4505       fi
4506     fi
4507   done
4508
4509   cd ..
4510   rm -rf conftest.dir
4511 else
4512   am_cv_CC_dependencies_compiler_type=none
4513 fi
4514
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4517 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4518 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4519
4520  if
4521   test "x$enable_dependency_tracking" != xno \
4522   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4523   am__fastdepCC_TRUE=
4524   am__fastdepCC_FALSE='#'
4525 else
4526   am__fastdepCC_TRUE='#'
4527   am__fastdepCC_FALSE=
4528 fi
4529
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4532 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4533 if ${ac_cv_path_SED+:} false; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4537      for ac_i in 1 2 3 4 5 6 7; do
4538        ac_script="$ac_script$as_nl$ac_script"
4539      done
4540      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4541      { ac_script=; unset ac_script;}
4542      if test -z "$SED"; then
4543   ac_path_SED_found=false
4544   # Loop through the user's path and test for each of PROGNAME-LIST
4545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548   IFS=$as_save_IFS
4549   test -z "$as_dir" && as_dir=.
4550     for ac_prog in sed gsed; do
4551     for ac_exec_ext in '' $ac_executable_extensions; do
4552       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4553       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4554 # Check for GNU ac_path_SED and select it if it is found.
4555   # Check for GNU $ac_path_SED
4556 case `"$ac_path_SED" --version 2>&1` in
4557 *GNU*)
4558   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4559 *)
4560   ac_count=0
4561   $as_echo_n 0123456789 >"conftest.in"
4562   while :
4563   do
4564     cat "conftest.in" "conftest.in" >"conftest.tmp"
4565     mv "conftest.tmp" "conftest.in"
4566     cp "conftest.in" "conftest.nl"
4567     $as_echo '' >> "conftest.nl"
4568     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4569     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4570     as_fn_arith $ac_count + 1 && ac_count=$as_val
4571     if test $ac_count -gt ${ac_path_SED_max-0}; then
4572       # Best one so far, save it but keep looking for a better one
4573       ac_cv_path_SED="$ac_path_SED"
4574       ac_path_SED_max=$ac_count
4575     fi
4576     # 10*(2^10) chars as input seems more than enough
4577     test $ac_count -gt 10 && break
4578   done
4579   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4580 esac
4581
4582       $ac_path_SED_found && break 3
4583     done
4584   done
4585   done
4586 IFS=$as_save_IFS
4587   if test -z "$ac_cv_path_SED"; then
4588     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4589   fi
4590 else
4591   ac_cv_path_SED=$SED
4592 fi
4593
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4596 $as_echo "$ac_cv_path_SED" >&6; }
4597  SED="$ac_cv_path_SED"
4598   rm -f conftest.sed
4599
4600 test -z "$SED" && SED=sed
4601 Xsed="$SED -e 1s/^X//"
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4614 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4615 if ${ac_cv_path_GREP+:} false; then :
4616   $as_echo_n "(cached) " >&6
4617 else
4618   if test -z "$GREP"; then
4619   ac_path_GREP_found=false
4620   # Loop through the user's path and test for each of PROGNAME-LIST
4621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626     for ac_prog in grep ggrep; do
4627     for ac_exec_ext in '' $ac_executable_extensions; do
4628       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4629       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4630 # Check for GNU ac_path_GREP and select it if it is found.
4631   # Check for GNU $ac_path_GREP
4632 case `"$ac_path_GREP" --version 2>&1` in
4633 *GNU*)
4634   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4635 *)
4636   ac_count=0
4637   $as_echo_n 0123456789 >"conftest.in"
4638   while :
4639   do
4640     cat "conftest.in" "conftest.in" >"conftest.tmp"
4641     mv "conftest.tmp" "conftest.in"
4642     cp "conftest.in" "conftest.nl"
4643     $as_echo 'GREP' >> "conftest.nl"
4644     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646     as_fn_arith $ac_count + 1 && ac_count=$as_val
4647     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4648       # Best one so far, save it but keep looking for a better one
4649       ac_cv_path_GREP="$ac_path_GREP"
4650       ac_path_GREP_max=$ac_count
4651     fi
4652     # 10*(2^10) chars as input seems more than enough
4653     test $ac_count -gt 10 && break
4654   done
4655   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656 esac
4657
4658       $ac_path_GREP_found && break 3
4659     done
4660   done
4661   done
4662 IFS=$as_save_IFS
4663   if test -z "$ac_cv_path_GREP"; then
4664     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4665   fi
4666 else
4667   ac_cv_path_GREP=$GREP
4668 fi
4669
4670 fi
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4672 $as_echo "$ac_cv_path_GREP" >&6; }
4673  GREP="$ac_cv_path_GREP"
4674
4675
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4677 $as_echo_n "checking for egrep... " >&6; }
4678 if ${ac_cv_path_EGREP+:} false; then :
4679   $as_echo_n "(cached) " >&6
4680 else
4681   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4682    then ac_cv_path_EGREP="$GREP -E"
4683    else
4684      if test -z "$EGREP"; then
4685   ac_path_EGREP_found=false
4686   # Loop through the user's path and test for each of PROGNAME-LIST
4687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4689 do
4690   IFS=$as_save_IFS
4691   test -z "$as_dir" && as_dir=.
4692     for ac_prog in egrep; do
4693     for ac_exec_ext in '' $ac_executable_extensions; do
4694       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4695       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4696 # Check for GNU ac_path_EGREP and select it if it is found.
4697   # Check for GNU $ac_path_EGREP
4698 case `"$ac_path_EGREP" --version 2>&1` in
4699 *GNU*)
4700   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4701 *)
4702   ac_count=0
4703   $as_echo_n 0123456789 >"conftest.in"
4704   while :
4705   do
4706     cat "conftest.in" "conftest.in" >"conftest.tmp"
4707     mv "conftest.tmp" "conftest.in"
4708     cp "conftest.in" "conftest.nl"
4709     $as_echo 'EGREP' >> "conftest.nl"
4710     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4711     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4712     as_fn_arith $ac_count + 1 && ac_count=$as_val
4713     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4714       # Best one so far, save it but keep looking for a better one
4715       ac_cv_path_EGREP="$ac_path_EGREP"
4716       ac_path_EGREP_max=$ac_count
4717     fi
4718     # 10*(2^10) chars as input seems more than enough
4719     test $ac_count -gt 10 && break
4720   done
4721   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4722 esac
4723
4724       $ac_path_EGREP_found && break 3
4725     done
4726   done
4727   done
4728 IFS=$as_save_IFS
4729   if test -z "$ac_cv_path_EGREP"; then
4730     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4731   fi
4732 else
4733   ac_cv_path_EGREP=$EGREP
4734 fi
4735
4736    fi
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4739 $as_echo "$ac_cv_path_EGREP" >&6; }
4740  EGREP="$ac_cv_path_EGREP"
4741
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4744 $as_echo_n "checking for fgrep... " >&6; }
4745 if ${ac_cv_path_FGREP+:} false; then :
4746   $as_echo_n "(cached) " >&6
4747 else
4748   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4749    then ac_cv_path_FGREP="$GREP -F"
4750    else
4751      if test -z "$FGREP"; then
4752   ac_path_FGREP_found=false
4753   # Loop through the user's path and test for each of PROGNAME-LIST
4754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4756 do
4757   IFS=$as_save_IFS
4758   test -z "$as_dir" && as_dir=.
4759     for ac_prog in fgrep; do
4760     for ac_exec_ext in '' $ac_executable_extensions; do
4761       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4762       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4763 # Check for GNU ac_path_FGREP and select it if it is found.
4764   # Check for GNU $ac_path_FGREP
4765 case `"$ac_path_FGREP" --version 2>&1` in
4766 *GNU*)
4767   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4768 *)
4769   ac_count=0
4770   $as_echo_n 0123456789 >"conftest.in"
4771   while :
4772   do
4773     cat "conftest.in" "conftest.in" >"conftest.tmp"
4774     mv "conftest.tmp" "conftest.in"
4775     cp "conftest.in" "conftest.nl"
4776     $as_echo 'FGREP' >> "conftest.nl"
4777     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4779     as_fn_arith $ac_count + 1 && ac_count=$as_val
4780     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4781       # Best one so far, save it but keep looking for a better one
4782       ac_cv_path_FGREP="$ac_path_FGREP"
4783       ac_path_FGREP_max=$ac_count
4784     fi
4785     # 10*(2^10) chars as input seems more than enough
4786     test $ac_count -gt 10 && break
4787   done
4788   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4789 esac
4790
4791       $ac_path_FGREP_found && break 3
4792     done
4793   done
4794   done
4795 IFS=$as_save_IFS
4796   if test -z "$ac_cv_path_FGREP"; then
4797     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4798   fi
4799 else
4800   ac_cv_path_FGREP=$FGREP
4801 fi
4802
4803    fi
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4806 $as_echo "$ac_cv_path_FGREP" >&6; }
4807  FGREP="$ac_cv_path_FGREP"
4808
4809
4810 test -z "$GREP" && GREP=grep
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830 # Check whether --with-gnu-ld was given.
4831 if test "${with_gnu_ld+set}" = set; then :
4832   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4833 else
4834   with_gnu_ld=no
4835 fi
4836
4837 ac_prog=ld
4838 if test "$GCC" = yes; then
4839   # Check if gcc -print-prog-name=ld gives a path.
4840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4841 $as_echo_n "checking for ld used by $CC... " >&6; }
4842   case $host in
4843   *-*-mingw*)
4844     # gcc leaves a trailing carriage return which upsets mingw
4845     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4846   *)
4847     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4848   esac
4849   case $ac_prog in
4850     # Accept absolute paths.
4851     [\\/]* | ?:[\\/]*)
4852       re_direlt='/[^/][^/]*/\.\./'
4853       # Canonicalize the pathname of ld
4854       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4855       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4856         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4857       done
4858       test -z "$LD" && LD="$ac_prog"
4859       ;;
4860   "")
4861     # If it fails, then pretend we aren't using GCC.
4862     ac_prog=ld
4863     ;;
4864   *)
4865     # If it is relative, then search for the first ld in PATH.
4866     with_gnu_ld=unknown
4867     ;;
4868   esac
4869 elif test "$with_gnu_ld" = yes; then
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4871 $as_echo_n "checking for GNU ld... " >&6; }
4872 else
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4874 $as_echo_n "checking for non-GNU ld... " >&6; }
4875 fi
4876 if ${lt_cv_path_LD+:} false; then :
4877   $as_echo_n "(cached) " >&6
4878 else
4879   if test -z "$LD"; then
4880   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4881   for ac_dir in $PATH; do
4882     IFS="$lt_save_ifs"
4883     test -z "$ac_dir" && ac_dir=.
4884     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4885       lt_cv_path_LD="$ac_dir/$ac_prog"
4886       # Check to see if the program is GNU ld.  I'd rather use --version,
4887       # but apparently some variants of GNU ld only accept -v.
4888       # Break only if it was the GNU/non-GNU ld that we prefer.
4889       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4890       *GNU* | *'with BFD'*)
4891         test "$with_gnu_ld" != no && break
4892         ;;
4893       *)
4894         test "$with_gnu_ld" != yes && break
4895         ;;
4896       esac
4897     fi
4898   done
4899   IFS="$lt_save_ifs"
4900 else
4901   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4902 fi
4903 fi
4904
4905 LD="$lt_cv_path_LD"
4906 if test -n "$LD"; then
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4908 $as_echo "$LD" >&6; }
4909 else
4910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4912 fi
4913 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4915 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4916 if ${lt_cv_prog_gnu_ld+:} false; then :
4917   $as_echo_n "(cached) " >&6
4918 else
4919   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4920 case `$LD -v 2>&1 </dev/null` in
4921 *GNU* | *'with BFD'*)
4922   lt_cv_prog_gnu_ld=yes
4923   ;;
4924 *)
4925   lt_cv_prog_gnu_ld=no
4926   ;;
4927 esac
4928 fi
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4930 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4931 with_gnu_ld=$lt_cv_prog_gnu_ld
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4942 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4943 if ${lt_cv_path_NM+:} false; then :
4944   $as_echo_n "(cached) " >&6
4945 else
4946   if test -n "$NM"; then
4947   # Let the user override the test.
4948   lt_cv_path_NM="$NM"
4949 else
4950   lt_nm_to_check="${ac_tool_prefix}nm"
4951   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4952     lt_nm_to_check="$lt_nm_to_check nm"
4953   fi
4954   for lt_tmp_nm in $lt_nm_to_check; do
4955     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4956     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4957       IFS="$lt_save_ifs"
4958       test -z "$ac_dir" && ac_dir=.
4959       tmp_nm="$ac_dir/$lt_tmp_nm"
4960       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4961         # Check to see if the nm accepts a BSD-compat flag.
4962         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4963         #   nm: unknown option "B" ignored
4964         # Tru64's nm complains that /dev/null is an invalid object file
4965         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4966         */dev/null* | *'Invalid file or object type'*)
4967           lt_cv_path_NM="$tmp_nm -B"
4968           break
4969           ;;
4970         *)
4971           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4972           */dev/null*)
4973             lt_cv_path_NM="$tmp_nm -p"
4974             break
4975             ;;
4976           *)
4977             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4978             continue # so that we can try to find one that supports BSD flags
4979             ;;
4980           esac
4981           ;;
4982         esac
4983       fi
4984     done
4985     IFS="$lt_save_ifs"
4986   done
4987   : ${lt_cv_path_NM=no}
4988 fi
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4991 $as_echo "$lt_cv_path_NM" >&6; }
4992 if test "$lt_cv_path_NM" != "no"; then
4993   NM="$lt_cv_path_NM"
4994 else
4995   # Didn't find any BSD compatible name lister, look for dumpbin.
4996   if test -n "$DUMPBIN"; then :
4997     # Let the user override the test.
4998   else
4999     if test -n "$ac_tool_prefix"; then
5000   for ac_prog in dumpbin "link -dump"
5001   do
5002     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_prog_DUMPBIN+:} false; then :
5007   $as_echo_n "(cached) " >&6
5008 else
5009   if test -n "$DUMPBIN"; then
5010   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017     for ac_exec_ext in '' $ac_executable_extensions; do
5018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024   done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 DUMPBIN=$ac_cv_prog_DUMPBIN
5030 if test -n "$DUMPBIN"; then
5031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5032 $as_echo "$DUMPBIN" >&6; }
5033 else
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037
5038
5039     test -n "$DUMPBIN" && break
5040   done
5041 fi
5042 if test -z "$DUMPBIN"; then
5043   ac_ct_DUMPBIN=$DUMPBIN
5044   for ac_prog in dumpbin "link -dump"
5045 do
5046   # Extract the first word of "$ac_prog", so it can be a program name with args.
5047 set dummy $ac_prog; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5051   $as_echo_n "(cached) " >&6
5052 else
5053   if test -n "$ac_ct_DUMPBIN"; then
5054   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061     for ac_exec_ext in '' $ac_executable_extensions; do
5062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068   done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5074 if test -n "$ac_ct_DUMPBIN"; then
5075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5076 $as_echo "$ac_ct_DUMPBIN" >&6; }
5077 else
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081
5082
5083   test -n "$ac_ct_DUMPBIN" && break
5084 done
5085
5086   if test "x$ac_ct_DUMPBIN" = x; then
5087     DUMPBIN=":"
5088   else
5089     case $cross_compiling:$ac_tool_warned in
5090 yes:)
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned=yes ;;
5094 esac
5095     DUMPBIN=$ac_ct_DUMPBIN
5096   fi
5097 fi
5098
5099     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5100     *COFF*)
5101       DUMPBIN="$DUMPBIN -symbols"
5102       ;;
5103     *)
5104       DUMPBIN=:
5105       ;;
5106     esac
5107   fi
5108
5109   if test "$DUMPBIN" != ":"; then
5110     NM="$DUMPBIN"
5111   fi
5112 fi
5113 test -z "$NM" && NM=nm
5114
5115
5116
5117
5118
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5121 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5122 if ${lt_cv_nm_interface+:} false; then :
5123   $as_echo_n "(cached) " >&6
5124 else
5125   lt_cv_nm_interface="BSD nm"
5126   echo "int some_variable = 0;" > conftest.$ac_ext
5127   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5128   (eval "$ac_compile" 2>conftest.err)
5129   cat conftest.err >&5
5130   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5131   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5132   cat conftest.err >&5
5133   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5134   cat conftest.out >&5
5135   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5136     lt_cv_nm_interface="MS dumpbin"
5137   fi
5138   rm -f conftest*
5139 fi
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5141 $as_echo "$lt_cv_nm_interface" >&6; }
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5144 $as_echo_n "checking whether ln -s works... " >&6; }
5145 LN_S=$as_ln_s
5146 if test "$LN_S" = "ln -s"; then
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5148 $as_echo "yes" >&6; }
5149 else
5150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5151 $as_echo "no, using $LN_S" >&6; }
5152 fi
5153
5154 # find the maximum length of command line arguments
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5156 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5157 if ${lt_cv_sys_max_cmd_len+:} false; then :
5158   $as_echo_n "(cached) " >&6
5159 else
5160     i=0
5161   teststring="ABCD"
5162
5163   case $build_os in
5164   msdosdjgpp*)
5165     # On DJGPP, this test can blow up pretty badly due to problems in libc
5166     # (any single argument exceeding 2000 bytes causes a buffer overrun
5167     # during glob expansion).  Even if it were fixed, the result of this
5168     # check would be larger than it should be.
5169     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5170     ;;
5171
5172   gnu*)
5173     # Under GNU Hurd, this test is not required because there is
5174     # no limit to the length of command line arguments.
5175     # Libtool will interpret -1 as no limit whatsoever
5176     lt_cv_sys_max_cmd_len=-1;
5177     ;;
5178
5179   cygwin* | mingw* | cegcc*)
5180     # On Win9x/ME, this test blows up -- it succeeds, but takes
5181     # about 5 minutes as the teststring grows exponentially.
5182     # Worse, since 9x/ME are not pre-emptively multitasking,
5183     # you end up with a "frozen" computer, even though with patience
5184     # the test eventually succeeds (with a max line length of 256k).
5185     # Instead, let's just punt: use the minimum linelength reported by
5186     # all of the supported platforms: 8192 (on NT/2K/XP).
5187     lt_cv_sys_max_cmd_len=8192;
5188     ;;
5189
5190   mint*)
5191     # On MiNT this can take a long time and run out of memory.
5192     lt_cv_sys_max_cmd_len=8192;
5193     ;;
5194
5195   amigaos*)
5196     # On AmigaOS with pdksh, this test takes hours, literally.
5197     # So we just punt and use a minimum line length of 8192.
5198     lt_cv_sys_max_cmd_len=8192;
5199     ;;
5200
5201   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5202     # This has been around since 386BSD, at least.  Likely further.
5203     if test -x /sbin/sysctl; then
5204       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5205     elif test -x /usr/sbin/sysctl; then
5206       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5207     else
5208       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5209     fi
5210     # And add a safety zone
5211     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5212     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5213     ;;
5214
5215   interix*)
5216     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5217     lt_cv_sys_max_cmd_len=196608
5218     ;;
5219
5220   osf*)
5221     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5222     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5223     # nice to cause kernel panics so lets avoid the loop below.
5224     # First set a reasonable default.
5225     lt_cv_sys_max_cmd_len=16384
5226     #
5227     if test -x /sbin/sysconfig; then
5228       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5229         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5230       esac
5231     fi
5232     ;;
5233   sco3.2v5*)
5234     lt_cv_sys_max_cmd_len=102400
5235     ;;
5236   sysv5* | sco5v6* | sysv4.2uw2*)
5237     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5238     if test -n "$kargmax"; then
5239       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5240     else
5241       lt_cv_sys_max_cmd_len=32768
5242     fi
5243     ;;
5244   *)
5245     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5246     if test -n "$lt_cv_sys_max_cmd_len"; then
5247       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5248       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5249     else
5250       # Make teststring a little bigger before we do anything with it.
5251       # a 1K string should be a reasonable start.
5252       for i in 1 2 3 4 5 6 7 8 ; do
5253         teststring=$teststring$teststring
5254       done
5255       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5256       # If test is not a shell built-in, we'll probably end up computing a
5257       # maximum length that is only half of the actual maximum length, but
5258       # we can't tell.
5259       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5260                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5261               test $i != 17 # 1/2 MB should be enough
5262       do
5263         i=`expr $i + 1`
5264         teststring=$teststring$teststring
5265       done
5266       # Only check the string length outside the loop.
5267       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5268       teststring=
5269       # Add a significant safety factor because C++ compilers can tack on
5270       # massive amounts of additional arguments before passing them to the
5271       # linker.  It appears as though 1/2 is a usable value.
5272       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5273     fi
5274     ;;
5275   esac
5276
5277 fi
5278
5279 if test -n $lt_cv_sys_max_cmd_len ; then
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5281 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5282 else
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5284 $as_echo "none" >&6; }
5285 fi
5286 max_cmd_len=$lt_cv_sys_max_cmd_len
5287
5288
5289
5290
5291
5292
5293 : ${CP="cp -f"}
5294 : ${MV="mv -f"}
5295 : ${RM="rm -f"}
5296
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5298 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5299 # Try some XSI features
5300 xsi_shell=no
5301 ( _lt_dummy="a/b/c"
5302   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5303       = c,a/b,b/c, \
5304     && eval 'test $(( 1 + 1 )) -eq 2 \
5305     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5306   && xsi_shell=yes
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5308 $as_echo "$xsi_shell" >&6; }
5309
5310
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5312 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5313 lt_shell_append=no
5314 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5315     >/dev/null 2>&1 \
5316   && lt_shell_append=yes
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5318 $as_echo "$lt_shell_append" >&6; }
5319
5320
5321 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5322   lt_unset=unset
5323 else
5324   lt_unset=false
5325 fi
5326
5327
5328
5329
5330
5331 # test EBCDIC or ASCII
5332 case `echo X|tr X '\101'` in
5333  A) # ASCII based system
5334     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5335   lt_SP2NL='tr \040 \012'
5336   lt_NL2SP='tr \015\012 \040\040'
5337   ;;
5338  *) # EBCDIC based system
5339   lt_SP2NL='tr \100 \n'
5340   lt_NL2SP='tr \r\n \100\100'
5341   ;;
5342 esac
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5353 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5354 if ${lt_cv_to_host_file_cmd+:} false; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   case $host in
5358   *-*-mingw* )
5359     case $build in
5360       *-*-mingw* ) # actually msys
5361         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5362         ;;
5363       *-*-cygwin* )
5364         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5365         ;;
5366       * ) # otherwise, assume *nix
5367         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5368         ;;
5369     esac
5370     ;;
5371   *-*-cygwin* )
5372     case $build in
5373       *-*-mingw* ) # actually msys
5374         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5375         ;;
5376       *-*-cygwin* )
5377         lt_cv_to_host_file_cmd=func_convert_file_noop
5378         ;;
5379       * ) # otherwise, assume *nix
5380         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5381         ;;
5382     esac
5383     ;;
5384   * ) # unhandled hosts (and "normal" native builds)
5385     lt_cv_to_host_file_cmd=func_convert_file_noop
5386     ;;
5387 esac
5388
5389 fi
5390
5391 to_host_file_cmd=$lt_cv_to_host_file_cmd
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5393 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5394
5395
5396
5397
5398
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5400 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5401 if ${lt_cv_to_tool_file_cmd+:} false; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404   #assume ordinary cross tools, or native build.
5405 lt_cv_to_tool_file_cmd=func_convert_file_noop
5406 case $host in
5407   *-*-mingw* )
5408     case $build in
5409       *-*-mingw* ) # actually msys
5410         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5411         ;;
5412     esac
5413     ;;
5414 esac
5415
5416 fi
5417
5418 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5420 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5421
5422
5423
5424
5425
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5427 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5428 if ${lt_cv_ld_reload_flag+:} false; then :
5429   $as_echo_n "(cached) " >&6
5430 else
5431   lt_cv_ld_reload_flag='-r'
5432 fi
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5434 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5435 reload_flag=$lt_cv_ld_reload_flag
5436 case $reload_flag in
5437 "" | " "*) ;;
5438 *) reload_flag=" $reload_flag" ;;
5439 esac
5440 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5441 case $host_os in
5442   cygwin* | mingw* | pw32* | cegcc*)
5443     if test "$GCC" != yes; then
5444       reload_cmds=false
5445     fi
5446     ;;
5447   darwin*)
5448     if test "$GCC" = yes; then
5449       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5450     else
5451       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5452     fi
5453     ;;
5454 esac
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464 if test -n "$ac_tool_prefix"; then
5465   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5466 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if ${ac_cv_prog_OBJDUMP+:} false; then :
5470   $as_echo_n "(cached) " >&6
5471 else
5472   if test -n "$OBJDUMP"; then
5473   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478   IFS=$as_save_IFS
5479   test -z "$as_dir" && as_dir=.
5480     for ac_exec_ext in '' $ac_executable_extensions; do
5481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484     break 2
5485   fi
5486 done
5487   done
5488 IFS=$as_save_IFS
5489
5490 fi
5491 fi
5492 OBJDUMP=$ac_cv_prog_OBJDUMP
5493 if test -n "$OBJDUMP"; then
5494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5495 $as_echo "$OBJDUMP" >&6; }
5496 else
5497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500
5501
5502 fi
5503 if test -z "$ac_cv_prog_OBJDUMP"; then
5504   ac_ct_OBJDUMP=$OBJDUMP
5505   # Extract the first word of "objdump", so it can be a program name with args.
5506 set dummy objdump; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5510   $as_echo_n "(cached) " >&6
5511 else
5512   if test -n "$ac_ct_OBJDUMP"; then
5513   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518   IFS=$as_save_IFS
5519   test -z "$as_dir" && as_dir=.
5520     for ac_exec_ext in '' $ac_executable_extensions; do
5521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524     break 2
5525   fi
5526 done
5527   done
5528 IFS=$as_save_IFS
5529
5530 fi
5531 fi
5532 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5533 if test -n "$ac_ct_OBJDUMP"; then
5534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5535 $as_echo "$ac_ct_OBJDUMP" >&6; }
5536 else
5537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5539 fi
5540
5541   if test "x$ac_ct_OBJDUMP" = x; then
5542     OBJDUMP="false"
5543   else
5544     case $cross_compiling:$ac_tool_warned in
5545 yes:)
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5548 ac_tool_warned=yes ;;
5549 esac
5550     OBJDUMP=$ac_ct_OBJDUMP
5551   fi
5552 else
5553   OBJDUMP="$ac_cv_prog_OBJDUMP"
5554 fi
5555
5556 test -z "$OBJDUMP" && OBJDUMP=objdump
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5567 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5568 if ${lt_cv_deplibs_check_method+:} false; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   lt_cv_file_magic_cmd='$MAGIC_CMD'
5572 lt_cv_file_magic_test_file=
5573 lt_cv_deplibs_check_method='unknown'
5574 # Need to set the preceding variable on all platforms that support
5575 # interlibrary dependencies.
5576 # 'none' -- dependencies not supported.
5577 # `unknown' -- same as none, but documents that we really don't know.
5578 # 'pass_all' -- all dependencies passed with no checks.
5579 # 'test_compile' -- check by making test program.
5580 # 'file_magic [[regex]]' -- check by looking for files in library path
5581 # which responds to the $file_magic_cmd with a given extended regex.
5582 # If you have `file' or equivalent on your system and you're not sure
5583 # whether `pass_all' will *always* work, you probably want this one.
5584
5585 case $host_os in
5586 aix[4-9]*)
5587   lt_cv_deplibs_check_method=pass_all
5588   ;;
5589
5590 beos*)
5591   lt_cv_deplibs_check_method=pass_all
5592   ;;
5593
5594 bsdi[45]*)
5595   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5596   lt_cv_file_magic_cmd='/usr/bin/file -L'
5597   lt_cv_file_magic_test_file=/shlib/libc.so
5598   ;;
5599
5600 cygwin*)
5601   # func_win32_libid is a shell function defined in ltmain.sh
5602   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5603   lt_cv_file_magic_cmd='func_win32_libid'
5604   ;;
5605
5606 mingw* | pw32*)
5607   # Base MSYS/MinGW do not provide the 'file' command needed by
5608   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5609   # unless we find 'file', for example because we are cross-compiling.
5610   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5611   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5612     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5613     lt_cv_file_magic_cmd='func_win32_libid'
5614   else
5615     # Keep this pattern in sync with the one in func_win32_libid.
5616     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5617     lt_cv_file_magic_cmd='$OBJDUMP -f'
5618   fi
5619   ;;
5620
5621 cegcc*)
5622   # use the weaker test based on 'objdump'. See mingw*.
5623   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5624   lt_cv_file_magic_cmd='$OBJDUMP -f'
5625   ;;
5626
5627 darwin* | rhapsody*)
5628   lt_cv_deplibs_check_method=pass_all
5629   ;;
5630
5631 freebsd* | dragonfly*)
5632   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5633     case $host_cpu in
5634     i*86 )
5635       # Not sure whether the presence of OpenBSD here was a mistake.
5636       # Let's accept both of them until this is cleared up.
5637       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5638       lt_cv_file_magic_cmd=/usr/bin/file
5639       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5640       ;;
5641     esac
5642   else
5643     lt_cv_deplibs_check_method=pass_all
5644   fi
5645   ;;
5646
5647 gnu*)
5648   lt_cv_deplibs_check_method=pass_all
5649   ;;
5650
5651 haiku*)
5652   lt_cv_deplibs_check_method=pass_all
5653   ;;
5654
5655 hpux10.20* | hpux11*)
5656   lt_cv_file_magic_cmd=/usr/bin/file
5657   case $host_cpu in
5658   ia64*)
5659     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5660     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5661     ;;
5662   hppa*64*)
5663     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5664     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5665     ;;
5666   *)
5667     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5668     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5669     ;;
5670   esac
5671   ;;
5672
5673 interix[3-9]*)
5674   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5675   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5676   ;;
5677
5678 irix5* | irix6* | nonstopux*)
5679   case $LD in
5680   *-32|*"-32 ") libmagic=32-bit;;
5681   *-n32|*"-n32 ") libmagic=N32;;
5682   *-64|*"-64 ") libmagic=64-bit;;
5683   *) libmagic=never-match;;
5684   esac
5685   lt_cv_deplibs_check_method=pass_all
5686   ;;
5687
5688 # This must be Linux ELF.
5689 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5690   lt_cv_deplibs_check_method=pass_all
5691   ;;
5692
5693 netbsd*)
5694   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5695     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5696   else
5697     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5698   fi
5699   ;;
5700
5701 newos6*)
5702   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5703   lt_cv_file_magic_cmd=/usr/bin/file
5704   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5705   ;;
5706
5707 *nto* | *qnx*)
5708   lt_cv_deplibs_check_method=pass_all
5709   ;;
5710
5711 openbsd*)
5712   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5713     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5714   else
5715     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5716   fi
5717   ;;
5718
5719 osf3* | osf4* | osf5*)
5720   lt_cv_deplibs_check_method=pass_all
5721   ;;
5722
5723 rdos*)
5724   lt_cv_deplibs_check_method=pass_all
5725   ;;
5726
5727 solaris*)
5728   lt_cv_deplibs_check_method=pass_all
5729   ;;
5730
5731 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5732   lt_cv_deplibs_check_method=pass_all
5733   ;;
5734
5735 sysv4 | sysv4.3*)
5736   case $host_vendor in
5737   motorola)
5738     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]'
5739     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5740     ;;
5741   ncr)
5742     lt_cv_deplibs_check_method=pass_all
5743     ;;
5744   sequent)
5745     lt_cv_file_magic_cmd='/bin/file'
5746     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5747     ;;
5748   sni)
5749     lt_cv_file_magic_cmd='/bin/file'
5750     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5751     lt_cv_file_magic_test_file=/lib/libc.so
5752     ;;
5753   siemens)
5754     lt_cv_deplibs_check_method=pass_all
5755     ;;
5756   pc)
5757     lt_cv_deplibs_check_method=pass_all
5758     ;;
5759   esac
5760   ;;
5761
5762 tpf*)
5763   lt_cv_deplibs_check_method=pass_all
5764   ;;
5765 esac
5766
5767 fi
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5769 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5770
5771 file_magic_glob=
5772 want_nocaseglob=no
5773 if test "$build" = "$host"; then
5774   case $host_os in
5775   mingw* | pw32*)
5776     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5777       want_nocaseglob=yes
5778     else
5779       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5780     fi
5781     ;;
5782   esac
5783 fi
5784
5785 file_magic_cmd=$lt_cv_file_magic_cmd
5786 deplibs_check_method=$lt_cv_deplibs_check_method
5787 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810 if test -n "$ac_tool_prefix"; then
5811   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if ${ac_cv_prog_DLLTOOL+:} false; then :
5816   $as_echo_n "(cached) " >&6
5817 else
5818   if test -n "$DLLTOOL"; then
5819   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824   IFS=$as_save_IFS
5825   test -z "$as_dir" && as_dir=.
5826     for ac_exec_ext in '' $ac_executable_extensions; do
5827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830     break 2
5831   fi
5832 done
5833   done
5834 IFS=$as_save_IFS
5835
5836 fi
5837 fi
5838 DLLTOOL=$ac_cv_prog_DLLTOOL
5839 if test -n "$DLLTOOL"; then
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5841 $as_echo "$DLLTOOL" >&6; }
5842 else
5843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5845 fi
5846
5847
5848 fi
5849 if test -z "$ac_cv_prog_DLLTOOL"; then
5850   ac_ct_DLLTOOL=$DLLTOOL
5851   # Extract the first word of "dlltool", so it can be a program name with args.
5852 set dummy dlltool; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5856   $as_echo_n "(cached) " >&6
5857 else
5858   if test -n "$ac_ct_DLLTOOL"; then
5859   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864   IFS=$as_save_IFS
5865   test -z "$as_dir" && as_dir=.
5866     for ac_exec_ext in '' $ac_executable_extensions; do
5867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870     break 2
5871   fi
5872 done
5873   done
5874 IFS=$as_save_IFS
5875
5876 fi
5877 fi
5878 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5879 if test -n "$ac_ct_DLLTOOL"; then
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5881 $as_echo "$ac_ct_DLLTOOL" >&6; }
5882 else
5883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 fi
5886
5887   if test "x$ac_ct_DLLTOOL" = x; then
5888     DLLTOOL="false"
5889   else
5890     case $cross_compiling:$ac_tool_warned in
5891 yes:)
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894 ac_tool_warned=yes ;;
5895 esac
5896     DLLTOOL=$ac_ct_DLLTOOL
5897   fi
5898 else
5899   DLLTOOL="$ac_cv_prog_DLLTOOL"
5900 fi
5901
5902 test -z "$DLLTOOL" && DLLTOOL=dlltool
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5914 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5915 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5916   $as_echo_n "(cached) " >&6
5917 else
5918   lt_cv_sharedlib_from_linklib_cmd='unknown'
5919
5920 case $host_os in
5921 cygwin* | mingw* | pw32* | cegcc*)
5922   # two different shell functions defined in ltmain.sh
5923   # decide which to use based on capabilities of $DLLTOOL
5924   case `$DLLTOOL --help 2>&1` in
5925   *--identify-strict*)
5926     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5927     ;;
5928   *)
5929     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5930     ;;
5931   esac
5932   ;;
5933 *)
5934   # fallback: assume linklib IS sharedlib
5935   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5936   ;;
5937 esac
5938
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5941 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5942 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5943 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5944
5945
5946
5947
5948
5949
5950
5951
5952 if test -n "$ac_tool_prefix"; then
5953   for ac_prog in ar
5954   do
5955     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5956 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_AR+:} false; then :
5960   $as_echo_n "(cached) " >&6
5961 else
5962   if test -n "$AR"; then
5963   ac_cv_prog_AR="$AR" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970     for ac_exec_ext in '' $ac_executable_extensions; do
5971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977   done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 AR=$ac_cv_prog_AR
5983 if test -n "$AR"; then
5984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5985 $as_echo "$AR" >&6; }
5986 else
5987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991
5992     test -n "$AR" && break
5993   done
5994 fi
5995 if test -z "$AR"; then
5996   ac_ct_AR=$AR
5997   for ac_prog in ar
5998 do
5999   # Extract the first word of "$ac_prog", so it can be a program name with args.
6000 set dummy $ac_prog; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6004   $as_echo_n "(cached) " >&6
6005 else
6006   if test -n "$ac_ct_AR"; then
6007   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014     for ac_exec_ext in '' $ac_executable_extensions; do
6015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016     ac_cv_prog_ac_ct_AR="$ac_prog"
6017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021   done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6027 if test -n "$ac_ct_AR"; then
6028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6029 $as_echo "$ac_ct_AR" >&6; }
6030 else
6031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034
6035
6036   test -n "$ac_ct_AR" && break
6037 done
6038
6039   if test "x$ac_ct_AR" = x; then
6040     AR="false"
6041   else
6042     case $cross_compiling:$ac_tool_warned in
6043 yes:)
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046 ac_tool_warned=yes ;;
6047 esac
6048     AR=$ac_ct_AR
6049   fi
6050 fi
6051
6052 : ${AR=ar}
6053 : ${AR_FLAGS=cru}
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6066 $as_echo_n "checking for archiver @FILE support... " >&6; }
6067 if ${lt_cv_ar_at_file+:} false; then :
6068   $as_echo_n "(cached) " >&6
6069 else
6070   lt_cv_ar_at_file=no
6071    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h.  */
6073
6074 int
6075 main ()
6076 {
6077
6078   ;
6079   return 0;
6080 }
6081 _ACEOF
6082 if ac_fn_c_try_compile "$LINENO"; then :
6083   echo conftest.$ac_objext > conftest.lst
6084       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6085       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6086   (eval $lt_ar_try) 2>&5
6087   ac_status=$?
6088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089   test $ac_status = 0; }
6090       if test "$ac_status" -eq 0; then
6091         # Ensure the archiver fails upon bogus file names.
6092         rm -f conftest.$ac_objext libconftest.a
6093         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6094   (eval $lt_ar_try) 2>&5
6095   ac_status=$?
6096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097   test $ac_status = 0; }
6098         if test "$ac_status" -ne 0; then
6099           lt_cv_ar_at_file=@
6100         fi
6101       fi
6102       rm -f conftest.* libconftest.a
6103
6104 fi
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106
6107 fi
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6109 $as_echo "$lt_cv_ar_at_file" >&6; }
6110
6111 if test "x$lt_cv_ar_at_file" = xno; then
6112   archiver_list_spec=
6113 else
6114   archiver_list_spec=$lt_cv_ar_at_file
6115 fi
6116
6117
6118
6119
6120
6121
6122
6123 if test -n "$ac_tool_prefix"; then
6124   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6125 set dummy ${ac_tool_prefix}strip; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if ${ac_cv_prog_STRIP+:} false; then :
6129   $as_echo_n "(cached) " >&6
6130 else
6131   if test -n "$STRIP"; then
6132   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137   IFS=$as_save_IFS
6138   test -z "$as_dir" && as_dir=.
6139     for ac_exec_ext in '' $ac_executable_extensions; do
6140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143     break 2
6144   fi
6145 done
6146   done
6147 IFS=$as_save_IFS
6148
6149 fi
6150 fi
6151 STRIP=$ac_cv_prog_STRIP
6152 if test -n "$STRIP"; then
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6154 $as_echo "$STRIP" >&6; }
6155 else
6156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6158 fi
6159
6160
6161 fi
6162 if test -z "$ac_cv_prog_STRIP"; then
6163   ac_ct_STRIP=$STRIP
6164   # Extract the first word of "strip", so it can be a program name with args.
6165 set dummy strip; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6169   $as_echo_n "(cached) " >&6
6170 else
6171   if test -n "$ac_ct_STRIP"; then
6172   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177   IFS=$as_save_IFS
6178   test -z "$as_dir" && as_dir=.
6179     for ac_exec_ext in '' $ac_executable_extensions; do
6180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181     ac_cv_prog_ac_ct_STRIP="strip"
6182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183     break 2
6184   fi
6185 done
6186   done
6187 IFS=$as_save_IFS
6188
6189 fi
6190 fi
6191 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6192 if test -n "$ac_ct_STRIP"; then
6193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6194 $as_echo "$ac_ct_STRIP" >&6; }
6195 else
6196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6198 fi
6199
6200   if test "x$ac_ct_STRIP" = x; then
6201     STRIP=":"
6202   else
6203     case $cross_compiling:$ac_tool_warned in
6204 yes:)
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6208 esac
6209     STRIP=$ac_ct_STRIP
6210   fi
6211 else
6212   STRIP="$ac_cv_prog_STRIP"
6213 fi
6214
6215 test -z "$STRIP" && STRIP=:
6216
6217
6218
6219
6220
6221
6222 if test -n "$ac_tool_prefix"; then
6223   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6224 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_prog_RANLIB+:} false; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230   if test -n "$RANLIB"; then
6231   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236   IFS=$as_save_IFS
6237   test -z "$as_dir" && as_dir=.
6238     for ac_exec_ext in '' $ac_executable_extensions; do
6239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242     break 2
6243   fi
6244 done
6245   done
6246 IFS=$as_save_IFS
6247
6248 fi
6249 fi
6250 RANLIB=$ac_cv_prog_RANLIB
6251 if test -n "$RANLIB"; then
6252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6253 $as_echo "$RANLIB" >&6; }
6254 else
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6257 fi
6258
6259
6260 fi
6261 if test -z "$ac_cv_prog_RANLIB"; then
6262   ac_ct_RANLIB=$RANLIB
6263   # Extract the first word of "ranlib", so it can be a program name with args.
6264 set dummy ranlib; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6268   $as_echo_n "(cached) " >&6
6269 else
6270   if test -n "$ac_ct_RANLIB"; then
6271   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278     for ac_exec_ext in '' $ac_executable_extensions; do
6279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280     ac_cv_prog_ac_ct_RANLIB="ranlib"
6281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282     break 2
6283   fi
6284 done
6285   done
6286 IFS=$as_save_IFS
6287
6288 fi
6289 fi
6290 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6291 if test -n "$ac_ct_RANLIB"; then
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6293 $as_echo "$ac_ct_RANLIB" >&6; }
6294 else
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6297 fi
6298
6299   if test "x$ac_ct_RANLIB" = x; then
6300     RANLIB=":"
6301   else
6302     case $cross_compiling:$ac_tool_warned in
6303 yes:)
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6306 ac_tool_warned=yes ;;
6307 esac
6308     RANLIB=$ac_ct_RANLIB
6309   fi
6310 else
6311   RANLIB="$ac_cv_prog_RANLIB"
6312 fi
6313
6314 test -z "$RANLIB" && RANLIB=:
6315
6316
6317
6318
6319
6320
6321 # Determine commands to create old-style static archives.
6322 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6323 old_postinstall_cmds='chmod 644 $oldlib'
6324 old_postuninstall_cmds=
6325
6326 if test -n "$RANLIB"; then
6327   case $host_os in
6328   openbsd*)
6329     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6330     ;;
6331   *)
6332     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6333     ;;
6334   esac
6335   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6336 fi
6337
6338 case $host_os in
6339   darwin*)
6340     lock_old_archive_extraction=yes ;;
6341   *)
6342     lock_old_archive_extraction=no ;;
6343 esac
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383 # If no C compiler was specified, use CC.
6384 LTCC=${LTCC-"$CC"}
6385
6386 # If no C compiler flags were specified, use CFLAGS.
6387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6388
6389 # Allow CC to be a program name with arguments.
6390 compiler=$CC
6391
6392
6393 # Check for command to grab the raw symbol name followed by C symbol from nm.
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6395 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6396 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6397   $as_echo_n "(cached) " >&6
6398 else
6399
6400 # These are sane defaults that work on at least a few old systems.
6401 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6402
6403 # Character class describing NM global symbol codes.
6404 symcode='[BCDEGRST]'
6405
6406 # Regexp to match symbols that can be accessed directly from C.
6407 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6408
6409 # Define system-specific variables.
6410 case $host_os in
6411 aix*)
6412   symcode='[BCDT]'
6413   ;;
6414 cygwin* | mingw* | pw32* | cegcc*)
6415   symcode='[ABCDGISTW]'
6416   ;;
6417 hpux*)
6418   if test "$host_cpu" = ia64; then
6419     symcode='[ABCDEGRST]'
6420   fi
6421   ;;
6422 irix* | nonstopux*)
6423   symcode='[BCDEGRST]'
6424   ;;
6425 osf*)
6426   symcode='[BCDEGQRST]'
6427   ;;
6428 solaris*)
6429   symcode='[BDRT]'
6430   ;;
6431 sco3.2v5*)
6432   symcode='[DT]'
6433   ;;
6434 sysv4.2uw2*)
6435   symcode='[DT]'
6436   ;;
6437 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6438   symcode='[ABDT]'
6439   ;;
6440 sysv4)
6441   symcode='[DFNSTU]'
6442   ;;
6443 esac
6444
6445 # If we're using GNU nm, then use its standard symbol codes.
6446 case `$NM -V 2>&1` in
6447 *GNU* | *'with BFD'*)
6448   symcode='[ABCDGIRSTW]' ;;
6449 esac
6450
6451 # Transform an extracted symbol line into a proper C declaration.
6452 # Some systems (esp. on ia64) link data and code symbols differently,
6453 # so use this general approach.
6454 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6455
6456 # Transform an extracted symbol line into symbol name and symbol address
6457 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6458 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6459
6460 # Handle CRLF in mingw tool chain
6461 opt_cr=
6462 case $build_os in
6463 mingw*)
6464   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6465   ;;
6466 esac
6467
6468 # Try without a prefix underscore, then with it.
6469 for ac_symprfx in "" "_"; do
6470
6471   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6472   symxfrm="\\1 $ac_symprfx\\2 \\2"
6473
6474   # Write the raw and C identifiers.
6475   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6476     # Fake it for dumpbin and say T for any non-static function
6477     # and D for any global variable.
6478     # Also find C++ and __fastcall symbols from MSVC++,
6479     # which start with @ or ?.
6480     lt_cv_sys_global_symbol_pipe="$AWK '"\
6481 "     {last_section=section; section=\$ 3};"\
6482 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6483 "     \$ 0!~/External *\|/{next};"\
6484 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6485 "     {if(hide[section]) next};"\
6486 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6487 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6488 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6489 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6490 "     ' prfx=^$ac_symprfx"
6491   else
6492     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6493   fi
6494   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6495
6496   # Check to see that the pipe works correctly.
6497   pipe_works=no
6498
6499   rm -f conftest*
6500   cat > conftest.$ac_ext <<_LT_EOF
6501 #ifdef __cplusplus
6502 extern "C" {
6503 #endif
6504 char nm_test_var;
6505 void nm_test_func(void);
6506 void nm_test_func(void){}
6507 #ifdef __cplusplus
6508 }
6509 #endif
6510 int main(){nm_test_var='a';nm_test_func();return(0);}
6511 _LT_EOF
6512
6513   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6514   (eval $ac_compile) 2>&5
6515   ac_status=$?
6516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517   test $ac_status = 0; }; then
6518     # Now try to grab the symbols.
6519     nlist=conftest.nm
6520     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6521   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6522   ac_status=$?
6523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6524   test $ac_status = 0; } && test -s "$nlist"; then
6525       # Try sorting and uniquifying the output.
6526       if sort "$nlist" | uniq > "$nlist"T; then
6527         mv -f "$nlist"T "$nlist"
6528       else
6529         rm -f "$nlist"T
6530       fi
6531
6532       # Make sure that we snagged all the symbols we need.
6533       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6534         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6535           cat <<_LT_EOF > conftest.$ac_ext
6536 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6537 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6538 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6539    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6540 # define LT_DLSYM_CONST
6541 #elif defined(__osf__)
6542 /* This system does not cope well with relocations in const data.  */
6543 # define LT_DLSYM_CONST
6544 #else
6545 # define LT_DLSYM_CONST const
6546 #endif
6547
6548 #ifdef __cplusplus
6549 extern "C" {
6550 #endif
6551
6552 _LT_EOF
6553           # Now generate the symbol file.
6554           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6555
6556           cat <<_LT_EOF >> conftest.$ac_ext
6557
6558 /* The mapping between symbol names and symbols.  */
6559 LT_DLSYM_CONST struct {
6560   const char *name;
6561   void       *address;
6562 }
6563 lt__PROGRAM__LTX_preloaded_symbols[] =
6564 {
6565   { "@PROGRAM@", (void *) 0 },
6566 _LT_EOF
6567           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6568           cat <<\_LT_EOF >> conftest.$ac_ext
6569   {0, (void *) 0}
6570 };
6571
6572 /* This works around a problem in FreeBSD linker */
6573 #ifdef FREEBSD_WORKAROUND
6574 static const void *lt_preloaded_setup() {
6575   return lt__PROGRAM__LTX_preloaded_symbols;
6576 }
6577 #endif
6578
6579 #ifdef __cplusplus
6580 }
6581 #endif
6582 _LT_EOF
6583           # Now try linking the two files.
6584           mv conftest.$ac_objext conftstm.$ac_objext
6585           lt_globsym_save_LIBS=$LIBS
6586           lt_globsym_save_CFLAGS=$CFLAGS
6587           LIBS="conftstm.$ac_objext"
6588           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6589           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6590   (eval $ac_link) 2>&5
6591   ac_status=$?
6592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6593   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6594             pipe_works=yes
6595           fi
6596           LIBS=$lt_globsym_save_LIBS
6597           CFLAGS=$lt_globsym_save_CFLAGS
6598         else
6599           echo "cannot find nm_test_func in $nlist" >&5
6600         fi
6601       else
6602         echo "cannot find nm_test_var in $nlist" >&5
6603       fi
6604     else
6605       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6606     fi
6607   else
6608     echo "$progname: failed program was:" >&5
6609     cat conftest.$ac_ext >&5
6610   fi
6611   rm -rf conftest* conftst*
6612
6613   # Do not use the global_symbol_pipe unless it works.
6614   if test "$pipe_works" = yes; then
6615     break
6616   else
6617     lt_cv_sys_global_symbol_pipe=
6618   fi
6619 done
6620
6621 fi
6622
6623 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6624   lt_cv_sys_global_symbol_to_cdecl=
6625 fi
6626 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6628 $as_echo "failed" >&6; }
6629 else
6630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6631 $as_echo "ok" >&6; }
6632 fi
6633
6634 # Response file support.
6635 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6636   nm_file_list_spec='@'
6637 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6638   nm_file_list_spec='@'
6639 fi
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6668 $as_echo_n "checking for sysroot... " >&6; }
6669
6670 # Check whether --with-sysroot was given.
6671 if test "${with_sysroot+set}" = set; then :
6672   withval=$with_sysroot;
6673 else
6674   with_sysroot=no
6675 fi
6676
6677
6678 lt_sysroot=
6679 case ${with_sysroot} in #(
6680  yes)
6681    if test "$GCC" = yes; then
6682      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6683    fi
6684    ;; #(
6685  /*)
6686    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6687    ;; #(
6688  no|'')
6689    ;; #(
6690  *)
6691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6692 $as_echo "${with_sysroot}" >&6; }
6693    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6694    ;;
6695 esac
6696
6697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6698 $as_echo "${lt_sysroot:-no}" >&6; }
6699
6700
6701
6702
6703
6704 # Check whether --enable-libtool-lock was given.
6705 if test "${enable_libtool_lock+set}" = set; then :
6706   enableval=$enable_libtool_lock;
6707 fi
6708
6709 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6710
6711 # Some flags need to be propagated to the compiler or linker for good
6712 # libtool support.
6713 case $host in
6714 ia64-*-hpux*)
6715   # Find out which ABI we are using.
6716   echo 'int i;' > conftest.$ac_ext
6717   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6718   (eval $ac_compile) 2>&5
6719   ac_status=$?
6720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721   test $ac_status = 0; }; then
6722     case `/usr/bin/file conftest.$ac_objext` in
6723       *ELF-32*)
6724         HPUX_IA64_MODE="32"
6725         ;;
6726       *ELF-64*)
6727         HPUX_IA64_MODE="64"
6728         ;;
6729     esac
6730   fi
6731   rm -rf conftest*
6732   ;;
6733 *-*-irix6*)
6734   # Find out which ABI we are using.
6735   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6736   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6737   (eval $ac_compile) 2>&5
6738   ac_status=$?
6739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740   test $ac_status = 0; }; then
6741     if test "$lt_cv_prog_gnu_ld" = yes; then
6742       case `/usr/bin/file conftest.$ac_objext` in
6743         *32-bit*)
6744           LD="${LD-ld} -melf32bsmip"
6745           ;;
6746         *N32*)
6747           LD="${LD-ld} -melf32bmipn32"
6748           ;;
6749         *64-bit*)
6750           LD="${LD-ld} -melf64bmip"
6751         ;;
6752       esac
6753     else
6754       case `/usr/bin/file conftest.$ac_objext` in
6755         *32-bit*)
6756           LD="${LD-ld} -32"
6757           ;;
6758         *N32*)
6759           LD="${LD-ld} -n32"
6760           ;;
6761         *64-bit*)
6762           LD="${LD-ld} -64"
6763           ;;
6764       esac
6765     fi
6766   fi
6767   rm -rf conftest*
6768   ;;
6769
6770 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6771 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6772   # Find out which ABI we are using.
6773   echo 'int i;' > conftest.$ac_ext
6774   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6775   (eval $ac_compile) 2>&5
6776   ac_status=$?
6777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778   test $ac_status = 0; }; then
6779     case `/usr/bin/file conftest.o` in
6780       *32-bit*)
6781         case $host in
6782           x86_64-*kfreebsd*-gnu)
6783             LD="${LD-ld} -m elf_i386_fbsd"
6784             ;;
6785           x86_64-*linux*)
6786             LD="${LD-ld} -m elf_i386"
6787             ;;
6788           ppc64-*linux*|powerpc64-*linux*)
6789             LD="${LD-ld} -m elf32ppclinux"
6790             ;;
6791           s390x-*linux*)
6792             LD="${LD-ld} -m elf_s390"
6793             ;;
6794           sparc64-*linux*)
6795             LD="${LD-ld} -m elf32_sparc"
6796             ;;
6797         esac
6798         ;;
6799       *64-bit*)
6800         case $host in
6801           x86_64-*kfreebsd*-gnu)
6802             LD="${LD-ld} -m elf_x86_64_fbsd"
6803             ;;
6804           x86_64-*linux*)
6805             LD="${LD-ld} -m elf_x86_64"
6806             ;;
6807           ppc*-*linux*|powerpc*-*linux*)
6808             LD="${LD-ld} -m elf64ppc"
6809             ;;
6810           s390*-*linux*|s390*-*tpf*)
6811             LD="${LD-ld} -m elf64_s390"
6812             ;;
6813           sparc*-*linux*)
6814             LD="${LD-ld} -m elf64_sparc"
6815             ;;
6816         esac
6817         ;;
6818     esac
6819   fi
6820   rm -rf conftest*
6821   ;;
6822
6823 *-*-sco3.2v5*)
6824   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6825   SAVE_CFLAGS="$CFLAGS"
6826   CFLAGS="$CFLAGS -belf"
6827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6828 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6829 if ${lt_cv_cc_needs_belf+:} false; then :
6830   $as_echo_n "(cached) " >&6
6831 else
6832   ac_ext=c
6833 ac_cpp='$CPP $CPPFLAGS'
6834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6837
6838      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h.  */
6840
6841 int
6842 main ()
6843 {
6844
6845   ;
6846   return 0;
6847 }
6848 _ACEOF
6849 if ac_fn_c_try_link "$LINENO"; then :
6850   lt_cv_cc_needs_belf=yes
6851 else
6852   lt_cv_cc_needs_belf=no
6853 fi
6854 rm -f core conftest.err conftest.$ac_objext \
6855     conftest$ac_exeext conftest.$ac_ext
6856      ac_ext=c
6857 ac_cpp='$CPP $CPPFLAGS'
6858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6861
6862 fi
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6864 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6865   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6866     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6867     CFLAGS="$SAVE_CFLAGS"
6868   fi
6869   ;;
6870 sparc*-*solaris*)
6871   # Find out which ABI we are using.
6872   echo 'int i;' > conftest.$ac_ext
6873   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6874   (eval $ac_compile) 2>&5
6875   ac_status=$?
6876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6877   test $ac_status = 0; }; then
6878     case `/usr/bin/file conftest.o` in
6879     *64-bit*)
6880       case $lt_cv_prog_gnu_ld in
6881       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6882       *)
6883         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6884           LD="${LD-ld} -64"
6885         fi
6886         ;;
6887       esac
6888       ;;
6889     esac
6890   fi
6891   rm -rf conftest*
6892   ;;
6893 esac
6894
6895 need_locks="$enable_libtool_lock"
6896
6897 if test -n "$ac_tool_prefix"; then
6898   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6899 set dummy ${ac_tool_prefix}mt; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6903   $as_echo_n "(cached) " >&6
6904 else
6905   if test -n "$MANIFEST_TOOL"; then
6906   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911   IFS=$as_save_IFS
6912   test -z "$as_dir" && as_dir=.
6913     for ac_exec_ext in '' $ac_executable_extensions; do
6914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917     break 2
6918   fi
6919 done
6920   done
6921 IFS=$as_save_IFS
6922
6923 fi
6924 fi
6925 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6926 if test -n "$MANIFEST_TOOL"; then
6927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6928 $as_echo "$MANIFEST_TOOL" >&6; }
6929 else
6930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6932 fi
6933
6934
6935 fi
6936 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6937   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6938   # Extract the first word of "mt", so it can be a program name with args.
6939 set dummy mt; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6943   $as_echo_n "(cached) " >&6
6944 else
6945   if test -n "$ac_ct_MANIFEST_TOOL"; then
6946   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951   IFS=$as_save_IFS
6952   test -z "$as_dir" && as_dir=.
6953     for ac_exec_ext in '' $ac_executable_extensions; do
6954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957     break 2
6958   fi
6959 done
6960   done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6966 if test -n "$ac_ct_MANIFEST_TOOL"; then
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6968 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6969 else
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6975     MANIFEST_TOOL=":"
6976   else
6977     case $cross_compiling:$ac_tool_warned in
6978 yes:)
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981 ac_tool_warned=yes ;;
6982 esac
6983     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6984   fi
6985 else
6986   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6987 fi
6988
6989 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6991 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6992 if ${lt_cv_path_mainfest_tool+:} false; then :
6993   $as_echo_n "(cached) " >&6
6994 else
6995   lt_cv_path_mainfest_tool=no
6996   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6997   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6998   cat conftest.err >&5
6999   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7000     lt_cv_path_mainfest_tool=yes
7001   fi
7002   rm -f conftest*
7003 fi
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7005 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7006 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7007   MANIFEST_TOOL=:
7008 fi
7009
7010
7011
7012
7013
7014
7015   case $host_os in
7016     rhapsody* | darwin*)
7017     if test -n "$ac_tool_prefix"; then
7018   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7019 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7023   $as_echo_n "(cached) " >&6
7024 else
7025   if test -n "$DSYMUTIL"; then
7026   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033     for ac_exec_ext in '' $ac_executable_extensions; do
7034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040   done
7041 IFS=$as_save_IFS
7042
7043 fi
7044 fi
7045 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7046 if test -n "$DSYMUTIL"; then
7047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7048 $as_echo "$DSYMUTIL" >&6; }
7049 else
7050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7052 fi
7053
7054
7055 fi
7056 if test -z "$ac_cv_prog_DSYMUTIL"; then
7057   ac_ct_DSYMUTIL=$DSYMUTIL
7058   # Extract the first word of "dsymutil", so it can be a program name with args.
7059 set dummy dsymutil; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7063   $as_echo_n "(cached) " >&6
7064 else
7065   if test -n "$ac_ct_DSYMUTIL"; then
7066   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071   IFS=$as_save_IFS
7072   test -z "$as_dir" && as_dir=.
7073     for ac_exec_ext in '' $ac_executable_extensions; do
7074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077     break 2
7078   fi
7079 done
7080   done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7086 if test -n "$ac_ct_DSYMUTIL"; then
7087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7088 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7089 else
7090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 fi
7093
7094   if test "x$ac_ct_DSYMUTIL" = x; then
7095     DSYMUTIL=":"
7096   else
7097     case $cross_compiling:$ac_tool_warned in
7098 yes:)
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7101 ac_tool_warned=yes ;;
7102 esac
7103     DSYMUTIL=$ac_ct_DSYMUTIL
7104   fi
7105 else
7106   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7107 fi
7108
7109     if test -n "$ac_tool_prefix"; then
7110   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_NMEDIT+:} false; then :
7115   $as_echo_n "(cached) " >&6
7116 else
7117   if test -n "$NMEDIT"; then
7118   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123   IFS=$as_save_IFS
7124   test -z "$as_dir" && as_dir=.
7125     for ac_exec_ext in '' $ac_executable_extensions; do
7126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129     break 2
7130   fi
7131 done
7132   done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 NMEDIT=$ac_cv_prog_NMEDIT
7138 if test -n "$NMEDIT"; then
7139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7140 $as_echo "$NMEDIT" >&6; }
7141 else
7142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145
7146
7147 fi
7148 if test -z "$ac_cv_prog_NMEDIT"; then
7149   ac_ct_NMEDIT=$NMEDIT
7150   # Extract the first word of "nmedit", so it can be a program name with args.
7151 set dummy nmedit; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7155   $as_echo_n "(cached) " >&6
7156 else
7157   if test -n "$ac_ct_NMEDIT"; then
7158   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163   IFS=$as_save_IFS
7164   test -z "$as_dir" && as_dir=.
7165     for ac_exec_ext in '' $ac_executable_extensions; do
7166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169     break 2
7170   fi
7171 done
7172   done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7178 if test -n "$ac_ct_NMEDIT"; then
7179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7180 $as_echo "$ac_ct_NMEDIT" >&6; }
7181 else
7182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186   if test "x$ac_ct_NMEDIT" = x; then
7187     NMEDIT=":"
7188   else
7189     case $cross_compiling:$ac_tool_warned in
7190 yes:)
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7194 esac
7195     NMEDIT=$ac_ct_NMEDIT
7196   fi
7197 else
7198   NMEDIT="$ac_cv_prog_NMEDIT"
7199 fi
7200
7201     if test -n "$ac_tool_prefix"; then
7202   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_LIPO+:} false; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   if test -n "$LIPO"; then
7210   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217     for ac_exec_ext in '' $ac_executable_extensions; do
7218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224   done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 LIPO=$ac_cv_prog_LIPO
7230 if test -n "$LIPO"; then
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7232 $as_echo "$LIPO" >&6; }
7233 else
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238
7239 fi
7240 if test -z "$ac_cv_prog_LIPO"; then
7241   ac_ct_LIPO=$LIPO
7242   # Extract the first word of "lipo", so it can be a program name with args.
7243 set dummy lipo; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7247   $as_echo_n "(cached) " >&6
7248 else
7249   if test -n "$ac_ct_LIPO"; then
7250   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255   IFS=$as_save_IFS
7256   test -z "$as_dir" && as_dir=.
7257     for ac_exec_ext in '' $ac_executable_extensions; do
7258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259     ac_cv_prog_ac_ct_LIPO="lipo"
7260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261     break 2
7262   fi
7263 done
7264   done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7270 if test -n "$ac_ct_LIPO"; then
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7272 $as_echo "$ac_ct_LIPO" >&6; }
7273 else
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278   if test "x$ac_ct_LIPO" = x; then
7279     LIPO=":"
7280   else
7281     case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287     LIPO=$ac_ct_LIPO
7288   fi
7289 else
7290   LIPO="$ac_cv_prog_LIPO"
7291 fi
7292
7293     if test -n "$ac_tool_prefix"; then
7294   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}otool; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_OTOOL+:} false; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301   if test -n "$OTOOL"; then
7302   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309     for ac_exec_ext in '' $ac_executable_extensions; do
7310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316   done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 OTOOL=$ac_cv_prog_OTOOL
7322 if test -n "$OTOOL"; then
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7324 $as_echo "$OTOOL" >&6; }
7325 else
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330
7331 fi
7332 if test -z "$ac_cv_prog_OTOOL"; then
7333   ac_ct_OTOOL=$OTOOL
7334   # Extract the first word of "otool", so it can be a program name with args.
7335 set dummy otool; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341   if test -n "$ac_ct_OTOOL"; then
7342   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349     for ac_exec_ext in '' $ac_executable_extensions; do
7350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351     ac_cv_prog_ac_ct_OTOOL="otool"
7352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356   done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7362 if test -n "$ac_ct_OTOOL"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7364 $as_echo "$ac_ct_OTOOL" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370   if test "x$ac_ct_OTOOL" = x; then
7371     OTOOL=":"
7372   else
7373     case $cross_compiling:$ac_tool_warned in
7374 yes:)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7378 esac
7379     OTOOL=$ac_ct_OTOOL
7380   fi
7381 else
7382   OTOOL="$ac_cv_prog_OTOOL"
7383 fi
7384
7385     if test -n "$ac_tool_prefix"; then
7386   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7387 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_OTOOL64+:} false; then :
7391   $as_echo_n "(cached) " >&6
7392 else
7393   if test -n "$OTOOL64"; then
7394   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   test -z "$as_dir" && as_dir=.
7401     for ac_exec_ext in '' $ac_executable_extensions; do
7402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405     break 2
7406   fi
7407 done
7408   done
7409 IFS=$as_save_IFS
7410
7411 fi
7412 fi
7413 OTOOL64=$ac_cv_prog_OTOOL64
7414 if test -n "$OTOOL64"; then
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7416 $as_echo "$OTOOL64" >&6; }
7417 else
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421
7422
7423 fi
7424 if test -z "$ac_cv_prog_OTOOL64"; then
7425   ac_ct_OTOOL64=$OTOOL64
7426   # Extract the first word of "otool64", so it can be a program name with args.
7427 set dummy otool64; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7431   $as_echo_n "(cached) " >&6
7432 else
7433   if test -n "$ac_ct_OTOOL64"; then
7434   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439   IFS=$as_save_IFS
7440   test -z "$as_dir" && as_dir=.
7441     for ac_exec_ext in '' $ac_executable_extensions; do
7442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443     ac_cv_prog_ac_ct_OTOOL64="otool64"
7444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445     break 2
7446   fi
7447 done
7448   done
7449 IFS=$as_save_IFS
7450
7451 fi
7452 fi
7453 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7454 if test -n "$ac_ct_OTOOL64"; then
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7456 $as_echo "$ac_ct_OTOOL64" >&6; }
7457 else
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461
7462   if test "x$ac_ct_OTOOL64" = x; then
7463     OTOOL64=":"
7464   else
7465     case $cross_compiling:$ac_tool_warned in
7466 yes:)
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469 ac_tool_warned=yes ;;
7470 esac
7471     OTOOL64=$ac_ct_OTOOL64
7472   fi
7473 else
7474   OTOOL64="$ac_cv_prog_OTOOL64"
7475 fi
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7504 $as_echo_n "checking for -single_module linker flag... " >&6; }
7505 if ${lt_cv_apple_cc_single_mod+:} false; then :
7506   $as_echo_n "(cached) " >&6
7507 else
7508   lt_cv_apple_cc_single_mod=no
7509       if test -z "${LT_MULTI_MODULE}"; then
7510         # By default we will add the -single_module flag. You can override
7511         # by either setting the environment variable LT_MULTI_MODULE
7512         # non-empty at configure time, or by adding -multi_module to the
7513         # link flags.
7514         rm -rf libconftest.dylib*
7515         echo "int foo(void){return 1;}" > conftest.c
7516         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7517 -dynamiclib -Wl,-single_module conftest.c" >&5
7518         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7519           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7520         _lt_result=$?
7521         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7522           lt_cv_apple_cc_single_mod=yes
7523         else
7524           cat conftest.err >&5
7525         fi
7526         rm -rf libconftest.dylib*
7527         rm -f conftest.*
7528       fi
7529 fi
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7531 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7533 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7534 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7535   $as_echo_n "(cached) " >&6
7536 else
7537   lt_cv_ld_exported_symbols_list=no
7538       save_LDFLAGS=$LDFLAGS
7539       echo "_main" > conftest.sym
7540       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7541       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h.  */
7543
7544 int
7545 main ()
7546 {
7547
7548   ;
7549   return 0;
7550 }
7551 _ACEOF
7552 if ac_fn_c_try_link "$LINENO"; then :
7553   lt_cv_ld_exported_symbols_list=yes
7554 else
7555   lt_cv_ld_exported_symbols_list=no
7556 fi
7557 rm -f core conftest.err conftest.$ac_objext \
7558     conftest$ac_exeext conftest.$ac_ext
7559         LDFLAGS="$save_LDFLAGS"
7560
7561 fi
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7563 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7565 $as_echo_n "checking for -force_load linker flag... " >&6; }
7566 if ${lt_cv_ld_force_load+:} false; then :
7567   $as_echo_n "(cached) " >&6
7568 else
7569   lt_cv_ld_force_load=no
7570       cat > conftest.c << _LT_EOF
7571 int forced_loaded() { return 2;}
7572 _LT_EOF
7573       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7574       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7575       echo "$AR cru libconftest.a conftest.o" >&5
7576       $AR cru libconftest.a conftest.o 2>&5
7577       echo "$RANLIB libconftest.a" >&5
7578       $RANLIB libconftest.a 2>&5
7579       cat > conftest.c << _LT_EOF
7580 int main() { return 0;}
7581 _LT_EOF
7582       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7583       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7584       _lt_result=$?
7585       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7586         lt_cv_ld_force_load=yes
7587       else
7588         cat conftest.err >&5
7589       fi
7590         rm -f conftest.err libconftest.a conftest conftest.c
7591         rm -rf conftest.dSYM
7592
7593 fi
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7595 $as_echo "$lt_cv_ld_force_load" >&6; }
7596     case $host_os in
7597     rhapsody* | darwin1.[012])
7598       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7599     darwin1.*)
7600       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7601     darwin*) # darwin 5.x on
7602       # if running on 10.5 or later, the deployment target defaults
7603       # to the OS version, if on x86, and 10.4, the deployment
7604       # target defaults to 10.4. Don't you love it?
7605       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7606         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7607           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7608         10.[012]*)
7609           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7610         10.*)
7611           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7612       esac
7613     ;;
7614   esac
7615     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7616       _lt_dar_single_mod='$single_module'
7617     fi
7618     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7619       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7620     else
7621       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7622     fi
7623     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7624       _lt_dsymutil='~$DSYMUTIL $lib || :'
7625     else
7626       _lt_dsymutil=
7627     fi
7628     ;;
7629   esac
7630
7631 ac_ext=c
7632 ac_cpp='$CPP $CPPFLAGS'
7633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7637 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7638 # On Suns, sometimes $CPP names a directory.
7639 if test -n "$CPP" && test -d "$CPP"; then
7640   CPP=
7641 fi
7642 if test -z "$CPP"; then
7643   if ${ac_cv_prog_CPP+:} false; then :
7644   $as_echo_n "(cached) " >&6
7645 else
7646       # Double quotes because CPP needs to be expanded
7647     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7648     do
7649       ac_preproc_ok=false
7650 for ac_c_preproc_warn_flag in '' yes
7651 do
7652   # Use a header file that comes with gcc, so configuring glibc
7653   # with a fresh cross-compiler works.
7654   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7655   # <limits.h> exists even on freestanding compilers.
7656   # On the NeXT, cc -E runs the code through the compiler's parser,
7657   # not just through cpp. "Syntax error" is here to catch this case.
7658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h.  */
7660 #ifdef __STDC__
7661 # include <limits.h>
7662 #else
7663 # include <assert.h>
7664 #endif
7665                      Syntax error
7666 _ACEOF
7667 if ac_fn_c_try_cpp "$LINENO"; then :
7668
7669 else
7670   # Broken: fails on valid input.
7671 continue
7672 fi
7673 rm -f conftest.err conftest.i conftest.$ac_ext
7674
7675   # OK, works on sane cases.  Now check whether nonexistent headers
7676   # can be detected and how.
7677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h.  */
7679 #include <ac_nonexistent.h>
7680 _ACEOF
7681 if ac_fn_c_try_cpp "$LINENO"; then :
7682   # Broken: success on invalid input.
7683 continue
7684 else
7685   # Passes both tests.
7686 ac_preproc_ok=:
7687 break
7688 fi
7689 rm -f conftest.err conftest.i conftest.$ac_ext
7690
7691 done
7692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7693 rm -f conftest.i conftest.err conftest.$ac_ext
7694 if $ac_preproc_ok; then :
7695   break
7696 fi
7697
7698     done
7699     ac_cv_prog_CPP=$CPP
7700
7701 fi
7702   CPP=$ac_cv_prog_CPP
7703 else
7704   ac_cv_prog_CPP=$CPP
7705 fi
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7707 $as_echo "$CPP" >&6; }
7708 ac_preproc_ok=false
7709 for ac_c_preproc_warn_flag in '' yes
7710 do
7711   # Use a header file that comes with gcc, so configuring glibc
7712   # with a fresh cross-compiler works.
7713   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7714   # <limits.h> exists even on freestanding compilers.
7715   # On the NeXT, cc -E runs the code through the compiler's parser,
7716   # not just through cpp. "Syntax error" is here to catch this case.
7717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h.  */
7719 #ifdef __STDC__
7720 # include <limits.h>
7721 #else
7722 # include <assert.h>
7723 #endif
7724                      Syntax error
7725 _ACEOF
7726 if ac_fn_c_try_cpp "$LINENO"; then :
7727
7728 else
7729   # Broken: fails on valid input.
7730 continue
7731 fi
7732 rm -f conftest.err conftest.i conftest.$ac_ext
7733
7734   # OK, works on sane cases.  Now check whether nonexistent headers
7735   # can be detected and how.
7736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h.  */
7738 #include <ac_nonexistent.h>
7739 _ACEOF
7740 if ac_fn_c_try_cpp "$LINENO"; then :
7741   # Broken: success on invalid input.
7742 continue
7743 else
7744   # Passes both tests.
7745 ac_preproc_ok=:
7746 break
7747 fi
7748 rm -f conftest.err conftest.i conftest.$ac_ext
7749
7750 done
7751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7752 rm -f conftest.i conftest.err conftest.$ac_ext
7753 if $ac_preproc_ok; then :
7754
7755 else
7756   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7758 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7759 See \`config.log' for more details" "$LINENO" 5; }
7760 fi
7761
7762 ac_ext=c
7763 ac_cpp='$CPP $CPPFLAGS'
7764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7767
7768
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7770 $as_echo_n "checking for ANSI C header files... " >&6; }
7771 if ${ac_cv_header_stdc+:} false; then :
7772   $as_echo_n "(cached) " >&6
7773 else
7774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h.  */
7776 #include <stdlib.h>
7777 #include <stdarg.h>
7778 #include <string.h>
7779 #include <float.h>
7780
7781 int
7782 main ()
7783 {
7784
7785   ;
7786   return 0;
7787 }
7788 _ACEOF
7789 if ac_fn_c_try_compile "$LINENO"; then :
7790   ac_cv_header_stdc=yes
7791 else
7792   ac_cv_header_stdc=no
7793 fi
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795
7796 if test $ac_cv_header_stdc = yes; then
7797   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h.  */
7800 #include <string.h>
7801
7802 _ACEOF
7803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7804   $EGREP "memchr" >/dev/null 2>&1; then :
7805
7806 else
7807   ac_cv_header_stdc=no
7808 fi
7809 rm -f conftest*
7810
7811 fi
7812
7813 if test $ac_cv_header_stdc = yes; then
7814   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h.  */
7817 #include <stdlib.h>
7818
7819 _ACEOF
7820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7821   $EGREP "free" >/dev/null 2>&1; then :
7822
7823 else
7824   ac_cv_header_stdc=no
7825 fi
7826 rm -f conftest*
7827
7828 fi
7829
7830 if test $ac_cv_header_stdc = yes; then
7831   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7832   if test "$cross_compiling" = yes; then :
7833   :
7834 else
7835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h.  */
7837 #include <ctype.h>
7838 #include <stdlib.h>
7839 #if ((' ' & 0x0FF) == 0x020)
7840 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7841 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7842 #else
7843 # define ISLOWER(c) \
7844                    (('a' <= (c) && (c) <= 'i') \
7845                      || ('j' <= (c) && (c) <= 'r') \
7846                      || ('s' <= (c) && (c) <= 'z'))
7847 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7848 #endif
7849
7850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7851 int
7852 main ()
7853 {
7854   int i;
7855   for (i = 0; i < 256; i++)
7856     if (XOR (islower (i), ISLOWER (i))
7857         || toupper (i) != TOUPPER (i))
7858       return 2;
7859   return 0;
7860 }
7861 _ACEOF
7862 if ac_fn_c_try_run "$LINENO"; then :
7863
7864 else
7865   ac_cv_header_stdc=no
7866 fi
7867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7868   conftest.$ac_objext conftest.beam conftest.$ac_ext
7869 fi
7870
7871 fi
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7874 $as_echo "$ac_cv_header_stdc" >&6; }
7875 if test $ac_cv_header_stdc = yes; then
7876
7877 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7878
7879 fi
7880
7881 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7882 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7883                   inttypes.h stdint.h unistd.h
7884 do :
7885   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7886 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7887 "
7888 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7889   cat >>confdefs.h <<_ACEOF
7890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7891 _ACEOF
7892
7893 fi
7894
7895 done
7896
7897
7898 for ac_header in dlfcn.h
7899 do :
7900   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7901 "
7902 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7903   cat >>confdefs.h <<_ACEOF
7904 #define HAVE_DLFCN_H 1
7905 _ACEOF
7906
7907 fi
7908
7909 done
7910
7911
7912
7913
7914
7915 # Set options
7916
7917
7918
7919         enable_dlopen=no
7920
7921
7922   enable_win32_dll=no
7923
7924
7925             # Check whether --enable-shared was given.
7926 if test "${enable_shared+set}" = set; then :
7927   enableval=$enable_shared; p=${PACKAGE-default}
7928     case $enableval in
7929     yes) enable_shared=yes ;;
7930     no) enable_shared=no ;;
7931     *)
7932       enable_shared=no
7933       # Look at the argument we got.  We use all the common list separators.
7934       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7935       for pkg in $enableval; do
7936         IFS="$lt_save_ifs"
7937         if test "X$pkg" = "X$p"; then
7938           enable_shared=yes
7939         fi
7940       done
7941       IFS="$lt_save_ifs"
7942       ;;
7943     esac
7944 else
7945   enable_shared=yes
7946 fi
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958 # Check whether --with-pic was given.
7959 if test "${with_pic+set}" = set; then :
7960   withval=$with_pic; pic_mode="$withval"
7961 else
7962   pic_mode=default
7963 fi
7964
7965
7966 test -z "$pic_mode" && pic_mode=default
7967
7968
7969
7970
7971
7972
7973
7974   # Check whether --enable-fast-install was given.
7975 if test "${enable_fast_install+set}" = set; then :
7976   enableval=$enable_fast_install; p=${PACKAGE-default}
7977     case $enableval in
7978     yes) enable_fast_install=yes ;;
7979     no) enable_fast_install=no ;;
7980     *)
7981       enable_fast_install=no
7982       # Look at the argument we got.  We use all the common list separators.
7983       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7984       for pkg in $enableval; do
7985         IFS="$lt_save_ifs"
7986         if test "X$pkg" = "X$p"; then
7987           enable_fast_install=yes
7988         fi
7989       done
7990       IFS="$lt_save_ifs"
7991       ;;
7992     esac
7993 else
7994   enable_fast_install=yes
7995 fi
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007 # This can be used to rebuild libtool when needed
8008 LIBTOOL_DEPS="$ltmain"
8009
8010 # Always use our own libtool.
8011 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 test -z "$LN_S" && LN_S="ln -s"
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053 if test -n "${ZSH_VERSION+set}" ; then
8054    setopt NO_GLOB_SUBST
8055 fi
8056
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8058 $as_echo_n "checking for objdir... " >&6; }
8059 if ${lt_cv_objdir+:} false; then :
8060   $as_echo_n "(cached) " >&6
8061 else
8062   rm -f .libs 2>/dev/null
8063 mkdir .libs 2>/dev/null
8064 if test -d .libs; then
8065   lt_cv_objdir=.libs
8066 else
8067   # MS-DOS does not allow filenames that begin with a dot.
8068   lt_cv_objdir=_libs
8069 fi
8070 rmdir .libs 2>/dev/null
8071 fi
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8073 $as_echo "$lt_cv_objdir" >&6; }
8074 objdir=$lt_cv_objdir
8075
8076
8077
8078
8079
8080 cat >>confdefs.h <<_ACEOF
8081 #define LT_OBJDIR "$lt_cv_objdir/"
8082 _ACEOF
8083
8084
8085
8086
8087 case $host_os in
8088 aix3*)
8089   # AIX sometimes has problems with the GCC collect2 program.  For some
8090   # reason, if we set the COLLECT_NAMES environment variable, the problems
8091   # vanish in a puff of smoke.
8092   if test "X${COLLECT_NAMES+set}" != Xset; then
8093     COLLECT_NAMES=
8094     export COLLECT_NAMES
8095   fi
8096   ;;
8097 esac
8098
8099 # Global variables:
8100 ofile=libtool
8101 can_build_shared=yes
8102
8103 # All known linkers require a `.a' archive for static linking (except MSVC,
8104 # which needs '.lib').
8105 libext=a
8106
8107 with_gnu_ld="$lt_cv_prog_gnu_ld"
8108
8109 old_CC="$CC"
8110 old_CFLAGS="$CFLAGS"
8111
8112 # Set sane defaults for various variables
8113 test -z "$CC" && CC=cc
8114 test -z "$LTCC" && LTCC=$CC
8115 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8116 test -z "$LD" && LD=ld
8117 test -z "$ac_objext" && ac_objext=o
8118
8119 for cc_temp in $compiler""; do
8120   case $cc_temp in
8121     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8122     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8123     \-*) ;;
8124     *) break;;
8125   esac
8126 done
8127 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8128
8129
8130 # Only perform the check for file, if the check method requires it
8131 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8132 case $deplibs_check_method in
8133 file_magic*)
8134   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8135     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8136 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8137 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8138   $as_echo_n "(cached) " >&6
8139 else
8140   case $MAGIC_CMD in
8141 [\\/*] |  ?:[\\/]*)
8142   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8143   ;;
8144 *)
8145   lt_save_MAGIC_CMD="$MAGIC_CMD"
8146   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8147   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8148   for ac_dir in $ac_dummy; do
8149     IFS="$lt_save_ifs"
8150     test -z "$ac_dir" && ac_dir=.
8151     if test -f $ac_dir/${ac_tool_prefix}file; then
8152       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8153       if test -n "$file_magic_test_file"; then
8154         case $deplibs_check_method in
8155         "file_magic "*)
8156           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8157           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8158           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8159             $EGREP "$file_magic_regex" > /dev/null; then
8160             :
8161           else
8162             cat <<_LT_EOF 1>&2
8163
8164 *** Warning: the command libtool uses to detect shared libraries,
8165 *** $file_magic_cmd, produces output that libtool cannot recognize.
8166 *** The result is that libtool may fail to recognize shared libraries
8167 *** as such.  This will affect the creation of libtool libraries that
8168 *** depend on shared libraries, but programs linked with such libtool
8169 *** libraries will work regardless of this problem.  Nevertheless, you
8170 *** may want to report the problem to your system manager and/or to
8171 *** bug-libtool@gnu.org
8172
8173 _LT_EOF
8174           fi ;;
8175         esac
8176       fi
8177       break
8178     fi
8179   done
8180   IFS="$lt_save_ifs"
8181   MAGIC_CMD="$lt_save_MAGIC_CMD"
8182   ;;
8183 esac
8184 fi
8185
8186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8187 if test -n "$MAGIC_CMD"; then
8188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8189 $as_echo "$MAGIC_CMD" >&6; }
8190 else
8191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8193 fi
8194
8195
8196
8197
8198
8199 if test -z "$lt_cv_path_MAGIC_CMD"; then
8200   if test -n "$ac_tool_prefix"; then
8201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8202 $as_echo_n "checking for file... " >&6; }
8203 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8204   $as_echo_n "(cached) " >&6
8205 else
8206   case $MAGIC_CMD in
8207 [\\/*] |  ?:[\\/]*)
8208   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8209   ;;
8210 *)
8211   lt_save_MAGIC_CMD="$MAGIC_CMD"
8212   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8213   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8214   for ac_dir in $ac_dummy; do
8215     IFS="$lt_save_ifs"
8216     test -z "$ac_dir" && ac_dir=.
8217     if test -f $ac_dir/file; then
8218       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8219       if test -n "$file_magic_test_file"; then
8220         case $deplibs_check_method in
8221         "file_magic "*)
8222           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8223           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8224           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8225             $EGREP "$file_magic_regex" > /dev/null; then
8226             :
8227           else
8228             cat <<_LT_EOF 1>&2
8229
8230 *** Warning: the command libtool uses to detect shared libraries,
8231 *** $file_magic_cmd, produces output that libtool cannot recognize.
8232 *** The result is that libtool may fail to recognize shared libraries
8233 *** as such.  This will affect the creation of libtool libraries that
8234 *** depend on shared libraries, but programs linked with such libtool
8235 *** libraries will work regardless of this problem.  Nevertheless, you
8236 *** may want to report the problem to your system manager and/or to
8237 *** bug-libtool@gnu.org
8238
8239 _LT_EOF
8240           fi ;;
8241         esac
8242       fi
8243       break
8244     fi
8245   done
8246   IFS="$lt_save_ifs"
8247   MAGIC_CMD="$lt_save_MAGIC_CMD"
8248   ;;
8249 esac
8250 fi
8251
8252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8253 if test -n "$MAGIC_CMD"; then
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8255 $as_echo "$MAGIC_CMD" >&6; }
8256 else
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8259 fi
8260
8261
8262   else
8263     MAGIC_CMD=:
8264   fi
8265 fi
8266
8267   fi
8268   ;;
8269 esac
8270
8271 # Use C for the default configuration in the libtool script
8272
8273 lt_save_CC="$CC"
8274 ac_ext=c
8275 ac_cpp='$CPP $CPPFLAGS'
8276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8279
8280
8281 # Source file extension for C test sources.
8282 ac_ext=c
8283
8284 # Object file extension for compiled C test sources.
8285 objext=o
8286 objext=$objext
8287
8288 # Code to be used in simple compile tests
8289 lt_simple_compile_test_code="int some_variable = 0;"
8290
8291 # Code to be used in simple link tests
8292 lt_simple_link_test_code='int main(){return(0);}'
8293
8294
8295
8296
8297
8298
8299
8300 # If no C compiler was specified, use CC.
8301 LTCC=${LTCC-"$CC"}
8302
8303 # If no C compiler flags were specified, use CFLAGS.
8304 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8305
8306 # Allow CC to be a program name with arguments.
8307 compiler=$CC
8308
8309 # Save the default compiler, since it gets overwritten when the other
8310 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8311 compiler_DEFAULT=$CC
8312
8313 # save warnings/boilerplate of simple test code
8314 ac_outfile=conftest.$ac_objext
8315 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8316 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8317 _lt_compiler_boilerplate=`cat conftest.err`
8318 $RM conftest*
8319
8320 ac_outfile=conftest.$ac_objext
8321 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8322 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8323 _lt_linker_boilerplate=`cat conftest.err`
8324 $RM -r conftest*
8325
8326
8327 ## CAVEAT EMPTOR:
8328 ## There is no encapsulation within the following macros, do not change
8329 ## the running order or otherwise move them around unless you know exactly
8330 ## what you are doing...
8331 if test -n "$compiler"; then
8332
8333 lt_prog_compiler_no_builtin_flag=
8334
8335 if test "$GCC" = yes; then
8336   case $cc_basename in
8337   nvcc*)
8338     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8339   *)
8340     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8341   esac
8342
8343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8344 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8345 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8346   $as_echo_n "(cached) " >&6
8347 else
8348   lt_cv_prog_compiler_rtti_exceptions=no
8349    ac_outfile=conftest.$ac_objext
8350    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8351    lt_compiler_flag="-fno-rtti -fno-exceptions"
8352    # Insert the option either (1) after the last *FLAGS variable, or
8353    # (2) before a word containing "conftest.", or (3) at the end.
8354    # Note that $ac_compile itself does not contain backslashes and begins
8355    # with a dollar sign (not a hyphen), so the echo should work correctly.
8356    # The option is referenced via a variable to avoid confusing sed.
8357    lt_compile=`echo "$ac_compile" | $SED \
8358    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8359    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8360    -e 's:$: $lt_compiler_flag:'`
8361    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8362    (eval "$lt_compile" 2>conftest.err)
8363    ac_status=$?
8364    cat conftest.err >&5
8365    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366    if (exit $ac_status) && test -s "$ac_outfile"; then
8367      # The compiler can only warn and ignore the option if not recognized
8368      # So say no if there are warnings other than the usual output.
8369      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8370      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8371      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8372        lt_cv_prog_compiler_rtti_exceptions=yes
8373      fi
8374    fi
8375    $RM conftest*
8376
8377 fi
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8379 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8380
8381 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8382     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8383 else
8384     :
8385 fi
8386
8387 fi
8388
8389
8390
8391
8392
8393
8394   lt_prog_compiler_wl=
8395 lt_prog_compiler_pic=
8396 lt_prog_compiler_static=
8397
8398
8399   if test "$GCC" = yes; then
8400     lt_prog_compiler_wl='-Wl,'
8401     lt_prog_compiler_static='-static'
8402
8403     case $host_os in
8404       aix*)
8405       # All AIX code is PIC.
8406       if test "$host_cpu" = ia64; then
8407         # AIX 5 now supports IA64 processor
8408         lt_prog_compiler_static='-Bstatic'
8409       fi
8410       ;;
8411
8412     amigaos*)
8413       case $host_cpu in
8414       powerpc)
8415             # see comment about AmigaOS4 .so support
8416             lt_prog_compiler_pic='-fPIC'
8417         ;;
8418       m68k)
8419             # FIXME: we need at least 68020 code to build shared libraries, but
8420             # adding the `-m68020' flag to GCC prevents building anything better,
8421             # like `-m68040'.
8422             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8423         ;;
8424       esac
8425       ;;
8426
8427     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8428       # PIC is the default for these OSes.
8429       ;;
8430
8431     mingw* | cygwin* | pw32* | os2* | cegcc*)
8432       # This hack is so that the source file can tell whether it is being
8433       # built for inclusion in a dll (and should export symbols for example).
8434       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8435       # (--disable-auto-import) libraries
8436       lt_prog_compiler_pic='-DDLL_EXPORT'
8437       ;;
8438
8439     darwin* | rhapsody*)
8440       # PIC is the default on this platform
8441       # Common symbols not allowed in MH_DYLIB files
8442       lt_prog_compiler_pic='-fno-common'
8443       ;;
8444
8445     haiku*)
8446       # PIC is the default for Haiku.
8447       # The "-static" flag exists, but is broken.
8448       lt_prog_compiler_static=
8449       ;;
8450
8451     hpux*)
8452       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8453       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8454       # sets the default TLS model and affects inlining.
8455       case $host_cpu in
8456       hppa*64*)
8457         # +Z the default
8458         ;;
8459       *)
8460         lt_prog_compiler_pic='-fPIC'
8461         ;;
8462       esac
8463       ;;
8464
8465     interix[3-9]*)
8466       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8467       # Instead, we relocate shared libraries at runtime.
8468       ;;
8469
8470     msdosdjgpp*)
8471       # Just because we use GCC doesn't mean we suddenly get shared libraries
8472       # on systems that don't support them.
8473       lt_prog_compiler_can_build_shared=no
8474       enable_shared=no
8475       ;;
8476
8477     *nto* | *qnx*)
8478       # QNX uses GNU C++, but need to define -shared option too, otherwise
8479       # it will coredump.
8480       lt_prog_compiler_pic='-fPIC -shared'
8481       ;;
8482
8483     sysv4*MP*)
8484       if test -d /usr/nec; then
8485         lt_prog_compiler_pic=-Kconform_pic
8486       fi
8487       ;;
8488
8489     *)
8490       lt_prog_compiler_pic='-fPIC'
8491       ;;
8492     esac
8493
8494     case $cc_basename in
8495     nvcc*) # Cuda Compiler Driver 2.2
8496       lt_prog_compiler_wl='-Xlinker '
8497       lt_prog_compiler_pic='-Xcompiler -fPIC'
8498       ;;
8499     esac
8500   else
8501     # PORTME Check for flag to pass linker flags through the system compiler.
8502     case $host_os in
8503     aix*)
8504       lt_prog_compiler_wl='-Wl,'
8505       if test "$host_cpu" = ia64; then
8506         # AIX 5 now supports IA64 processor
8507         lt_prog_compiler_static='-Bstatic'
8508       else
8509         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8510       fi
8511       ;;
8512
8513     mingw* | cygwin* | pw32* | os2* | cegcc*)
8514       # This hack is so that the source file can tell whether it is being
8515       # built for inclusion in a dll (and should export symbols for example).
8516       lt_prog_compiler_pic='-DDLL_EXPORT'
8517       ;;
8518
8519     hpux9* | hpux10* | hpux11*)
8520       lt_prog_compiler_wl='-Wl,'
8521       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8522       # not for PA HP-UX.
8523       case $host_cpu in
8524       hppa*64*|ia64*)
8525         # +Z the default
8526         ;;
8527       *)
8528         lt_prog_compiler_pic='+Z'
8529         ;;
8530       esac
8531       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8532       lt_prog_compiler_static='${wl}-a ${wl}archive'
8533       ;;
8534
8535     irix5* | irix6* | nonstopux*)
8536       lt_prog_compiler_wl='-Wl,'
8537       # PIC (with -KPIC) is the default.
8538       lt_prog_compiler_static='-non_shared'
8539       ;;
8540
8541     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8542       case $cc_basename in
8543       # old Intel for x86_64 which still supported -KPIC.
8544       ecc*)
8545         lt_prog_compiler_wl='-Wl,'
8546         lt_prog_compiler_pic='-KPIC'
8547         lt_prog_compiler_static='-static'
8548         ;;
8549       # icc used to be incompatible with GCC.
8550       # ICC 10 doesn't accept -KPIC any more.
8551       icc* | ifort*)
8552         lt_prog_compiler_wl='-Wl,'
8553         lt_prog_compiler_pic='-fPIC'
8554         lt_prog_compiler_static='-static'
8555         ;;
8556       # Lahey Fortran 8.1.
8557       lf95*)
8558         lt_prog_compiler_wl='-Wl,'
8559         lt_prog_compiler_pic='--shared'
8560         lt_prog_compiler_static='--static'
8561         ;;
8562       nagfor*)
8563         # NAG Fortran compiler
8564         lt_prog_compiler_wl='-Wl,-Wl,,'
8565         lt_prog_compiler_pic='-PIC'
8566         lt_prog_compiler_static='-Bstatic'
8567         ;;
8568       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8569         # Portland Group compilers (*not* the Pentium gcc compiler,
8570         # which looks to be a dead project)
8571         lt_prog_compiler_wl='-Wl,'
8572         lt_prog_compiler_pic='-fpic'
8573         lt_prog_compiler_static='-Bstatic'
8574         ;;
8575       ccc*)
8576         lt_prog_compiler_wl='-Wl,'
8577         # All Alpha code is PIC.
8578         lt_prog_compiler_static='-non_shared'
8579         ;;
8580       xl* | bgxl* | bgf* | mpixl*)
8581         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8582         lt_prog_compiler_wl='-Wl,'
8583         lt_prog_compiler_pic='-qpic'
8584         lt_prog_compiler_static='-qstaticlink'
8585         ;;
8586       *)
8587         case `$CC -V 2>&1 | sed 5q` in
8588         *Sun\ F* | *Sun*Fortran*)
8589           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8590           lt_prog_compiler_pic='-KPIC'
8591           lt_prog_compiler_static='-Bstatic'
8592           lt_prog_compiler_wl=''
8593           ;;
8594         *Sun\ C*)
8595           # Sun C 5.9
8596           lt_prog_compiler_pic='-KPIC'
8597           lt_prog_compiler_static='-Bstatic'
8598           lt_prog_compiler_wl='-Wl,'
8599           ;;
8600         esac
8601         ;;
8602       esac
8603       ;;
8604
8605     newsos6)
8606       lt_prog_compiler_pic='-KPIC'
8607       lt_prog_compiler_static='-Bstatic'
8608       ;;
8609
8610     *nto* | *qnx*)
8611       # QNX uses GNU C++, but need to define -shared option too, otherwise
8612       # it will coredump.
8613       lt_prog_compiler_pic='-fPIC -shared'
8614       ;;
8615
8616     osf3* | osf4* | osf5*)
8617       lt_prog_compiler_wl='-Wl,'
8618       # All OSF/1 code is PIC.
8619       lt_prog_compiler_static='-non_shared'
8620       ;;
8621
8622     rdos*)
8623       lt_prog_compiler_static='-non_shared'
8624       ;;
8625
8626     solaris*)
8627       lt_prog_compiler_pic='-KPIC'
8628       lt_prog_compiler_static='-Bstatic'
8629       case $cc_basename in
8630       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8631         lt_prog_compiler_wl='-Qoption ld ';;
8632       *)
8633         lt_prog_compiler_wl='-Wl,';;
8634       esac
8635       ;;
8636
8637     sunos4*)
8638       lt_prog_compiler_wl='-Qoption ld '
8639       lt_prog_compiler_pic='-PIC'
8640       lt_prog_compiler_static='-Bstatic'
8641       ;;
8642
8643     sysv4 | sysv4.2uw2* | sysv4.3*)
8644       lt_prog_compiler_wl='-Wl,'
8645       lt_prog_compiler_pic='-KPIC'
8646       lt_prog_compiler_static='-Bstatic'
8647       ;;
8648
8649     sysv4*MP*)
8650       if test -d /usr/nec ;then
8651         lt_prog_compiler_pic='-Kconform_pic'
8652         lt_prog_compiler_static='-Bstatic'
8653       fi
8654       ;;
8655
8656     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8657       lt_prog_compiler_wl='-Wl,'
8658       lt_prog_compiler_pic='-KPIC'
8659       lt_prog_compiler_static='-Bstatic'
8660       ;;
8661
8662     unicos*)
8663       lt_prog_compiler_wl='-Wl,'
8664       lt_prog_compiler_can_build_shared=no
8665       ;;
8666
8667     uts4*)
8668       lt_prog_compiler_pic='-pic'
8669       lt_prog_compiler_static='-Bstatic'
8670       ;;
8671
8672     *)
8673       lt_prog_compiler_can_build_shared=no
8674       ;;
8675     esac
8676   fi
8677
8678 case $host_os in
8679   # For platforms which do not support PIC, -DPIC is meaningless:
8680   *djgpp*)
8681     lt_prog_compiler_pic=
8682     ;;
8683   *)
8684     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8685     ;;
8686 esac
8687
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8689 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8690 if ${lt_cv_prog_compiler_pic+:} false; then :
8691   $as_echo_n "(cached) " >&6
8692 else
8693   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8694 fi
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8696 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8697 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8698
8699 #
8700 # Check to make sure the PIC flag actually works.
8701 #
8702 if test -n "$lt_prog_compiler_pic"; then
8703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8704 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8705 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8706   $as_echo_n "(cached) " >&6
8707 else
8708   lt_cv_prog_compiler_pic_works=no
8709    ac_outfile=conftest.$ac_objext
8710    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8711    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8712    # Insert the option either (1) after the last *FLAGS variable, or
8713    # (2) before a word containing "conftest.", or (3) at the end.
8714    # Note that $ac_compile itself does not contain backslashes and begins
8715    # with a dollar sign (not a hyphen), so the echo should work correctly.
8716    # The option is referenced via a variable to avoid confusing sed.
8717    lt_compile=`echo "$ac_compile" | $SED \
8718    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8719    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8720    -e 's:$: $lt_compiler_flag:'`
8721    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8722    (eval "$lt_compile" 2>conftest.err)
8723    ac_status=$?
8724    cat conftest.err >&5
8725    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726    if (exit $ac_status) && test -s "$ac_outfile"; then
8727      # The compiler can only warn and ignore the option if not recognized
8728      # So say no if there are warnings other than the usual output.
8729      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8730      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8731      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8732        lt_cv_prog_compiler_pic_works=yes
8733      fi
8734    fi
8735    $RM conftest*
8736
8737 fi
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8739 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8740
8741 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8742     case $lt_prog_compiler_pic in
8743      "" | " "*) ;;
8744      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8745      esac
8746 else
8747     lt_prog_compiler_pic=
8748      lt_prog_compiler_can_build_shared=no
8749 fi
8750
8751 fi
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763 #
8764 # Check to make sure the static flag actually works.
8765 #
8766 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8768 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8769 if ${lt_cv_prog_compiler_static_works+:} false; then :
8770   $as_echo_n "(cached) " >&6
8771 else
8772   lt_cv_prog_compiler_static_works=no
8773    save_LDFLAGS="$LDFLAGS"
8774    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8775    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8776    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8777      # The linker can only warn and ignore the option if not recognized
8778      # So say no if there are warnings
8779      if test -s conftest.err; then
8780        # Append any errors to the config.log.
8781        cat conftest.err 1>&5
8782        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8783        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8784        if diff conftest.exp conftest.er2 >/dev/null; then
8785          lt_cv_prog_compiler_static_works=yes
8786        fi
8787      else
8788        lt_cv_prog_compiler_static_works=yes
8789      fi
8790    fi
8791    $RM -r conftest*
8792    LDFLAGS="$save_LDFLAGS"
8793
8794 fi
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8796 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8797
8798 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8799     :
8800 else
8801     lt_prog_compiler_static=
8802 fi
8803
8804
8805
8806
8807
8808
8809
8810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8811 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8812 if ${lt_cv_prog_compiler_c_o+:} false; then :
8813   $as_echo_n "(cached) " >&6
8814 else
8815   lt_cv_prog_compiler_c_o=no
8816    $RM -r conftest 2>/dev/null
8817    mkdir conftest
8818    cd conftest
8819    mkdir out
8820    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8821
8822    lt_compiler_flag="-o out/conftest2.$ac_objext"
8823    # Insert the option either (1) after the last *FLAGS variable, or
8824    # (2) before a word containing "conftest.", or (3) at the end.
8825    # Note that $ac_compile itself does not contain backslashes and begins
8826    # with a dollar sign (not a hyphen), so the echo should work correctly.
8827    lt_compile=`echo "$ac_compile" | $SED \
8828    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8829    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8830    -e 's:$: $lt_compiler_flag:'`
8831    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8832    (eval "$lt_compile" 2>out/conftest.err)
8833    ac_status=$?
8834    cat out/conftest.err >&5
8835    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8837    then
8838      # The compiler can only warn and ignore the option if not recognized
8839      # So say no if there are warnings
8840      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8841      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8842      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8843        lt_cv_prog_compiler_c_o=yes
8844      fi
8845    fi
8846    chmod u+w . 2>&5
8847    $RM conftest*
8848    # SGI C++ compiler will create directory out/ii_files/ for
8849    # template instantiation
8850    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8851    $RM out/* && rmdir out
8852    cd ..
8853    $RM -r conftest
8854    $RM conftest*
8855
8856 fi
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8858 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8859
8860
8861
8862
8863
8864
8865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8866 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8867 if ${lt_cv_prog_compiler_c_o+:} false; then :
8868   $as_echo_n "(cached) " >&6
8869 else
8870   lt_cv_prog_compiler_c_o=no
8871    $RM -r conftest 2>/dev/null
8872    mkdir conftest
8873    cd conftest
8874    mkdir out
8875    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8876
8877    lt_compiler_flag="-o out/conftest2.$ac_objext"
8878    # Insert the option either (1) after the last *FLAGS variable, or
8879    # (2) before a word containing "conftest.", or (3) at the end.
8880    # Note that $ac_compile itself does not contain backslashes and begins
8881    # with a dollar sign (not a hyphen), so the echo should work correctly.
8882    lt_compile=`echo "$ac_compile" | $SED \
8883    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8884    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8885    -e 's:$: $lt_compiler_flag:'`
8886    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8887    (eval "$lt_compile" 2>out/conftest.err)
8888    ac_status=$?
8889    cat out/conftest.err >&5
8890    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8892    then
8893      # The compiler can only warn and ignore the option if not recognized
8894      # So say no if there are warnings
8895      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8896      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8897      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8898        lt_cv_prog_compiler_c_o=yes
8899      fi
8900    fi
8901    chmod u+w . 2>&5
8902    $RM conftest*
8903    # SGI C++ compiler will create directory out/ii_files/ for
8904    # template instantiation
8905    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8906    $RM out/* && rmdir out
8907    cd ..
8908    $RM -r conftest
8909    $RM conftest*
8910
8911 fi
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8913 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8914
8915
8916
8917
8918 hard_links="nottested"
8919 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8920   # do not overwrite the value of need_locks provided by the user
8921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8922 $as_echo_n "checking if we can lock with hard links... " >&6; }
8923   hard_links=yes
8924   $RM conftest*
8925   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8926   touch conftest.a
8927   ln conftest.a conftest.b 2>&5 || hard_links=no
8928   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8930 $as_echo "$hard_links" >&6; }
8931   if test "$hard_links" = no; then
8932     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8933 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8934     need_locks=warn
8935   fi
8936 else
8937   need_locks=no
8938 fi
8939
8940
8941
8942
8943
8944
8945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8946 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8947
8948   runpath_var=
8949   allow_undefined_flag=
8950   always_export_symbols=no
8951   archive_cmds=
8952   archive_expsym_cmds=
8953   compiler_needs_object=no
8954   enable_shared_with_static_runtimes=no
8955   export_dynamic_flag_spec=
8956   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8957   hardcode_automatic=no
8958   hardcode_direct=no
8959   hardcode_direct_absolute=no
8960   hardcode_libdir_flag_spec=
8961   hardcode_libdir_flag_spec_ld=
8962   hardcode_libdir_separator=
8963   hardcode_minus_L=no
8964   hardcode_shlibpath_var=unsupported
8965   inherit_rpath=no
8966   link_all_deplibs=unknown
8967   module_cmds=
8968   module_expsym_cmds=
8969   old_archive_from_new_cmds=
8970   old_archive_from_expsyms_cmds=
8971   thread_safe_flag_spec=
8972   whole_archive_flag_spec=
8973   # include_expsyms should be a list of space-separated symbols to be *always*
8974   # included in the symbol list
8975   include_expsyms=
8976   # exclude_expsyms can be an extended regexp of symbols to exclude
8977   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8978   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8979   # as well as any symbol that contains `d'.
8980   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8981   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8982   # platforms (ab)use it in PIC code, but their linkers get confused if
8983   # the symbol is explicitly referenced.  Since portable code cannot
8984   # rely on this symbol name, it's probably fine to never include it in
8985   # preloaded symbol tables.
8986   # Exclude shared library initialization/finalization symbols.
8987   extract_expsyms_cmds=
8988
8989   case $host_os in
8990   cygwin* | mingw* | pw32* | cegcc*)
8991     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8992     # When not using gcc, we currently assume that we are using
8993     # Microsoft Visual C++.
8994     if test "$GCC" != yes; then
8995       with_gnu_ld=no
8996     fi
8997     ;;
8998   interix*)
8999     # we just hope/assume this is gcc and not c89 (= MSVC++)
9000     with_gnu_ld=yes
9001     ;;
9002   openbsd*)
9003     with_gnu_ld=no
9004     ;;
9005   esac
9006
9007   ld_shlibs=yes
9008
9009   # On some targets, GNU ld is compatible enough with the native linker
9010   # that we're better off using the native interface for both.
9011   lt_use_gnu_ld_interface=no
9012   if test "$with_gnu_ld" = yes; then
9013     case $host_os in
9014       aix*)
9015         # The AIX port of GNU ld has always aspired to compatibility
9016         # with the native linker.  However, as the warning in the GNU ld
9017         # block says, versions before 2.19.5* couldn't really create working
9018         # shared libraries, regardless of the interface used.
9019         case `$LD -v 2>&1` in
9020           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9021           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9022           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9023           *)
9024             lt_use_gnu_ld_interface=yes
9025             ;;
9026         esac
9027         ;;
9028       *)
9029         lt_use_gnu_ld_interface=yes
9030         ;;
9031     esac
9032   fi
9033
9034   if test "$lt_use_gnu_ld_interface" = yes; then
9035     # If archive_cmds runs LD, not CC, wlarc should be empty
9036     wlarc='${wl}'
9037
9038     # Set some defaults for GNU ld with shared library support. These
9039     # are reset later if shared libraries are not supported. Putting them
9040     # here allows them to be overridden if necessary.
9041     runpath_var=LD_RUN_PATH
9042     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9043     export_dynamic_flag_spec='${wl}--export-dynamic'
9044     # ancient GNU ld didn't support --whole-archive et. al.
9045     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9046       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9047     else
9048       whole_archive_flag_spec=
9049     fi
9050     supports_anon_versioning=no
9051     case `$LD -v 2>&1` in
9052       *GNU\ gold*) supports_anon_versioning=yes ;;
9053       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9054       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9055       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9056       *\ 2.11.*) ;; # other 2.11 versions
9057       *) supports_anon_versioning=yes ;;
9058     esac
9059
9060     # See if GNU ld supports shared libraries.
9061     case $host_os in
9062     aix[3-9]*)
9063       # On AIX/PPC, the GNU linker is very broken
9064       if test "$host_cpu" != ia64; then
9065         ld_shlibs=no
9066         cat <<_LT_EOF 1>&2
9067
9068 *** Warning: the GNU linker, at least up to release 2.19, is reported
9069 *** to be unable to reliably create shared libraries on AIX.
9070 *** Therefore, libtool is disabling shared libraries support.  If you
9071 *** really care for shared libraries, you may want to install binutils
9072 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9073 *** You will then need to restart the configuration process.
9074
9075 _LT_EOF
9076       fi
9077       ;;
9078
9079     amigaos*)
9080       case $host_cpu in
9081       powerpc)
9082             # see comment about AmigaOS4 .so support
9083             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9084             archive_expsym_cmds=''
9085         ;;
9086       m68k)
9087             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)'
9088             hardcode_libdir_flag_spec='-L$libdir'
9089             hardcode_minus_L=yes
9090         ;;
9091       esac
9092       ;;
9093
9094     beos*)
9095       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9096         allow_undefined_flag=unsupported
9097         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9098         # support --undefined.  This deserves some investigation.  FIXME
9099         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9100       else
9101         ld_shlibs=no
9102       fi
9103       ;;
9104
9105     cygwin* | mingw* | pw32* | cegcc*)
9106       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9107       # as there is no search path for DLLs.
9108       hardcode_libdir_flag_spec='-L$libdir'
9109       export_dynamic_flag_spec='${wl}--export-all-symbols'
9110       allow_undefined_flag=unsupported
9111       always_export_symbols=no
9112       enable_shared_with_static_runtimes=yes
9113       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9114       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9115
9116       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9117         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9118         # If the export-symbols file already is a .def file (1st line
9119         # is EXPORTS), use it as is; otherwise, prepend...
9120         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9121           cp $export_symbols $output_objdir/$soname.def;
9122         else
9123           echo EXPORTS > $output_objdir/$soname.def;
9124           cat $export_symbols >> $output_objdir/$soname.def;
9125         fi~
9126         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9127       else
9128         ld_shlibs=no
9129       fi
9130       ;;
9131
9132     haiku*)
9133       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9134       link_all_deplibs=yes
9135       ;;
9136
9137     interix[3-9]*)
9138       hardcode_direct=no
9139       hardcode_shlibpath_var=no
9140       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9141       export_dynamic_flag_spec='${wl}-E'
9142       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9143       # Instead, shared libraries are loaded at an image base (0x10000000 by
9144       # default) and relocated if they conflict, which is a slow very memory
9145       # consuming and fragmenting process.  To avoid this, we pick a random,
9146       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9147       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9148       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9149       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9150       ;;
9151
9152     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9153       tmp_diet=no
9154       if test "$host_os" = linux-dietlibc; then
9155         case $cc_basename in
9156           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9157         esac
9158       fi
9159       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9160          && test "$tmp_diet" = no
9161       then
9162         tmp_addflag=' $pic_flag'
9163         tmp_sharedflag='-shared'
9164         case $cc_basename,$host_cpu in
9165         pgcc*)                          # Portland Group C compiler
9166           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9167           tmp_addflag=' $pic_flag'
9168           ;;
9169         pgf77* | pgf90* | pgf95* | pgfortran*)
9170                                         # Portland Group f77 and f90 compilers
9171           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9172           tmp_addflag=' $pic_flag -Mnomain' ;;
9173         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9174           tmp_addflag=' -i_dynamic' ;;
9175         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9176           tmp_addflag=' -i_dynamic -nofor_main' ;;
9177         ifc* | ifort*)                  # Intel Fortran compiler
9178           tmp_addflag=' -nofor_main' ;;
9179         lf95*)                          # Lahey Fortran 8.1
9180           whole_archive_flag_spec=
9181           tmp_sharedflag='--shared' ;;
9182         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9183           tmp_sharedflag='-qmkshrobj'
9184           tmp_addflag= ;;
9185         nvcc*)  # Cuda Compiler Driver 2.2
9186           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9187           compiler_needs_object=yes
9188           ;;
9189         esac
9190         case `$CC -V 2>&1 | sed 5q` in
9191         *Sun\ C*)                       # Sun C 5.9
9192           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9193           compiler_needs_object=yes
9194           tmp_sharedflag='-G' ;;
9195         *Sun\ F*)                       # Sun Fortran 8.3
9196           tmp_sharedflag='-G' ;;
9197         esac
9198         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9199
9200         if test "x$supports_anon_versioning" = xyes; then
9201           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9202             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9203             echo "local: *; };" >> $output_objdir/$libname.ver~
9204             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9205         fi
9206
9207         case $cc_basename in
9208         xlf* | bgf* | bgxlf* | mpixlf*)
9209           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9210           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9211           hardcode_libdir_flag_spec=
9212           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9213           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9214           if test "x$supports_anon_versioning" = xyes; then
9215             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9216               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9217               echo "local: *; };" >> $output_objdir/$libname.ver~
9218               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9219           fi
9220           ;;
9221         esac
9222       else
9223         ld_shlibs=no
9224       fi
9225       ;;
9226
9227     netbsd*)
9228       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9229         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9230         wlarc=
9231       else
9232         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9233         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9234       fi
9235       ;;
9236
9237     solaris*)
9238       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9239         ld_shlibs=no
9240         cat <<_LT_EOF 1>&2
9241
9242 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9243 *** create shared libraries on Solaris systems.  Therefore, libtool
9244 *** is disabling shared libraries support.  We urge you to upgrade GNU
9245 *** binutils to release 2.9.1 or newer.  Another option is to modify
9246 *** your PATH or compiler configuration so that the native linker is
9247 *** used, and then restart.
9248
9249 _LT_EOF
9250       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9251         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9253       else
9254         ld_shlibs=no
9255       fi
9256       ;;
9257
9258     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9259       case `$LD -v 2>&1` in
9260         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9261         ld_shlibs=no
9262         cat <<_LT_EOF 1>&2
9263
9264 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9265 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9266 *** is disabling shared libraries support.  We urge you to upgrade GNU
9267 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9268 *** your PATH or compiler configuration so that the native linker is
9269 *** used, and then restart.
9270
9271 _LT_EOF
9272         ;;
9273         *)
9274           # For security reasons, it is highly recommended that you always
9275           # use absolute paths for naming shared libraries, and exclude the
9276           # DT_RUNPATH tag from executables and libraries.  But doing so
9277           # requires that you compile everything twice, which is a pain.
9278           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9279             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9280             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9281             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9282           else
9283             ld_shlibs=no
9284           fi
9285         ;;
9286       esac
9287       ;;
9288
9289     sunos4*)
9290       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9291       wlarc=
9292       hardcode_direct=yes
9293       hardcode_shlibpath_var=no
9294       ;;
9295
9296     *)
9297       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9298         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9300       else
9301         ld_shlibs=no
9302       fi
9303       ;;
9304     esac
9305
9306     if test "$ld_shlibs" = no; then
9307       runpath_var=
9308       hardcode_libdir_flag_spec=
9309       export_dynamic_flag_spec=
9310       whole_archive_flag_spec=
9311     fi
9312   else
9313     # PORTME fill in a description of your system's linker (not GNU ld)
9314     case $host_os in
9315     aix3*)
9316       allow_undefined_flag=unsupported
9317       always_export_symbols=yes
9318       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'
9319       # Note: this linker hardcodes the directories in LIBPATH if there
9320       # are no directories specified by -L.
9321       hardcode_minus_L=yes
9322       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9323         # Neither direct hardcoding nor static linking is supported with a
9324         # broken collect2.
9325         hardcode_direct=unsupported
9326       fi
9327       ;;
9328
9329     aix[4-9]*)
9330       if test "$host_cpu" = ia64; then
9331         # On IA64, the linker does run time linking by default, so we don't
9332         # have to do anything special.
9333         aix_use_runtimelinking=no
9334         exp_sym_flag='-Bexport'
9335         no_entry_flag=""
9336       else
9337         # If we're using GNU nm, then we don't want the "-C" option.
9338         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9339         # Also, AIX nm treats weak defined symbols like other global
9340         # defined symbols, whereas GNU nm marks them as "W".
9341         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9342           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9343         else
9344           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'
9345         fi
9346         aix_use_runtimelinking=no
9347
9348         # Test if we are trying to use run time linking or normal
9349         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9350         # need to do runtime linking.
9351         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9352           for ld_flag in $LDFLAGS; do
9353           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9354             aix_use_runtimelinking=yes
9355             break
9356           fi
9357           done
9358           ;;
9359         esac
9360
9361         exp_sym_flag='-bexport'
9362         no_entry_flag='-bnoentry'
9363       fi
9364
9365       # When large executables or shared objects are built, AIX ld can
9366       # have problems creating the table of contents.  If linking a library
9367       # or program results in "error TOC overflow" add -mminimal-toc to
9368       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9369       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9370
9371       archive_cmds=''
9372       hardcode_direct=yes
9373       hardcode_direct_absolute=yes
9374       hardcode_libdir_separator=':'
9375       link_all_deplibs=yes
9376       file_list_spec='${wl}-f,'
9377
9378       if test "$GCC" = yes; then
9379         case $host_os in aix4.[012]|aix4.[012].*)
9380         # We only want to do this on AIX 4.2 and lower, the check
9381         # below for broken collect2 doesn't work under 4.3+
9382           collect2name=`${CC} -print-prog-name=collect2`
9383           if test -f "$collect2name" &&
9384            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9385           then
9386           # We have reworked collect2
9387           :
9388           else
9389           # We have old collect2
9390           hardcode_direct=unsupported
9391           # It fails to find uninstalled libraries when the uninstalled
9392           # path is not listed in the libpath.  Setting hardcode_minus_L
9393           # to unsupported forces relinking
9394           hardcode_minus_L=yes
9395           hardcode_libdir_flag_spec='-L$libdir'
9396           hardcode_libdir_separator=
9397           fi
9398           ;;
9399         esac
9400         shared_flag='-shared'
9401         if test "$aix_use_runtimelinking" = yes; then
9402           shared_flag="$shared_flag "'${wl}-G'
9403         fi
9404       else
9405         # not using gcc
9406         if test "$host_cpu" = ia64; then
9407         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9408         # chokes on -Wl,-G. The following line is correct:
9409           shared_flag='-G'
9410         else
9411           if test "$aix_use_runtimelinking" = yes; then
9412             shared_flag='${wl}-G'
9413           else
9414             shared_flag='${wl}-bM:SRE'
9415           fi
9416         fi
9417       fi
9418
9419       export_dynamic_flag_spec='${wl}-bexpall'
9420       # It seems that -bexpall does not export symbols beginning with
9421       # underscore (_), so it is better to generate a list of symbols to export.
9422       always_export_symbols=yes
9423       if test "$aix_use_runtimelinking" = yes; then
9424         # Warning - without using the other runtime loading flags (-brtl),
9425         # -berok will link without error, but may produce a broken library.
9426         allow_undefined_flag='-berok'
9427         # Determine the default libpath from the value encoded in an
9428         # empty executable.
9429         if test "${lt_cv_aix_libpath+set}" = set; then
9430   aix_libpath=$lt_cv_aix_libpath
9431 else
9432   if ${lt_cv_aix_libpath_+:} false; then :
9433   $as_echo_n "(cached) " >&6
9434 else
9435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h.  */
9437
9438 int
9439 main ()
9440 {
9441
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 if ac_fn_c_try_link "$LINENO"; then :
9447
9448   lt_aix_libpath_sed='
9449       /Import File Strings/,/^$/ {
9450           /^0/ {
9451               s/^0  *\([^ ]*\) *$/\1/
9452               p
9453           }
9454       }'
9455   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9456   # Check for a 64-bit object if we didn't find anything.
9457   if test -z "$lt_cv_aix_libpath_"; then
9458     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9459   fi
9460 fi
9461 rm -f core conftest.err conftest.$ac_objext \
9462     conftest$ac_exeext conftest.$ac_ext
9463   if test -z "$lt_cv_aix_libpath_"; then
9464     lt_cv_aix_libpath_="/usr/lib:/lib"
9465   fi
9466
9467 fi
9468
9469   aix_libpath=$lt_cv_aix_libpath_
9470 fi
9471
9472         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9473         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9474       else
9475         if test "$host_cpu" = ia64; then
9476           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9477           allow_undefined_flag="-z nodefs"
9478           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9479         else
9480          # Determine the default libpath from the value encoded in an
9481          # empty executable.
9482          if test "${lt_cv_aix_libpath+set}" = set; then
9483   aix_libpath=$lt_cv_aix_libpath
9484 else
9485   if ${lt_cv_aix_libpath_+:} false; then :
9486   $as_echo_n "(cached) " >&6
9487 else
9488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h.  */
9490
9491 int
9492 main ()
9493 {
9494
9495   ;
9496   return 0;
9497 }
9498 _ACEOF
9499 if ac_fn_c_try_link "$LINENO"; then :
9500
9501   lt_aix_libpath_sed='
9502       /Import File Strings/,/^$/ {
9503           /^0/ {
9504               s/^0  *\([^ ]*\) *$/\1/
9505               p
9506           }
9507       }'
9508   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9509   # Check for a 64-bit object if we didn't find anything.
9510   if test -z "$lt_cv_aix_libpath_"; then
9511     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9512   fi
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext \
9515     conftest$ac_exeext conftest.$ac_ext
9516   if test -z "$lt_cv_aix_libpath_"; then
9517     lt_cv_aix_libpath_="/usr/lib:/lib"
9518   fi
9519
9520 fi
9521
9522   aix_libpath=$lt_cv_aix_libpath_
9523 fi
9524
9525          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9526           # Warning - without using the other run time loading flags,
9527           # -berok will link without error, but may produce a broken library.
9528           no_undefined_flag=' ${wl}-bernotok'
9529           allow_undefined_flag=' ${wl}-berok'
9530           if test "$with_gnu_ld" = yes; then
9531             # We only use this code for GNU lds that support --whole-archive.
9532             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9533           else
9534             # Exported symbols can be pulled into shared objects from archives
9535             whole_archive_flag_spec='$convenience'
9536           fi
9537           archive_cmds_need_lc=yes
9538           # This is similar to how AIX traditionally builds its shared libraries.
9539           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9540         fi
9541       fi
9542       ;;
9543
9544     amigaos*)
9545       case $host_cpu in
9546       powerpc)
9547             # see comment about AmigaOS4 .so support
9548             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9549             archive_expsym_cmds=''
9550         ;;
9551       m68k)
9552             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)'
9553             hardcode_libdir_flag_spec='-L$libdir'
9554             hardcode_minus_L=yes
9555         ;;
9556       esac
9557       ;;
9558
9559     bsdi[45]*)
9560       export_dynamic_flag_spec=-rdynamic
9561       ;;
9562
9563     cygwin* | mingw* | pw32* | cegcc*)
9564       # When not using gcc, we currently assume that we are using
9565       # Microsoft Visual C++.
9566       # hardcode_libdir_flag_spec is actually meaningless, as there is
9567       # no search path for DLLs.
9568       case $cc_basename in
9569       cl*)
9570         # Native MSVC
9571         hardcode_libdir_flag_spec=' '
9572         allow_undefined_flag=unsupported
9573         always_export_symbols=yes
9574         file_list_spec='@'
9575         # Tell ltmain to make .lib files, not .a files.
9576         libext=lib
9577         # Tell ltmain to make .dll files, not .so files.
9578         shrext_cmds=".dll"
9579         # FIXME: Setting linknames here is a bad hack.
9580         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9581         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9582             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9583           else
9584             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9585           fi~
9586           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9587           linknames='
9588         # The linker will not automatically build a static lib if we build a DLL.
9589         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9590         enable_shared_with_static_runtimes=yes
9591         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9592         # Don't use ranlib
9593         old_postinstall_cmds='chmod 644 $oldlib'
9594         postlink_cmds='lt_outputfile="@OUTPUT@"~
9595           lt_tool_outputfile="@TOOL_OUTPUT@"~
9596           case $lt_outputfile in
9597             *.exe|*.EXE) ;;
9598             *)
9599               lt_outputfile="$lt_outputfile.exe"
9600               lt_tool_outputfile="$lt_tool_outputfile.exe"
9601               ;;
9602           esac~
9603           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9604             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9605             $RM "$lt_outputfile.manifest";
9606           fi'
9607         ;;
9608       *)
9609         # Assume MSVC wrapper
9610         hardcode_libdir_flag_spec=' '
9611         allow_undefined_flag=unsupported
9612         # Tell ltmain to make .lib files, not .a files.
9613         libext=lib
9614         # Tell ltmain to make .dll files, not .so files.
9615         shrext_cmds=".dll"
9616         # FIXME: Setting linknames here is a bad hack.
9617         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9618         # The linker will automatically build a .lib file if we build a DLL.
9619         old_archive_from_new_cmds='true'
9620         # FIXME: Should let the user specify the lib program.
9621         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9622         enable_shared_with_static_runtimes=yes
9623         ;;
9624       esac
9625       ;;
9626
9627     darwin* | rhapsody*)
9628
9629
9630   archive_cmds_need_lc=no
9631   hardcode_direct=no
9632   hardcode_automatic=yes
9633   hardcode_shlibpath_var=unsupported
9634   if test "$lt_cv_ld_force_load" = "yes"; then
9635     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9636   else
9637     whole_archive_flag_spec=''
9638   fi
9639   link_all_deplibs=yes
9640   allow_undefined_flag="$_lt_dar_allow_undefined"
9641   case $cc_basename in
9642      ifort*) _lt_dar_can_shared=yes ;;
9643      *) _lt_dar_can_shared=$GCC ;;
9644   esac
9645   if test "$_lt_dar_can_shared" = "yes"; then
9646     output_verbose_link_cmd=func_echo_all
9647     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9648     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9649     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9650     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9651
9652   else
9653   ld_shlibs=no
9654   fi
9655
9656       ;;
9657
9658     dgux*)
9659       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9660       hardcode_libdir_flag_spec='-L$libdir'
9661       hardcode_shlibpath_var=no
9662       ;;
9663
9664     freebsd1*)
9665       ld_shlibs=no
9666       ;;
9667
9668     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9669     # support.  Future versions do this automatically, but an explicit c++rt0.o
9670     # does not break anything, and helps significantly (at the cost of a little
9671     # extra space).
9672     freebsd2.2*)
9673       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9674       hardcode_libdir_flag_spec='-R$libdir'
9675       hardcode_direct=yes
9676       hardcode_shlibpath_var=no
9677       ;;
9678
9679     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9680     freebsd2*)
9681       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9682       hardcode_direct=yes
9683       hardcode_minus_L=yes
9684       hardcode_shlibpath_var=no
9685       ;;
9686
9687     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9688     freebsd* | dragonfly*)
9689       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9690       hardcode_libdir_flag_spec='-R$libdir'
9691       hardcode_direct=yes
9692       hardcode_shlibpath_var=no
9693       ;;
9694
9695     hpux9*)
9696       if test "$GCC" = yes; then
9697         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9698       else
9699         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'
9700       fi
9701       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9702       hardcode_libdir_separator=:
9703       hardcode_direct=yes
9704
9705       # hardcode_minus_L: Not really in the search PATH,
9706       # but as the default location of the library.
9707       hardcode_minus_L=yes
9708       export_dynamic_flag_spec='${wl}-E'
9709       ;;
9710
9711     hpux10*)
9712       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9713         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9714       else
9715         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9716       fi
9717       if test "$with_gnu_ld" = no; then
9718         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9719         hardcode_libdir_flag_spec_ld='+b $libdir'
9720         hardcode_libdir_separator=:
9721         hardcode_direct=yes
9722         hardcode_direct_absolute=yes
9723         export_dynamic_flag_spec='${wl}-E'
9724         # hardcode_minus_L: Not really in the search PATH,
9725         # but as the default location of the library.
9726         hardcode_minus_L=yes
9727       fi
9728       ;;
9729
9730     hpux11*)
9731       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9732         case $host_cpu in
9733         hppa*64*)
9734           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9735           ;;
9736         ia64*)
9737           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9738           ;;
9739         *)
9740           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9741           ;;
9742         esac
9743       else
9744         case $host_cpu in
9745         hppa*64*)
9746           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9747           ;;
9748         ia64*)
9749           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9750           ;;
9751         *)
9752
9753           # Older versions of the 11.00 compiler do not understand -b yet
9754           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9755           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9756 $as_echo_n "checking if $CC understands -b... " >&6; }
9757 if ${lt_cv_prog_compiler__b+:} false; then :
9758   $as_echo_n "(cached) " >&6
9759 else
9760   lt_cv_prog_compiler__b=no
9761    save_LDFLAGS="$LDFLAGS"
9762    LDFLAGS="$LDFLAGS -b"
9763    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9764    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9765      # The linker can only warn and ignore the option if not recognized
9766      # So say no if there are warnings
9767      if test -s conftest.err; then
9768        # Append any errors to the config.log.
9769        cat conftest.err 1>&5
9770        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9771        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9772        if diff conftest.exp conftest.er2 >/dev/null; then
9773          lt_cv_prog_compiler__b=yes
9774        fi
9775      else
9776        lt_cv_prog_compiler__b=yes
9777      fi
9778    fi
9779    $RM -r conftest*
9780    LDFLAGS="$save_LDFLAGS"
9781
9782 fi
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9784 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9785
9786 if test x"$lt_cv_prog_compiler__b" = xyes; then
9787     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9788 else
9789     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9790 fi
9791
9792           ;;
9793         esac
9794       fi
9795       if test "$with_gnu_ld" = no; then
9796         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9797         hardcode_libdir_separator=:
9798
9799         case $host_cpu in
9800         hppa*64*|ia64*)
9801           hardcode_direct=no
9802           hardcode_shlibpath_var=no
9803           ;;
9804         *)
9805           hardcode_direct=yes
9806           hardcode_direct_absolute=yes
9807           export_dynamic_flag_spec='${wl}-E'
9808
9809           # hardcode_minus_L: Not really in the search PATH,
9810           # but as the default location of the library.
9811           hardcode_minus_L=yes
9812           ;;
9813         esac
9814       fi
9815       ;;
9816
9817     irix5* | irix6* | nonstopux*)
9818       if test "$GCC" = yes; then
9819         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9820         # Try to use the -exported_symbol ld option, if it does not
9821         # work, assume that -exports_file does not work either and
9822         # implicitly export all symbols.
9823         # This should be the same for all languages, so no per-tag cache variable.
9824         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9825 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9826 if ${lt_cv_irix_exported_symbol+:} false; then :
9827   $as_echo_n "(cached) " >&6
9828 else
9829   save_LDFLAGS="$LDFLAGS"
9830            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9831            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h.  */
9833 int foo (void) { return 0; }
9834 _ACEOF
9835 if ac_fn_c_try_link "$LINENO"; then :
9836   lt_cv_irix_exported_symbol=yes
9837 else
9838   lt_cv_irix_exported_symbol=no
9839 fi
9840 rm -f core conftest.err conftest.$ac_objext \
9841     conftest$ac_exeext conftest.$ac_ext
9842            LDFLAGS="$save_LDFLAGS"
9843 fi
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9845 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9846         if test "$lt_cv_irix_exported_symbol" = yes; then
9847           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9848         fi
9849       else
9850         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9851         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9852       fi
9853       archive_cmds_need_lc='no'
9854       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9855       hardcode_libdir_separator=:
9856       inherit_rpath=yes
9857       link_all_deplibs=yes
9858       ;;
9859
9860     netbsd*)
9861       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9862         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9863       else
9864         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9865       fi
9866       hardcode_libdir_flag_spec='-R$libdir'
9867       hardcode_direct=yes
9868       hardcode_shlibpath_var=no
9869       ;;
9870
9871     newsos6)
9872       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9873       hardcode_direct=yes
9874       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9875       hardcode_libdir_separator=:
9876       hardcode_shlibpath_var=no
9877       ;;
9878
9879     *nto* | *qnx*)
9880       ;;
9881
9882     openbsd*)
9883       if test -f /usr/libexec/ld.so; then
9884         hardcode_direct=yes
9885         hardcode_shlibpath_var=no
9886         hardcode_direct_absolute=yes
9887         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9888           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9889           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9890           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9891           export_dynamic_flag_spec='${wl}-E'
9892         else
9893           case $host_os in
9894            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9895              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9896              hardcode_libdir_flag_spec='-R$libdir'
9897              ;;
9898            *)
9899              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9900              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9901              ;;
9902           esac
9903         fi
9904       else
9905         ld_shlibs=no
9906       fi
9907       ;;
9908
9909     os2*)
9910       hardcode_libdir_flag_spec='-L$libdir'
9911       hardcode_minus_L=yes
9912       allow_undefined_flag=unsupported
9913       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'
9914       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9915       ;;
9916
9917     osf3*)
9918       if test "$GCC" = yes; then
9919         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9920         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9921       else
9922         allow_undefined_flag=' -expect_unresolved \*'
9923         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9924       fi
9925       archive_cmds_need_lc='no'
9926       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9927       hardcode_libdir_separator=:
9928       ;;
9929
9930     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9931       if test "$GCC" = yes; then
9932         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9933         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9934         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9935       else
9936         allow_undefined_flag=' -expect_unresolved \*'
9937         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9938         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9939         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9940
9941         # Both c and cxx compiler support -rpath directly
9942         hardcode_libdir_flag_spec='-rpath $libdir'
9943       fi
9944       archive_cmds_need_lc='no'
9945       hardcode_libdir_separator=:
9946       ;;
9947
9948     solaris*)
9949       no_undefined_flag=' -z defs'
9950       if test "$GCC" = yes; then
9951         wlarc='${wl}'
9952         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9953         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9954           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9955       else
9956         case `$CC -V 2>&1` in
9957         *"Compilers 5.0"*)
9958           wlarc=''
9959           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9960           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9961           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9962           ;;
9963         *)
9964           wlarc='${wl}'
9965           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9966           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9967           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9968           ;;
9969         esac
9970       fi
9971       hardcode_libdir_flag_spec='-R$libdir'
9972       hardcode_shlibpath_var=no
9973       case $host_os in
9974       solaris2.[0-5] | solaris2.[0-5].*) ;;
9975       *)
9976         # The compiler driver will combine and reorder linker options,
9977         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9978         # but is careful enough not to reorder.
9979         # Supported since Solaris 2.6 (maybe 2.5.1?)
9980         if test "$GCC" = yes; then
9981           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9982         else
9983           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9984         fi
9985         ;;
9986       esac
9987       link_all_deplibs=yes
9988       ;;
9989
9990     sunos4*)
9991       if test "x$host_vendor" = xsequent; then
9992         # Use $CC to link under sequent, because it throws in some extra .o
9993         # files that make .init and .fini sections work.
9994         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9995       else
9996         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9997       fi
9998       hardcode_libdir_flag_spec='-L$libdir'
9999       hardcode_direct=yes
10000       hardcode_minus_L=yes
10001       hardcode_shlibpath_var=no
10002       ;;
10003
10004     sysv4)
10005       case $host_vendor in
10006         sni)
10007           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008           hardcode_direct=yes # is this really true???
10009         ;;
10010         siemens)
10011           ## LD is ld it makes a PLAMLIB
10012           ## CC just makes a GrossModule.
10013           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10014           reload_cmds='$CC -r -o $output$reload_objs'
10015           hardcode_direct=no
10016         ;;
10017         motorola)
10018           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10020         ;;
10021       esac
10022       runpath_var='LD_RUN_PATH'
10023       hardcode_shlibpath_var=no
10024       ;;
10025
10026     sysv4.3*)
10027       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10028       hardcode_shlibpath_var=no
10029       export_dynamic_flag_spec='-Bexport'
10030       ;;
10031
10032     sysv4*MP*)
10033       if test -d /usr/nec; then
10034         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035         hardcode_shlibpath_var=no
10036         runpath_var=LD_RUN_PATH
10037         hardcode_runpath_var=yes
10038         ld_shlibs=yes
10039       fi
10040       ;;
10041
10042     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10043       no_undefined_flag='${wl}-z,text'
10044       archive_cmds_need_lc=no
10045       hardcode_shlibpath_var=no
10046       runpath_var='LD_RUN_PATH'
10047
10048       if test "$GCC" = yes; then
10049         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10050         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10051       else
10052         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10053         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054       fi
10055       ;;
10056
10057     sysv5* | sco3.2v5* | sco5v6*)
10058       # Note: We can NOT use -z defs as we might desire, because we do not
10059       # link with -lc, and that would cause any symbols used from libc to
10060       # always be unresolved, which means just about no library would
10061       # ever link correctly.  If we're not using GNU ld we use -z text
10062       # though, which does catch some bad symbols but isn't as heavy-handed
10063       # as -z defs.
10064       no_undefined_flag='${wl}-z,text'
10065       allow_undefined_flag='${wl}-z,nodefs'
10066       archive_cmds_need_lc=no
10067       hardcode_shlibpath_var=no
10068       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10069       hardcode_libdir_separator=':'
10070       link_all_deplibs=yes
10071       export_dynamic_flag_spec='${wl}-Bexport'
10072       runpath_var='LD_RUN_PATH'
10073
10074       if test "$GCC" = yes; then
10075         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10076         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10077       else
10078         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10079         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10080       fi
10081       ;;
10082
10083     uts4*)
10084       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10085       hardcode_libdir_flag_spec='-L$libdir'
10086       hardcode_shlibpath_var=no
10087       ;;
10088
10089     *)
10090       ld_shlibs=no
10091       ;;
10092     esac
10093
10094     if test x$host_vendor = xsni; then
10095       case $host in
10096       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10097         export_dynamic_flag_spec='${wl}-Blargedynsym'
10098         ;;
10099       esac
10100     fi
10101   fi
10102
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10104 $as_echo "$ld_shlibs" >&6; }
10105 test "$ld_shlibs" = no && can_build_shared=no
10106
10107 with_gnu_ld=$with_gnu_ld
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123 #
10124 # Do we need to explicitly link libc?
10125 #
10126 case "x$archive_cmds_need_lc" in
10127 x|xyes)
10128   # Assume -lc should be added
10129   archive_cmds_need_lc=yes
10130
10131   if test "$enable_shared" = yes && test "$GCC" = yes; then
10132     case $archive_cmds in
10133     *'~'*)
10134       # FIXME: we may have to deal with multi-command sequences.
10135       ;;
10136     '$CC '*)
10137       # Test whether the compiler implicitly links with -lc since on some
10138       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10139       # to ld, don't add -lc before -lgcc.
10140       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10141 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10142 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10143   $as_echo_n "(cached) " >&6
10144 else
10145   $RM conftest*
10146         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10147
10148         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10149   (eval $ac_compile) 2>&5
10150   ac_status=$?
10151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10152   test $ac_status = 0; } 2>conftest.err; then
10153           soname=conftest
10154           lib=conftest
10155           libobjs=conftest.$ac_objext
10156           deplibs=
10157           wl=$lt_prog_compiler_wl
10158           pic_flag=$lt_prog_compiler_pic
10159           compiler_flags=-v
10160           linker_flags=-v
10161           verstring=
10162           output_objdir=.
10163           libname=conftest
10164           lt_save_allow_undefined_flag=$allow_undefined_flag
10165           allow_undefined_flag=
10166           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10167   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10168   ac_status=$?
10169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10170   test $ac_status = 0; }
10171           then
10172             lt_cv_archive_cmds_need_lc=no
10173           else
10174             lt_cv_archive_cmds_need_lc=yes
10175           fi
10176           allow_undefined_flag=$lt_save_allow_undefined_flag
10177         else
10178           cat conftest.err 1>&5
10179         fi
10180         $RM conftest*
10181
10182 fi
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10184 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10185       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10186       ;;
10187     esac
10188   fi
10189   ;;
10190 esac
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10349 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10350
10351 if test "$GCC" = yes; then
10352   case $host_os in
10353     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10354     *) lt_awk_arg="/^libraries:/" ;;
10355   esac
10356   case $host_os in
10357     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10358     *) lt_sed_strip_eq="s,=/,/,g" ;;
10359   esac
10360   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10361   case $lt_search_path_spec in
10362   *\;*)
10363     # if the path contains ";" then we assume it to be the separator
10364     # otherwise default to the standard path separator (i.e. ":") - it is
10365     # assumed that no part of a normal pathname contains ";" but that should
10366     # okay in the real world where ";" in dirpaths is itself problematic.
10367     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10368     ;;
10369   *)
10370     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10371     ;;
10372   esac
10373   # Ok, now we have the path, separated by spaces, we can step through it
10374   # and add multilib dir if necessary.
10375   lt_tmp_lt_search_path_spec=
10376   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10377   for lt_sys_path in $lt_search_path_spec; do
10378     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10379       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10380     else
10381       test -d "$lt_sys_path" && \
10382         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10383     fi
10384   done
10385   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10386 BEGIN {RS=" "; FS="/|\n";} {
10387   lt_foo="";
10388   lt_count=0;
10389   for (lt_i = NF; lt_i > 0; lt_i--) {
10390     if ($lt_i != "" && $lt_i != ".") {
10391       if ($lt_i == "..") {
10392         lt_count++;
10393       } else {
10394         if (lt_count == 0) {
10395           lt_foo="/" $lt_i lt_foo;
10396         } else {
10397           lt_count--;
10398         }
10399       }
10400     }
10401   }
10402   if (lt_foo != "") { lt_freq[lt_foo]++; }
10403   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10404 }'`
10405   # AWK program above erroneously prepends '/' to C:/dos/paths
10406   # for these hosts.
10407   case $host_os in
10408     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10409       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10410   esac
10411   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10412 else
10413   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10414 fi
10415 library_names_spec=
10416 libname_spec='lib$name'
10417 soname_spec=
10418 shrext_cmds=".so"
10419 postinstall_cmds=
10420 postuninstall_cmds=
10421 finish_cmds=
10422 finish_eval=
10423 shlibpath_var=
10424 shlibpath_overrides_runpath=unknown
10425 version_type=none
10426 dynamic_linker="$host_os ld.so"
10427 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10428 need_lib_prefix=unknown
10429 hardcode_into_libs=no
10430
10431 # when you set need_version to no, make sure it does not cause -set_version
10432 # flags to be left without arguments
10433 need_version=unknown
10434
10435 case $host_os in
10436 aix3*)
10437   version_type=linux
10438   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10439   shlibpath_var=LIBPATH
10440
10441   # AIX 3 has no versioning support, so we append a major version to the name.
10442   soname_spec='${libname}${release}${shared_ext}$major'
10443   ;;
10444
10445 aix[4-9]*)
10446   version_type=linux
10447   need_lib_prefix=no
10448   need_version=no
10449   hardcode_into_libs=yes
10450   if test "$host_cpu" = ia64; then
10451     # AIX 5 supports IA64
10452     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10453     shlibpath_var=LD_LIBRARY_PATH
10454   else
10455     # With GCC up to 2.95.x, collect2 would create an import file
10456     # for dependence libraries.  The import file would start with
10457     # the line `#! .'.  This would cause the generated library to
10458     # depend on `.', always an invalid library.  This was fixed in
10459     # development snapshots of GCC prior to 3.0.
10460     case $host_os in
10461       aix4 | aix4.[01] | aix4.[01].*)
10462       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10463            echo ' yes '
10464            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10465         :
10466       else
10467         can_build_shared=no
10468       fi
10469       ;;
10470     esac
10471     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10472     # soname into executable. Probably we can add versioning support to
10473     # collect2, so additional links can be useful in future.
10474     if test "$aix_use_runtimelinking" = yes; then
10475       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10476       # instead of lib<name>.a to let people know that these are not
10477       # typical AIX shared libraries.
10478       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479     else
10480       # We preserve .a as extension for shared libraries through AIX4.2
10481       # and later when we are not doing run time linking.
10482       library_names_spec='${libname}${release}.a $libname.a'
10483       soname_spec='${libname}${release}${shared_ext}$major'
10484     fi
10485     shlibpath_var=LIBPATH
10486   fi
10487   ;;
10488
10489 amigaos*)
10490   case $host_cpu in
10491   powerpc)
10492     # Since July 2007 AmigaOS4 officially supports .so libraries.
10493     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10494     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10495     ;;
10496   m68k)
10497     library_names_spec='$libname.ixlibrary $libname.a'
10498     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10499     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10500     ;;
10501   esac
10502   ;;
10503
10504 beos*)
10505   library_names_spec='${libname}${shared_ext}'
10506   dynamic_linker="$host_os ld.so"
10507   shlibpath_var=LIBRARY_PATH
10508   ;;
10509
10510 bsdi[45]*)
10511   version_type=linux
10512   need_version=no
10513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514   soname_spec='${libname}${release}${shared_ext}$major'
10515   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10516   shlibpath_var=LD_LIBRARY_PATH
10517   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10518   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10519   # the default ld.so.conf also contains /usr/contrib/lib and
10520   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10521   # libtool to hard-code these into programs
10522   ;;
10523
10524 cygwin* | mingw* | pw32* | cegcc*)
10525   version_type=windows
10526   shrext_cmds=".dll"
10527   need_version=no
10528   need_lib_prefix=no
10529
10530   case $GCC,$cc_basename in
10531   yes,*)
10532     # gcc
10533     library_names_spec='$libname.dll.a'
10534     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10535     postinstall_cmds='base_file=`basename \${file}`~
10536       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10537       dldir=$destdir/`dirname \$dlpath`~
10538       test -d \$dldir || mkdir -p \$dldir~
10539       $install_prog $dir/$dlname \$dldir/$dlname~
10540       chmod a+x \$dldir/$dlname~
10541       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10542         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10543       fi'
10544     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10545       dlpath=$dir/\$dldll~
10546        $RM \$dlpath'
10547     shlibpath_overrides_runpath=yes
10548
10549     case $host_os in
10550     cygwin*)
10551       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10552       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10553
10554       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10555       ;;
10556     mingw* | cegcc*)
10557       # MinGW DLLs use traditional 'lib' prefix
10558       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10559       ;;
10560     pw32*)
10561       # pw32 DLLs use 'pw' prefix rather than 'lib'
10562       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10563       ;;
10564     esac
10565     dynamic_linker='Win32 ld.exe'
10566     ;;
10567
10568   *,cl*)
10569     # Native MSVC
10570     libname_spec='$name'
10571     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10572     library_names_spec='${libname}.dll.lib'
10573
10574     case $build_os in
10575     mingw*)
10576       sys_lib_search_path_spec=
10577       lt_save_ifs=$IFS
10578       IFS=';'
10579       for lt_path in $LIB
10580       do
10581         IFS=$lt_save_ifs
10582         # Let DOS variable expansion print the short 8.3 style file name.
10583         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10584         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10585       done
10586       IFS=$lt_save_ifs
10587       # Convert to MSYS style.
10588       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10589       ;;
10590     cygwin*)
10591       # Convert to unix form, then to dos form, then back to unix form
10592       # but this time dos style (no spaces!) so that the unix form looks
10593       # like /cygdrive/c/PROGRA~1:/cygdr...
10594       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10595       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10596       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10597       ;;
10598     *)
10599       sys_lib_search_path_spec="$LIB"
10600       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10601         # It is most probably a Windows format PATH.
10602         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10603       else
10604         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10605       fi
10606       # FIXME: find the short name or the path components, as spaces are
10607       # common. (e.g. "Program Files" -> "PROGRA~1")
10608       ;;
10609     esac
10610
10611     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10612     postinstall_cmds='base_file=`basename \${file}`~
10613       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10614       dldir=$destdir/`dirname \$dlpath`~
10615       test -d \$dldir || mkdir -p \$dldir~
10616       $install_prog $dir/$dlname \$dldir/$dlname'
10617     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10618       dlpath=$dir/\$dldll~
10619        $RM \$dlpath'
10620     shlibpath_overrides_runpath=yes
10621     dynamic_linker='Win32 link.exe'
10622     ;;
10623
10624   *)
10625     # Assume MSVC wrapper
10626     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10627     dynamic_linker='Win32 ld.exe'
10628     ;;
10629   esac
10630   # FIXME: first we should search . and the directory the executable is in
10631   shlibpath_var=PATH
10632   ;;
10633
10634 darwin* | rhapsody*)
10635   dynamic_linker="$host_os dyld"
10636   version_type=darwin
10637   need_lib_prefix=no
10638   need_version=no
10639   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10640   soname_spec='${libname}${release}${major}$shared_ext'
10641   shlibpath_overrides_runpath=yes
10642   shlibpath_var=DYLD_LIBRARY_PATH
10643   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10644
10645   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10646   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10647   ;;
10648
10649 dgux*)
10650   version_type=linux
10651   need_lib_prefix=no
10652   need_version=no
10653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10654   soname_spec='${libname}${release}${shared_ext}$major'
10655   shlibpath_var=LD_LIBRARY_PATH
10656   ;;
10657
10658 freebsd1*)
10659   dynamic_linker=no
10660   ;;
10661
10662 freebsd* | dragonfly*)
10663   # DragonFly does not have aout.  When/if they implement a new
10664   # versioning mechanism, adjust this.
10665   if test -x /usr/bin/objformat; then
10666     objformat=`/usr/bin/objformat`
10667   else
10668     case $host_os in
10669     freebsd[123]*) objformat=aout ;;
10670     *) objformat=elf ;;
10671     esac
10672   fi
10673   version_type=freebsd-$objformat
10674   case $version_type in
10675     freebsd-elf*)
10676       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10677       need_version=no
10678       need_lib_prefix=no
10679       ;;
10680     freebsd-*)
10681       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10682       need_version=yes
10683       ;;
10684   esac
10685   shlibpath_var=LD_LIBRARY_PATH
10686   case $host_os in
10687   freebsd2*)
10688     shlibpath_overrides_runpath=yes
10689     ;;
10690   freebsd3.[01]* | freebsdelf3.[01]*)
10691     shlibpath_overrides_runpath=yes
10692     hardcode_into_libs=yes
10693     ;;
10694   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10695   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10696     shlibpath_overrides_runpath=no
10697     hardcode_into_libs=yes
10698     ;;
10699   *) # from 4.6 on, and DragonFly
10700     shlibpath_overrides_runpath=yes
10701     hardcode_into_libs=yes
10702     ;;
10703   esac
10704   ;;
10705
10706 gnu*)
10707   version_type=linux
10708   need_lib_prefix=no
10709   need_version=no
10710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10711   soname_spec='${libname}${release}${shared_ext}$major'
10712   shlibpath_var=LD_LIBRARY_PATH
10713   hardcode_into_libs=yes
10714   ;;
10715
10716 haiku*)
10717   version_type=linux
10718   need_lib_prefix=no
10719   need_version=no
10720   dynamic_linker="$host_os runtime_loader"
10721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10722   soname_spec='${libname}${release}${shared_ext}$major'
10723   shlibpath_var=LIBRARY_PATH
10724   shlibpath_overrides_runpath=yes
10725   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10726   hardcode_into_libs=yes
10727   ;;
10728
10729 hpux9* | hpux10* | hpux11*)
10730   # Give a soname corresponding to the major version so that dld.sl refuses to
10731   # link against other versions.
10732   version_type=sunos
10733   need_lib_prefix=no
10734   need_version=no
10735   case $host_cpu in
10736   ia64*)
10737     shrext_cmds='.so'
10738     hardcode_into_libs=yes
10739     dynamic_linker="$host_os dld.so"
10740     shlibpath_var=LD_LIBRARY_PATH
10741     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743     soname_spec='${libname}${release}${shared_ext}$major'
10744     if test "X$HPUX_IA64_MODE" = X32; then
10745       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10746     else
10747       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10748     fi
10749     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10750     ;;
10751   hppa*64*)
10752     shrext_cmds='.sl'
10753     hardcode_into_libs=yes
10754     dynamic_linker="$host_os dld.sl"
10755     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10756     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758     soname_spec='${libname}${release}${shared_ext}$major'
10759     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10760     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10761     ;;
10762   *)
10763     shrext_cmds='.sl'
10764     dynamic_linker="$host_os dld.sl"
10765     shlibpath_var=SHLIB_PATH
10766     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10768     soname_spec='${libname}${release}${shared_ext}$major'
10769     ;;
10770   esac
10771   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10772   postinstall_cmds='chmod 555 $lib'
10773   # or fails outright, so override atomically:
10774   install_override_mode=555
10775   ;;
10776
10777 interix[3-9]*)
10778   version_type=linux
10779   need_lib_prefix=no
10780   need_version=no
10781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10782   soname_spec='${libname}${release}${shared_ext}$major'
10783   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10784   shlibpath_var=LD_LIBRARY_PATH
10785   shlibpath_overrides_runpath=no
10786   hardcode_into_libs=yes
10787   ;;
10788
10789 irix5* | irix6* | nonstopux*)
10790   case $host_os in
10791     nonstopux*) version_type=nonstopux ;;
10792     *)
10793         if test "$lt_cv_prog_gnu_ld" = yes; then
10794                 version_type=linux
10795         else
10796                 version_type=irix
10797         fi ;;
10798   esac
10799   need_lib_prefix=no
10800   need_version=no
10801   soname_spec='${libname}${release}${shared_ext}$major'
10802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10803   case $host_os in
10804   irix5* | nonstopux*)
10805     libsuff= shlibsuff=
10806     ;;
10807   *)
10808     case $LD in # libtool.m4 will add one of these switches to LD
10809     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10810       libsuff= shlibsuff= libmagic=32-bit;;
10811     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10812       libsuff=32 shlibsuff=N32 libmagic=N32;;
10813     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10814       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10815     *) libsuff= shlibsuff= libmagic=never-match;;
10816     esac
10817     ;;
10818   esac
10819   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10820   shlibpath_overrides_runpath=no
10821   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10822   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10823   hardcode_into_libs=yes
10824   ;;
10825
10826 # No shared lib support for Linux oldld, aout, or coff.
10827 linux*oldld* | linux*aout* | linux*coff*)
10828   dynamic_linker=no
10829   ;;
10830
10831 # This must be Linux ELF.
10832 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10833   version_type=linux
10834   need_lib_prefix=no
10835   need_version=no
10836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837   soname_spec='${libname}${release}${shared_ext}$major'
10838   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10839   shlibpath_var=LD_LIBRARY_PATH
10840   shlibpath_overrides_runpath=no
10841
10842   # Some binutils ld are patched to set DT_RUNPATH
10843   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10844   $as_echo_n "(cached) " >&6
10845 else
10846   lt_cv_shlibpath_overrides_runpath=no
10847     save_LDFLAGS=$LDFLAGS
10848     save_libdir=$libdir
10849     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10850          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10851     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h.  */
10853
10854 int
10855 main ()
10856 {
10857
10858   ;
10859   return 0;
10860 }
10861 _ACEOF
10862 if ac_fn_c_try_link "$LINENO"; then :
10863   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10864   lt_cv_shlibpath_overrides_runpath=yes
10865 fi
10866 fi
10867 rm -f core conftest.err conftest.$ac_objext \
10868     conftest$ac_exeext conftest.$ac_ext
10869     LDFLAGS=$save_LDFLAGS
10870     libdir=$save_libdir
10871
10872 fi
10873
10874   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10875
10876   # This implies no fast_install, which is unacceptable.
10877   # Some rework will be needed to allow for fast_install
10878   # before this can be enabled.
10879   hardcode_into_libs=yes
10880
10881   # Append ld.so.conf contents to the search path
10882   if test -f /etc/ld.so.conf; then
10883     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10884     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10885   fi
10886
10887   # We used to test for /lib/ld.so.1 and disable shared libraries on
10888   # powerpc, because MkLinux only supported shared libraries with the
10889   # GNU dynamic linker.  Since this was broken with cross compilers,
10890   # most powerpc-linux boxes support dynamic linking these days and
10891   # people can always --disable-shared, the test was removed, and we
10892   # assume the GNU/Linux dynamic linker is in use.
10893   dynamic_linker='GNU/Linux ld.so'
10894   ;;
10895
10896 netbsd*)
10897   version_type=sunos
10898   need_lib_prefix=no
10899   need_version=no
10900   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10902     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10903     dynamic_linker='NetBSD (a.out) ld.so'
10904   else
10905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10906     soname_spec='${libname}${release}${shared_ext}$major'
10907     dynamic_linker='NetBSD ld.elf_so'
10908   fi
10909   shlibpath_var=LD_LIBRARY_PATH
10910   shlibpath_overrides_runpath=yes
10911   hardcode_into_libs=yes
10912   ;;
10913
10914 newsos6)
10915   version_type=linux
10916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917   shlibpath_var=LD_LIBRARY_PATH
10918   shlibpath_overrides_runpath=yes
10919   ;;
10920
10921 *nto* | *qnx*)
10922   version_type=qnx
10923   need_lib_prefix=no
10924   need_version=no
10925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926   soname_spec='${libname}${release}${shared_ext}$major'
10927   shlibpath_var=LD_LIBRARY_PATH
10928   shlibpath_overrides_runpath=no
10929   hardcode_into_libs=yes
10930   dynamic_linker='ldqnx.so'
10931   ;;
10932
10933 openbsd*)
10934   version_type=sunos
10935   sys_lib_dlsearch_path_spec="/usr/lib"
10936   need_lib_prefix=no
10937   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10938   case $host_os in
10939     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10940     *)                          need_version=no  ;;
10941   esac
10942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10943   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10944   shlibpath_var=LD_LIBRARY_PATH
10945   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10946     case $host_os in
10947       openbsd2.[89] | openbsd2.[89].*)
10948         shlibpath_overrides_runpath=no
10949         ;;
10950       *)
10951         shlibpath_overrides_runpath=yes
10952         ;;
10953       esac
10954   else
10955     shlibpath_overrides_runpath=yes
10956   fi
10957   ;;
10958
10959 os2*)
10960   libname_spec='$name'
10961   shrext_cmds=".dll"
10962   need_lib_prefix=no
10963   library_names_spec='$libname${shared_ext} $libname.a'
10964   dynamic_linker='OS/2 ld.exe'
10965   shlibpath_var=LIBPATH
10966   ;;
10967
10968 osf3* | osf4* | osf5*)
10969   version_type=osf
10970   need_lib_prefix=no
10971   need_version=no
10972   soname_spec='${libname}${release}${shared_ext}$major'
10973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974   shlibpath_var=LD_LIBRARY_PATH
10975   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10976   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10977   ;;
10978
10979 rdos*)
10980   dynamic_linker=no
10981   ;;
10982
10983 solaris*)
10984   version_type=linux
10985   need_lib_prefix=no
10986   need_version=no
10987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988   soname_spec='${libname}${release}${shared_ext}$major'
10989   shlibpath_var=LD_LIBRARY_PATH
10990   shlibpath_overrides_runpath=yes
10991   hardcode_into_libs=yes
10992   # ldd complains unless libraries are executable
10993   postinstall_cmds='chmod +x $lib'
10994   ;;
10995
10996 sunos4*)
10997   version_type=sunos
10998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10999   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11000   shlibpath_var=LD_LIBRARY_PATH
11001   shlibpath_overrides_runpath=yes
11002   if test "$with_gnu_ld" = yes; then
11003     need_lib_prefix=no
11004   fi
11005   need_version=yes
11006   ;;
11007
11008 sysv4 | sysv4.3*)
11009   version_type=linux
11010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011   soname_spec='${libname}${release}${shared_ext}$major'
11012   shlibpath_var=LD_LIBRARY_PATH
11013   case $host_vendor in
11014     sni)
11015       shlibpath_overrides_runpath=no
11016       need_lib_prefix=no
11017       runpath_var=LD_RUN_PATH
11018       ;;
11019     siemens)
11020       need_lib_prefix=no
11021       ;;
11022     motorola)
11023       need_lib_prefix=no
11024       need_version=no
11025       shlibpath_overrides_runpath=no
11026       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11027       ;;
11028   esac
11029   ;;
11030
11031 sysv4*MP*)
11032   if test -d /usr/nec ;then
11033     version_type=linux
11034     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11035     soname_spec='$libname${shared_ext}.$major'
11036     shlibpath_var=LD_LIBRARY_PATH
11037   fi
11038   ;;
11039
11040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11041   version_type=freebsd-elf
11042   need_lib_prefix=no
11043   need_version=no
11044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11045   soname_spec='${libname}${release}${shared_ext}$major'
11046   shlibpath_var=LD_LIBRARY_PATH
11047   shlibpath_overrides_runpath=yes
11048   hardcode_into_libs=yes
11049   if test "$with_gnu_ld" = yes; then
11050     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11051   else
11052     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11053     case $host_os in
11054       sco3.2v5*)
11055         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11056         ;;
11057     esac
11058   fi
11059   sys_lib_dlsearch_path_spec='/usr/lib'
11060   ;;
11061
11062 tpf*)
11063   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11064   version_type=linux
11065   need_lib_prefix=no
11066   need_version=no
11067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068   shlibpath_var=LD_LIBRARY_PATH
11069   shlibpath_overrides_runpath=no
11070   hardcode_into_libs=yes
11071   ;;
11072
11073 uts4*)
11074   version_type=linux
11075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076   soname_spec='${libname}${release}${shared_ext}$major'
11077   shlibpath_var=LD_LIBRARY_PATH
11078   ;;
11079
11080 *)
11081   dynamic_linker=no
11082   ;;
11083 esac
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11085 $as_echo "$dynamic_linker" >&6; }
11086 test "$dynamic_linker" = no && can_build_shared=no
11087
11088 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11089 if test "$GCC" = yes; then
11090   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11091 fi
11092
11093 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11094   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11095 fi
11096 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11097   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11098 fi
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11192 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11193 hardcode_action=
11194 if test -n "$hardcode_libdir_flag_spec" ||
11195    test -n "$runpath_var" ||
11196    test "X$hardcode_automatic" = "Xyes" ; then
11197
11198   # We can hardcode non-existent directories.
11199   if test "$hardcode_direct" != no &&
11200      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11201      # have to relink, otherwise we might link with an installed library
11202      # when we should be linking with a yet-to-be-installed one
11203      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11204      test "$hardcode_minus_L" != no; then
11205     # Linking always hardcodes the temporary library directory.
11206     hardcode_action=relink
11207   else
11208     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11209     hardcode_action=immediate
11210   fi
11211 else
11212   # We cannot hardcode anything, or else we can only hardcode existing
11213   # directories.
11214   hardcode_action=unsupported
11215 fi
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11217 $as_echo "$hardcode_action" >&6; }
11218
11219 if test "$hardcode_action" = relink ||
11220    test "$inherit_rpath" = yes; then
11221   # Fast installation is not supported
11222   enable_fast_install=no
11223 elif test "$shlibpath_overrides_runpath" = yes ||
11224      test "$enable_shared" = no; then
11225   # Fast installation is not necessary
11226   enable_fast_install=needless
11227 fi
11228
11229
11230
11231
11232
11233
11234   if test "x$enable_dlopen" != xyes; then
11235   enable_dlopen=unknown
11236   enable_dlopen_self=unknown
11237   enable_dlopen_self_static=unknown
11238 else
11239   lt_cv_dlopen=no
11240   lt_cv_dlopen_libs=
11241
11242   case $host_os in
11243   beos*)
11244     lt_cv_dlopen="load_add_on"
11245     lt_cv_dlopen_libs=
11246     lt_cv_dlopen_self=yes
11247     ;;
11248
11249   mingw* | pw32* | cegcc*)
11250     lt_cv_dlopen="LoadLibrary"
11251     lt_cv_dlopen_libs=
11252     ;;
11253
11254   cygwin*)
11255     lt_cv_dlopen="dlopen"
11256     lt_cv_dlopen_libs=
11257     ;;
11258
11259   darwin*)
11260   # if libdl is installed we need to link against it
11261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11262 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11263 if ${ac_cv_lib_dl_dlopen+:} false; then :
11264   $as_echo_n "(cached) " >&6
11265 else
11266   ac_check_lib_save_LIBS=$LIBS
11267 LIBS="-ldl  $LIBS"
11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h.  */
11270
11271 /* Override any GCC internal prototype to avoid an error.
11272    Use char because int might match the return type of a GCC
11273    builtin and then its argument prototype would still apply.  */
11274 #ifdef __cplusplus
11275 extern "C"
11276 #endif
11277 char dlopen ();
11278 int
11279 main ()
11280 {
11281 return dlopen ();
11282   ;
11283   return 0;
11284 }
11285 _ACEOF
11286 if ac_fn_c_try_link "$LINENO"; then :
11287   ac_cv_lib_dl_dlopen=yes
11288 else
11289   ac_cv_lib_dl_dlopen=no
11290 fi
11291 rm -f core conftest.err conftest.$ac_objext \
11292     conftest$ac_exeext conftest.$ac_ext
11293 LIBS=$ac_check_lib_save_LIBS
11294 fi
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11296 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11297 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11298   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11299 else
11300
11301     lt_cv_dlopen="dyld"
11302     lt_cv_dlopen_libs=
11303     lt_cv_dlopen_self=yes
11304
11305 fi
11306
11307     ;;
11308
11309   *)
11310     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11311 if test "x$ac_cv_func_shl_load" = xyes; then :
11312   lt_cv_dlopen="shl_load"
11313 else
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11315 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11316 if ${ac_cv_lib_dld_shl_load+:} false; then :
11317   $as_echo_n "(cached) " >&6
11318 else
11319   ac_check_lib_save_LIBS=$LIBS
11320 LIBS="-ldld  $LIBS"
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h.  */
11323
11324 /* Override any GCC internal prototype to avoid an error.
11325    Use char because int might match the return type of a GCC
11326    builtin and then its argument prototype would still apply.  */
11327 #ifdef __cplusplus
11328 extern "C"
11329 #endif
11330 char shl_load ();
11331 int
11332 main ()
11333 {
11334 return shl_load ();
11335   ;
11336   return 0;
11337 }
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"; then :
11340   ac_cv_lib_dld_shl_load=yes
11341 else
11342   ac_cv_lib_dld_shl_load=no
11343 fi
11344 rm -f core conftest.err conftest.$ac_objext \
11345     conftest$ac_exeext conftest.$ac_ext
11346 LIBS=$ac_check_lib_save_LIBS
11347 fi
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11349 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11350 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11351   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11352 else
11353   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11354 if test "x$ac_cv_func_dlopen" = xyes; then :
11355   lt_cv_dlopen="dlopen"
11356 else
11357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11358 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11359 if ${ac_cv_lib_dl_dlopen+:} false; then :
11360   $as_echo_n "(cached) " >&6
11361 else
11362   ac_check_lib_save_LIBS=$LIBS
11363 LIBS="-ldl  $LIBS"
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h.  */
11366
11367 /* Override any GCC internal prototype to avoid an error.
11368    Use char because int might match the return type of a GCC
11369    builtin and then its argument prototype would still apply.  */
11370 #ifdef __cplusplus
11371 extern "C"
11372 #endif
11373 char dlopen ();
11374 int
11375 main ()
11376 {
11377 return dlopen ();
11378   ;
11379   return 0;
11380 }
11381 _ACEOF
11382 if ac_fn_c_try_link "$LINENO"; then :
11383   ac_cv_lib_dl_dlopen=yes
11384 else
11385   ac_cv_lib_dl_dlopen=no
11386 fi
11387 rm -f core conftest.err conftest.$ac_objext \
11388     conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11390 fi
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11392 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11393 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11394   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11395 else
11396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11397 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11398 if ${ac_cv_lib_svld_dlopen+:} false; then :
11399   $as_echo_n "(cached) " >&6
11400 else
11401   ac_check_lib_save_LIBS=$LIBS
11402 LIBS="-lsvld  $LIBS"
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h.  */
11405
11406 /* Override any GCC internal prototype to avoid an error.
11407    Use char because int might match the return type of a GCC
11408    builtin and then its argument prototype would still apply.  */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 char dlopen ();
11413 int
11414 main ()
11415 {
11416 return dlopen ();
11417   ;
11418   return 0;
11419 }
11420 _ACEOF
11421 if ac_fn_c_try_link "$LINENO"; then :
11422   ac_cv_lib_svld_dlopen=yes
11423 else
11424   ac_cv_lib_svld_dlopen=no
11425 fi
11426 rm -f core conftest.err conftest.$ac_objext \
11427     conftest$ac_exeext conftest.$ac_ext
11428 LIBS=$ac_check_lib_save_LIBS
11429 fi
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11431 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11432 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11433   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11434 else
11435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11436 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11437 if ${ac_cv_lib_dld_dld_link+:} false; then :
11438   $as_echo_n "(cached) " >&6
11439 else
11440   ac_check_lib_save_LIBS=$LIBS
11441 LIBS="-ldld  $LIBS"
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h.  */
11444
11445 /* Override any GCC internal prototype to avoid an error.
11446    Use char because int might match the return type of a GCC
11447    builtin and then its argument prototype would still apply.  */
11448 #ifdef __cplusplus
11449 extern "C"
11450 #endif
11451 char dld_link ();
11452 int
11453 main ()
11454 {
11455 return dld_link ();
11456   ;
11457   return 0;
11458 }
11459 _ACEOF
11460 if ac_fn_c_try_link "$LINENO"; then :
11461   ac_cv_lib_dld_dld_link=yes
11462 else
11463   ac_cv_lib_dld_dld_link=no
11464 fi
11465 rm -f core conftest.err conftest.$ac_objext \
11466     conftest$ac_exeext conftest.$ac_ext
11467 LIBS=$ac_check_lib_save_LIBS
11468 fi
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11470 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11471 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11472   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11473 fi
11474
11475
11476 fi
11477
11478
11479 fi
11480
11481
11482 fi
11483
11484
11485 fi
11486
11487
11488 fi
11489
11490     ;;
11491   esac
11492
11493   if test "x$lt_cv_dlopen" != xno; then
11494     enable_dlopen=yes
11495   else
11496     enable_dlopen=no
11497   fi
11498
11499   case $lt_cv_dlopen in
11500   dlopen)
11501     save_CPPFLAGS="$CPPFLAGS"
11502     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11503
11504     save_LDFLAGS="$LDFLAGS"
11505     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11506
11507     save_LIBS="$LIBS"
11508     LIBS="$lt_cv_dlopen_libs $LIBS"
11509
11510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11511 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11512 if ${lt_cv_dlopen_self+:} false; then :
11513   $as_echo_n "(cached) " >&6
11514 else
11515           if test "$cross_compiling" = yes; then :
11516   lt_cv_dlopen_self=cross
11517 else
11518   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11519   lt_status=$lt_dlunknown
11520   cat > conftest.$ac_ext <<_LT_EOF
11521 #line $LINENO "configure"
11522 #include "confdefs.h"
11523
11524 #if HAVE_DLFCN_H
11525 #include <dlfcn.h>
11526 #endif
11527
11528 #include <stdio.h>
11529
11530 #ifdef RTLD_GLOBAL
11531 #  define LT_DLGLOBAL           RTLD_GLOBAL
11532 #else
11533 #  ifdef DL_GLOBAL
11534 #    define LT_DLGLOBAL         DL_GLOBAL
11535 #  else
11536 #    define LT_DLGLOBAL         0
11537 #  endif
11538 #endif
11539
11540 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11541    find out it does not work in some platform. */
11542 #ifndef LT_DLLAZY_OR_NOW
11543 #  ifdef RTLD_LAZY
11544 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11545 #  else
11546 #    ifdef DL_LAZY
11547 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11548 #    else
11549 #      ifdef RTLD_NOW
11550 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11551 #      else
11552 #        ifdef DL_NOW
11553 #          define LT_DLLAZY_OR_NOW      DL_NOW
11554 #        else
11555 #          define LT_DLLAZY_OR_NOW      0
11556 #        endif
11557 #      endif
11558 #    endif
11559 #  endif
11560 #endif
11561
11562 /* When -fvisbility=hidden is used, assume the code has been annotated
11563    correspondingly for the symbols needed.  */
11564 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11565 int fnord () __attribute__((visibility("default")));
11566 #endif
11567
11568 int fnord () { return 42; }
11569 int main ()
11570 {
11571   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11572   int status = $lt_dlunknown;
11573
11574   if (self)
11575     {
11576       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11577       else
11578         {
11579           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11580           else puts (dlerror ());
11581         }
11582       /* dlclose (self); */
11583     }
11584   else
11585     puts (dlerror ());
11586
11587   return status;
11588 }
11589 _LT_EOF
11590   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11591   (eval $ac_link) 2>&5
11592   ac_status=$?
11593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11594   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11595     (./conftest; exit; ) >&5 2>/dev/null
11596     lt_status=$?
11597     case x$lt_status in
11598       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11599       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11600       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11601     esac
11602   else :
11603     # compilation failed
11604     lt_cv_dlopen_self=no
11605   fi
11606 fi
11607 rm -fr conftest*
11608
11609
11610 fi
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11612 $as_echo "$lt_cv_dlopen_self" >&6; }
11613
11614     if test "x$lt_cv_dlopen_self" = xyes; then
11615       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11616       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11617 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11618 if ${lt_cv_dlopen_self_static+:} false; then :
11619   $as_echo_n "(cached) " >&6
11620 else
11621           if test "$cross_compiling" = yes; then :
11622   lt_cv_dlopen_self_static=cross
11623 else
11624   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11625   lt_status=$lt_dlunknown
11626   cat > conftest.$ac_ext <<_LT_EOF
11627 #line $LINENO "configure"
11628 #include "confdefs.h"
11629
11630 #if HAVE_DLFCN_H
11631 #include <dlfcn.h>
11632 #endif
11633
11634 #include <stdio.h>
11635
11636 #ifdef RTLD_GLOBAL
11637 #  define LT_DLGLOBAL           RTLD_GLOBAL
11638 #else
11639 #  ifdef DL_GLOBAL
11640 #    define LT_DLGLOBAL         DL_GLOBAL
11641 #  else
11642 #    define LT_DLGLOBAL         0
11643 #  endif
11644 #endif
11645
11646 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11647    find out it does not work in some platform. */
11648 #ifndef LT_DLLAZY_OR_NOW
11649 #  ifdef RTLD_LAZY
11650 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11651 #  else
11652 #    ifdef DL_LAZY
11653 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11654 #    else
11655 #      ifdef RTLD_NOW
11656 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11657 #      else
11658 #        ifdef DL_NOW
11659 #          define LT_DLLAZY_OR_NOW      DL_NOW
11660 #        else
11661 #          define LT_DLLAZY_OR_NOW      0
11662 #        endif
11663 #      endif
11664 #    endif
11665 #  endif
11666 #endif
11667
11668 /* When -fvisbility=hidden is used, assume the code has been annotated
11669    correspondingly for the symbols needed.  */
11670 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11671 int fnord () __attribute__((visibility("default")));
11672 #endif
11673
11674 int fnord () { return 42; }
11675 int main ()
11676 {
11677   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11678   int status = $lt_dlunknown;
11679
11680   if (self)
11681     {
11682       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11683       else
11684         {
11685           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11686           else puts (dlerror ());
11687         }
11688       /* dlclose (self); */
11689     }
11690   else
11691     puts (dlerror ());
11692
11693   return status;
11694 }
11695 _LT_EOF
11696   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11697   (eval $ac_link) 2>&5
11698   ac_status=$?
11699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11700   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11701     (./conftest; exit; ) >&5 2>/dev/null
11702     lt_status=$?
11703     case x$lt_status in
11704       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11705       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11706       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11707     esac
11708   else :
11709     # compilation failed
11710     lt_cv_dlopen_self_static=no
11711   fi
11712 fi
11713 rm -fr conftest*
11714
11715
11716 fi
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11718 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11719     fi
11720
11721     CPPFLAGS="$save_CPPFLAGS"
11722     LDFLAGS="$save_LDFLAGS"
11723     LIBS="$save_LIBS"
11724     ;;
11725   esac
11726
11727   case $lt_cv_dlopen_self in
11728   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11729   *) enable_dlopen_self=unknown ;;
11730   esac
11731
11732   case $lt_cv_dlopen_self_static in
11733   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11734   *) enable_dlopen_self_static=unknown ;;
11735   esac
11736 fi
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754 striplib=
11755 old_striplib=
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11757 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11758 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11759   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11760   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11762 $as_echo "yes" >&6; }
11763 else
11764 # FIXME - insert some real tests, host_os isn't really good enough
11765   case $host_os in
11766   darwin*)
11767     if test -n "$STRIP" ; then
11768       striplib="$STRIP -x"
11769       old_striplib="$STRIP -S"
11770       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11771 $as_echo "yes" >&6; }
11772     else
11773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11775     fi
11776     ;;
11777   *)
11778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 $as_echo "no" >&6; }
11780     ;;
11781   esac
11782 fi
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795   # Report which library types will actually be built
11796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11797 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11799 $as_echo "$can_build_shared" >&6; }
11800
11801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11802 $as_echo_n "checking whether to build shared libraries... " >&6; }
11803   test "$can_build_shared" = "no" && enable_shared=no
11804
11805   # On AIX, shared libraries and static libraries use the same namespace, and
11806   # are all built from PIC.
11807   case $host_os in
11808   aix3*)
11809     test "$enable_shared" = yes && enable_static=no
11810     if test -n "$RANLIB"; then
11811       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11812       postinstall_cmds='$RANLIB $lib'
11813     fi
11814     ;;
11815
11816   aix[4-9]*)
11817     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11818       test "$enable_shared" = yes && enable_static=no
11819     fi
11820     ;;
11821   esac
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11823 $as_echo "$enable_shared" >&6; }
11824
11825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11826 $as_echo_n "checking whether to build static libraries... " >&6; }
11827   # Make sure either enable_shared or enable_static is yes.
11828   test "$enable_shared" = yes || enable_static=yes
11829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11830 $as_echo "$enable_static" >&6; }
11831
11832
11833
11834
11835 fi
11836 ac_ext=c
11837 ac_cpp='$CPP $CPPFLAGS'
11838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11841
11842 CC="$lt_save_CC"
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856         ac_config_commands="$ac_config_commands libtool"
11857
11858
11859
11860
11861 # Only expand once:
11862
11863
11864
11865 # Docygen features
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876 # Files:
11877 DX_PROJECT=xmltooling
11878
11879 DX_CONFIG=doxygen.cfg
11880
11881 DX_DOCDIR=doc/api
11882
11883
11884 # Environment variables used inside doxygen.cfg:
11885 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
11886
11887 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
11888
11889 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
11890
11891 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
11892
11893
11894 # Doxygen itself:
11895
11896
11897
11898     # Check whether --enable-doxygen-doc was given.
11899 if test "${enable_doxygen_doc+set}" = set; then :
11900   enableval=$enable_doxygen_doc;
11901 case "$enableval" in
11902 #(
11903 y|Y|yes|Yes|YES)
11904     DX_FLAG_doc=1
11905
11906
11907 ;; #(
11908 n|N|no|No|NO)
11909     DX_FLAG_doc=0
11910
11911 ;; #(
11912 *)
11913     as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
11914 ;;
11915 esac
11916
11917 else
11918
11919 DX_FLAG_doc=1
11920
11921
11922
11923 fi
11924
11925 if test "$DX_FLAG_doc" = 1; then
11926
11927 if test -n "$ac_tool_prefix"; then
11928   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
11929 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11931 $as_echo_n "checking for $ac_word... " >&6; }
11932 if ${ac_cv_path_DX_DOXYGEN+:} false; then :
11933   $as_echo_n "(cached) " >&6
11934 else
11935   case $DX_DOXYGEN in
11936   [\\/]* | ?:[\\/]*)
11937   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
11938   ;;
11939   *)
11940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941 for as_dir in $PATH
11942 do
11943   IFS=$as_save_IFS
11944   test -z "$as_dir" && as_dir=.
11945     for ac_exec_ext in '' $ac_executable_extensions; do
11946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11947     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11949     break 2
11950   fi
11951 done
11952   done
11953 IFS=$as_save_IFS
11954
11955   ;;
11956 esac
11957 fi
11958 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
11959 if test -n "$DX_DOXYGEN"; then
11960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
11961 $as_echo "$DX_DOXYGEN" >&6; }
11962 else
11963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11965 fi
11966
11967
11968 fi
11969 if test -z "$ac_cv_path_DX_DOXYGEN"; then
11970   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
11971   # Extract the first word of "doxygen", so it can be a program name with args.
11972 set dummy doxygen; ac_word=$2
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974 $as_echo_n "checking for $ac_word... " >&6; }
11975 if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
11976   $as_echo_n "(cached) " >&6
11977 else
11978   case $ac_pt_DX_DOXYGEN in
11979   [\\/]* | ?:[\\/]*)
11980   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
11981   ;;
11982   *)
11983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11984 for as_dir in $PATH
11985 do
11986   IFS=$as_save_IFS
11987   test -z "$as_dir" && as_dir=.
11988     for ac_exec_ext in '' $ac_executable_extensions; do
11989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11990     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11992     break 2
11993   fi
11994 done
11995   done
11996 IFS=$as_save_IFS
11997
11998   ;;
11999 esac
12000 fi
12001 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
12002 if test -n "$ac_pt_DX_DOXYGEN"; then
12003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
12004 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
12005 else
12006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12008 fi
12009
12010   if test "x$ac_pt_DX_DOXYGEN" = x; then
12011     DX_DOXYGEN=""
12012   else
12013     case $cross_compiling:$ac_tool_warned in
12014 yes:)
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12017 ac_tool_warned=yes ;;
12018 esac
12019     DX_DOXYGEN=$ac_pt_DX_DOXYGEN
12020   fi
12021 else
12022   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
12023 fi
12024
12025 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
12026     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
12027 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
12028     DX_FLAG_doc=0
12029
12030 fi
12031
12032
12033 if test -n "$ac_tool_prefix"; then
12034   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
12035 set dummy ${ac_tool_prefix}perl; ac_word=$2
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037 $as_echo_n "checking for $ac_word... " >&6; }
12038 if ${ac_cv_path_DX_PERL+:} false; then :
12039   $as_echo_n "(cached) " >&6
12040 else
12041   case $DX_PERL in
12042   [\\/]* | ?:[\\/]*)
12043   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
12044   ;;
12045   *)
12046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047 for as_dir in $PATH
12048 do
12049   IFS=$as_save_IFS
12050   test -z "$as_dir" && as_dir=.
12051     for ac_exec_ext in '' $ac_executable_extensions; do
12052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12053     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
12054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12055     break 2
12056   fi
12057 done
12058   done
12059 IFS=$as_save_IFS
12060
12061   ;;
12062 esac
12063 fi
12064 DX_PERL=$ac_cv_path_DX_PERL
12065 if test -n "$DX_PERL"; then
12066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
12067 $as_echo "$DX_PERL" >&6; }
12068 else
12069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070 $as_echo "no" >&6; }
12071 fi
12072
12073
12074 fi
12075 if test -z "$ac_cv_path_DX_PERL"; then
12076   ac_pt_DX_PERL=$DX_PERL
12077   # Extract the first word of "perl", so it can be a program name with args.
12078 set dummy perl; ac_word=$2
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080 $as_echo_n "checking for $ac_word... " >&6; }
12081 if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
12082   $as_echo_n "(cached) " >&6
12083 else
12084   case $ac_pt_DX_PERL in
12085   [\\/]* | ?:[\\/]*)
12086   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
12087   ;;
12088   *)
12089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12090 for as_dir in $PATH
12091 do
12092   IFS=$as_save_IFS
12093   test -z "$as_dir" && as_dir=.
12094     for ac_exec_ext in '' $ac_executable_extensions; do
12095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12096     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
12097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12098     break 2
12099   fi
12100 done
12101   done
12102 IFS=$as_save_IFS
12103
12104   ;;
12105 esac
12106 fi
12107 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
12108 if test -n "$ac_pt_DX_PERL"; then
12109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
12110 $as_echo "$ac_pt_DX_PERL" >&6; }
12111 else
12112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12114 fi
12115
12116   if test "x$ac_pt_DX_PERL" = x; then
12117     DX_PERL=""
12118   else
12119     case $cross_compiling:$ac_tool_warned in
12120 yes:)
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12123 ac_tool_warned=yes ;;
12124 esac
12125     DX_PERL=$ac_pt_DX_PERL
12126   fi
12127 else
12128   DX_PERL="$ac_cv_path_DX_PERL"
12129 fi
12130
12131 if test "$DX_FLAG_doc$DX_PERL" = 1; then
12132     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
12133 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
12134     DX_FLAG_doc=0
12135
12136 fi
12137
12138     :
12139 fi
12140 if test "$DX_FLAG_doc" = 1; then
12141      if :; then
12142   DX_COND_doc_TRUE=
12143   DX_COND_doc_FALSE='#'
12144 else
12145   DX_COND_doc_TRUE='#'
12146   DX_COND_doc_FALSE=
12147 fi
12148
12149     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
12150
12151     :
12152 else
12153      if false; then
12154   DX_COND_doc_TRUE=
12155   DX_COND_doc_FALSE='#'
12156 else
12157   DX_COND_doc_TRUE='#'
12158   DX_COND_doc_FALSE=
12159 fi
12160
12161
12162     :
12163 fi
12164
12165
12166 # Dot for graphics:
12167
12168
12169
12170     # Check whether --enable-doxygen-dot was given.
12171 if test "${enable_doxygen_dot+set}" = set; then :
12172   enableval=$enable_doxygen_dot;
12173 case "$enableval" in
12174 #(
12175 y|Y|yes|Yes|YES)
12176     DX_FLAG_dot=1
12177
12178
12179 test "$DX_FLAG_doc" = "1" \
12180 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
12181
12182 ;; #(
12183 n|N|no|No|NO)
12184     DX_FLAG_dot=0
12185
12186 ;; #(
12187 *)
12188     as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
12189 ;;
12190 esac
12191
12192 else
12193
12194 DX_FLAG_dot=1
12195
12196
12197 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
12198
12199
12200
12201 fi
12202
12203 if test "$DX_FLAG_dot" = 1; then
12204
12205 if test -n "$ac_tool_prefix"; then
12206   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
12207 set dummy ${ac_tool_prefix}dot; ac_word=$2
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12209 $as_echo_n "checking for $ac_word... " >&6; }
12210 if ${ac_cv_path_DX_DOT+:} false; then :
12211   $as_echo_n "(cached) " >&6
12212 else
12213   case $DX_DOT in
12214   [\\/]* | ?:[\\/]*)
12215   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
12216   ;;
12217   *)
12218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219 for as_dir in $PATH
12220 do
12221   IFS=$as_save_IFS
12222   test -z "$as_dir" && as_dir=.
12223     for ac_exec_ext in '' $ac_executable_extensions; do
12224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12225     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
12226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12227     break 2
12228   fi
12229 done
12230   done
12231 IFS=$as_save_IFS
12232
12233   ;;
12234 esac
12235 fi
12236 DX_DOT=$ac_cv_path_DX_DOT
12237 if test -n "$DX_DOT"; then
12238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
12239 $as_echo "$DX_DOT" >&6; }
12240 else
12241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242 $as_echo "no" >&6; }
12243 fi
12244
12245
12246 fi
12247 if test -z "$ac_cv_path_DX_DOT"; then
12248   ac_pt_DX_DOT=$DX_DOT
12249   # Extract the first word of "dot", so it can be a program name with args.
12250 set dummy dot; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
12254   $as_echo_n "(cached) " >&6
12255 else
12256   case $ac_pt_DX_DOT in
12257   [\\/]* | ?:[\\/]*)
12258   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
12259   ;;
12260   *)
12261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in $PATH
12263 do
12264   IFS=$as_save_IFS
12265   test -z "$as_dir" && as_dir=.
12266     for ac_exec_ext in '' $ac_executable_extensions; do
12267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12268     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
12269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270     break 2
12271   fi
12272 done
12273   done
12274 IFS=$as_save_IFS
12275
12276   ;;
12277 esac
12278 fi
12279 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
12280 if test -n "$ac_pt_DX_DOT"; then
12281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
12282 $as_echo "$ac_pt_DX_DOT" >&6; }
12283 else
12284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286 fi
12287
12288   if test "x$ac_pt_DX_DOT" = x; then
12289     DX_DOT=""
12290   else
12291     case $cross_compiling:$ac_tool_warned in
12292 yes:)
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12295 ac_tool_warned=yes ;;
12296 esac
12297     DX_DOT=$ac_pt_DX_DOT
12298   fi
12299 else
12300   DX_DOT="$ac_cv_path_DX_DOT"
12301 fi
12302
12303 if test "$DX_FLAG_dot$DX_DOT" = 1; then
12304     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
12305 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
12306     DX_FLAG_dot=0
12307
12308 fi
12309
12310     :
12311 fi
12312 if test "$DX_FLAG_dot" = 1; then
12313      if :; then
12314   DX_COND_dot_TRUE=
12315   DX_COND_dot_FALSE='#'
12316 else
12317   DX_COND_dot_TRUE='#'
12318   DX_COND_dot_FALSE=
12319 fi
12320
12321     DX_ENV="$DX_ENV HAVE_DOT='YES'"
12322
12323              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
12324
12325     :
12326 else
12327      if false; then
12328   DX_COND_dot_TRUE=
12329   DX_COND_dot_FALSE='#'
12330 else
12331   DX_COND_dot_TRUE='#'
12332   DX_COND_dot_FALSE=
12333 fi
12334
12335     DX_ENV="$DX_ENV HAVE_DOT='NO'"
12336
12337     :
12338 fi
12339
12340
12341 # Man pages generation:
12342
12343
12344
12345     # Check whether --enable-doxygen-man was given.
12346 if test "${enable_doxygen_man+set}" = set; then :
12347   enableval=$enable_doxygen_man;
12348 case "$enableval" in
12349 #(
12350 y|Y|yes|Yes|YES)
12351     DX_FLAG_man=1
12352
12353
12354 test "$DX_FLAG_doc" = "1" \
12355 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
12356
12357 ;; #(
12358 n|N|no|No|NO)
12359     DX_FLAG_man=0
12360
12361 ;; #(
12362 *)
12363     as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
12364 ;;
12365 esac
12366
12367 else
12368
12369 DX_FLAG_man=0
12370
12371
12372 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
12373
12374
12375
12376 fi
12377
12378 if test "$DX_FLAG_man" = 1; then
12379
12380     :
12381 fi
12382 if test "$DX_FLAG_man" = 1; then
12383      if :; then
12384   DX_COND_man_TRUE=
12385   DX_COND_man_FALSE='#'
12386 else
12387   DX_COND_man_TRUE='#'
12388   DX_COND_man_FALSE=
12389 fi
12390
12391     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
12392
12393     :
12394 else
12395      if false; then
12396   DX_COND_man_TRUE=
12397   DX_COND_man_FALSE='#'
12398 else
12399   DX_COND_man_TRUE='#'
12400   DX_COND_man_FALSE=
12401 fi
12402
12403     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
12404
12405     :
12406 fi
12407
12408
12409 # RTF file generation:
12410
12411
12412
12413     # Check whether --enable-doxygen-rtf was given.
12414 if test "${enable_doxygen_rtf+set}" = set; then :
12415   enableval=$enable_doxygen_rtf;
12416 case "$enableval" in
12417 #(
12418 y|Y|yes|Yes|YES)
12419     DX_FLAG_rtf=1
12420
12421
12422 test "$DX_FLAG_doc" = "1" \
12423 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
12424
12425 ;; #(
12426 n|N|no|No|NO)
12427     DX_FLAG_rtf=0
12428
12429 ;; #(
12430 *)
12431     as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
12432 ;;
12433 esac
12434
12435 else
12436
12437 DX_FLAG_rtf=0
12438
12439
12440 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
12441
12442
12443
12444 fi
12445
12446 if test "$DX_FLAG_rtf" = 1; then
12447
12448     :
12449 fi
12450 if test "$DX_FLAG_rtf" = 1; then
12451      if :; then
12452   DX_COND_rtf_TRUE=
12453   DX_COND_rtf_FALSE='#'
12454 else
12455   DX_COND_rtf_TRUE='#'
12456   DX_COND_rtf_FALSE=
12457 fi
12458
12459     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
12460
12461     :
12462 else
12463      if false; then
12464   DX_COND_rtf_TRUE=
12465   DX_COND_rtf_FALSE='#'
12466 else
12467   DX_COND_rtf_TRUE='#'
12468   DX_COND_rtf_FALSE=
12469 fi
12470
12471     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
12472
12473     :
12474 fi
12475
12476
12477 # XML file generation:
12478
12479
12480
12481     # Check whether --enable-doxygen-xml was given.
12482 if test "${enable_doxygen_xml+set}" = set; then :
12483   enableval=$enable_doxygen_xml;
12484 case "$enableval" in
12485 #(
12486 y|Y|yes|Yes|YES)
12487     DX_FLAG_xml=1
12488
12489
12490 test "$DX_FLAG_doc" = "1" \
12491 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
12492
12493 ;; #(
12494 n|N|no|No|NO)
12495     DX_FLAG_xml=0
12496
12497 ;; #(
12498 *)
12499     as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
12500 ;;
12501 esac
12502
12503 else
12504
12505 DX_FLAG_xml=0
12506
12507
12508 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
12509
12510
12511
12512 fi
12513
12514 if test "$DX_FLAG_xml" = 1; then
12515
12516     :
12517 fi
12518 if test "$DX_FLAG_xml" = 1; then
12519      if :; then
12520   DX_COND_xml_TRUE=
12521   DX_COND_xml_FALSE='#'
12522 else
12523   DX_COND_xml_TRUE='#'
12524   DX_COND_xml_FALSE=
12525 fi
12526
12527     DX_ENV="$DX_ENV GENERATE_XML='YES'"
12528
12529     :
12530 else
12531      if false; then
12532   DX_COND_xml_TRUE=
12533   DX_COND_xml_FALSE='#'
12534 else
12535   DX_COND_xml_TRUE='#'
12536   DX_COND_xml_FALSE=
12537 fi
12538
12539     DX_ENV="$DX_ENV GENERATE_XML='NO'"
12540
12541     :
12542 fi
12543
12544
12545 # (Compressed) HTML help generation:
12546
12547
12548
12549     # Check whether --enable-doxygen-chm was given.
12550 if test "${enable_doxygen_chm+set}" = set; then :
12551   enableval=$enable_doxygen_chm;
12552 case "$enableval" in
12553 #(
12554 y|Y|yes|Yes|YES)
12555     DX_FLAG_chm=1
12556
12557
12558 test "$DX_FLAG_doc" = "1" \
12559 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
12560
12561 ;; #(
12562 n|N|no|No|NO)
12563     DX_FLAG_chm=0
12564
12565 ;; #(
12566 *)
12567     as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
12568 ;;
12569 esac
12570
12571 else
12572
12573 DX_FLAG_chm=0
12574
12575
12576 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
12577
12578
12579
12580 fi
12581
12582 if test "$DX_FLAG_chm" = 1; then
12583
12584 if test -n "$ac_tool_prefix"; then
12585   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
12586 set dummy ${ac_tool_prefix}hhc; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_path_DX_HHC+:} false; then :
12590   $as_echo_n "(cached) " >&6
12591 else
12592   case $DX_HHC in
12593   [\\/]* | ?:[\\/]*)
12594   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
12595   ;;
12596   *)
12597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12599 do
12600   IFS=$as_save_IFS
12601   test -z "$as_dir" && as_dir=.
12602     for ac_exec_ext in '' $ac_executable_extensions; do
12603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12604     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
12605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606     break 2
12607   fi
12608 done
12609   done
12610 IFS=$as_save_IFS
12611
12612   ;;
12613 esac
12614 fi
12615 DX_HHC=$ac_cv_path_DX_HHC
12616 if test -n "$DX_HHC"; then
12617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
12618 $as_echo "$DX_HHC" >&6; }
12619 else
12620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12622 fi
12623
12624
12625 fi
12626 if test -z "$ac_cv_path_DX_HHC"; then
12627   ac_pt_DX_HHC=$DX_HHC
12628   # Extract the first word of "hhc", so it can be a program name with args.
12629 set dummy hhc; ac_word=$2
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12631 $as_echo_n "checking for $ac_word... " >&6; }
12632 if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
12633   $as_echo_n "(cached) " >&6
12634 else
12635   case $ac_pt_DX_HHC in
12636   [\\/]* | ?:[\\/]*)
12637   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
12638   ;;
12639   *)
12640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641 for as_dir in $PATH
12642 do
12643   IFS=$as_save_IFS
12644   test -z "$as_dir" && as_dir=.
12645     for ac_exec_ext in '' $ac_executable_extensions; do
12646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12647     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
12648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12649     break 2
12650   fi
12651 done
12652   done
12653 IFS=$as_save_IFS
12654
12655   ;;
12656 esac
12657 fi
12658 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
12659 if test -n "$ac_pt_DX_HHC"; then
12660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
12661 $as_echo "$ac_pt_DX_HHC" >&6; }
12662 else
12663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664 $as_echo "no" >&6; }
12665 fi
12666
12667   if test "x$ac_pt_DX_HHC" = x; then
12668     DX_HHC=""
12669   else
12670     case $cross_compiling:$ac_tool_warned in
12671 yes:)
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12674 ac_tool_warned=yes ;;
12675 esac
12676     DX_HHC=$ac_pt_DX_HHC
12677   fi
12678 else
12679   DX_HHC="$ac_cv_path_DX_HHC"
12680 fi
12681
12682 if test "$DX_FLAG_chm$DX_HHC" = 1; then
12683     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
12684 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
12685     DX_FLAG_chm=0
12686
12687 fi
12688
12689     :
12690 fi
12691 if test "$DX_FLAG_chm" = 1; then
12692      if :; then
12693   DX_COND_chm_TRUE=
12694   DX_COND_chm_FALSE='#'
12695 else
12696   DX_COND_chm_TRUE='#'
12697   DX_COND_chm_FALSE=
12698 fi
12699
12700     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
12701
12702              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
12703
12704              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
12705
12706     :
12707 else
12708      if false; then
12709   DX_COND_chm_TRUE=
12710   DX_COND_chm_FALSE='#'
12711 else
12712   DX_COND_chm_TRUE='#'
12713   DX_COND_chm_FALSE=
12714 fi
12715
12716     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
12717
12718     :
12719 fi
12720
12721
12722 # Seperate CHI file generation.
12723
12724
12725
12726     # Check whether --enable-doxygen-chi was given.
12727 if test "${enable_doxygen_chi+set}" = set; then :
12728   enableval=$enable_doxygen_chi;
12729 case "$enableval" in
12730 #(
12731 y|Y|yes|Yes|YES)
12732     DX_FLAG_chi=1
12733
12734
12735 test "$DX_FLAG_chm" = "1" \
12736 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
12737
12738 ;; #(
12739 n|N|no|No|NO)
12740     DX_FLAG_chi=0
12741
12742 ;; #(
12743 *)
12744     as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
12745 ;;
12746 esac
12747
12748 else
12749
12750 DX_FLAG_chi=0
12751
12752
12753 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
12754
12755
12756
12757 fi
12758
12759 if test "$DX_FLAG_chi" = 1; then
12760
12761     :
12762 fi
12763 if test "$DX_FLAG_chi" = 1; then
12764      if :; then
12765   DX_COND_chi_TRUE=
12766   DX_COND_chi_FALSE='#'
12767 else
12768   DX_COND_chi_TRUE='#'
12769   DX_COND_chi_FALSE=
12770 fi
12771
12772     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
12773
12774     :
12775 else
12776      if false; then
12777   DX_COND_chi_TRUE=
12778   DX_COND_chi_FALSE='#'
12779 else
12780   DX_COND_chi_TRUE='#'
12781   DX_COND_chi_FALSE=
12782 fi
12783
12784     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
12785
12786     :
12787 fi
12788
12789
12790 # Plain HTML pages generation:
12791
12792
12793
12794     # Check whether --enable-doxygen-html was given.
12795 if test "${enable_doxygen_html+set}" = set; then :
12796   enableval=$enable_doxygen_html;
12797 case "$enableval" in
12798 #(
12799 y|Y|yes|Yes|YES)
12800     DX_FLAG_html=1
12801
12802
12803 test "$DX_FLAG_doc" = "1" \
12804 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
12805
12806 test "$DX_FLAG_chm" = "0" \
12807 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
12808
12809 ;; #(
12810 n|N|no|No|NO)
12811     DX_FLAG_html=0
12812
12813 ;; #(
12814 *)
12815     as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
12816 ;;
12817 esac
12818
12819 else
12820
12821 DX_FLAG_html=1
12822
12823
12824 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
12825
12826
12827 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
12828
12829
12830
12831 fi
12832
12833 if test "$DX_FLAG_html" = 1; then
12834
12835     :
12836 fi
12837 if test "$DX_FLAG_html" = 1; then
12838      if :; then
12839   DX_COND_html_TRUE=
12840   DX_COND_html_FALSE='#'
12841 else
12842   DX_COND_html_TRUE='#'
12843   DX_COND_html_FALSE=
12844 fi
12845
12846     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
12847
12848     :
12849 else
12850      if false; then
12851   DX_COND_html_TRUE=
12852   DX_COND_html_FALSE='#'
12853 else
12854   DX_COND_html_TRUE='#'
12855   DX_COND_html_FALSE=
12856 fi
12857
12858     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
12859
12860     :
12861 fi
12862
12863
12864 # PostScript file generation:
12865
12866
12867
12868     # Check whether --enable-doxygen-ps was given.
12869 if test "${enable_doxygen_ps+set}" = set; then :
12870   enableval=$enable_doxygen_ps;
12871 case "$enableval" in
12872 #(
12873 y|Y|yes|Yes|YES)
12874     DX_FLAG_ps=1
12875
12876
12877 test "$DX_FLAG_doc" = "1" \
12878 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
12879
12880 ;; #(
12881 n|N|no|No|NO)
12882     DX_FLAG_ps=0
12883
12884 ;; #(
12885 *)
12886     as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
12887 ;;
12888 esac
12889
12890 else
12891
12892 DX_FLAG_ps=0
12893
12894
12895 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
12896
12897
12898
12899 fi
12900
12901 if test "$DX_FLAG_ps" = 1; then
12902
12903 if test -n "$ac_tool_prefix"; then
12904   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
12905 set dummy ${ac_tool_prefix}latex; ac_word=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if ${ac_cv_path_DX_LATEX+:} false; then :
12909   $as_echo_n "(cached) " >&6
12910 else
12911   case $DX_LATEX in
12912   [\\/]* | ?:[\\/]*)
12913   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
12914   ;;
12915   *)
12916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917 for as_dir in $PATH
12918 do
12919   IFS=$as_save_IFS
12920   test -z "$as_dir" && as_dir=.
12921     for ac_exec_ext in '' $ac_executable_extensions; do
12922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12923     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12925     break 2
12926   fi
12927 done
12928   done
12929 IFS=$as_save_IFS
12930
12931   ;;
12932 esac
12933 fi
12934 DX_LATEX=$ac_cv_path_DX_LATEX
12935 if test -n "$DX_LATEX"; then
12936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
12937 $as_echo "$DX_LATEX" >&6; }
12938 else
12939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940 $as_echo "no" >&6; }
12941 fi
12942
12943
12944 fi
12945 if test -z "$ac_cv_path_DX_LATEX"; then
12946   ac_pt_DX_LATEX=$DX_LATEX
12947   # Extract the first word of "latex", so it can be a program name with args.
12948 set dummy latex; ac_word=$2
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12950 $as_echo_n "checking for $ac_word... " >&6; }
12951 if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
12952   $as_echo_n "(cached) " >&6
12953 else
12954   case $ac_pt_DX_LATEX in
12955   [\\/]* | ?:[\\/]*)
12956   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
12957   ;;
12958   *)
12959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12961 do
12962   IFS=$as_save_IFS
12963   test -z "$as_dir" && as_dir=.
12964     for ac_exec_ext in '' $ac_executable_extensions; do
12965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12966     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968     break 2
12969   fi
12970 done
12971   done
12972 IFS=$as_save_IFS
12973
12974   ;;
12975 esac
12976 fi
12977 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
12978 if test -n "$ac_pt_DX_LATEX"; then
12979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
12980 $as_echo "$ac_pt_DX_LATEX" >&6; }
12981 else
12982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12984 fi
12985
12986   if test "x$ac_pt_DX_LATEX" = x; then
12987     DX_LATEX=""
12988   else
12989     case $cross_compiling:$ac_tool_warned in
12990 yes:)
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12993 ac_tool_warned=yes ;;
12994 esac
12995     DX_LATEX=$ac_pt_DX_LATEX
12996   fi
12997 else
12998   DX_LATEX="$ac_cv_path_DX_LATEX"
12999 fi
13000
13001 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
13002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
13003 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
13004     DX_FLAG_ps=0
13005
13006 fi
13007
13008
13009 if test -n "$ac_tool_prefix"; then
13010   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
13011 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013 $as_echo_n "checking for $ac_word... " >&6; }
13014 if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
13015   $as_echo_n "(cached) " >&6
13016 else
13017   case $DX_MAKEINDEX in
13018   [\\/]* | ?:[\\/]*)
13019   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
13020   ;;
13021   *)
13022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $PATH
13024 do
13025   IFS=$as_save_IFS
13026   test -z "$as_dir" && as_dir=.
13027     for ac_exec_ext in '' $ac_executable_extensions; do
13028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13029     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13031     break 2
13032   fi
13033 done
13034   done
13035 IFS=$as_save_IFS
13036
13037   ;;
13038 esac
13039 fi
13040 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
13041 if test -n "$DX_MAKEINDEX"; then
13042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
13043 $as_echo "$DX_MAKEINDEX" >&6; }
13044 else
13045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046 $as_echo "no" >&6; }
13047 fi
13048
13049
13050 fi
13051 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
13052   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
13053   # Extract the first word of "makeindex", so it can be a program name with args.
13054 set dummy makeindex; ac_word=$2
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13056 $as_echo_n "checking for $ac_word... " >&6; }
13057 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
13058   $as_echo_n "(cached) " >&6
13059 else
13060   case $ac_pt_DX_MAKEINDEX in
13061   [\\/]* | ?:[\\/]*)
13062   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
13063   ;;
13064   *)
13065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $PATH
13067 do
13068   IFS=$as_save_IFS
13069   test -z "$as_dir" && as_dir=.
13070     for ac_exec_ext in '' $ac_executable_extensions; do
13071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13072     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074     break 2
13075   fi
13076 done
13077   done
13078 IFS=$as_save_IFS
13079
13080   ;;
13081 esac
13082 fi
13083 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
13084 if test -n "$ac_pt_DX_MAKEINDEX"; then
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
13086 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
13087 else
13088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13090 fi
13091
13092   if test "x$ac_pt_DX_MAKEINDEX" = x; then
13093     DX_MAKEINDEX=""
13094   else
13095     case $cross_compiling:$ac_tool_warned in
13096 yes:)
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13099 ac_tool_warned=yes ;;
13100 esac
13101     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
13102   fi
13103 else
13104   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
13105 fi
13106
13107 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
13108     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
13109 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
13110     DX_FLAG_ps=0
13111
13112 fi
13113
13114
13115 if test -n "$ac_tool_prefix"; then
13116   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
13117 set dummy ${ac_tool_prefix}dvips; ac_word=$2
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13119 $as_echo_n "checking for $ac_word... " >&6; }
13120 if ${ac_cv_path_DX_DVIPS+:} false; then :
13121   $as_echo_n "(cached) " >&6
13122 else
13123   case $DX_DVIPS in
13124   [\\/]* | ?:[\\/]*)
13125   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
13126   ;;
13127   *)
13128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13129 for as_dir in $PATH
13130 do
13131   IFS=$as_save_IFS
13132   test -z "$as_dir" && as_dir=.
13133     for ac_exec_ext in '' $ac_executable_extensions; do
13134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13135     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
13136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13137     break 2
13138   fi
13139 done
13140   done
13141 IFS=$as_save_IFS
13142
13143   ;;
13144 esac
13145 fi
13146 DX_DVIPS=$ac_cv_path_DX_DVIPS
13147 if test -n "$DX_DVIPS"; then
13148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
13149 $as_echo "$DX_DVIPS" >&6; }
13150 else
13151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13153 fi
13154
13155
13156 fi
13157 if test -z "$ac_cv_path_DX_DVIPS"; then
13158   ac_pt_DX_DVIPS=$DX_DVIPS
13159   # Extract the first word of "dvips", so it can be a program name with args.
13160 set dummy dvips; ac_word=$2
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13162 $as_echo_n "checking for $ac_word... " >&6; }
13163 if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
13164   $as_echo_n "(cached) " >&6
13165 else
13166   case $ac_pt_DX_DVIPS in
13167   [\\/]* | ?:[\\/]*)
13168   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
13169   ;;
13170   *)
13171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 for as_dir in $PATH
13173 do
13174   IFS=$as_save_IFS
13175   test -z "$as_dir" && as_dir=.
13176     for ac_exec_ext in '' $ac_executable_extensions; do
13177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13178     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
13179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13180     break 2
13181   fi
13182 done
13183   done
13184 IFS=$as_save_IFS
13185
13186   ;;
13187 esac
13188 fi
13189 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
13190 if test -n "$ac_pt_DX_DVIPS"; then
13191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
13192 $as_echo "$ac_pt_DX_DVIPS" >&6; }
13193 else
13194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13195 $as_echo "no" >&6; }
13196 fi
13197
13198   if test "x$ac_pt_DX_DVIPS" = x; then
13199     DX_DVIPS=""
13200   else
13201     case $cross_compiling:$ac_tool_warned in
13202 yes:)
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13205 ac_tool_warned=yes ;;
13206 esac
13207     DX_DVIPS=$ac_pt_DX_DVIPS
13208   fi
13209 else
13210   DX_DVIPS="$ac_cv_path_DX_DVIPS"
13211 fi
13212
13213 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
13214     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
13215 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
13216     DX_FLAG_ps=0
13217
13218 fi
13219
13220
13221 if test -n "$ac_tool_prefix"; then
13222   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
13223 set dummy ${ac_tool_prefix}egrep; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if ${ac_cv_path_DX_EGREP+:} false; then :
13227   $as_echo_n "(cached) " >&6
13228 else
13229   case $DX_EGREP in
13230   [\\/]* | ?:[\\/]*)
13231   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
13232   ;;
13233   *)
13234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13236 do
13237   IFS=$as_save_IFS
13238   test -z "$as_dir" && as_dir=.
13239     for ac_exec_ext in '' $ac_executable_extensions; do
13240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13243     break 2
13244   fi
13245 done
13246   done
13247 IFS=$as_save_IFS
13248
13249   ;;
13250 esac
13251 fi
13252 DX_EGREP=$ac_cv_path_DX_EGREP
13253 if test -n "$DX_EGREP"; then
13254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
13255 $as_echo "$DX_EGREP" >&6; }
13256 else
13257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258 $as_echo "no" >&6; }
13259 fi
13260
13261
13262 fi
13263 if test -z "$ac_cv_path_DX_EGREP"; then
13264   ac_pt_DX_EGREP=$DX_EGREP
13265   # Extract the first word of "egrep", so it can be a program name with args.
13266 set dummy egrep; ac_word=$2
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268 $as_echo_n "checking for $ac_word... " >&6; }
13269 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
13270   $as_echo_n "(cached) " >&6
13271 else
13272   case $ac_pt_DX_EGREP in
13273   [\\/]* | ?:[\\/]*)
13274   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
13275   ;;
13276   *)
13277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278 for as_dir in $PATH
13279 do
13280   IFS=$as_save_IFS
13281   test -z "$as_dir" && as_dir=.
13282     for ac_exec_ext in '' $ac_executable_extensions; do
13283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13284     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13286     break 2
13287   fi
13288 done
13289   done
13290 IFS=$as_save_IFS
13291
13292   ;;
13293 esac
13294 fi
13295 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
13296 if test -n "$ac_pt_DX_EGREP"; then
13297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
13298 $as_echo "$ac_pt_DX_EGREP" >&6; }
13299 else
13300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13302 fi
13303
13304   if test "x$ac_pt_DX_EGREP" = x; then
13305     DX_EGREP=""
13306   else
13307     case $cross_compiling:$ac_tool_warned in
13308 yes:)
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13311 ac_tool_warned=yes ;;
13312 esac
13313     DX_EGREP=$ac_pt_DX_EGREP
13314   fi
13315 else
13316   DX_EGREP="$ac_cv_path_DX_EGREP"
13317 fi
13318
13319 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
13320     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
13321 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
13322     DX_FLAG_ps=0
13323
13324 fi
13325
13326     :
13327 fi
13328 if test "$DX_FLAG_ps" = 1; then
13329      if :; then
13330   DX_COND_ps_TRUE=
13331   DX_COND_ps_FALSE='#'
13332 else
13333   DX_COND_ps_TRUE='#'
13334   DX_COND_ps_FALSE=
13335 fi
13336
13337
13338     :
13339 else
13340      if false; then
13341   DX_COND_ps_TRUE=
13342   DX_COND_ps_FALSE='#'
13343 else
13344   DX_COND_ps_TRUE='#'
13345   DX_COND_ps_FALSE=
13346 fi
13347
13348
13349     :
13350 fi
13351
13352
13353 # PDF file generation:
13354
13355
13356
13357     # Check whether --enable-doxygen-pdf was given.
13358 if test "${enable_doxygen_pdf+set}" = set; then :
13359   enableval=$enable_doxygen_pdf;
13360 case "$enableval" in
13361 #(
13362 y|Y|yes|Yes|YES)
13363     DX_FLAG_pdf=1
13364
13365
13366 test "$DX_FLAG_doc" = "1" \
13367 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
13368
13369 ;; #(
13370 n|N|no|No|NO)
13371     DX_FLAG_pdf=0
13372
13373 ;; #(
13374 *)
13375     as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
13376 ;;
13377 esac
13378
13379 else
13380
13381 DX_FLAG_pdf=0
13382
13383
13384 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
13385
13386
13387
13388 fi
13389
13390 if test "$DX_FLAG_pdf" = 1; then
13391
13392 if test -n "$ac_tool_prefix"; then
13393   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
13394 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396 $as_echo_n "checking for $ac_word... " >&6; }
13397 if ${ac_cv_path_DX_PDFLATEX+:} false; then :
13398   $as_echo_n "(cached) " >&6
13399 else
13400   case $DX_PDFLATEX in
13401   [\\/]* | ?:[\\/]*)
13402   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
13403   ;;
13404   *)
13405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406 for as_dir in $PATH
13407 do
13408   IFS=$as_save_IFS
13409   test -z "$as_dir" && as_dir=.
13410     for ac_exec_ext in '' $ac_executable_extensions; do
13411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13412     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
13413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414     break 2
13415   fi
13416 done
13417   done
13418 IFS=$as_save_IFS
13419
13420   ;;
13421 esac
13422 fi
13423 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
13424 if test -n "$DX_PDFLATEX"; then
13425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
13426 $as_echo "$DX_PDFLATEX" >&6; }
13427 else
13428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429 $as_echo "no" >&6; }
13430 fi
13431
13432
13433 fi
13434 if test -z "$ac_cv_path_DX_PDFLATEX"; then
13435   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
13436   # Extract the first word of "pdflatex", so it can be a program name with args.
13437 set dummy pdflatex; ac_word=$2
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13439 $as_echo_n "checking for $ac_word... " >&6; }
13440 if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
13441   $as_echo_n "(cached) " >&6
13442 else
13443   case $ac_pt_DX_PDFLATEX in
13444   [\\/]* | ?:[\\/]*)
13445   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
13446   ;;
13447   *)
13448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449 for as_dir in $PATH
13450 do
13451   IFS=$as_save_IFS
13452   test -z "$as_dir" && as_dir=.
13453     for ac_exec_ext in '' $ac_executable_extensions; do
13454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13455     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
13456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13457     break 2
13458   fi
13459 done
13460   done
13461 IFS=$as_save_IFS
13462
13463   ;;
13464 esac
13465 fi
13466 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
13467 if test -n "$ac_pt_DX_PDFLATEX"; then
13468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
13469 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
13470 else
13471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472 $as_echo "no" >&6; }
13473 fi
13474
13475   if test "x$ac_pt_DX_PDFLATEX" = x; then
13476     DX_PDFLATEX=""
13477   else
13478     case $cross_compiling:$ac_tool_warned in
13479 yes:)
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13482 ac_tool_warned=yes ;;
13483 esac
13484     DX_PDFLATEX=$ac_pt_DX_PDFLATEX
13485   fi
13486 else
13487   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
13488 fi
13489
13490 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
13491     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
13492 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
13493     DX_FLAG_pdf=0
13494
13495 fi
13496
13497
13498 if test -n "$ac_tool_prefix"; then
13499   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
13500 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13502 $as_echo_n "checking for $ac_word... " >&6; }
13503 if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
13504   $as_echo_n "(cached) " >&6
13505 else
13506   case $DX_MAKEINDEX in
13507   [\\/]* | ?:[\\/]*)
13508   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
13509   ;;
13510   *)
13511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512 for as_dir in $PATH
13513 do
13514   IFS=$as_save_IFS
13515   test -z "$as_dir" && as_dir=.
13516     for ac_exec_ext in '' $ac_executable_extensions; do
13517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13518     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13520     break 2
13521   fi
13522 done
13523   done
13524 IFS=$as_save_IFS
13525
13526   ;;
13527 esac
13528 fi
13529 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
13530 if test -n "$DX_MAKEINDEX"; then
13531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
13532 $as_echo "$DX_MAKEINDEX" >&6; }
13533 else
13534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535 $as_echo "no" >&6; }
13536 fi
13537
13538
13539 fi
13540 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
13541   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
13542   # Extract the first word of "makeindex", so it can be a program name with args.
13543 set dummy makeindex; ac_word=$2
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13545 $as_echo_n "checking for $ac_word... " >&6; }
13546 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
13547   $as_echo_n "(cached) " >&6
13548 else
13549   case $ac_pt_DX_MAKEINDEX in
13550   [\\/]* | ?:[\\/]*)
13551   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
13552   ;;
13553   *)
13554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555 for as_dir in $PATH
13556 do
13557   IFS=$as_save_IFS
13558   test -z "$as_dir" && as_dir=.
13559     for ac_exec_ext in '' $ac_executable_extensions; do
13560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13561     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
13562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13563     break 2
13564   fi
13565 done
13566   done
13567 IFS=$as_save_IFS
13568
13569   ;;
13570 esac
13571 fi
13572 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
13573 if test -n "$ac_pt_DX_MAKEINDEX"; then
13574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
13575 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
13576 else
13577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578 $as_echo "no" >&6; }
13579 fi
13580
13581   if test "x$ac_pt_DX_MAKEINDEX" = x; then
13582     DX_MAKEINDEX=""
13583   else
13584     case $cross_compiling:$ac_tool_warned in
13585 yes:)
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13588 ac_tool_warned=yes ;;
13589 esac
13590     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
13591   fi
13592 else
13593   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
13594 fi
13595
13596 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
13597     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
13598 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
13599     DX_FLAG_pdf=0
13600
13601 fi
13602
13603
13604 if test -n "$ac_tool_prefix"; then
13605   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
13606 set dummy ${ac_tool_prefix}egrep; ac_word=$2
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608 $as_echo_n "checking for $ac_word... " >&6; }
13609 if ${ac_cv_path_DX_EGREP+:} false; then :
13610   $as_echo_n "(cached) " >&6
13611 else
13612   case $DX_EGREP in
13613   [\\/]* | ?:[\\/]*)
13614   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
13615   ;;
13616   *)
13617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618 for as_dir in $PATH
13619 do
13620   IFS=$as_save_IFS
13621   test -z "$as_dir" && as_dir=.
13622     for ac_exec_ext in '' $ac_executable_extensions; do
13623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13624     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13626     break 2
13627   fi
13628 done
13629   done
13630 IFS=$as_save_IFS
13631
13632   ;;
13633 esac
13634 fi
13635 DX_EGREP=$ac_cv_path_DX_EGREP
13636 if test -n "$DX_EGREP"; then
13637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
13638 $as_echo "$DX_EGREP" >&6; }
13639 else
13640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13642 fi
13643
13644
13645 fi
13646 if test -z "$ac_cv_path_DX_EGREP"; then
13647   ac_pt_DX_EGREP=$DX_EGREP
13648   # Extract the first word of "egrep", so it can be a program name with args.
13649 set dummy egrep; ac_word=$2
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13651 $as_echo_n "checking for $ac_word... " >&6; }
13652 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
13653   $as_echo_n "(cached) " >&6
13654 else
13655   case $ac_pt_DX_EGREP in
13656   [\\/]* | ?:[\\/]*)
13657   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
13658   ;;
13659   *)
13660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13661 for as_dir in $PATH
13662 do
13663   IFS=$as_save_IFS
13664   test -z "$as_dir" && as_dir=.
13665     for ac_exec_ext in '' $ac_executable_extensions; do
13666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13667     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
13668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13669     break 2
13670   fi
13671 done
13672   done
13673 IFS=$as_save_IFS
13674
13675   ;;
13676 esac
13677 fi
13678 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
13679 if test -n "$ac_pt_DX_EGREP"; then
13680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
13681 $as_echo "$ac_pt_DX_EGREP" >&6; }
13682 else
13683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 $as_echo "no" >&6; }
13685 fi
13686
13687   if test "x$ac_pt_DX_EGREP" = x; then
13688     DX_EGREP=""
13689   else
13690     case $cross_compiling:$ac_tool_warned in
13691 yes:)
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13694 ac_tool_warned=yes ;;
13695 esac
13696     DX_EGREP=$ac_pt_DX_EGREP
13697   fi
13698 else
13699   DX_EGREP="$ac_cv_path_DX_EGREP"
13700 fi
13701
13702 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
13703     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
13704 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
13705     DX_FLAG_pdf=0
13706
13707 fi
13708
13709     :
13710 fi
13711 if test "$DX_FLAG_pdf" = 1; then
13712      if :; then
13713   DX_COND_pdf_TRUE=
13714   DX_COND_pdf_FALSE='#'
13715 else
13716   DX_COND_pdf_TRUE='#'
13717   DX_COND_pdf_FALSE=
13718 fi
13719
13720
13721     :
13722 else
13723      if false; then
13724   DX_COND_pdf_TRUE=
13725   DX_COND_pdf_FALSE='#'
13726 else
13727   DX_COND_pdf_TRUE='#'
13728   DX_COND_pdf_FALSE=
13729 fi
13730
13731
13732     :
13733 fi
13734
13735
13736 # LaTeX generation for PS and/or PDF:
13737 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
13738      if :; then
13739   DX_COND_latex_TRUE=
13740   DX_COND_latex_FALSE='#'
13741 else
13742   DX_COND_latex_TRUE='#'
13743   DX_COND_latex_FALSE=
13744 fi
13745
13746     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
13747
13748 else
13749      if false; then
13750   DX_COND_latex_TRUE=
13751   DX_COND_latex_FALSE='#'
13752 else
13753   DX_COND_latex_TRUE='#'
13754   DX_COND_latex_FALSE=
13755 fi
13756
13757     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
13758
13759 fi
13760
13761 # Paper size for PS and/or PDF:
13762
13763 case "$DOXYGEN_PAPER_SIZE" in
13764 #(
13765 "")
13766     DOXYGEN_PAPER_SIZE=""
13767
13768 ;; #(
13769 a4wide|a4|letter|legal|executive)
13770     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
13771
13772 ;; #(
13773 *)
13774     as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
13775 ;;
13776 esac
13777
13778 #For debugging:
13779 #echo DX_FLAG_doc=$DX_FLAG_doc
13780 #echo DX_FLAG_dot=$DX_FLAG_dot
13781 #echo DX_FLAG_man=$DX_FLAG_man
13782 #echo DX_FLAG_html=$DX_FLAG_html
13783 #echo DX_FLAG_chm=$DX_FLAG_chm
13784 #echo DX_FLAG_chi=$DX_FLAG_chi
13785 #echo DX_FLAG_rtf=$DX_FLAG_rtf
13786 #echo DX_FLAG_xml=$DX_FLAG_xml
13787 #echo DX_FLAG_pdf=$DX_FLAG_pdf
13788 #echo DX_FLAG_ps=$DX_FLAG_ps
13789 #echo DX_ENV=$DX_ENV
13790
13791
13792 # Check whether --enable-debug was given.
13793 if test "${enable_debug+set}" = set; then :
13794   enableval=$enable_debug; enable_debug=$enableval
13795 else
13796   enable_debug=no
13797 fi
13798
13799
13800 if test "$enable_debug" = "yes" ; then
13801     GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
13802     GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
13803 else
13804     GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
13805     GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
13806 fi
13807
13808 ac_config_headers="$ac_config_headers config.h xmltooling/config_pub.h"
13809
13810 ac_config_files="$ac_config_files xmltooling.spec pkginfo Portfile"
13811
13812 ac_config_files="$ac_config_files Makefile xmltooling/Makefile xmltoolingtest/Makefile schemas/Makefile doc/Makefile"
13813
13814
13815 ac_ext=c
13816 ac_cpp='$CPP $CPPFLAGS'
13817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13820 if test -n "$ac_tool_prefix"; then
13821   for ac_prog in gcc gcc3 cc
13822   do
13823     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13826 $as_echo_n "checking for $ac_word... " >&6; }
13827 if ${ac_cv_prog_CC+:} false; then :
13828   $as_echo_n "(cached) " >&6
13829 else
13830   if test -n "$CC"; then
13831   ac_cv_prog_CC="$CC" # Let the user override the test.
13832 else
13833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13834 for as_dir in $PATH
13835 do
13836   IFS=$as_save_IFS
13837   test -z "$as_dir" && as_dir=.
13838     for ac_exec_ext in '' $ac_executable_extensions; do
13839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13840     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13842     break 2
13843   fi
13844 done
13845   done
13846 IFS=$as_save_IFS
13847
13848 fi
13849 fi
13850 CC=$ac_cv_prog_CC
13851 if test -n "$CC"; then
13852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13853 $as_echo "$CC" >&6; }
13854 else
13855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13856 $as_echo "no" >&6; }
13857 fi
13858
13859
13860     test -n "$CC" && break
13861   done
13862 fi
13863 if test -z "$CC"; then
13864   ac_ct_CC=$CC
13865   for ac_prog in gcc gcc3 cc
13866 do
13867   # Extract the first word of "$ac_prog", so it can be a program name with args.
13868 set dummy $ac_prog; ac_word=$2
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13870 $as_echo_n "checking for $ac_word... " >&6; }
13871 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13872   $as_echo_n "(cached) " >&6
13873 else
13874   if test -n "$ac_ct_CC"; then
13875   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13876 else
13877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13878 for as_dir in $PATH
13879 do
13880   IFS=$as_save_IFS
13881   test -z "$as_dir" && as_dir=.
13882     for ac_exec_ext in '' $ac_executable_extensions; do
13883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13884     ac_cv_prog_ac_ct_CC="$ac_prog"
13885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13886     break 2
13887   fi
13888 done
13889   done
13890 IFS=$as_save_IFS
13891
13892 fi
13893 fi
13894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13895 if test -n "$ac_ct_CC"; then
13896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13897 $as_echo "$ac_ct_CC" >&6; }
13898 else
13899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13900 $as_echo "no" >&6; }
13901 fi
13902
13903
13904   test -n "$ac_ct_CC" && break
13905 done
13906
13907   if test "x$ac_ct_CC" = x; then
13908     CC=""
13909   else
13910     case $cross_compiling:$ac_tool_warned in
13911 yes:)
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13914 ac_tool_warned=yes ;;
13915 esac
13916     CC=$ac_ct_CC
13917   fi
13918 fi
13919
13920
13921 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13923 as_fn_error $? "no acceptable C compiler found in \$PATH
13924 See \`config.log' for more details" "$LINENO" 5; }
13925
13926 # Provide some information about the compiler.
13927 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13928 set X $ac_compile
13929 ac_compiler=$2
13930 for ac_option in --version -v -V -qversion; do
13931   { { ac_try="$ac_compiler $ac_option >&5"
13932 case "(($ac_try" in
13933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934   *) ac_try_echo=$ac_try;;
13935 esac
13936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13937 $as_echo "$ac_try_echo"; } >&5
13938   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13939   ac_status=$?
13940   if test -s conftest.err; then
13941     sed '10a\
13942 ... rest of stderr output deleted ...
13943          10q' conftest.err >conftest.er1
13944     cat conftest.er1 >&5
13945   fi
13946   rm -f conftest.er1 conftest.err
13947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13948   test $ac_status = 0; }
13949 done
13950
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13952 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13953 if ${ac_cv_c_compiler_gnu+:} false; then :
13954   $as_echo_n "(cached) " >&6
13955 else
13956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h.  */
13958
13959 int
13960 main ()
13961 {
13962 #ifndef __GNUC__
13963        choke me
13964 #endif
13965
13966   ;
13967   return 0;
13968 }
13969 _ACEOF
13970 if ac_fn_c_try_compile "$LINENO"; then :
13971   ac_compiler_gnu=yes
13972 else
13973   ac_compiler_gnu=no
13974 fi
13975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13977
13978 fi
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13980 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13981 if test $ac_compiler_gnu = yes; then
13982   GCC=yes
13983 else
13984   GCC=
13985 fi
13986 ac_test_CFLAGS=${CFLAGS+set}
13987 ac_save_CFLAGS=$CFLAGS
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13989 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13990 if ${ac_cv_prog_cc_g+:} false; then :
13991   $as_echo_n "(cached) " >&6
13992 else
13993   ac_save_c_werror_flag=$ac_c_werror_flag
13994    ac_c_werror_flag=yes
13995    ac_cv_prog_cc_g=no
13996    CFLAGS="-g"
13997    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h.  */
13999
14000 int
14001 main ()
14002 {
14003
14004   ;
14005   return 0;
14006 }
14007 _ACEOF
14008 if ac_fn_c_try_compile "$LINENO"; then :
14009   ac_cv_prog_cc_g=yes
14010 else
14011   CFLAGS=""
14012       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h.  */
14014
14015 int
14016 main ()
14017 {
14018
14019   ;
14020   return 0;
14021 }
14022 _ACEOF
14023 if ac_fn_c_try_compile "$LINENO"; then :
14024
14025 else
14026   ac_c_werror_flag=$ac_save_c_werror_flag
14027          CFLAGS="-g"
14028          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h.  */
14030
14031 int
14032 main ()
14033 {
14034
14035   ;
14036   return 0;
14037 }
14038 _ACEOF
14039 if ac_fn_c_try_compile "$LINENO"; then :
14040   ac_cv_prog_cc_g=yes
14041 fi
14042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14043 fi
14044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14045 fi
14046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14047    ac_c_werror_flag=$ac_save_c_werror_flag
14048 fi
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14050 $as_echo "$ac_cv_prog_cc_g" >&6; }
14051 if test "$ac_test_CFLAGS" = set; then
14052   CFLAGS=$ac_save_CFLAGS
14053 elif test $ac_cv_prog_cc_g = yes; then
14054   if test "$GCC" = yes; then
14055     CFLAGS="-g -O2"
14056   else
14057     CFLAGS="-g"
14058   fi
14059 else
14060   if test "$GCC" = yes; then
14061     CFLAGS="-O2"
14062   else
14063     CFLAGS=
14064   fi
14065 fi
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14067 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14068 if ${ac_cv_prog_cc_c89+:} false; then :
14069   $as_echo_n "(cached) " >&6
14070 else
14071   ac_cv_prog_cc_c89=no
14072 ac_save_CC=$CC
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h.  */
14075 #include <stdarg.h>
14076 #include <stdio.h>
14077 #include <sys/types.h>
14078 #include <sys/stat.h>
14079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14080 struct buf { int x; };
14081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14082 static char *e (p, i)
14083      char **p;
14084      int i;
14085 {
14086   return p[i];
14087 }
14088 static char *f (char * (*g) (char **, int), char **p, ...)
14089 {
14090   char *s;
14091   va_list v;
14092   va_start (v,p);
14093   s = g (p, va_arg (v,int));
14094   va_end (v);
14095   return s;
14096 }
14097
14098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14099    function prototypes and stuff, but not '\xHH' hex character constants.
14100    These don't provoke an error unfortunately, instead are silently treated
14101    as 'x'.  The following induces an error, until -std is added to get
14102    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14103    array size at least.  It's necessary to write '\x00'==0 to get something
14104    that's true only with -std.  */
14105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14106
14107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14108    inside strings and character constants.  */
14109 #define FOO(x) 'x'
14110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14111
14112 int test (int i, double x);
14113 struct s1 {int (*f) (int a);};
14114 struct s2 {int (*f) (double a);};
14115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14116 int argc;
14117 char **argv;
14118 int
14119 main ()
14120 {
14121 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14122   ;
14123   return 0;
14124 }
14125 _ACEOF
14126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14127         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14128 do
14129   CC="$ac_save_CC $ac_arg"
14130   if ac_fn_c_try_compile "$LINENO"; then :
14131   ac_cv_prog_cc_c89=$ac_arg
14132 fi
14133 rm -f core conftest.err conftest.$ac_objext
14134   test "x$ac_cv_prog_cc_c89" != "xno" && break
14135 done
14136 rm -f conftest.$ac_ext
14137 CC=$ac_save_CC
14138
14139 fi
14140 # AC_CACHE_VAL
14141 case "x$ac_cv_prog_cc_c89" in
14142   x)
14143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14144 $as_echo "none needed" >&6; } ;;
14145   xno)
14146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14147 $as_echo "unsupported" >&6; } ;;
14148   *)
14149     CC="$CC $ac_cv_prog_cc_c89"
14150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14151 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14152 esac
14153 if test "x$ac_cv_prog_cc_c89" != xno; then :
14154
14155 fi
14156
14157 ac_ext=c
14158 ac_cpp='$CPP $CPPFLAGS'
14159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14162
14163 depcc="$CC"   am_compiler_list=
14164
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14166 $as_echo_n "checking dependency style of $depcc... " >&6; }
14167 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14168   $as_echo_n "(cached) " >&6
14169 else
14170   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14171   # We make a subdir and do the tests there.  Otherwise we can end up
14172   # making bogus files that we don't know about and never remove.  For
14173   # instance it was reported that on HP-UX the gcc test will end up
14174   # making a dummy file named `D' -- because `-MD' means `put the output
14175   # in D'.
14176   mkdir conftest.dir
14177   # Copy depcomp to subdir because otherwise we won't find it if we're
14178   # using a relative directory.
14179   cp "$am_depcomp" conftest.dir
14180   cd conftest.dir
14181   # We will build objects and dependencies in a subdirectory because
14182   # it helps to detect inapplicable dependency modes.  For instance
14183   # both Tru64's cc and ICC support -MD to output dependencies as a
14184   # side effect of compilation, but ICC will put the dependencies in
14185   # the current directory while Tru64 will put them in the object
14186   # directory.
14187   mkdir sub
14188
14189   am_cv_CC_dependencies_compiler_type=none
14190   if test "$am_compiler_list" = ""; then
14191      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14192   fi
14193   am__universal=false
14194   case " $depcc " in #(
14195      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14196      esac
14197
14198   for depmode in $am_compiler_list; do
14199     # Setup a source with many dependencies, because some compilers
14200     # like to wrap large dependency lists on column 80 (with \), and
14201     # we should not choose a depcomp mode which is confused by this.
14202     #
14203     # We need to recreate these files for each test, as the compiler may
14204     # overwrite some of them when testing with obscure command lines.
14205     # This happens at least with the AIX C compiler.
14206     : > sub/conftest.c
14207     for i in 1 2 3 4 5 6; do
14208       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14209       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14210       # Solaris 8's {/usr,}/bin/sh.
14211       touch sub/conftst$i.h
14212     done
14213     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14214
14215     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14216     # mode.  It turns out that the SunPro C++ compiler does not properly
14217     # handle `-M -o', and we need to detect this.  Also, some Intel
14218     # versions had trouble with output in subdirs
14219     am__obj=sub/conftest.${OBJEXT-o}
14220     am__minus_obj="-o $am__obj"
14221     case $depmode in
14222     gcc)
14223       # This depmode causes a compiler race in universal mode.
14224       test "$am__universal" = false || continue
14225       ;;
14226     nosideeffect)
14227       # after this tag, mechanisms are not by side-effect, so they'll
14228       # only be used when explicitly requested
14229       if test "x$enable_dependency_tracking" = xyes; then
14230         continue
14231       else
14232         break
14233       fi
14234       ;;
14235     msvisualcpp | msvcmsys)
14236       # This compiler won't grok `-c -o', but also, the minuso test has
14237       # not run yet.  These depmodes are late enough in the game, and
14238       # so weak that their functioning should not be impacted.
14239       am__obj=conftest.${OBJEXT-o}
14240       am__minus_obj=
14241       ;;
14242     none) break ;;
14243     esac
14244     if depmode=$depmode \
14245        source=sub/conftest.c object=$am__obj \
14246        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14247        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14248          >/dev/null 2>conftest.err &&
14249        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14250        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14251        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14252        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14253       # icc doesn't choke on unknown options, it will just issue warnings
14254       # or remarks (even with -Werror).  So we grep stderr for any message
14255       # that says an option was ignored or not supported.
14256       # When given -MP, icc 7.0 and 7.1 complain thusly:
14257       #   icc: Command line warning: ignoring option '-M'; no argument required
14258       # The diagnosis changed in icc 8.0:
14259       #   icc: Command line remark: option '-MP' not supported
14260       if (grep 'ignoring option' conftest.err ||
14261           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14262         am_cv_CC_dependencies_compiler_type=$depmode
14263         break
14264       fi
14265     fi
14266   done
14267
14268   cd ..
14269   rm -rf conftest.dir
14270 else
14271   am_cv_CC_dependencies_compiler_type=none
14272 fi
14273
14274 fi
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14276 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14277 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14278
14279  if
14280   test "x$enable_dependency_tracking" != xno \
14281   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14282   am__fastdepCC_TRUE=
14283   am__fastdepCC_FALSE='#'
14284 else
14285   am__fastdepCC_TRUE='#'
14286   am__fastdepCC_FALSE=
14287 fi
14288
14289
14290 ac_ext=cpp
14291 ac_cpp='$CXXCPP $CPPFLAGS'
14292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14295 if test -z "$CXX"; then
14296   if test -n "$CCC"; then
14297     CXX=$CCC
14298   else
14299     if test -n "$ac_tool_prefix"; then
14300   for ac_prog in g++ g++3 c++ CC
14301   do
14302     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14305 $as_echo_n "checking for $ac_word... " >&6; }
14306 if ${ac_cv_prog_CXX+:} false; then :
14307   $as_echo_n "(cached) " >&6
14308 else
14309   if test -n "$CXX"; then
14310   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14311 else
14312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14313 for as_dir in $PATH
14314 do
14315   IFS=$as_save_IFS
14316   test -z "$as_dir" && as_dir=.
14317     for ac_exec_ext in '' $ac_executable_extensions; do
14318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14319     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14321     break 2
14322   fi
14323 done
14324   done
14325 IFS=$as_save_IFS
14326
14327 fi
14328 fi
14329 CXX=$ac_cv_prog_CXX
14330 if test -n "$CXX"; then
14331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14332 $as_echo "$CXX" >&6; }
14333 else
14334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335 $as_echo "no" >&6; }
14336 fi
14337
14338
14339     test -n "$CXX" && break
14340   done
14341 fi
14342 if test -z "$CXX"; then
14343   ac_ct_CXX=$CXX
14344   for ac_prog in g++ g++3 c++ CC
14345 do
14346   # Extract the first word of "$ac_prog", so it can be a program name with args.
14347 set dummy $ac_prog; ac_word=$2
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14349 $as_echo_n "checking for $ac_word... " >&6; }
14350 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14351   $as_echo_n "(cached) " >&6
14352 else
14353   if test -n "$ac_ct_CXX"; then
14354   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14355 else
14356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14357 for as_dir in $PATH
14358 do
14359   IFS=$as_save_IFS
14360   test -z "$as_dir" && as_dir=.
14361     for ac_exec_ext in '' $ac_executable_extensions; do
14362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14363     ac_cv_prog_ac_ct_CXX="$ac_prog"
14364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14365     break 2
14366   fi
14367 done
14368   done
14369 IFS=$as_save_IFS
14370
14371 fi
14372 fi
14373 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14374 if test -n "$ac_ct_CXX"; then
14375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14376 $as_echo "$ac_ct_CXX" >&6; }
14377 else
14378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14379 $as_echo "no" >&6; }
14380 fi
14381
14382
14383   test -n "$ac_ct_CXX" && break
14384 done
14385
14386   if test "x$ac_ct_CXX" = x; then
14387     CXX="g++"
14388   else
14389     case $cross_compiling:$ac_tool_warned in
14390 yes:)
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14393 ac_tool_warned=yes ;;
14394 esac
14395     CXX=$ac_ct_CXX
14396   fi
14397 fi
14398
14399   fi
14400 fi
14401 # Provide some information about the compiler.
14402 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14403 set X $ac_compile
14404 ac_compiler=$2
14405 for ac_option in --version -v -V -qversion; do
14406   { { ac_try="$ac_compiler $ac_option >&5"
14407 case "(($ac_try" in
14408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409   *) ac_try_echo=$ac_try;;
14410 esac
14411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14412 $as_echo "$ac_try_echo"; } >&5
14413   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14414   ac_status=$?
14415   if test -s conftest.err; then
14416     sed '10a\
14417 ... rest of stderr output deleted ...
14418          10q' conftest.err >conftest.er1
14419     cat conftest.er1 >&5
14420   fi
14421   rm -f conftest.er1 conftest.err
14422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14423   test $ac_status = 0; }
14424 done
14425
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14427 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14428 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14429   $as_echo_n "(cached) " >&6
14430 else
14431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h.  */
14433
14434 int
14435 main ()
14436 {
14437 #ifndef __GNUC__
14438        choke me
14439 #endif
14440
14441   ;
14442   return 0;
14443 }
14444 _ACEOF
14445 if ac_fn_cxx_try_compile "$LINENO"; then :
14446   ac_compiler_gnu=yes
14447 else
14448   ac_compiler_gnu=no
14449 fi
14450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14452
14453 fi
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14455 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14456 if test $ac_compiler_gnu = yes; then
14457   GXX=yes
14458 else
14459   GXX=
14460 fi
14461 ac_test_CXXFLAGS=${CXXFLAGS+set}
14462 ac_save_CXXFLAGS=$CXXFLAGS
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14464 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14465 if ${ac_cv_prog_cxx_g+:} false; then :
14466   $as_echo_n "(cached) " >&6
14467 else
14468   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14469    ac_cxx_werror_flag=yes
14470    ac_cv_prog_cxx_g=no
14471    CXXFLAGS="-g"
14472    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h.  */
14474
14475 int
14476 main ()
14477 {
14478
14479   ;
14480   return 0;
14481 }
14482 _ACEOF
14483 if ac_fn_cxx_try_compile "$LINENO"; then :
14484   ac_cv_prog_cxx_g=yes
14485 else
14486   CXXFLAGS=""
14487       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h.  */
14489
14490 int
14491 main ()
14492 {
14493
14494   ;
14495   return 0;
14496 }
14497 _ACEOF
14498 if ac_fn_cxx_try_compile "$LINENO"; then :
14499
14500 else
14501   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14502          CXXFLAGS="-g"
14503          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14504 /* end confdefs.h.  */
14505
14506 int
14507 main ()
14508 {
14509
14510   ;
14511   return 0;
14512 }
14513 _ACEOF
14514 if ac_fn_cxx_try_compile "$LINENO"; then :
14515   ac_cv_prog_cxx_g=yes
14516 fi
14517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 fi
14519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520 fi
14521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14522    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14523 fi
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14525 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14526 if test "$ac_test_CXXFLAGS" = set; then
14527   CXXFLAGS=$ac_save_CXXFLAGS
14528 elif test $ac_cv_prog_cxx_g = yes; then
14529   if test "$GXX" = yes; then
14530     CXXFLAGS="-g -O2"
14531   else
14532     CXXFLAGS="-g"
14533   fi
14534 else
14535   if test "$GXX" = yes; then
14536     CXXFLAGS="-O2"
14537   else
14538     CXXFLAGS=
14539   fi
14540 fi
14541 ac_ext=c
14542 ac_cpp='$CPP $CPPFLAGS'
14543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14546
14547 depcc="$CXX"  am_compiler_list=
14548
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14550 $as_echo_n "checking dependency style of $depcc... " >&6; }
14551 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14552   $as_echo_n "(cached) " >&6
14553 else
14554   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14555   # We make a subdir and do the tests there.  Otherwise we can end up
14556   # making bogus files that we don't know about and never remove.  For
14557   # instance it was reported that on HP-UX the gcc test will end up
14558   # making a dummy file named `D' -- because `-MD' means `put the output
14559   # in D'.
14560   mkdir conftest.dir
14561   # Copy depcomp to subdir because otherwise we won't find it if we're
14562   # using a relative directory.
14563   cp "$am_depcomp" conftest.dir
14564   cd conftest.dir
14565   # We will build objects and dependencies in a subdirectory because
14566   # it helps to detect inapplicable dependency modes.  For instance
14567   # both Tru64's cc and ICC support -MD to output dependencies as a
14568   # side effect of compilation, but ICC will put the dependencies in
14569   # the current directory while Tru64 will put them in the object
14570   # directory.
14571   mkdir sub
14572
14573   am_cv_CXX_dependencies_compiler_type=none
14574   if test "$am_compiler_list" = ""; then
14575      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14576   fi
14577   am__universal=false
14578   case " $depcc " in #(
14579      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14580      esac
14581
14582   for depmode in $am_compiler_list; do
14583     # Setup a source with many dependencies, because some compilers
14584     # like to wrap large dependency lists on column 80 (with \), and
14585     # we should not choose a depcomp mode which is confused by this.
14586     #
14587     # We need to recreate these files for each test, as the compiler may
14588     # overwrite some of them when testing with obscure command lines.
14589     # This happens at least with the AIX C compiler.
14590     : > sub/conftest.c
14591     for i in 1 2 3 4 5 6; do
14592       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14593       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14594       # Solaris 8's {/usr,}/bin/sh.
14595       touch sub/conftst$i.h
14596     done
14597     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14598
14599     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14600     # mode.  It turns out that the SunPro C++ compiler does not properly
14601     # handle `-M -o', and we need to detect this.  Also, some Intel
14602     # versions had trouble with output in subdirs
14603     am__obj=sub/conftest.${OBJEXT-o}
14604     am__minus_obj="-o $am__obj"
14605     case $depmode in
14606     gcc)
14607       # This depmode causes a compiler race in universal mode.
14608       test "$am__universal" = false || continue
14609       ;;
14610     nosideeffect)
14611       # after this tag, mechanisms are not by side-effect, so they'll
14612       # only be used when explicitly requested
14613       if test "x$enable_dependency_tracking" = xyes; then
14614         continue
14615       else
14616         break
14617       fi
14618       ;;
14619     msvisualcpp | msvcmsys)
14620       # This compiler won't grok `-c -o', but also, the minuso test has
14621       # not run yet.  These depmodes are late enough in the game, and
14622       # so weak that their functioning should not be impacted.
14623       am__obj=conftest.${OBJEXT-o}
14624       am__minus_obj=
14625       ;;
14626     none) break ;;
14627     esac
14628     if depmode=$depmode \
14629        source=sub/conftest.c object=$am__obj \
14630        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14631        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14632          >/dev/null 2>conftest.err &&
14633        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14634        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14635        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14636        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14637       # icc doesn't choke on unknown options, it will just issue warnings
14638       # or remarks (even with -Werror).  So we grep stderr for any message
14639       # that says an option was ignored or not supported.
14640       # When given -MP, icc 7.0 and 7.1 complain thusly:
14641       #   icc: Command line warning: ignoring option '-M'; no argument required
14642       # The diagnosis changed in icc 8.0:
14643       #   icc: Command line remark: option '-MP' not supported
14644       if (grep 'ignoring option' conftest.err ||
14645           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14646         am_cv_CXX_dependencies_compiler_type=$depmode
14647         break
14648       fi
14649     fi
14650   done
14651
14652   cd ..
14653   rm -rf conftest.dir
14654 else
14655   am_cv_CXX_dependencies_compiler_type=none
14656 fi
14657
14658 fi
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14660 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14661 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14662
14663  if
14664   test "x$enable_dependency_tracking" != xno \
14665   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14666   am__fastdepCXX_TRUE=
14667   am__fastdepCXX_FALSE='#'
14668 else
14669   am__fastdepCXX_TRUE='#'
14670   am__fastdepCXX_FALSE=
14671 fi
14672
14673
14674
14675
14676 func_stripname_cnf ()
14677 {
14678   case ${2} in
14679   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14680   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14681   esac
14682 } # func_stripname_cnf
14683
14684       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14685     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14686     (test "X$CXX" != "Xg++"))) ; then
14687   ac_ext=cpp
14688 ac_cpp='$CXXCPP $CPPFLAGS'
14689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14693 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14694 if test -z "$CXXCPP"; then
14695   if ${ac_cv_prog_CXXCPP+:} false; then :
14696   $as_echo_n "(cached) " >&6
14697 else
14698       # Double quotes because CXXCPP needs to be expanded
14699     for CXXCPP in "$CXX -E" "/lib/cpp"
14700     do
14701       ac_preproc_ok=false
14702 for ac_cxx_preproc_warn_flag in '' yes
14703 do
14704   # Use a header file that comes with gcc, so configuring glibc
14705   # with a fresh cross-compiler works.
14706   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14707   # <limits.h> exists even on freestanding compilers.
14708   # On the NeXT, cc -E runs the code through the compiler's parser,
14709   # not just through cpp. "Syntax error" is here to catch this case.
14710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h.  */
14712 #ifdef __STDC__
14713 # include <limits.h>
14714 #else
14715 # include <assert.h>
14716 #endif
14717                      Syntax error
14718 _ACEOF
14719 if ac_fn_cxx_try_cpp "$LINENO"; then :
14720
14721 else
14722   # Broken: fails on valid input.
14723 continue
14724 fi
14725 rm -f conftest.err conftest.i conftest.$ac_ext
14726
14727   # OK, works on sane cases.  Now check whether nonexistent headers
14728   # can be detected and how.
14729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h.  */
14731 #include <ac_nonexistent.h>
14732 _ACEOF
14733 if ac_fn_cxx_try_cpp "$LINENO"; then :
14734   # Broken: success on invalid input.
14735 continue
14736 else
14737   # Passes both tests.
14738 ac_preproc_ok=:
14739 break
14740 fi
14741 rm -f conftest.err conftest.i conftest.$ac_ext
14742
14743 done
14744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14745 rm -f conftest.i conftest.err conftest.$ac_ext
14746 if $ac_preproc_ok; then :
14747   break
14748 fi
14749
14750     done
14751     ac_cv_prog_CXXCPP=$CXXCPP
14752
14753 fi
14754   CXXCPP=$ac_cv_prog_CXXCPP
14755 else
14756   ac_cv_prog_CXXCPP=$CXXCPP
14757 fi
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14759 $as_echo "$CXXCPP" >&6; }
14760 ac_preproc_ok=false
14761 for ac_cxx_preproc_warn_flag in '' yes
14762 do
14763   # Use a header file that comes with gcc, so configuring glibc
14764   # with a fresh cross-compiler works.
14765   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14766   # <limits.h> exists even on freestanding compilers.
14767   # On the NeXT, cc -E runs the code through the compiler's parser,
14768   # not just through cpp. "Syntax error" is here to catch this case.
14769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770 /* end confdefs.h.  */
14771 #ifdef __STDC__
14772 # include <limits.h>
14773 #else
14774 # include <assert.h>
14775 #endif
14776                      Syntax error
14777 _ACEOF
14778 if ac_fn_cxx_try_cpp "$LINENO"; then :
14779
14780 else
14781   # Broken: fails on valid input.
14782 continue
14783 fi
14784 rm -f conftest.err conftest.i conftest.$ac_ext
14785
14786   # OK, works on sane cases.  Now check whether nonexistent headers
14787   # can be detected and how.
14788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h.  */
14790 #include <ac_nonexistent.h>
14791 _ACEOF
14792 if ac_fn_cxx_try_cpp "$LINENO"; then :
14793   # Broken: success on invalid input.
14794 continue
14795 else
14796   # Passes both tests.
14797 ac_preproc_ok=:
14798 break
14799 fi
14800 rm -f conftest.err conftest.i conftest.$ac_ext
14801
14802 done
14803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14804 rm -f conftest.i conftest.err conftest.$ac_ext
14805 if $ac_preproc_ok; then :
14806
14807 else
14808   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14810 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14811 See \`config.log' for more details" "$LINENO" 5; }
14812 fi
14813
14814 ac_ext=c
14815 ac_cpp='$CPP $CPPFLAGS'
14816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14819
14820 else
14821   _lt_caught_CXX_error=yes
14822 fi
14823
14824 ac_ext=cpp
14825 ac_cpp='$CXXCPP $CPPFLAGS'
14826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14829
14830 archive_cmds_need_lc_CXX=no
14831 allow_undefined_flag_CXX=
14832 always_export_symbols_CXX=no
14833 archive_expsym_cmds_CXX=
14834 compiler_needs_object_CXX=no
14835 export_dynamic_flag_spec_CXX=
14836 hardcode_direct_CXX=no
14837 hardcode_direct_absolute_CXX=no
14838 hardcode_libdir_flag_spec_CXX=
14839 hardcode_libdir_flag_spec_ld_CXX=
14840 hardcode_libdir_separator_CXX=
14841 hardcode_minus_L_CXX=no
14842 hardcode_shlibpath_var_CXX=unsupported
14843 hardcode_automatic_CXX=no
14844 inherit_rpath_CXX=no
14845 module_cmds_CXX=
14846 module_expsym_cmds_CXX=
14847 link_all_deplibs_CXX=unknown
14848 old_archive_cmds_CXX=$old_archive_cmds
14849 reload_flag_CXX=$reload_flag
14850 reload_cmds_CXX=$reload_cmds
14851 no_undefined_flag_CXX=
14852 whole_archive_flag_spec_CXX=
14853 enable_shared_with_static_runtimes_CXX=no
14854
14855 # Source file extension for C++ test sources.
14856 ac_ext=cpp
14857
14858 # Object file extension for compiled C++ test sources.
14859 objext=o
14860 objext_CXX=$objext
14861
14862 # No sense in running all these tests if we already determined that
14863 # the CXX compiler isn't working.  Some variables (like enable_shared)
14864 # are currently assumed to apply to all compilers on this platform,
14865 # and will be corrupted by setting them based on a non-working compiler.
14866 if test "$_lt_caught_CXX_error" != yes; then
14867   # Code to be used in simple compile tests
14868   lt_simple_compile_test_code="int some_variable = 0;"
14869
14870   # Code to be used in simple link tests
14871   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14872
14873   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14874
14875
14876
14877
14878
14879
14880 # If no C compiler was specified, use CC.
14881 LTCC=${LTCC-"$CC"}
14882
14883 # If no C compiler flags were specified, use CFLAGS.
14884 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14885
14886 # Allow CC to be a program name with arguments.
14887 compiler=$CC
14888
14889
14890   # save warnings/boilerplate of simple test code
14891   ac_outfile=conftest.$ac_objext
14892 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14893 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14894 _lt_compiler_boilerplate=`cat conftest.err`
14895 $RM conftest*
14896
14897   ac_outfile=conftest.$ac_objext
14898 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14899 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14900 _lt_linker_boilerplate=`cat conftest.err`
14901 $RM -r conftest*
14902
14903
14904   # Allow CC to be a program name with arguments.
14905   lt_save_CC=$CC
14906   lt_save_CFLAGS=$CFLAGS
14907   lt_save_LD=$LD
14908   lt_save_GCC=$GCC
14909   GCC=$GXX
14910   lt_save_with_gnu_ld=$with_gnu_ld
14911   lt_save_path_LD=$lt_cv_path_LD
14912   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14913     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14914   else
14915     $as_unset lt_cv_prog_gnu_ld
14916   fi
14917   if test -n "${lt_cv_path_LDCXX+set}"; then
14918     lt_cv_path_LD=$lt_cv_path_LDCXX
14919   else
14920     $as_unset lt_cv_path_LD
14921   fi
14922   test -z "${LDCXX+set}" || LD=$LDCXX
14923   CC=${CXX-"c++"}
14924   CFLAGS=$CXXFLAGS
14925   compiler=$CC
14926   compiler_CXX=$CC
14927   for cc_temp in $compiler""; do
14928   case $cc_temp in
14929     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14930     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14931     \-*) ;;
14932     *) break;;
14933   esac
14934 done
14935 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14936
14937
14938   if test -n "$compiler"; then
14939     # We don't want -fno-exception when compiling C++ code, so set the
14940     # no_builtin_flag separately
14941     if test "$GXX" = yes; then
14942       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14943     else
14944       lt_prog_compiler_no_builtin_flag_CXX=
14945     fi
14946
14947     if test "$GXX" = yes; then
14948       # Set up default GNU C++ configuration
14949
14950
14951
14952 # Check whether --with-gnu-ld was given.
14953 if test "${with_gnu_ld+set}" = set; then :
14954   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14955 else
14956   with_gnu_ld=no
14957 fi
14958
14959 ac_prog=ld
14960 if test "$GCC" = yes; then
14961   # Check if gcc -print-prog-name=ld gives a path.
14962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14963 $as_echo_n "checking for ld used by $CC... " >&6; }
14964   case $host in
14965   *-*-mingw*)
14966     # gcc leaves a trailing carriage return which upsets mingw
14967     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14968   *)
14969     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14970   esac
14971   case $ac_prog in
14972     # Accept absolute paths.
14973     [\\/]* | ?:[\\/]*)
14974       re_direlt='/[^/][^/]*/\.\./'
14975       # Canonicalize the pathname of ld
14976       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14977       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14978         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14979       done
14980       test -z "$LD" && LD="$ac_prog"
14981       ;;
14982   "")
14983     # If it fails, then pretend we aren't using GCC.
14984     ac_prog=ld
14985     ;;
14986   *)
14987     # If it is relative, then search for the first ld in PATH.
14988     with_gnu_ld=unknown
14989     ;;
14990   esac
14991 elif test "$with_gnu_ld" = yes; then
14992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14993 $as_echo_n "checking for GNU ld... " >&6; }
14994 else
14995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14996 $as_echo_n "checking for non-GNU ld... " >&6; }
14997 fi
14998 if ${lt_cv_path_LD+:} false; then :
14999   $as_echo_n "(cached) " >&6
15000 else
15001   if test -z "$LD"; then
15002   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15003   for ac_dir in $PATH; do
15004     IFS="$lt_save_ifs"
15005     test -z "$ac_dir" && ac_dir=.
15006     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15007       lt_cv_path_LD="$ac_dir/$ac_prog"
15008       # Check to see if the program is GNU ld.  I'd rather use --version,
15009       # but apparently some variants of GNU ld only accept -v.
15010       # Break only if it was the GNU/non-GNU ld that we prefer.
15011       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15012       *GNU* | *'with BFD'*)
15013         test "$with_gnu_ld" != no && break
15014         ;;
15015       *)
15016         test "$with_gnu_ld" != yes && break
15017         ;;
15018       esac
15019     fi
15020   done
15021   IFS="$lt_save_ifs"
15022 else
15023   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15024 fi
15025 fi
15026
15027 LD="$lt_cv_path_LD"
15028 if test -n "$LD"; then
15029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15030 $as_echo "$LD" >&6; }
15031 else
15032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15033 $as_echo "no" >&6; }
15034 fi
15035 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15037 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15038 if ${lt_cv_prog_gnu_ld+:} false; then :
15039   $as_echo_n "(cached) " >&6
15040 else
15041   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15042 case `$LD -v 2>&1 </dev/null` in
15043 *GNU* | *'with BFD'*)
15044   lt_cv_prog_gnu_ld=yes
15045   ;;
15046 *)
15047   lt_cv_prog_gnu_ld=no
15048   ;;
15049 esac
15050 fi
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15052 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15053 with_gnu_ld=$lt_cv_prog_gnu_ld
15054
15055
15056
15057
15058
15059
15060
15061       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15062       # archiving commands below assume that GNU ld is being used.
15063       if test "$with_gnu_ld" = yes; then
15064         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15065         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15066
15067         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15068         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15069
15070         # If archive_cmds runs LD, not CC, wlarc should be empty
15071         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15072         #     investigate it a little bit more. (MM)
15073         wlarc='${wl}'
15074
15075         # ancient GNU ld didn't support --whole-archive et. al.
15076         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15077           $GREP 'no-whole-archive' > /dev/null; then
15078           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15079         else
15080           whole_archive_flag_spec_CXX=
15081         fi
15082       else
15083         with_gnu_ld=no
15084         wlarc=
15085
15086         # A generic and very simple default shared library creation
15087         # command for GNU C++ for the case where it uses the native
15088         # linker, instead of GNU ld.  If possible, this setting should
15089         # overridden to take advantage of the native linker features on
15090         # the platform it is being used on.
15091         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15092       fi
15093
15094       # Commands to make compiler produce verbose output that lists
15095       # what "hidden" libraries, object files and flags are used when
15096       # linking a shared library.
15097       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15098
15099     else
15100       GXX=no
15101       with_gnu_ld=no
15102       wlarc=
15103     fi
15104
15105     # PORTME: fill in a description of your system's C++ link characteristics
15106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15107 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15108     ld_shlibs_CXX=yes
15109     case $host_os in
15110       aix3*)
15111         # FIXME: insert proper C++ library support
15112         ld_shlibs_CXX=no
15113         ;;
15114       aix[4-9]*)
15115         if test "$host_cpu" = ia64; then
15116           # On IA64, the linker does run time linking by default, so we don't
15117           # have to do anything special.
15118           aix_use_runtimelinking=no
15119           exp_sym_flag='-Bexport'
15120           no_entry_flag=""
15121         else
15122           aix_use_runtimelinking=no
15123
15124           # Test if we are trying to use run time linking or normal
15125           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15126           # need to do runtime linking.
15127           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15128             for ld_flag in $LDFLAGS; do
15129               case $ld_flag in
15130               *-brtl*)
15131                 aix_use_runtimelinking=yes
15132                 break
15133                 ;;
15134               esac
15135             done
15136             ;;
15137           esac
15138
15139           exp_sym_flag='-bexport'
15140           no_entry_flag='-bnoentry'
15141         fi
15142
15143         # When large executables or shared objects are built, AIX ld can
15144         # have problems creating the table of contents.  If linking a library
15145         # or program results in "error TOC overflow" add -mminimal-toc to
15146         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15147         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15148
15149         archive_cmds_CXX=''
15150         hardcode_direct_CXX=yes
15151         hardcode_direct_absolute_CXX=yes
15152         hardcode_libdir_separator_CXX=':'
15153         link_all_deplibs_CXX=yes
15154         file_list_spec_CXX='${wl}-f,'
15155
15156         if test "$GXX" = yes; then
15157           case $host_os in aix4.[012]|aix4.[012].*)
15158           # We only want to do this on AIX 4.2 and lower, the check
15159           # below for broken collect2 doesn't work under 4.3+
15160           collect2name=`${CC} -print-prog-name=collect2`
15161           if test -f "$collect2name" &&
15162              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15163           then
15164             # We have reworked collect2
15165             :
15166           else
15167             # We have old collect2
15168             hardcode_direct_CXX=unsupported
15169             # It fails to find uninstalled libraries when the uninstalled
15170             # path is not listed in the libpath.  Setting hardcode_minus_L
15171             # to unsupported forces relinking
15172             hardcode_minus_L_CXX=yes
15173             hardcode_libdir_flag_spec_CXX='-L$libdir'
15174             hardcode_libdir_separator_CXX=
15175           fi
15176           esac
15177           shared_flag='-shared'
15178           if test "$aix_use_runtimelinking" = yes; then
15179             shared_flag="$shared_flag "'${wl}-G'
15180           fi
15181         else
15182           # not using gcc
15183           if test "$host_cpu" = ia64; then
15184           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15185           # chokes on -Wl,-G. The following line is correct:
15186           shared_flag='-G'
15187           else
15188             if test "$aix_use_runtimelinking" = yes; then
15189               shared_flag='${wl}-G'
15190             else
15191               shared_flag='${wl}-bM:SRE'
15192             fi
15193           fi
15194         fi
15195
15196         export_dynamic_flag_spec_CXX='${wl}-bexpall'
15197         # It seems that -bexpall does not export symbols beginning with
15198         # underscore (_), so it is better to generate a list of symbols to
15199         # export.
15200         always_export_symbols_CXX=yes
15201         if test "$aix_use_runtimelinking" = yes; then
15202           # Warning - without using the other runtime loading flags (-brtl),
15203           # -berok will link without error, but may produce a broken library.
15204           allow_undefined_flag_CXX='-berok'
15205           # Determine the default libpath from the value encoded in an empty
15206           # executable.
15207           if test "${lt_cv_aix_libpath+set}" = set; then
15208   aix_libpath=$lt_cv_aix_libpath
15209 else
15210   if ${lt_cv_aix_libpath__CXX+:} false; then :
15211   $as_echo_n "(cached) " >&6
15212 else
15213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h.  */
15215
15216 int
15217 main ()
15218 {
15219
15220   ;
15221   return 0;
15222 }
15223 _ACEOF
15224 if ac_fn_cxx_try_link "$LINENO"; then :
15225
15226   lt_aix_libpath_sed='
15227       /Import File Strings/,/^$/ {
15228           /^0/ {
15229               s/^0  *\([^ ]*\) *$/\1/
15230               p
15231           }
15232       }'
15233   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15234   # Check for a 64-bit object if we didn't find anything.
15235   if test -z "$lt_cv_aix_libpath__CXX"; then
15236     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15237   fi
15238 fi
15239 rm -f core conftest.err conftest.$ac_objext \
15240     conftest$ac_exeext conftest.$ac_ext
15241   if test -z "$lt_cv_aix_libpath__CXX"; then
15242     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15243   fi
15244
15245 fi
15246
15247   aix_libpath=$lt_cv_aix_libpath__CXX
15248 fi
15249
15250           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15251
15252           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15253         else
15254           if test "$host_cpu" = ia64; then
15255             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15256             allow_undefined_flag_CXX="-z nodefs"
15257             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15258           else
15259             # Determine the default libpath from the value encoded in an
15260             # empty executable.
15261             if test "${lt_cv_aix_libpath+set}" = set; then
15262   aix_libpath=$lt_cv_aix_libpath
15263 else
15264   if ${lt_cv_aix_libpath__CXX+:} false; then :
15265   $as_echo_n "(cached) " >&6
15266 else
15267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268 /* end confdefs.h.  */
15269
15270 int
15271 main ()
15272 {
15273
15274   ;
15275   return 0;
15276 }
15277 _ACEOF
15278 if ac_fn_cxx_try_link "$LINENO"; then :
15279
15280   lt_aix_libpath_sed='
15281       /Import File Strings/,/^$/ {
15282           /^0/ {
15283               s/^0  *\([^ ]*\) *$/\1/
15284               p
15285           }
15286       }'
15287   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15288   # Check for a 64-bit object if we didn't find anything.
15289   if test -z "$lt_cv_aix_libpath__CXX"; then
15290     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15291   fi
15292 fi
15293 rm -f core conftest.err conftest.$ac_objext \
15294     conftest$ac_exeext conftest.$ac_ext
15295   if test -z "$lt_cv_aix_libpath__CXX"; then
15296     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15297   fi
15298
15299 fi
15300
15301   aix_libpath=$lt_cv_aix_libpath__CXX
15302 fi
15303
15304             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15305             # Warning - without using the other run time loading flags,
15306             # -berok will link without error, but may produce a broken library.
15307             no_undefined_flag_CXX=' ${wl}-bernotok'
15308             allow_undefined_flag_CXX=' ${wl}-berok'
15309             if test "$with_gnu_ld" = yes; then
15310               # We only use this code for GNU lds that support --whole-archive.
15311               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15312             else
15313               # Exported symbols can be pulled into shared objects from archives
15314               whole_archive_flag_spec_CXX='$convenience'
15315             fi
15316             archive_cmds_need_lc_CXX=yes
15317             # This is similar to how AIX traditionally builds its shared
15318             # libraries.
15319             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15320           fi
15321         fi
15322         ;;
15323
15324       beos*)
15325         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15326           allow_undefined_flag_CXX=unsupported
15327           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15328           # support --undefined.  This deserves some investigation.  FIXME
15329           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15330         else
15331           ld_shlibs_CXX=no
15332         fi
15333         ;;
15334
15335       chorus*)
15336         case $cc_basename in
15337           *)
15338           # FIXME: insert proper C++ library support
15339           ld_shlibs_CXX=no
15340           ;;
15341         esac
15342         ;;
15343
15344       cygwin* | mingw* | pw32* | cegcc*)
15345         case $GXX,$cc_basename in
15346         ,cl* | no,cl*)
15347           # Native MSVC
15348           # hardcode_libdir_flag_spec is actually meaningless, as there is
15349           # no search path for DLLs.
15350           hardcode_libdir_flag_spec_CXX=' '
15351           allow_undefined_flag_CXX=unsupported
15352           always_export_symbols_CXX=yes
15353           file_list_spec_CXX='@'
15354           # Tell ltmain to make .lib files, not .a files.
15355           libext=lib
15356           # Tell ltmain to make .dll files, not .so files.
15357           shrext_cmds=".dll"
15358           # FIXME: Setting linknames here is a bad hack.
15359           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15360           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15361               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15362             else
15363               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15364             fi~
15365             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15366             linknames='
15367           # The linker will not automatically build a static lib if we build a DLL.
15368           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15369           enable_shared_with_static_runtimes_CXX=yes
15370           # Don't use ranlib
15371           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15372           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15373             lt_tool_outputfile="@TOOL_OUTPUT@"~
15374             case $lt_outputfile in
15375               *.exe|*.EXE) ;;
15376               *)
15377                 lt_outputfile="$lt_outputfile.exe"
15378                 lt_tool_outputfile="$lt_tool_outputfile.exe"
15379                 ;;
15380             esac~
15381             func_to_tool_file "$lt_outputfile"~
15382             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15383               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15384               $RM "$lt_outputfile.manifest";
15385             fi'
15386           ;;
15387         *)
15388           # g++
15389           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15390           # as there is no search path for DLLs.
15391           hardcode_libdir_flag_spec_CXX='-L$libdir'
15392           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15393           allow_undefined_flag_CXX=unsupported
15394           always_export_symbols_CXX=no
15395           enable_shared_with_static_runtimes_CXX=yes
15396
15397           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15398             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15399             # If the export-symbols file already is a .def file (1st line
15400             # is EXPORTS), use it as is; otherwise, prepend...
15401             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15402               cp $export_symbols $output_objdir/$soname.def;
15403             else
15404               echo EXPORTS > $output_objdir/$soname.def;
15405               cat $export_symbols >> $output_objdir/$soname.def;
15406             fi~
15407             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15408           else
15409             ld_shlibs_CXX=no
15410           fi
15411           ;;
15412         esac
15413         ;;
15414       darwin* | rhapsody*)
15415
15416
15417   archive_cmds_need_lc_CXX=no
15418   hardcode_direct_CXX=no
15419   hardcode_automatic_CXX=yes
15420   hardcode_shlibpath_var_CXX=unsupported
15421   if test "$lt_cv_ld_force_load" = "yes"; then
15422     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15423   else
15424     whole_archive_flag_spec_CXX=''
15425   fi
15426   link_all_deplibs_CXX=yes
15427   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15428   case $cc_basename in
15429      ifort*) _lt_dar_can_shared=yes ;;
15430      *) _lt_dar_can_shared=$GCC ;;
15431   esac
15432   if test "$_lt_dar_can_shared" = "yes"; then
15433     output_verbose_link_cmd=func_echo_all
15434     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15435     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15436     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15437     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15438        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15439       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15440       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15441     fi
15442
15443   else
15444   ld_shlibs_CXX=no
15445   fi
15446
15447         ;;
15448
15449       dgux*)
15450         case $cc_basename in
15451           ec++*)
15452             # FIXME: insert proper C++ library support
15453             ld_shlibs_CXX=no
15454             ;;
15455           ghcx*)
15456             # Green Hills C++ Compiler
15457             # FIXME: insert proper C++ library support
15458             ld_shlibs_CXX=no
15459             ;;
15460           *)
15461             # FIXME: insert proper C++ library support
15462             ld_shlibs_CXX=no
15463             ;;
15464         esac
15465         ;;
15466
15467       freebsd[12]*)
15468         # C++ shared libraries reported to be fairly broken before
15469         # switch to ELF
15470         ld_shlibs_CXX=no
15471         ;;
15472
15473       freebsd-elf*)
15474         archive_cmds_need_lc_CXX=no
15475         ;;
15476
15477       freebsd* | dragonfly*)
15478         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15479         # conventions
15480         ld_shlibs_CXX=yes
15481         ;;
15482
15483       gnu*)
15484         ;;
15485
15486       haiku*)
15487         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15488         link_all_deplibs_CXX=yes
15489         ;;
15490
15491       hpux9*)
15492         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15493         hardcode_libdir_separator_CXX=:
15494         export_dynamic_flag_spec_CXX='${wl}-E'
15495         hardcode_direct_CXX=yes
15496         hardcode_minus_L_CXX=yes # Not in the search PATH,
15497                                              # but as the default
15498                                              # location of the library.
15499
15500         case $cc_basename in
15501           CC*)
15502             # FIXME: insert proper C++ library support
15503             ld_shlibs_CXX=no
15504             ;;
15505           aCC*)
15506             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'
15507             # Commands to make compiler produce verbose output that lists
15508             # what "hidden" libraries, object files and flags are used when
15509             # linking a shared library.
15510             #
15511             # There doesn't appear to be a way to prevent this compiler from
15512             # explicitly linking system object files so we need to strip them
15513             # from the output so that they don't get included in the library
15514             # dependencies.
15515             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15516             ;;
15517           *)
15518             if test "$GXX" = yes; then
15519               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
15520             else
15521               # FIXME: insert proper C++ library support
15522               ld_shlibs_CXX=no
15523             fi
15524             ;;
15525         esac
15526         ;;
15527
15528       hpux10*|hpux11*)
15529         if test $with_gnu_ld = no; then
15530           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15531           hardcode_libdir_separator_CXX=:
15532
15533           case $host_cpu in
15534             hppa*64*|ia64*)
15535               ;;
15536             *)
15537               export_dynamic_flag_spec_CXX='${wl}-E'
15538               ;;
15539           esac
15540         fi
15541         case $host_cpu in
15542           hppa*64*|ia64*)
15543             hardcode_direct_CXX=no
15544             hardcode_shlibpath_var_CXX=no
15545             ;;
15546           *)
15547             hardcode_direct_CXX=yes
15548             hardcode_direct_absolute_CXX=yes
15549             hardcode_minus_L_CXX=yes # Not in the search PATH,
15550                                                  # but as the default
15551                                                  # location of the library.
15552             ;;
15553         esac
15554
15555         case $cc_basename in
15556           CC*)
15557             # FIXME: insert proper C++ library support
15558             ld_shlibs_CXX=no
15559             ;;
15560           aCC*)
15561             case $host_cpu in
15562               hppa*64*)
15563                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15564                 ;;
15565               ia64*)
15566                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15567                 ;;
15568               *)
15569                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15570                 ;;
15571             esac
15572             # Commands to make compiler produce verbose output that lists
15573             # what "hidden" libraries, object files and flags are used when
15574             # linking a shared library.
15575             #
15576             # There doesn't appear to be a way to prevent this compiler from
15577             # explicitly linking system object files so we need to strip them
15578             # from the output so that they don't get included in the library
15579             # dependencies.
15580             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; func_echo_all "$list"'
15581             ;;
15582           *)
15583             if test "$GXX" = yes; then
15584               if test $with_gnu_ld = no; then
15585                 case $host_cpu in
15586                   hppa*64*)
15587                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15588                     ;;
15589                   ia64*)
15590                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15591                     ;;
15592                   *)
15593                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15594                     ;;
15595                 esac
15596               fi
15597             else
15598               # FIXME: insert proper C++ library support
15599               ld_shlibs_CXX=no
15600             fi
15601             ;;
15602         esac
15603         ;;
15604
15605       interix[3-9]*)
15606         hardcode_direct_CXX=no
15607         hardcode_shlibpath_var_CXX=no
15608         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15609         export_dynamic_flag_spec_CXX='${wl}-E'
15610         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15611         # Instead, shared libraries are loaded at an image base (0x10000000 by
15612         # default) and relocated if they conflict, which is a slow very memory
15613         # consuming and fragmenting process.  To avoid this, we pick a random,
15614         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15615         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15616         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15617         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15618         ;;
15619       irix5* | irix6*)
15620         case $cc_basename in
15621           CC*)
15622             # SGI C++
15623             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15624
15625             # Archives containing C++ object files must be created using
15626             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15627             # necessary to make sure instantiated templates are included
15628             # in the archive.
15629             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15630             ;;
15631           *)
15632             if test "$GXX" = yes; then
15633               if test "$with_gnu_ld" = no; then
15634                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15635               else
15636                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
15637               fi
15638             fi
15639             link_all_deplibs_CXX=yes
15640             ;;
15641         esac
15642         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15643         hardcode_libdir_separator_CXX=:
15644         inherit_rpath_CXX=yes
15645         ;;
15646
15647       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15648         case $cc_basename in
15649           KCC*)
15650             # Kuck and Associates, Inc. (KAI) C++ Compiler
15651
15652             # KCC will only create a shared library if the output file
15653             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15654             # to its proper name (with version) after linking.
15655             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'
15656             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'
15657             # Commands to make compiler produce verbose output that lists
15658             # what "hidden" libraries, object files and flags are used when
15659             # linking a shared library.
15660             #
15661             # There doesn't appear to be a way to prevent this compiler from
15662             # explicitly linking system object files so we need to strip them
15663             # from the output so that they don't get included in the library
15664             # dependencies.
15665             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; func_echo_all "$list"'
15666
15667             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15668             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15669
15670             # Archives containing C++ object files must be created using
15671             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15672             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15673             ;;
15674           icpc* | ecpc* )
15675             # Intel C++
15676             with_gnu_ld=yes
15677             # version 8.0 and above of icpc choke on multiply defined symbols
15678             # if we add $predep_objects and $postdep_objects, however 7.1 and
15679             # earlier do not add the objects themselves.
15680             case `$CC -V 2>&1` in
15681               *"Version 7."*)
15682                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15683                 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'
15684                 ;;
15685               *)  # Version 8.0 or newer
15686                 tmp_idyn=
15687                 case $host_cpu in
15688                   ia64*) tmp_idyn=' -i_dynamic';;
15689                 esac
15690                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15691                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15692                 ;;
15693             esac
15694             archive_cmds_need_lc_CXX=no
15695             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15696             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15697             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15698             ;;
15699           pgCC* | pgcpp*)
15700             # Portland Group C++ compiler
15701             case `$CC -V` in
15702             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15703               prelink_cmds_CXX='tpldir=Template.dir~
15704                 rm -rf $tpldir~
15705                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15706                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15707               old_archive_cmds_CXX='tpldir=Template.dir~
15708                 rm -rf $tpldir~
15709                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15710                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15711                 $RANLIB $oldlib'
15712               archive_cmds_CXX='tpldir=Template.dir~
15713                 rm -rf $tpldir~
15714                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15715                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15716               archive_expsym_cmds_CXX='tpldir=Template.dir~
15717                 rm -rf $tpldir~
15718                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15719                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15720               ;;
15721             *) # Version 6 and above use weak symbols
15722               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15723               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15724               ;;
15725             esac
15726
15727             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15728             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15729             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15730             ;;
15731           cxx*)
15732             # Compaq C++
15733             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15734             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'
15735
15736             runpath_var=LD_RUN_PATH
15737             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15738             hardcode_libdir_separator_CXX=:
15739
15740             # Commands to make compiler produce verbose output that lists
15741             # what "hidden" libraries, object files and flags are used when
15742             # linking a shared library.
15743             #
15744             # There doesn't appear to be a way to prevent this compiler from
15745             # explicitly linking system object files so we need to strip them
15746             # from the output so that they don't get included in the library
15747             # dependencies.
15748             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
15749             ;;
15750           xl* | mpixl* | bgxl*)
15751             # IBM XL 8.0 on PPC, with GNU ld
15752             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15753             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15754             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15755             if test "x$supports_anon_versioning" = xyes; then
15756               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15757                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15758                 echo "local: *; };" >> $output_objdir/$libname.ver~
15759                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15760             fi
15761             ;;
15762           *)
15763             case `$CC -V 2>&1 | sed 5q` in
15764             *Sun\ C*)
15765               # Sun C++ 5.9
15766               no_undefined_flag_CXX=' -zdefs'
15767               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15768               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15769               hardcode_libdir_flag_spec_CXX='-R$libdir'
15770               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15771               compiler_needs_object_CXX=yes
15772
15773               # Not sure whether something based on
15774               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15775               # would be better.
15776               output_verbose_link_cmd='func_echo_all'
15777
15778               # Archives containing C++ object files must be created using
15779               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15780               # necessary to make sure instantiated templates are included
15781               # in the archive.
15782               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15783               ;;
15784             esac
15785             ;;
15786         esac
15787         ;;
15788
15789       lynxos*)
15790         # FIXME: insert proper C++ library support
15791         ld_shlibs_CXX=no
15792         ;;
15793
15794       m88k*)
15795         # FIXME: insert proper C++ library support
15796         ld_shlibs_CXX=no
15797         ;;
15798
15799       mvs*)
15800         case $cc_basename in
15801           cxx*)
15802             # FIXME: insert proper C++ library support
15803             ld_shlibs_CXX=no
15804             ;;
15805           *)
15806             # FIXME: insert proper C++ library support
15807             ld_shlibs_CXX=no
15808             ;;
15809         esac
15810         ;;
15811
15812       netbsd*)
15813         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15814           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15815           wlarc=
15816           hardcode_libdir_flag_spec_CXX='-R$libdir'
15817           hardcode_direct_CXX=yes
15818           hardcode_shlibpath_var_CXX=no
15819         fi
15820         # Workaround some broken pre-1.5 toolchains
15821         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15822         ;;
15823
15824       *nto* | *qnx*)
15825         ld_shlibs_CXX=yes
15826         ;;
15827
15828       openbsd2*)
15829         # C++ shared libraries are fairly broken
15830         ld_shlibs_CXX=no
15831         ;;
15832
15833       openbsd*)
15834         if test -f /usr/libexec/ld.so; then
15835           hardcode_direct_CXX=yes
15836           hardcode_shlibpath_var_CXX=no
15837           hardcode_direct_absolute_CXX=yes
15838           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15839           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15840           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15841             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15842             export_dynamic_flag_spec_CXX='${wl}-E'
15843             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15844           fi
15845           output_verbose_link_cmd=func_echo_all
15846         else
15847           ld_shlibs_CXX=no
15848         fi
15849         ;;
15850
15851       osf3* | osf4* | osf5*)
15852         case $cc_basename in
15853           KCC*)
15854             # Kuck and Associates, Inc. (KAI) C++ Compiler
15855
15856             # KCC will only create a shared library if the output file
15857             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15858             # to its proper name (with version) after linking.
15859             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'
15860
15861             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15862             hardcode_libdir_separator_CXX=:
15863
15864             # Archives containing C++ object files must be created using
15865             # the KAI C++ compiler.
15866             case $host in
15867               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15868               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15869             esac
15870             ;;
15871           RCC*)
15872             # Rational C++ 2.4.1
15873             # FIXME: insert proper C++ library support
15874             ld_shlibs_CXX=no
15875             ;;
15876           cxx*)
15877             case $host in
15878               osf3*)
15879                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15880                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15881                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15882                 ;;
15883               *)
15884                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15885                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15886                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15887                   echo "-hidden">> $lib.exp~
15888                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
15889                   $RM $lib.exp'
15890                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15891                 ;;
15892             esac
15893
15894             hardcode_libdir_separator_CXX=:
15895
15896             # Commands to make compiler produce verbose output that lists
15897             # what "hidden" libraries, object files and flags are used when
15898             # linking a shared library.
15899             #
15900             # There doesn't appear to be a way to prevent this compiler from
15901             # explicitly linking system object files so we need to strip them
15902             # from the output so that they don't get included in the library
15903             # dependencies.
15904             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
15905             ;;
15906           *)
15907             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15908               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15909               case $host in
15910                 osf3*)
15911                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15912                   ;;
15913                 *)
15914                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15915                   ;;
15916               esac
15917
15918               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15919               hardcode_libdir_separator_CXX=:
15920
15921               # Commands to make compiler produce verbose output that lists
15922               # what "hidden" libraries, object files and flags are used when
15923               # linking a shared library.
15924               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15925
15926             else
15927               # FIXME: insert proper C++ library support
15928               ld_shlibs_CXX=no
15929             fi
15930             ;;
15931         esac
15932         ;;
15933
15934       psos*)
15935         # FIXME: insert proper C++ library support
15936         ld_shlibs_CXX=no
15937         ;;
15938
15939       sunos4*)
15940         case $cc_basename in
15941           CC*)
15942             # Sun C++ 4.x
15943             # FIXME: insert proper C++ library support
15944             ld_shlibs_CXX=no
15945             ;;
15946           lcc*)
15947             # Lucid
15948             # FIXME: insert proper C++ library support
15949             ld_shlibs_CXX=no
15950             ;;
15951           *)
15952             # FIXME: insert proper C++ library support
15953             ld_shlibs_CXX=no
15954             ;;
15955         esac
15956         ;;
15957
15958       solaris*)
15959         case $cc_basename in
15960           CC* | sunCC*)
15961             # Sun C++ 4.2, 5.x and Centerline C++
15962             archive_cmds_need_lc_CXX=yes
15963             no_undefined_flag_CXX=' -zdefs'
15964             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15965             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15966               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15967
15968             hardcode_libdir_flag_spec_CXX='-R$libdir'
15969             hardcode_shlibpath_var_CXX=no
15970             case $host_os in
15971               solaris2.[0-5] | solaris2.[0-5].*) ;;
15972               *)
15973                 # The compiler driver will combine and reorder linker options,
15974                 # but understands `-z linker_flag'.
15975                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15976                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15977                 ;;
15978             esac
15979             link_all_deplibs_CXX=yes
15980
15981             output_verbose_link_cmd='func_echo_all'
15982
15983             # Archives containing C++ object files must be created using
15984             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15985             # necessary to make sure instantiated templates are included
15986             # in the archive.
15987             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15988             ;;
15989           gcx*)
15990             # Green Hills C++ Compiler
15991             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15992
15993             # The C++ compiler must be used to create the archive.
15994             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15995             ;;
15996           *)
15997             # GNU C++ compiler with Solaris linker
15998             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15999               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16000               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16001                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16002                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16003                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16004
16005                 # Commands to make compiler produce verbose output that lists
16006                 # what "hidden" libraries, object files and flags are used when
16007                 # linking a shared library.
16008                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16009               else
16010                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16011                 # platform.
16012                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16013                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16014                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16015
16016                 # Commands to make compiler produce verbose output that lists
16017                 # what "hidden" libraries, object files and flags are used when
16018                 # linking a shared library.
16019                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16020               fi
16021
16022               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16023               case $host_os in
16024                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16025                 *)
16026                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16027                   ;;
16028               esac
16029             fi
16030             ;;
16031         esac
16032         ;;
16033
16034     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16035       no_undefined_flag_CXX='${wl}-z,text'
16036       archive_cmds_need_lc_CXX=no
16037       hardcode_shlibpath_var_CXX=no
16038       runpath_var='LD_RUN_PATH'
16039
16040       case $cc_basename in
16041         CC*)
16042           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16043           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16044           ;;
16045         *)
16046           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16047           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16048           ;;
16049       esac
16050       ;;
16051
16052       sysv5* | sco3.2v5* | sco5v6*)
16053         # Note: We can NOT use -z defs as we might desire, because we do not
16054         # link with -lc, and that would cause any symbols used from libc to
16055         # always be unresolved, which means just about no library would
16056         # ever link correctly.  If we're not using GNU ld we use -z text
16057         # though, which does catch some bad symbols but isn't as heavy-handed
16058         # as -z defs.
16059         no_undefined_flag_CXX='${wl}-z,text'
16060         allow_undefined_flag_CXX='${wl}-z,nodefs'
16061         archive_cmds_need_lc_CXX=no
16062         hardcode_shlibpath_var_CXX=no
16063         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16064         hardcode_libdir_separator_CXX=':'
16065         link_all_deplibs_CXX=yes
16066         export_dynamic_flag_spec_CXX='${wl}-Bexport'
16067         runpath_var='LD_RUN_PATH'
16068
16069         case $cc_basename in
16070           CC*)
16071             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16072             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16073             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16074               '"$old_archive_cmds_CXX"
16075             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16076               '"$reload_cmds_CXX"
16077             ;;
16078           *)
16079             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16080             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16081             ;;
16082         esac
16083       ;;
16084
16085       tandem*)
16086         case $cc_basename in
16087           NCC*)
16088             # NonStop-UX NCC 3.20
16089             # FIXME: insert proper C++ library support
16090             ld_shlibs_CXX=no
16091             ;;
16092           *)
16093             # FIXME: insert proper C++ library support
16094             ld_shlibs_CXX=no
16095             ;;
16096         esac
16097         ;;
16098
16099       vxworks*)
16100         # FIXME: insert proper C++ library support
16101         ld_shlibs_CXX=no
16102         ;;
16103
16104       *)
16105         # FIXME: insert proper C++ library support
16106         ld_shlibs_CXX=no
16107         ;;
16108     esac
16109
16110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16111 $as_echo "$ld_shlibs_CXX" >&6; }
16112     test "$ld_shlibs_CXX" = no && can_build_shared=no
16113
16114     GCC_CXX="$GXX"
16115     LD_CXX="$LD"
16116
16117     ## CAVEAT EMPTOR:
16118     ## There is no encapsulation within the following macros, do not change
16119     ## the running order or otherwise move them around unless you know exactly
16120     ## what you are doing...
16121     # Dependencies to place before and after the object being linked:
16122 predep_objects_CXX=
16123 postdep_objects_CXX=
16124 predeps_CXX=
16125 postdeps_CXX=
16126 compiler_lib_search_path_CXX=
16127
16128 cat > conftest.$ac_ext <<_LT_EOF
16129 class Foo
16130 {
16131 public:
16132   Foo (void) { a = 0; }
16133 private:
16134   int a;
16135 };
16136 _LT_EOF
16137
16138
16139 _lt_libdeps_save_CFLAGS=$CFLAGS
16140 case "$CC $CFLAGS " in #(
16141 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16142 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16143 esac
16144
16145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16146   (eval $ac_compile) 2>&5
16147   ac_status=$?
16148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16149   test $ac_status = 0; }; then
16150   # Parse the compiler output and extract the necessary
16151   # objects, libraries and library flags.
16152
16153   # Sentinel used to keep track of whether or not we are before
16154   # the conftest object file.
16155   pre_test_object_deps_done=no
16156
16157   for p in `eval "$output_verbose_link_cmd"`; do
16158     case ${prev}${p} in
16159
16160     -L* | -R* | -l*)
16161        # Some compilers place space between "-{L,R}" and the path.
16162        # Remove the space.
16163        if test $p = "-L" ||
16164           test $p = "-R"; then
16165          prev=$p
16166          continue
16167        fi
16168
16169        # Expand the sysroot to ease extracting the directories later.
16170        if test -z "$prev"; then
16171          case $p in
16172          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16173          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16174          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16175          esac
16176        fi
16177        case $p in
16178        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16179        esac
16180        if test "$pre_test_object_deps_done" = no; then
16181          case ${prev} in
16182          -L | -R)
16183            # Internal compiler library paths should come after those
16184            # provided the user.  The postdeps already come after the
16185            # user supplied libs so there is no need to process them.
16186            if test -z "$compiler_lib_search_path_CXX"; then
16187              compiler_lib_search_path_CXX="${prev}${p}"
16188            else
16189              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16190            fi
16191            ;;
16192          # The "-l" case would never come before the object being
16193          # linked, so don't bother handling this case.
16194          esac
16195        else
16196          if test -z "$postdeps_CXX"; then
16197            postdeps_CXX="${prev}${p}"
16198          else
16199            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16200          fi
16201        fi
16202        prev=
16203        ;;
16204
16205     *.lto.$objext) ;; # Ignore GCC LTO objects
16206     *.$objext)
16207        # This assumes that the test object file only shows up
16208        # once in the compiler output.
16209        if test "$p" = "conftest.$objext"; then
16210          pre_test_object_deps_done=yes
16211          continue
16212        fi
16213
16214        if test "$pre_test_object_deps_done" = no; then
16215          if test -z "$predep_objects_CXX"; then
16216            predep_objects_CXX="$p"
16217          else
16218            predep_objects_CXX="$predep_objects_CXX $p"
16219          fi
16220        else
16221          if test -z "$postdep_objects_CXX"; then
16222            postdep_objects_CXX="$p"
16223          else
16224            postdep_objects_CXX="$postdep_objects_CXX $p"
16225          fi
16226        fi
16227        ;;
16228
16229     *) ;; # Ignore the rest.
16230
16231     esac
16232   done
16233
16234   # Clean up.
16235   rm -f a.out a.exe
16236 else
16237   echo "libtool.m4: error: problem compiling CXX test program"
16238 fi
16239
16240 $RM -f confest.$objext
16241 CFLAGS=$_lt_libdeps_save_CFLAGS
16242
16243 # PORTME: override above test on systems where it is broken
16244 case $host_os in
16245 interix[3-9]*)
16246   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16247   # hack all around it, let's just trust "g++" to DTRT.
16248   predep_objects_CXX=
16249   postdep_objects_CXX=
16250   postdeps_CXX=
16251   ;;
16252
16253 linux*)
16254   case `$CC -V 2>&1 | sed 5q` in
16255   *Sun\ C*)
16256     # Sun C++ 5.9
16257
16258     # The more standards-conforming stlport4 library is
16259     # incompatible with the Cstd library. Avoid specifying
16260     # it if it's in CXXFLAGS. Ignore libCrun as
16261     # -library=stlport4 depends on it.
16262     case " $CXX $CXXFLAGS " in
16263     *" -library=stlport4 "*)
16264       solaris_use_stlport4=yes
16265       ;;
16266     esac
16267
16268     if test "$solaris_use_stlport4" != yes; then
16269       postdeps_CXX='-library=Cstd -library=Crun'
16270     fi
16271     ;;
16272   esac
16273   ;;
16274
16275 solaris*)
16276   case $cc_basename in
16277   CC* | sunCC*)
16278     # The more standards-conforming stlport4 library is
16279     # incompatible with the Cstd library. Avoid specifying
16280     # it if it's in CXXFLAGS. Ignore libCrun as
16281     # -library=stlport4 depends on it.
16282     case " $CXX $CXXFLAGS " in
16283     *" -library=stlport4 "*)
16284       solaris_use_stlport4=yes
16285       ;;
16286     esac
16287
16288     # Adding this requires a known-good setup of shared libraries for
16289     # Sun compiler versions before 5.6, else PIC objects from an old
16290     # archive will be linked into the output, leading to subtle bugs.
16291     if test "$solaris_use_stlport4" != yes; then
16292       postdeps_CXX='-library=Cstd -library=Crun'
16293     fi
16294     ;;
16295   esac
16296   ;;
16297 esac
16298
16299
16300 case " $postdeps_CXX " in
16301 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16302 esac
16303  compiler_lib_search_dirs_CXX=
16304 if test -n "${compiler_lib_search_path_CXX}"; then
16305  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16306 fi
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338     lt_prog_compiler_wl_CXX=
16339 lt_prog_compiler_pic_CXX=
16340 lt_prog_compiler_static_CXX=
16341
16342
16343   # C++ specific cases for pic, static, wl, etc.
16344   if test "$GXX" = yes; then
16345     lt_prog_compiler_wl_CXX='-Wl,'
16346     lt_prog_compiler_static_CXX='-static'
16347
16348     case $host_os in
16349     aix*)
16350       # All AIX code is PIC.
16351       if test "$host_cpu" = ia64; then
16352         # AIX 5 now supports IA64 processor
16353         lt_prog_compiler_static_CXX='-Bstatic'
16354       fi
16355       ;;
16356
16357     amigaos*)
16358       case $host_cpu in
16359       powerpc)
16360             # see comment about AmigaOS4 .so support
16361             lt_prog_compiler_pic_CXX='-fPIC'
16362         ;;
16363       m68k)
16364             # FIXME: we need at least 68020 code to build shared libraries, but
16365             # adding the `-m68020' flag to GCC prevents building anything better,
16366             # like `-m68040'.
16367             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16368         ;;
16369       esac
16370       ;;
16371
16372     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16373       # PIC is the default for these OSes.
16374       ;;
16375     mingw* | cygwin* | os2* | pw32* | cegcc*)
16376       # This hack is so that the source file can tell whether it is being
16377       # built for inclusion in a dll (and should export symbols for example).
16378       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16379       # (--disable-auto-import) libraries
16380       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16381       ;;
16382     darwin* | rhapsody*)
16383       # PIC is the default on this platform
16384       # Common symbols not allowed in MH_DYLIB files
16385       lt_prog_compiler_pic_CXX='-fno-common'
16386       ;;
16387     *djgpp*)
16388       # DJGPP does not support shared libraries at all
16389       lt_prog_compiler_pic_CXX=
16390       ;;
16391     haiku*)
16392       # PIC is the default for Haiku.
16393       # The "-static" flag exists, but is broken.
16394       lt_prog_compiler_static_CXX=
16395       ;;
16396     interix[3-9]*)
16397       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16398       # Instead, we relocate shared libraries at runtime.
16399       ;;
16400     sysv4*MP*)
16401       if test -d /usr/nec; then
16402         lt_prog_compiler_pic_CXX=-Kconform_pic
16403       fi
16404       ;;
16405     hpux*)
16406       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16407       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16408       # sets the default TLS model and affects inlining.
16409       case $host_cpu in
16410       hppa*64*)
16411         ;;
16412       *)
16413         lt_prog_compiler_pic_CXX='-fPIC'
16414         ;;
16415       esac
16416       ;;
16417     *qnx* | *nto*)
16418       # QNX uses GNU C++, but need to define -shared option too, otherwise
16419       # it will coredump.
16420       lt_prog_compiler_pic_CXX='-fPIC -shared'
16421       ;;
16422     *)
16423       lt_prog_compiler_pic_CXX='-fPIC'
16424       ;;
16425     esac
16426   else
16427     case $host_os in
16428       aix[4-9]*)
16429         # All AIX code is PIC.
16430         if test "$host_cpu" = ia64; then
16431           # AIX 5 now supports IA64 processor
16432           lt_prog_compiler_static_CXX='-Bstatic'
16433         else
16434           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16435         fi
16436         ;;
16437       chorus*)
16438         case $cc_basename in
16439         cxch68*)
16440           # Green Hills C++ Compiler
16441           # _LT_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"
16442           ;;
16443         esac
16444         ;;
16445       mingw* | cygwin* | os2* | pw32* | cegcc*)
16446         # This hack is so that the source file can tell whether it is being
16447         # built for inclusion in a dll (and should export symbols for example).
16448         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16449         ;;
16450       dgux*)
16451         case $cc_basename in
16452           ec++*)
16453             lt_prog_compiler_pic_CXX='-KPIC'
16454             ;;
16455           ghcx*)
16456             # Green Hills C++ Compiler
16457             lt_prog_compiler_pic_CXX='-pic'
16458             ;;
16459           *)
16460             ;;
16461         esac
16462         ;;
16463       freebsd* | dragonfly*)
16464         # FreeBSD uses GNU C++
16465         ;;
16466       hpux9* | hpux10* | hpux11*)
16467         case $cc_basename in
16468           CC*)
16469             lt_prog_compiler_wl_CXX='-Wl,'
16470             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16471             if test "$host_cpu" != ia64; then
16472               lt_prog_compiler_pic_CXX='+Z'
16473             fi
16474             ;;
16475           aCC*)
16476             lt_prog_compiler_wl_CXX='-Wl,'
16477             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16478             case $host_cpu in
16479             hppa*64*|ia64*)
16480               # +Z the default
16481               ;;
16482             *)
16483               lt_prog_compiler_pic_CXX='+Z'
16484               ;;
16485             esac
16486             ;;
16487           *)
16488             ;;
16489         esac
16490         ;;
16491       interix*)
16492         # This is c89, which is MS Visual C++ (no shared libs)
16493         # Anyone wants to do a port?
16494         ;;
16495       irix5* | irix6* | nonstopux*)
16496         case $cc_basename in
16497           CC*)
16498             lt_prog_compiler_wl_CXX='-Wl,'
16499             lt_prog_compiler_static_CXX='-non_shared'
16500             # CC pic flag -KPIC is the default.
16501             ;;
16502           *)
16503             ;;
16504         esac
16505         ;;
16506       linux* | k*bsd*-gnu | kopensolaris*-gnu)
16507         case $cc_basename in
16508           KCC*)
16509             # KAI C++ Compiler
16510             lt_prog_compiler_wl_CXX='--backend -Wl,'
16511             lt_prog_compiler_pic_CXX='-fPIC'
16512             ;;
16513           ecpc* )
16514             # old Intel C++ for x86_64 which still supported -KPIC.
16515             lt_prog_compiler_wl_CXX='-Wl,'
16516             lt_prog_compiler_pic_CXX='-KPIC'
16517             lt_prog_compiler_static_CXX='-static'
16518             ;;
16519           icpc* )
16520             # Intel C++, used to be incompatible with GCC.
16521             # ICC 10 doesn't accept -KPIC any more.
16522             lt_prog_compiler_wl_CXX='-Wl,'
16523             lt_prog_compiler_pic_CXX='-fPIC'
16524             lt_prog_compiler_static_CXX='-static'
16525             ;;
16526           pgCC* | pgcpp*)
16527             # Portland Group C++ compiler
16528             lt_prog_compiler_wl_CXX='-Wl,'
16529             lt_prog_compiler_pic_CXX='-fpic'
16530             lt_prog_compiler_static_CXX='-Bstatic'
16531             ;;
16532           cxx*)
16533             # Compaq C++
16534             # Make sure the PIC flag is empty.  It appears that all Alpha
16535             # Linux and Compaq Tru64 Unix objects are PIC.
16536             lt_prog_compiler_pic_CXX=
16537             lt_prog_compiler_static_CXX='-non_shared'
16538             ;;
16539           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16540             # IBM XL 8.0, 9.0 on PPC and BlueGene
16541             lt_prog_compiler_wl_CXX='-Wl,'
16542             lt_prog_compiler_pic_CXX='-qpic'
16543             lt_prog_compiler_static_CXX='-qstaticlink'
16544             ;;
16545           *)
16546             case `$CC -V 2>&1 | sed 5q` in
16547             *Sun\ C*)
16548               # Sun C++ 5.9
16549               lt_prog_compiler_pic_CXX='-KPIC'
16550               lt_prog_compiler_static_CXX='-Bstatic'
16551               lt_prog_compiler_wl_CXX='-Qoption ld '
16552               ;;
16553             esac
16554             ;;
16555         esac
16556         ;;
16557       lynxos*)
16558         ;;
16559       m88k*)
16560         ;;
16561       mvs*)
16562         case $cc_basename in
16563           cxx*)
16564             lt_prog_compiler_pic_CXX='-W c,exportall'
16565             ;;
16566           *)
16567             ;;
16568         esac
16569         ;;
16570       netbsd*)
16571         ;;
16572       *qnx* | *nto*)
16573         # QNX uses GNU C++, but need to define -shared option too, otherwise
16574         # it will coredump.
16575         lt_prog_compiler_pic_CXX='-fPIC -shared'
16576         ;;
16577       osf3* | osf4* | osf5*)
16578         case $cc_basename in
16579           KCC*)
16580             lt_prog_compiler_wl_CXX='--backend -Wl,'
16581             ;;
16582           RCC*)
16583             # Rational C++ 2.4.1
16584             lt_prog_compiler_pic_CXX='-pic'
16585             ;;
16586           cxx*)
16587             # Digital/Compaq C++
16588             lt_prog_compiler_wl_CXX='-Wl,'
16589             # Make sure the PIC flag is empty.  It appears that all Alpha
16590             # Linux and Compaq Tru64 Unix objects are PIC.
16591             lt_prog_compiler_pic_CXX=
16592             lt_prog_compiler_static_CXX='-non_shared'
16593             ;;
16594           *)
16595             ;;
16596         esac
16597         ;;
16598       psos*)
16599         ;;
16600       solaris*)
16601         case $cc_basename in
16602           CC* | sunCC*)
16603             # Sun C++ 4.2, 5.x and Centerline C++
16604             lt_prog_compiler_pic_CXX='-KPIC'
16605             lt_prog_compiler_static_CXX='-Bstatic'
16606             lt_prog_compiler_wl_CXX='-Qoption ld '
16607             ;;
16608           gcx*)
16609             # Green Hills C++ Compiler
16610             lt_prog_compiler_pic_CXX='-PIC'
16611             ;;
16612           *)
16613             ;;
16614         esac
16615         ;;
16616       sunos4*)
16617         case $cc_basename in
16618           CC*)
16619             # Sun C++ 4.x
16620             lt_prog_compiler_pic_CXX='-pic'
16621             lt_prog_compiler_static_CXX='-Bstatic'
16622             ;;
16623           lcc*)
16624             # Lucid
16625             lt_prog_compiler_pic_CXX='-pic'
16626             ;;
16627           *)
16628             ;;
16629         esac
16630         ;;
16631       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16632         case $cc_basename in
16633           CC*)
16634             lt_prog_compiler_wl_CXX='-Wl,'
16635             lt_prog_compiler_pic_CXX='-KPIC'
16636             lt_prog_compiler_static_CXX='-Bstatic'
16637             ;;
16638         esac
16639         ;;
16640       tandem*)
16641         case $cc_basename in
16642           NCC*)
16643             # NonStop-UX NCC 3.20
16644             lt_prog_compiler_pic_CXX='-KPIC'
16645             ;;
16646           *)
16647             ;;
16648         esac
16649         ;;
16650       vxworks*)
16651         ;;
16652       *)
16653         lt_prog_compiler_can_build_shared_CXX=no
16654         ;;
16655     esac
16656   fi
16657
16658 case $host_os in
16659   # For platforms which do not support PIC, -DPIC is meaningless:
16660   *djgpp*)
16661     lt_prog_compiler_pic_CXX=
16662     ;;
16663   *)
16664     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16665     ;;
16666 esac
16667
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16669 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16670 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16671   $as_echo_n "(cached) " >&6
16672 else
16673   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16674 fi
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16676 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16677 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16678
16679 #
16680 # Check to make sure the PIC flag actually works.
16681 #
16682 if test -n "$lt_prog_compiler_pic_CXX"; then
16683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16684 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16685 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16686   $as_echo_n "(cached) " >&6
16687 else
16688   lt_cv_prog_compiler_pic_works_CXX=no
16689    ac_outfile=conftest.$ac_objext
16690    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16691    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16692    # Insert the option either (1) after the last *FLAGS variable, or
16693    # (2) before a word containing "conftest.", or (3) at the end.
16694    # Note that $ac_compile itself does not contain backslashes and begins
16695    # with a dollar sign (not a hyphen), so the echo should work correctly.
16696    # The option is referenced via a variable to avoid confusing sed.
16697    lt_compile=`echo "$ac_compile" | $SED \
16698    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16699    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16700    -e 's:$: $lt_compiler_flag:'`
16701    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16702    (eval "$lt_compile" 2>conftest.err)
16703    ac_status=$?
16704    cat conftest.err >&5
16705    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706    if (exit $ac_status) && test -s "$ac_outfile"; then
16707      # The compiler can only warn and ignore the option if not recognized
16708      # So say no if there are warnings other than the usual output.
16709      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16710      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16711      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16712        lt_cv_prog_compiler_pic_works_CXX=yes
16713      fi
16714    fi
16715    $RM conftest*
16716
16717 fi
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16719 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16720
16721 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16722     case $lt_prog_compiler_pic_CXX in
16723      "" | " "*) ;;
16724      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16725      esac
16726 else
16727     lt_prog_compiler_pic_CXX=
16728      lt_prog_compiler_can_build_shared_CXX=no
16729 fi
16730
16731 fi
16732
16733
16734
16735
16736
16737 #
16738 # Check to make sure the static flag actually works.
16739 #
16740 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16742 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16743 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16744   $as_echo_n "(cached) " >&6
16745 else
16746   lt_cv_prog_compiler_static_works_CXX=no
16747    save_LDFLAGS="$LDFLAGS"
16748    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16749    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16750    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16751      # The linker can only warn and ignore the option if not recognized
16752      # So say no if there are warnings
16753      if test -s conftest.err; then
16754        # Append any errors to the config.log.
16755        cat conftest.err 1>&5
16756        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16757        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16758        if diff conftest.exp conftest.er2 >/dev/null; then
16759          lt_cv_prog_compiler_static_works_CXX=yes
16760        fi
16761      else
16762        lt_cv_prog_compiler_static_works_CXX=yes
16763      fi
16764    fi
16765    $RM -r conftest*
16766    LDFLAGS="$save_LDFLAGS"
16767
16768 fi
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16770 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16771
16772 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16773     :
16774 else
16775     lt_prog_compiler_static_CXX=
16776 fi
16777
16778
16779
16780
16781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16782 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16783 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16784   $as_echo_n "(cached) " >&6
16785 else
16786   lt_cv_prog_compiler_c_o_CXX=no
16787    $RM -r conftest 2>/dev/null
16788    mkdir conftest
16789    cd conftest
16790    mkdir out
16791    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16792
16793    lt_compiler_flag="-o out/conftest2.$ac_objext"
16794    # Insert the option either (1) after the last *FLAGS variable, or
16795    # (2) before a word containing "conftest.", or (3) at the end.
16796    # Note that $ac_compile itself does not contain backslashes and begins
16797    # with a dollar sign (not a hyphen), so the echo should work correctly.
16798    lt_compile=`echo "$ac_compile" | $SED \
16799    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16800    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16801    -e 's:$: $lt_compiler_flag:'`
16802    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16803    (eval "$lt_compile" 2>out/conftest.err)
16804    ac_status=$?
16805    cat out/conftest.err >&5
16806    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16808    then
16809      # The compiler can only warn and ignore the option if not recognized
16810      # So say no if there are warnings
16811      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16812      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16813      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16814        lt_cv_prog_compiler_c_o_CXX=yes
16815      fi
16816    fi
16817    chmod u+w . 2>&5
16818    $RM conftest*
16819    # SGI C++ compiler will create directory out/ii_files/ for
16820    # template instantiation
16821    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16822    $RM out/* && rmdir out
16823    cd ..
16824    $RM -r conftest
16825    $RM conftest*
16826
16827 fi
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16829 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16830
16831
16832
16833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16834 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16835 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16836   $as_echo_n "(cached) " >&6
16837 else
16838   lt_cv_prog_compiler_c_o_CXX=no
16839    $RM -r conftest 2>/dev/null
16840    mkdir conftest
16841    cd conftest
16842    mkdir out
16843    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16844
16845    lt_compiler_flag="-o out/conftest2.$ac_objext"
16846    # Insert the option either (1) after the last *FLAGS variable, or
16847    # (2) before a word containing "conftest.", or (3) at the end.
16848    # Note that $ac_compile itself does not contain backslashes and begins
16849    # with a dollar sign (not a hyphen), so the echo should work correctly.
16850    lt_compile=`echo "$ac_compile" | $SED \
16851    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16852    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16853    -e 's:$: $lt_compiler_flag:'`
16854    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16855    (eval "$lt_compile" 2>out/conftest.err)
16856    ac_status=$?
16857    cat out/conftest.err >&5
16858    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16860    then
16861      # The compiler can only warn and ignore the option if not recognized
16862      # So say no if there are warnings
16863      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16864      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16865      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16866        lt_cv_prog_compiler_c_o_CXX=yes
16867      fi
16868    fi
16869    chmod u+w . 2>&5
16870    $RM conftest*
16871    # SGI C++ compiler will create directory out/ii_files/ for
16872    # template instantiation
16873    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16874    $RM out/* && rmdir out
16875    cd ..
16876    $RM -r conftest
16877    $RM conftest*
16878
16879 fi
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16881 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16882
16883
16884
16885
16886 hard_links="nottested"
16887 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16888   # do not overwrite the value of need_locks provided by the user
16889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16890 $as_echo_n "checking if we can lock with hard links... " >&6; }
16891   hard_links=yes
16892   $RM conftest*
16893   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16894   touch conftest.a
16895   ln conftest.a conftest.b 2>&5 || hard_links=no
16896   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16898 $as_echo "$hard_links" >&6; }
16899   if test "$hard_links" = no; then
16900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16901 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16902     need_locks=warn
16903   fi
16904 else
16905   need_locks=no
16906 fi
16907
16908
16909
16910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16911 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16912
16913   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16914   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16915   case $host_os in
16916   aix[4-9]*)
16917     # If we're using GNU nm, then we don't want the "-C" option.
16918     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16919     # Also, AIX nm treats weak defined symbols like other global defined
16920     # symbols, whereas GNU nm marks them as "W".
16921     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16922       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16923     else
16924       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'
16925     fi
16926     ;;
16927   pw32*)
16928     export_symbols_cmds_CXX="$ltdll_cmds"
16929     ;;
16930   cygwin* | mingw* | cegcc*)
16931     case $cc_basename in
16932     cl*) ;;
16933     *)
16934       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16935       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16936       ;;
16937     esac
16938     ;;
16939   *)
16940     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16941     ;;
16942   esac
16943
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16945 $as_echo "$ld_shlibs_CXX" >&6; }
16946 test "$ld_shlibs_CXX" = no && can_build_shared=no
16947
16948 with_gnu_ld_CXX=$with_gnu_ld
16949
16950
16951
16952
16953
16954
16955 #
16956 # Do we need to explicitly link libc?
16957 #
16958 case "x$archive_cmds_need_lc_CXX" in
16959 x|xyes)
16960   # Assume -lc should be added
16961   archive_cmds_need_lc_CXX=yes
16962
16963   if test "$enable_shared" = yes && test "$GCC" = yes; then
16964     case $archive_cmds_CXX in
16965     *'~'*)
16966       # FIXME: we may have to deal with multi-command sequences.
16967       ;;
16968     '$CC '*)
16969       # Test whether the compiler implicitly links with -lc since on some
16970       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16971       # to ld, don't add -lc before -lgcc.
16972       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16973 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16974 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16975   $as_echo_n "(cached) " >&6
16976 else
16977   $RM conftest*
16978         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16979
16980         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16981   (eval $ac_compile) 2>&5
16982   ac_status=$?
16983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16984   test $ac_status = 0; } 2>conftest.err; then
16985           soname=conftest
16986           lib=conftest
16987           libobjs=conftest.$ac_objext
16988           deplibs=
16989           wl=$lt_prog_compiler_wl_CXX
16990           pic_flag=$lt_prog_compiler_pic_CXX
16991           compiler_flags=-v
16992           linker_flags=-v
16993           verstring=
16994           output_objdir=.
16995           libname=conftest
16996           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16997           allow_undefined_flag_CXX=
16998           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16999   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17000   ac_status=$?
17001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17002   test $ac_status = 0; }
17003           then
17004             lt_cv_archive_cmds_need_lc_CXX=no
17005           else
17006             lt_cv_archive_cmds_need_lc_CXX=yes
17007           fi
17008           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17009         else
17010           cat conftest.err 1>&5
17011         fi
17012         $RM conftest*
17013
17014 fi
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17016 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17017       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17018       ;;
17019     esac
17020   fi
17021   ;;
17022 esac
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17088 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17089
17090 library_names_spec=
17091 libname_spec='lib$name'
17092 soname_spec=
17093 shrext_cmds=".so"
17094 postinstall_cmds=
17095 postuninstall_cmds=
17096 finish_cmds=
17097 finish_eval=
17098 shlibpath_var=
17099 shlibpath_overrides_runpath=unknown
17100 version_type=none
17101 dynamic_linker="$host_os ld.so"
17102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17103 need_lib_prefix=unknown
17104 hardcode_into_libs=no
17105
17106 # when you set need_version to no, make sure it does not cause -set_version
17107 # flags to be left without arguments
17108 need_version=unknown
17109
17110 case $host_os in
17111 aix3*)
17112   version_type=linux
17113   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17114   shlibpath_var=LIBPATH
17115
17116   # AIX 3 has no versioning support, so we append a major version to the name.
17117   soname_spec='${libname}${release}${shared_ext}$major'
17118   ;;
17119
17120 aix[4-9]*)
17121   version_type=linux
17122   need_lib_prefix=no
17123   need_version=no
17124   hardcode_into_libs=yes
17125   if test "$host_cpu" = ia64; then
17126     # AIX 5 supports IA64
17127     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17128     shlibpath_var=LD_LIBRARY_PATH
17129   else
17130     # With GCC up to 2.95.x, collect2 would create an import file
17131     # for dependence libraries.  The import file would start with
17132     # the line `#! .'.  This would cause the generated library to
17133     # depend on `.', always an invalid library.  This was fixed in
17134     # development snapshots of GCC prior to 3.0.
17135     case $host_os in
17136       aix4 | aix4.[01] | aix4.[01].*)
17137       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17138            echo ' yes '
17139            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17140         :
17141       else
17142         can_build_shared=no
17143       fi
17144       ;;
17145     esac
17146     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17147     # soname into executable. Probably we can add versioning support to
17148     # collect2, so additional links can be useful in future.
17149     if test "$aix_use_runtimelinking" = yes; then
17150       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17151       # instead of lib<name>.a to let people know that these are not
17152       # typical AIX shared libraries.
17153       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17154     else
17155       # We preserve .a as extension for shared libraries through AIX4.2
17156       # and later when we are not doing run time linking.
17157       library_names_spec='${libname}${release}.a $libname.a'
17158       soname_spec='${libname}${release}${shared_ext}$major'
17159     fi
17160     shlibpath_var=LIBPATH
17161   fi
17162   ;;
17163
17164 amigaos*)
17165   case $host_cpu in
17166   powerpc)
17167     # Since July 2007 AmigaOS4 officially supports .so libraries.
17168     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170     ;;
17171   m68k)
17172     library_names_spec='$libname.ixlibrary $libname.a'
17173     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17174     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
17175     ;;
17176   esac
17177   ;;
17178
17179 beos*)
17180   library_names_spec='${libname}${shared_ext}'
17181   dynamic_linker="$host_os ld.so"
17182   shlibpath_var=LIBRARY_PATH
17183   ;;
17184
17185 bsdi[45]*)
17186   version_type=linux
17187   need_version=no
17188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17189   soname_spec='${libname}${release}${shared_ext}$major'
17190   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17191   shlibpath_var=LD_LIBRARY_PATH
17192   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17193   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17194   # the default ld.so.conf also contains /usr/contrib/lib and
17195   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17196   # libtool to hard-code these into programs
17197   ;;
17198
17199 cygwin* | mingw* | pw32* | cegcc*)
17200   version_type=windows
17201   shrext_cmds=".dll"
17202   need_version=no
17203   need_lib_prefix=no
17204
17205   case $GCC,$cc_basename in
17206   yes,*)
17207     # gcc
17208     library_names_spec='$libname.dll.a'
17209     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17210     postinstall_cmds='base_file=`basename \${file}`~
17211       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17212       dldir=$destdir/`dirname \$dlpath`~
17213       test -d \$dldir || mkdir -p \$dldir~
17214       $install_prog $dir/$dlname \$dldir/$dlname~
17215       chmod a+x \$dldir/$dlname~
17216       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17217         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17218       fi'
17219     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17220       dlpath=$dir/\$dldll~
17221        $RM \$dlpath'
17222     shlibpath_overrides_runpath=yes
17223
17224     case $host_os in
17225     cygwin*)
17226       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17227       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17228
17229       ;;
17230     mingw* | cegcc*)
17231       # MinGW DLLs use traditional 'lib' prefix
17232       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17233       ;;
17234     pw32*)
17235       # pw32 DLLs use 'pw' prefix rather than 'lib'
17236       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17237       ;;
17238     esac
17239     dynamic_linker='Win32 ld.exe'
17240     ;;
17241
17242   *,cl*)
17243     # Native MSVC
17244     libname_spec='$name'
17245     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17246     library_names_spec='${libname}.dll.lib'
17247
17248     case $build_os in
17249     mingw*)
17250       sys_lib_search_path_spec=
17251       lt_save_ifs=$IFS
17252       IFS=';'
17253       for lt_path in $LIB
17254       do
17255         IFS=$lt_save_ifs
17256         # Let DOS variable expansion print the short 8.3 style file name.
17257         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17258         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17259       done
17260       IFS=$lt_save_ifs
17261       # Convert to MSYS style.
17262       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17263       ;;
17264     cygwin*)
17265       # Convert to unix form, then to dos form, then back to unix form
17266       # but this time dos style (no spaces!) so that the unix form looks
17267       # like /cygdrive/c/PROGRA~1:/cygdr...
17268       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17269       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17270       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17271       ;;
17272     *)
17273       sys_lib_search_path_spec="$LIB"
17274       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17275         # It is most probably a Windows format PATH.
17276         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17277       else
17278         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17279       fi
17280       # FIXME: find the short name or the path components, as spaces are
17281       # common. (e.g. "Program Files" -> "PROGRA~1")
17282       ;;
17283     esac
17284
17285     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17286     postinstall_cmds='base_file=`basename \${file}`~
17287       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17288       dldir=$destdir/`dirname \$dlpath`~
17289       test -d \$dldir || mkdir -p \$dldir~
17290       $install_prog $dir/$dlname \$dldir/$dlname'
17291     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17292       dlpath=$dir/\$dldll~
17293        $RM \$dlpath'
17294     shlibpath_overrides_runpath=yes
17295     dynamic_linker='Win32 link.exe'
17296     ;;
17297
17298   *)
17299     # Assume MSVC wrapper
17300     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17301     dynamic_linker='Win32 ld.exe'
17302     ;;
17303   esac
17304   # FIXME: first we should search . and the directory the executable is in
17305   shlibpath_var=PATH
17306   ;;
17307
17308 darwin* | rhapsody*)
17309   dynamic_linker="$host_os dyld"
17310   version_type=darwin
17311   need_lib_prefix=no
17312   need_version=no
17313   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17314   soname_spec='${libname}${release}${major}$shared_ext'
17315   shlibpath_overrides_runpath=yes
17316   shlibpath_var=DYLD_LIBRARY_PATH
17317   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17318
17319   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17320   ;;
17321
17322 dgux*)
17323   version_type=linux
17324   need_lib_prefix=no
17325   need_version=no
17326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17327   soname_spec='${libname}${release}${shared_ext}$major'
17328   shlibpath_var=LD_LIBRARY_PATH
17329   ;;
17330
17331 freebsd1*)
17332   dynamic_linker=no
17333   ;;
17334
17335 freebsd* | dragonfly*)
17336   # DragonFly does not have aout.  When/if they implement a new
17337   # versioning mechanism, adjust this.
17338   if test -x /usr/bin/objformat; then
17339     objformat=`/usr/bin/objformat`
17340   else
17341     case $host_os in
17342     freebsd[123]*) objformat=aout ;;
17343     *) objformat=elf ;;
17344     esac
17345   fi
17346   version_type=freebsd-$objformat
17347   case $version_type in
17348     freebsd-elf*)
17349       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17350       need_version=no
17351       need_lib_prefix=no
17352       ;;
17353     freebsd-*)
17354       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17355       need_version=yes
17356       ;;
17357   esac
17358   shlibpath_var=LD_LIBRARY_PATH
17359   case $host_os in
17360   freebsd2*)
17361     shlibpath_overrides_runpath=yes
17362     ;;
17363   freebsd3.[01]* | freebsdelf3.[01]*)
17364     shlibpath_overrides_runpath=yes
17365     hardcode_into_libs=yes
17366     ;;
17367   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17368   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17369     shlibpath_overrides_runpath=no
17370     hardcode_into_libs=yes
17371     ;;
17372   *) # from 4.6 on, and DragonFly
17373     shlibpath_overrides_runpath=yes
17374     hardcode_into_libs=yes
17375     ;;
17376   esac
17377   ;;
17378
17379 gnu*)
17380   version_type=linux
17381   need_lib_prefix=no
17382   need_version=no
17383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17384   soname_spec='${libname}${release}${shared_ext}$major'
17385   shlibpath_var=LD_LIBRARY_PATH
17386   hardcode_into_libs=yes
17387   ;;
17388
17389 haiku*)
17390   version_type=linux
17391   need_lib_prefix=no
17392   need_version=no
17393   dynamic_linker="$host_os runtime_loader"
17394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17395   soname_spec='${libname}${release}${shared_ext}$major'
17396   shlibpath_var=LIBRARY_PATH
17397   shlibpath_overrides_runpath=yes
17398   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17399   hardcode_into_libs=yes
17400   ;;
17401
17402 hpux9* | hpux10* | hpux11*)
17403   # Give a soname corresponding to the major version so that dld.sl refuses to
17404   # link against other versions.
17405   version_type=sunos
17406   need_lib_prefix=no
17407   need_version=no
17408   case $host_cpu in
17409   ia64*)
17410     shrext_cmds='.so'
17411     hardcode_into_libs=yes
17412     dynamic_linker="$host_os dld.so"
17413     shlibpath_var=LD_LIBRARY_PATH
17414     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17416     soname_spec='${libname}${release}${shared_ext}$major'
17417     if test "X$HPUX_IA64_MODE" = X32; then
17418       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17419     else
17420       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17421     fi
17422     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17423     ;;
17424   hppa*64*)
17425     shrext_cmds='.sl'
17426     hardcode_into_libs=yes
17427     dynamic_linker="$host_os dld.sl"
17428     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17429     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17431     soname_spec='${libname}${release}${shared_ext}$major'
17432     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17433     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17434     ;;
17435   *)
17436     shrext_cmds='.sl'
17437     dynamic_linker="$host_os dld.sl"
17438     shlibpath_var=SHLIB_PATH
17439     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441     soname_spec='${libname}${release}${shared_ext}$major'
17442     ;;
17443   esac
17444   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17445   postinstall_cmds='chmod 555 $lib'
17446   # or fails outright, so override atomically:
17447   install_override_mode=555
17448   ;;
17449
17450 interix[3-9]*)
17451   version_type=linux
17452   need_lib_prefix=no
17453   need_version=no
17454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17455   soname_spec='${libname}${release}${shared_ext}$major'
17456   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17457   shlibpath_var=LD_LIBRARY_PATH
17458   shlibpath_overrides_runpath=no
17459   hardcode_into_libs=yes
17460   ;;
17461
17462 irix5* | irix6* | nonstopux*)
17463   case $host_os in
17464     nonstopux*) version_type=nonstopux ;;
17465     *)
17466         if test "$lt_cv_prog_gnu_ld" = yes; then
17467                 version_type=linux
17468         else
17469                 version_type=irix
17470         fi ;;
17471   esac
17472   need_lib_prefix=no
17473   need_version=no
17474   soname_spec='${libname}${release}${shared_ext}$major'
17475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17476   case $host_os in
17477   irix5* | nonstopux*)
17478     libsuff= shlibsuff=
17479     ;;
17480   *)
17481     case $LD in # libtool.m4 will add one of these switches to LD
17482     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17483       libsuff= shlibsuff= libmagic=32-bit;;
17484     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17485       libsuff=32 shlibsuff=N32 libmagic=N32;;
17486     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17487       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17488     *) libsuff= shlibsuff= libmagic=never-match;;
17489     esac
17490     ;;
17491   esac
17492   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17493   shlibpath_overrides_runpath=no
17494   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17495   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17496   hardcode_into_libs=yes
17497   ;;
17498
17499 # No shared lib support for Linux oldld, aout, or coff.
17500 linux*oldld* | linux*aout* | linux*coff*)
17501   dynamic_linker=no
17502   ;;
17503
17504 # This must be Linux ELF.
17505 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17506   version_type=linux
17507   need_lib_prefix=no
17508   need_version=no
17509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510   soname_spec='${libname}${release}${shared_ext}$major'
17511   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17512   shlibpath_var=LD_LIBRARY_PATH
17513   shlibpath_overrides_runpath=no
17514
17515   # Some binutils ld are patched to set DT_RUNPATH
17516   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17517   $as_echo_n "(cached) " >&6
17518 else
17519   lt_cv_shlibpath_overrides_runpath=no
17520     save_LDFLAGS=$LDFLAGS
17521     save_libdir=$libdir
17522     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17523          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17525 /* end confdefs.h.  */
17526
17527 int
17528 main ()
17529 {
17530
17531   ;
17532   return 0;
17533 }
17534 _ACEOF
17535 if ac_fn_cxx_try_link "$LINENO"; then :
17536   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17537   lt_cv_shlibpath_overrides_runpath=yes
17538 fi
17539 fi
17540 rm -f core conftest.err conftest.$ac_objext \
17541     conftest$ac_exeext conftest.$ac_ext
17542     LDFLAGS=$save_LDFLAGS
17543     libdir=$save_libdir
17544
17545 fi
17546
17547   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17548
17549   # This implies no fast_install, which is unacceptable.
17550   # Some rework will be needed to allow for fast_install
17551   # before this can be enabled.
17552   hardcode_into_libs=yes
17553
17554   # Append ld.so.conf contents to the search path
17555   if test -f /etc/ld.so.conf; then
17556     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17557     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17558   fi
17559
17560   # We used to test for /lib/ld.so.1 and disable shared libraries on
17561   # powerpc, because MkLinux only supported shared libraries with the
17562   # GNU dynamic linker.  Since this was broken with cross compilers,
17563   # most powerpc-linux boxes support dynamic linking these days and
17564   # people can always --disable-shared, the test was removed, and we
17565   # assume the GNU/Linux dynamic linker is in use.
17566   dynamic_linker='GNU/Linux ld.so'
17567   ;;
17568
17569 netbsd*)
17570   version_type=sunos
17571   need_lib_prefix=no
17572   need_version=no
17573   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17575     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17576     dynamic_linker='NetBSD (a.out) ld.so'
17577   else
17578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17579     soname_spec='${libname}${release}${shared_ext}$major'
17580     dynamic_linker='NetBSD ld.elf_so'
17581   fi
17582   shlibpath_var=LD_LIBRARY_PATH
17583   shlibpath_overrides_runpath=yes
17584   hardcode_into_libs=yes
17585   ;;
17586
17587 newsos6)
17588   version_type=linux
17589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590   shlibpath_var=LD_LIBRARY_PATH
17591   shlibpath_overrides_runpath=yes
17592   ;;
17593
17594 *nto* | *qnx*)
17595   version_type=qnx
17596   need_lib_prefix=no
17597   need_version=no
17598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17599   soname_spec='${libname}${release}${shared_ext}$major'
17600   shlibpath_var=LD_LIBRARY_PATH
17601   shlibpath_overrides_runpath=no
17602   hardcode_into_libs=yes
17603   dynamic_linker='ldqnx.so'
17604   ;;
17605
17606 openbsd*)
17607   version_type=sunos
17608   sys_lib_dlsearch_path_spec="/usr/lib"
17609   need_lib_prefix=no
17610   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17611   case $host_os in
17612     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17613     *)                          need_version=no  ;;
17614   esac
17615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17616   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17617   shlibpath_var=LD_LIBRARY_PATH
17618   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17619     case $host_os in
17620       openbsd2.[89] | openbsd2.[89].*)
17621         shlibpath_overrides_runpath=no
17622         ;;
17623       *)
17624         shlibpath_overrides_runpath=yes
17625         ;;
17626       esac
17627   else
17628     shlibpath_overrides_runpath=yes
17629   fi
17630   ;;
17631
17632 os2*)
17633   libname_spec='$name'
17634   shrext_cmds=".dll"
17635   need_lib_prefix=no
17636   library_names_spec='$libname${shared_ext} $libname.a'
17637   dynamic_linker='OS/2 ld.exe'
17638   shlibpath_var=LIBPATH
17639   ;;
17640
17641 osf3* | osf4* | osf5*)
17642   version_type=osf
17643   need_lib_prefix=no
17644   need_version=no
17645   soname_spec='${libname}${release}${shared_ext}$major'
17646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17647   shlibpath_var=LD_LIBRARY_PATH
17648   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17649   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17650   ;;
17651
17652 rdos*)
17653   dynamic_linker=no
17654   ;;
17655
17656 solaris*)
17657   version_type=linux
17658   need_lib_prefix=no
17659   need_version=no
17660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17661   soname_spec='${libname}${release}${shared_ext}$major'
17662   shlibpath_var=LD_LIBRARY_PATH
17663   shlibpath_overrides_runpath=yes
17664   hardcode_into_libs=yes
17665   # ldd complains unless libraries are executable
17666   postinstall_cmds='chmod +x $lib'
17667   ;;
17668
17669 sunos4*)
17670   version_type=sunos
17671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17672   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17673   shlibpath_var=LD_LIBRARY_PATH
17674   shlibpath_overrides_runpath=yes
17675   if test "$with_gnu_ld" = yes; then
17676     need_lib_prefix=no
17677   fi
17678   need_version=yes
17679   ;;
17680
17681 sysv4 | sysv4.3*)
17682   version_type=linux
17683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684   soname_spec='${libname}${release}${shared_ext}$major'
17685   shlibpath_var=LD_LIBRARY_PATH
17686   case $host_vendor in
17687     sni)
17688       shlibpath_overrides_runpath=no
17689       need_lib_prefix=no
17690       runpath_var=LD_RUN_PATH
17691       ;;
17692     siemens)
17693       need_lib_prefix=no
17694       ;;
17695     motorola)
17696       need_lib_prefix=no
17697       need_version=no
17698       shlibpath_overrides_runpath=no
17699       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17700       ;;
17701   esac
17702   ;;
17703
17704 sysv4*MP*)
17705   if test -d /usr/nec ;then
17706     version_type=linux
17707     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17708     soname_spec='$libname${shared_ext}.$major'
17709     shlibpath_var=LD_LIBRARY_PATH
17710   fi
17711   ;;
17712
17713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17714   version_type=freebsd-elf
17715   need_lib_prefix=no
17716   need_version=no
17717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17718   soname_spec='${libname}${release}${shared_ext}$major'
17719   shlibpath_var=LD_LIBRARY_PATH
17720   shlibpath_overrides_runpath=yes
17721   hardcode_into_libs=yes
17722   if test "$with_gnu_ld" = yes; then
17723     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17724   else
17725     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17726     case $host_os in
17727       sco3.2v5*)
17728         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17729         ;;
17730     esac
17731   fi
17732   sys_lib_dlsearch_path_spec='/usr/lib'
17733   ;;
17734
17735 tpf*)
17736   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17737   version_type=linux
17738   need_lib_prefix=no
17739   need_version=no
17740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17741   shlibpath_var=LD_LIBRARY_PATH
17742   shlibpath_overrides_runpath=no
17743   hardcode_into_libs=yes
17744   ;;
17745
17746 uts4*)
17747   version_type=linux
17748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749   soname_spec='${libname}${release}${shared_ext}$major'
17750   shlibpath_var=LD_LIBRARY_PATH
17751   ;;
17752
17753 *)
17754   dynamic_linker=no
17755   ;;
17756 esac
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17758 $as_echo "$dynamic_linker" >&6; }
17759 test "$dynamic_linker" = no && can_build_shared=no
17760
17761 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17762 if test "$GCC" = yes; then
17763   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17764 fi
17765
17766 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17767   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17768 fi
17769 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17770   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17771 fi
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17811 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17812 hardcode_action_CXX=
17813 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17814    test -n "$runpath_var_CXX" ||
17815    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17816
17817   # We can hardcode non-existent directories.
17818   if test "$hardcode_direct_CXX" != no &&
17819      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17820      # have to relink, otherwise we might link with an installed library
17821      # when we should be linking with a yet-to-be-installed one
17822      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17823      test "$hardcode_minus_L_CXX" != no; then
17824     # Linking always hardcodes the temporary library directory.
17825     hardcode_action_CXX=relink
17826   else
17827     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17828     hardcode_action_CXX=immediate
17829   fi
17830 else
17831   # We cannot hardcode anything, or else we can only hardcode existing
17832   # directories.
17833   hardcode_action_CXX=unsupported
17834 fi
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17836 $as_echo "$hardcode_action_CXX" >&6; }
17837
17838 if test "$hardcode_action_CXX" = relink ||
17839    test "$inherit_rpath_CXX" = yes; then
17840   # Fast installation is not supported
17841   enable_fast_install=no
17842 elif test "$shlibpath_overrides_runpath" = yes ||
17843      test "$enable_shared" = no; then
17844   # Fast installation is not necessary
17845   enable_fast_install=needless
17846 fi
17847
17848
17849
17850
17851
17852
17853
17854   fi # test -n "$compiler"
17855
17856   CC=$lt_save_CC
17857   CFLAGS=$lt_save_CFLAGS
17858   LDCXX=$LD
17859   LD=$lt_save_LD
17860   GCC=$lt_save_GCC
17861   with_gnu_ld=$lt_save_with_gnu_ld
17862   lt_cv_path_LDCXX=$lt_cv_path_LD
17863   lt_cv_path_LD=$lt_save_path_LD
17864   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17865   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17866 fi # test "$_lt_caught_CXX_error" != yes
17867
17868 ac_ext=c
17869 ac_cpp='$CPP $CPPFLAGS'
17870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17873
17874
17875
17876
17877 if test "$GCC" = "yes" ; then
17878 #    AC_HAVE_GCC_VERSION(4,0,0,0,
17879 #        [
17880 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
17881 #            [Define to enable class visibility control in gcc.])
17882 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17883 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17884 #        ])
17885     CFLAGS="-Wall $GCC_CFLAGS"
17886     CXXFLAGS="-Wall $GCC_CXXFLAGS"
17887 else
17888 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
17889         case "${host_cpu}-${host_os}" in
17890                 *solaris*)
17891                         if test "$CXX" = "CC" ; then
17892                                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
17893                         fi
17894                 ;;
17895         esac
17896 fi
17897
17898 # Checks for typedefs, structures, and compiler characteristics.
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17900 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17901 if ${ac_cv_c_const+:} false; then :
17902   $as_echo_n "(cached) " >&6
17903 else
17904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h.  */
17906
17907 int
17908 main ()
17909 {
17910 /* FIXME: Include the comments suggested by Paul. */
17911 #ifndef __cplusplus
17912   /* Ultrix mips cc rejects this.  */
17913   typedef int charset[2];
17914   const charset cs;
17915   /* SunOS 4.1.1 cc rejects this.  */
17916   char const *const *pcpcc;
17917   char **ppc;
17918   /* NEC SVR4.0.2 mips cc rejects this.  */
17919   struct point {int x, y;};
17920   static struct point const zero = {0,0};
17921   /* AIX XL C 1.02.0.0 rejects this.
17922      It does not let you subtract one const X* pointer from another in
17923      an arm of an if-expression whose if-part is not a constant
17924      expression */
17925   const char *g = "string";
17926   pcpcc = &g + (g ? g-g : 0);
17927   /* HPUX 7.0 cc rejects these. */
17928   ++pcpcc;
17929   ppc = (char**) pcpcc;
17930   pcpcc = (char const *const *) ppc;
17931   { /* SCO 3.2v4 cc rejects this.  */
17932     char *t;
17933     char const *s = 0 ? (char *) 0 : (char const *) 0;
17934
17935     *t++ = 0;
17936     if (s) return 0;
17937   }
17938   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17939     int x[] = {25, 17};
17940     const int *foo = &x[0];
17941     ++foo;
17942   }
17943   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17944     typedef const int *iptr;
17945     iptr p = 0;
17946     ++p;
17947   }
17948   { /* AIX XL C 1.02.0.0 rejects this saying
17949        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17950     struct s { int j; const int *ap[3]; };
17951     struct s *b; b->j = 5;
17952   }
17953   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17954     const int foo = 10;
17955     if (!foo) return 0;
17956   }
17957   return !cs[0] && !zero.x;
17958 #endif
17959
17960   ;
17961   return 0;
17962 }
17963 _ACEOF
17964 if ac_fn_c_try_compile "$LINENO"; then :
17965   ac_cv_c_const=yes
17966 else
17967   ac_cv_c_const=no
17968 fi
17969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17970 fi
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17972 $as_echo "$ac_cv_c_const" >&6; }
17973 if test $ac_cv_c_const = no; then
17974
17975 $as_echo "#define const /**/" >>confdefs.h
17976
17977 fi
17978
17979 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17980 if test "x$ac_cv_type_size_t" = xyes; then :
17981
17982 else
17983
17984 cat >>confdefs.h <<_ACEOF
17985 #define size_t unsigned int
17986 _ACEOF
17987
17988 fi
17989
17990 # The cast to long int works around a bug in the HP C Compiler
17991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17993 # This bug is HP SR number 8606223364.
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17995 $as_echo_n "checking size of long... " >&6; }
17996 if ${ac_cv_sizeof_long+:} false; then :
17997   $as_echo_n "(cached) " >&6
17998 else
17999   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
18000
18001 else
18002   if test "$ac_cv_type_long" = yes; then
18003      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18005 as_fn_error 77 "cannot compute sizeof (long)
18006 See \`config.log' for more details" "$LINENO" 5; }
18007    else
18008      ac_cv_sizeof_long=0
18009    fi
18010 fi
18011
18012 fi
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18014 $as_echo "$ac_cv_sizeof_long" >&6; }
18015
18016
18017
18018 cat >>confdefs.h <<_ACEOF
18019 #define SIZEOF_LONG $ac_cv_sizeof_long
18020 _ACEOF
18021
18022
18023
18024 # Checks for library functions.
18025 for ac_func in strchr strdup strstr timegm strcasecmp
18026 do :
18027   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18029 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18030   cat >>confdefs.h <<_ACEOF
18031 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18032 _ACEOF
18033
18034 fi
18035 done
18036
18037 for ac_header in dlfcn.h
18038 do :
18039   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
18040 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18041   cat >>confdefs.h <<_ACEOF
18042 #define HAVE_DLFCN_H 1
18043 _ACEOF
18044
18045 fi
18046
18047 done
18048
18049 ac_fn_c_check_func "$LINENO" "dlclose" "ac_cv_func_dlclose"
18050 if test "x$ac_cv_func_dlclose" = xyes; then :
18051
18052 else
18053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18054 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18055 if ${ac_cv_lib_dl_dlopen+:} false; then :
18056   $as_echo_n "(cached) " >&6
18057 else
18058   ac_check_lib_save_LIBS=$LIBS
18059 LIBS="-ldl  $LIBS"
18060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18061 /* end confdefs.h.  */
18062
18063 /* Override any GCC internal prototype to avoid an error.
18064    Use char because int might match the return type of a GCC
18065    builtin and then its argument prototype would still apply.  */
18066 #ifdef __cplusplus
18067 extern "C"
18068 #endif
18069 char dlopen ();
18070 int
18071 main ()
18072 {
18073 return dlopen ();
18074   ;
18075   return 0;
18076 }
18077 _ACEOF
18078 if ac_fn_c_try_link "$LINENO"; then :
18079   ac_cv_lib_dl_dlopen=yes
18080 else
18081   ac_cv_lib_dl_dlopen=no
18082 fi
18083 rm -f core conftest.err conftest.$ac_objext \
18084     conftest$ac_exeext conftest.$ac_ext
18085 LIBS=$ac_check_lib_save_LIBS
18086 fi
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18088 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18089 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18090   cat >>confdefs.h <<_ACEOF
18091 #define HAVE_LIBDL 1
18092 _ACEOF
18093
18094   LIBS="-ldl $LIBS"
18095
18096 fi
18097
18098 fi
18099
18100
18101 # checks for pthreads
18102
18103
18104 ac_ext=c
18105 ac_cpp='$CPP $CPPFLAGS'
18106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18109
18110 acx_pthread_ok=no
18111
18112 # We used to check for pthread.h first, but this fails if pthread.h
18113 # requires special compiler flags (e.g. on True64 or Sequent).
18114 # It gets checked for in the link test anyway.
18115
18116 # First of all, check if the user has set any of the PTHREAD_LIBS,
18117 # etcetera environment variables, and if threads linking works using
18118 # them:
18119 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18120         save_CFLAGS="$CFLAGS"
18121         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18122         save_LIBS="$LIBS"
18123         LIBS="$PTHREAD_LIBS $LIBS"
18124         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18125 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18126         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18127 /* end confdefs.h.  */
18128
18129 /* Override any GCC internal prototype to avoid an error.
18130    Use char because int might match the return type of a GCC
18131    builtin and then its argument prototype would still apply.  */
18132 #ifdef __cplusplus
18133 extern "C"
18134 #endif
18135 char pthread_join ();
18136 int
18137 main ()
18138 {
18139 return pthread_join ();
18140   ;
18141   return 0;
18142 }
18143 _ACEOF
18144 if ac_fn_c_try_link "$LINENO"; then :
18145   acx_pthread_ok=yes
18146 fi
18147 rm -f core conftest.err conftest.$ac_objext \
18148     conftest$ac_exeext conftest.$ac_ext
18149         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18150 $as_echo "$acx_pthread_ok" >&6; }
18151         if test x"$acx_pthread_ok" = xno; then
18152                 PTHREAD_LIBS=""
18153                 PTHREAD_CFLAGS=""
18154         fi
18155         LIBS="$save_LIBS"
18156         CFLAGS="$save_CFLAGS"
18157 fi
18158
18159 # We must check for the threads library under a number of different
18160 # names; the ordering is very important because some systems
18161 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18162 # libraries is broken (non-POSIX).
18163
18164 # Create a list of thread flags to try.  Items starting with a "-" are
18165 # C compiler flags, and other items are library names, except for "none"
18166 # which indicates that we try without any flags at all, and "pthread-config"
18167 # which is a program returning the flags for the Pth emulation library.
18168
18169 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18170
18171 # The ordering *is* (sometimes) important.  Some notes on the
18172 # individual items follow:
18173
18174 # pthreads: AIX (must check this before -lpthread)
18175 # none: in case threads are in libc; should be tried before -Kthread and
18176 #       other compiler flags to prevent continual compiler warnings
18177 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18178 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18179 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18180 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18181 # -pthreads: Solaris/gcc
18182 # -mthreads: Mingw32/gcc, Lynx/gcc
18183 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18184 #      doesn't hurt to check since this sometimes defines pthreads too;
18185 #      also defines -D_REENTRANT)
18186 #      ... -mt is also the pthreads flag for HP/aCC
18187 # pthread: Linux, etcetera
18188 # --thread-safe: KAI C++
18189 # pthread-config: use pthread-config program (for GNU Pth library)
18190
18191 case "${host_cpu}-${host_os}" in
18192         *solaris*)
18193
18194         # On Solaris (at least, for some versions), libc contains stubbed
18195         # (non-functional) versions of the pthreads routines, so link-based
18196         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
18197         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
18198         # a function called by this macro, so we could check for that, but
18199         # who knows whether they'll stub that too in a future libc.)  So,
18200         # we'll just look for -pthreads and -lpthread first:
18201
18202         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
18203         ;;
18204 esac
18205
18206 if test x"$acx_pthread_ok" = xno; then
18207 for flag in $acx_pthread_flags; do
18208
18209         case $flag in
18210                 none)
18211                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18212 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18213                 ;;
18214
18215                 -*)
18216                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18217 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18218                 PTHREAD_CFLAGS="$flag"
18219                 ;;
18220
18221                 pthread-config)
18222                 # Extract the first word of "pthread-config", so it can be a program name with args.
18223 set dummy pthread-config; ac_word=$2
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18225 $as_echo_n "checking for $ac_word... " >&6; }
18226 if ${ac_cv_prog_acx_pthread_config+:} false; then :
18227   $as_echo_n "(cached) " >&6
18228 else
18229   if test -n "$acx_pthread_config"; then
18230   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18231 else
18232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18233 for as_dir in $PATH
18234 do
18235   IFS=$as_save_IFS
18236   test -z "$as_dir" && as_dir=.
18237     for ac_exec_ext in '' $ac_executable_extensions; do
18238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18239     ac_cv_prog_acx_pthread_config="yes"
18240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18241     break 2
18242   fi
18243 done
18244   done
18245 IFS=$as_save_IFS
18246
18247   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18248 fi
18249 fi
18250 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18251 if test -n "$acx_pthread_config"; then
18252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
18253 $as_echo "$acx_pthread_config" >&6; }
18254 else
18255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18256 $as_echo "no" >&6; }
18257 fi
18258
18259
18260                 if test x"$acx_pthread_config" = xno; then continue; fi
18261                 PTHREAD_CFLAGS="`pthread-config --cflags`"
18262                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18263                 ;;
18264
18265                 *)
18266                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18267 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18268                 PTHREAD_LIBS="-l$flag"
18269                 ;;
18270         esac
18271
18272         save_LIBS="$LIBS"
18273         save_CFLAGS="$CFLAGS"
18274         LIBS="$PTHREAD_LIBS $LIBS"
18275         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18276
18277         # Check for various functions.  We must include pthread.h,
18278         # since some functions may be macros.  (On the Sequent, we
18279         # need a special flag -Kthread to make this header compile.)
18280         # We check for pthread_join because it is in -lpthread on IRIX
18281         # while pthread_create is in libc.  We check for pthread_attr_init
18282         # due to DEC craziness with -lpthreads.  We check for
18283         # pthread_cleanup_push because it is one of the few pthread
18284         # functions on Solaris that doesn't have a non-functional libc stub.
18285         # We try pthread_create on general principles.
18286         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h.  */
18288 #include <pthread.h>
18289 int
18290 main ()
18291 {
18292 pthread_t th; pthread_join(th, 0);
18293                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
18294                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18295   ;
18296   return 0;
18297 }
18298 _ACEOF
18299 if ac_fn_c_try_link "$LINENO"; then :
18300   acx_pthread_ok=yes
18301 fi
18302 rm -f core conftest.err conftest.$ac_objext \
18303     conftest$ac_exeext conftest.$ac_ext
18304
18305         LIBS="$save_LIBS"
18306         CFLAGS="$save_CFLAGS"
18307
18308         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18309 $as_echo "$acx_pthread_ok" >&6; }
18310         if test "x$acx_pthread_ok" = xyes; then
18311                 break;
18312         fi
18313
18314         PTHREAD_LIBS=""
18315         PTHREAD_CFLAGS=""
18316 done
18317 fi
18318
18319 # Various other checks:
18320 if test "x$acx_pthread_ok" = xyes; then
18321         save_LIBS="$LIBS"
18322         LIBS="$PTHREAD_LIBS $LIBS"
18323         save_CFLAGS="$CFLAGS"
18324         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18325
18326         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18327         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18328 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18329         attr_name=unknown
18330         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18331             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18332 /* end confdefs.h.  */
18333 #include <pthread.h>
18334 int
18335 main ()
18336 {
18337 int attr=$attr; return attr;
18338   ;
18339   return 0;
18340 }
18341 _ACEOF
18342 if ac_fn_c_try_link "$LINENO"; then :
18343   attr_name=$attr; break
18344 fi
18345 rm -f core conftest.err conftest.$ac_objext \
18346     conftest$ac_exeext conftest.$ac_ext
18347         done
18348         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18349 $as_echo "$attr_name" >&6; }
18350         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18351
18352 cat >>confdefs.h <<_ACEOF
18353 #define PTHREAD_CREATE_JOINABLE $attr_name
18354 _ACEOF
18355
18356         fi
18357
18358         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18359 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18360         flag=no
18361         case "${host_cpu}-${host_os}" in
18362                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
18363                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
18364                 *solaris*)
18365                 if test "$GCC" = "yes"; then
18366                     flag="-D_REENTRANT"
18367                 else
18368                     flag="-mt -D_REENTRANT"
18369                 fi
18370                 ;;
18371         esac
18372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18373 $as_echo "${flag}" >&6; }
18374         if test "x$flag" != xno; then
18375             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18376         fi
18377
18378         LIBS="$save_LIBS"
18379         CFLAGS="$save_CFLAGS"
18380
18381         # More AIX lossage: must compile with xlc_r or cc_r
18382         if test x"$GCC" != xyes; then
18383           for ac_prog in xlc_r cc_r
18384 do
18385   # Extract the first word of "$ac_prog", so it can be a program name with args.
18386 set dummy $ac_prog; ac_word=$2
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18388 $as_echo_n "checking for $ac_word... " >&6; }
18389 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18390   $as_echo_n "(cached) " >&6
18391 else
18392   if test -n "$PTHREAD_CC"; then
18393   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18394 else
18395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18396 for as_dir in $PATH
18397 do
18398   IFS=$as_save_IFS
18399   test -z "$as_dir" && as_dir=.
18400     for ac_exec_ext in '' $ac_executable_extensions; do
18401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18402     ac_cv_prog_PTHREAD_CC="$ac_prog"
18403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18404     break 2
18405   fi
18406 done
18407   done
18408 IFS=$as_save_IFS
18409
18410 fi
18411 fi
18412 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18413 if test -n "$PTHREAD_CC"; then
18414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18415 $as_echo "$PTHREAD_CC" >&6; }
18416 else
18417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18418 $as_echo "no" >&6; }
18419 fi
18420
18421
18422   test -n "$PTHREAD_CC" && break
18423 done
18424 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
18425
18426         else
18427           PTHREAD_CC=$CC
18428         fi
18429 else
18430         PTHREAD_CC="$CC"
18431 fi
18432
18433
18434
18435
18436
18437 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18438 if test x"$acx_pthread_ok" = xyes; then
18439         enable_threads="pthread"
18440         :
18441 else
18442         acx_pthread_ok=no
18443         enable_threads="no"
18444 fi
18445 ac_ext=c
18446 ac_cpp='$CPP $CPPFLAGS'
18447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18450
18451
18452 if test $enable_threads != "pthread"; then
18453     as_fn_error $? "unable to find pthreads, currently this is required" "$LINENO" 5
18454 else
18455
18456 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18457
18458          if test "$enable_threads" = "pthread"; then
18459   BUILD_PTHREAD_TRUE=
18460   BUILD_PTHREAD_FALSE='#'
18461 else
18462   BUILD_PTHREAD_TRUE='#'
18463   BUILD_PTHREAD_FALSE=
18464 fi
18465
18466     LIBS="$PTHREAD_LIBS $LIBS"
18467     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
18468     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
18469 fi
18470
18471 for ac_func in pthread_rwlock_init
18472 do :
18473   ac_fn_c_check_func "$LINENO" "pthread_rwlock_init" "ac_cv_func_pthread_rwlock_init"
18474 if test "x$ac_cv_func_pthread_rwlock_init" = xyes; then :
18475   cat >>confdefs.h <<_ACEOF
18476 #define HAVE_PTHREAD_RWLOCK_INIT 1
18477 _ACEOF
18478
18479 fi
18480 done
18481
18482
18483 ac_ext=cpp
18484 ac_cpp='$CXXCPP $CPPFLAGS'
18485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18488
18489
18490 # C++ requirements
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
18492 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
18493 if ${ac_cv_cxx_namespaces+:} false; then :
18494   $as_echo_n "(cached) " >&6
18495 else
18496
18497  ac_ext=cpp
18498 ac_cpp='$CXXCPP $CPPFLAGS'
18499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18502
18503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18504 /* end confdefs.h.  */
18505 namespace Outer { namespace Inner { int i = 0; }}
18506 int
18507 main ()
18508 {
18509 using namespace Outer::Inner; return i;
18510   ;
18511   return 0;
18512 }
18513 _ACEOF
18514 if ac_fn_cxx_try_compile "$LINENO"; then :
18515   ac_cv_cxx_namespaces=yes
18516 else
18517   ac_cv_cxx_namespaces=no
18518 fi
18519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18520  ac_ext=cpp
18521 ac_cpp='$CXXCPP $CPPFLAGS'
18522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18525
18526
18527 fi
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
18529 $as_echo "$ac_cv_cxx_namespaces" >&6; }
18530 if test "$ac_cv_cxx_namespaces" = yes; then
18531
18532 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
18533
18534 fi
18535
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5
18537 $as_echo_n "checking whether the compiler supports Standard Template Library... " >&6; }
18538 if ${ac_cv_cxx_have_stl+:} false; then :
18539   $as_echo_n "(cached) " >&6
18540 else
18541
18542  ac_ext=cpp
18543 ac_cpp='$CXXCPP $CPPFLAGS'
18544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18547
18548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18549 /* end confdefs.h.  */
18550 #include <list>
18551 #include <deque>
18552 #ifdef HAVE_NAMESPACES
18553 using namespace std;
18554 #endif
18555 int
18556 main ()
18557 {
18558 list<int> x; x.push_back(5);
18559 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
18560   ;
18561   return 0;
18562 }
18563 _ACEOF
18564 if ac_fn_cxx_try_compile "$LINENO"; then :
18565   ac_cv_cxx_have_stl=yes
18566 else
18567   ac_cv_cxx_have_stl=no
18568 fi
18569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18570  ac_ext=cpp
18571 ac_cpp='$CXXCPP $CPPFLAGS'
18572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18575
18576
18577 fi
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5
18579 $as_echo "$ac_cv_cxx_have_stl" >&6; }
18580 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
18581   as_fn_error $? "C++ Standard Template Libary unsupported" "$LINENO" 5
18582 fi
18583
18584
18585 # are covariant methods allowed?
18586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587 /* end confdefs.h.  */
18588
18589 int
18590 main ()
18591 {
18592
18593         class base { public: virtual base *GetPtr( void ) { return this; } };
18594         class derived: virtual public base { public: virtual derived *GetPtr( void ) { return this; } };
18595
18596   ;
18597   return 0;
18598 }
18599 _ACEOF
18600 if ac_fn_cxx_try_link "$LINENO"; then :
18601
18602 $as_echo "#define HAVE_COVARIANT_RETURNS 1" >>confdefs.h
18603
18604 fi
18605 rm -f core conftest.err conftest.$ac_objext \
18606     conftest$ac_exeext conftest.$ac_ext
18607
18608 # is nullptr supported?
18609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610 /* end confdefs.h.  */
18611
18612 int
18613 main ()
18614 {
18615 const char* ptr = nullptr;
18616   ;
18617   return 0;
18618 }
18619 _ACEOF
18620 if ac_fn_cxx_try_compile "$LINENO"; then :
18621
18622 $as_echo "#define HAVE_NULLPTR 1" >>confdefs.h
18623
18624 fi
18625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18626
18627 # log4shib settings (favor this version over the log4cpp code)
18628 # Extract the first word of "log4shib-config", so it can be a program name with args.
18629 set dummy log4shib-config; ac_word=$2
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18631 $as_echo_n "checking for $ac_word... " >&6; }
18632 if ${ac_cv_path_LOG4SHIB_CONFIG+:} false; then :
18633   $as_echo_n "(cached) " >&6
18634 else
18635   case $LOG4SHIB_CONFIG in
18636   [\\/]* | ?:[\\/]*)
18637   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
18638   ;;
18639   *)
18640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18641 for as_dir in $PATH
18642 do
18643   IFS=$as_save_IFS
18644   test -z "$as_dir" && as_dir=.
18645     for ac_exec_ext in '' $ac_executable_extensions; do
18646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18647     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18649     break 2
18650   fi
18651 done
18652   done
18653 IFS=$as_save_IFS
18654
18655   ;;
18656 esac
18657 fi
18658 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
18659 if test -n "$LOG4SHIB_CONFIG"; then
18660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4SHIB_CONFIG" >&5
18661 $as_echo "$LOG4SHIB_CONFIG" >&6; }
18662 else
18663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18664 $as_echo "no" >&6; }
18665 fi
18666
18667
18668
18669 # Check whether --with-log4shib was given.
18670 if test "${with_log4shib+set}" = set; then :
18671   withval=$with_log4shib;
18672     LOG4SHIB_CONFIG="${with_log4shib}"
18673     if ! test -f "${LOG4SHIB_CONFIG}" ; then
18674         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
18675     fi
18676
18677 fi
18678
18679 if test -f "${LOG4SHIB_CONFIG}" ; then
18680     LIBS="`${LOG4SHIB_CONFIG} --libs` $LIBS"
18681     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
18682
18683 ac_fn_cxx_check_header_mongrel "$LINENO" "log4shib/CategoryStream.hh" "ac_cv_header_log4shib_CategoryStream_hh" "$ac_includes_default"
18684 if test "x$ac_cv_header_log4shib_CategoryStream_hh" = xyes; then :
18685
18686 else
18687   as_fn_error $? "unable to find log4shib header files" "$LINENO" 5
18688 fi
18689
18690
18691     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692 /* end confdefs.h.  */
18693 #include <log4shib/Category.hh>
18694 #include <log4shib/CategoryStream.hh>
18695 int
18696 main ()
18697 {
18698 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
18699   ;
18700   return 0;
18701 }
18702 _ACEOF
18703 if ac_fn_cxx_try_link "$LINENO"; then :
18704
18705 $as_echo "#define XMLTOOLING_LOG4SHIB 1" >>confdefs.h
18706
18707 else
18708   as_fn_error $? "unable to link with log4shib" "$LINENO" 5
18709 fi
18710 rm -f core conftest.err conftest.$ac_objext \
18711     conftest$ac_exeext conftest.$ac_ext
18712 else
18713     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
18714 $as_echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
18715     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will look for original log4cpp library" >&5
18716 $as_echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
18717
18718     # log4cpp settings
18719     # Extract the first word of "log4cpp-config", so it can be a program name with args.
18720 set dummy log4cpp-config; ac_word=$2
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18722 $as_echo_n "checking for $ac_word... " >&6; }
18723 if ${ac_cv_path_LOG4CPP_CONFIG+:} false; then :
18724   $as_echo_n "(cached) " >&6
18725 else
18726   case $LOG4CPP_CONFIG in
18727   [\\/]* | ?:[\\/]*)
18728   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
18729   ;;
18730   *)
18731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18732 for as_dir in $PATH
18733 do
18734   IFS=$as_save_IFS
18735   test -z "$as_dir" && as_dir=.
18736     for ac_exec_ext in '' $ac_executable_extensions; do
18737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18738     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18740     break 2
18741   fi
18742 done
18743   done
18744 IFS=$as_save_IFS
18745
18746   ;;
18747 esac
18748 fi
18749 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
18750 if test -n "$LOG4CPP_CONFIG"; then
18751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4CPP_CONFIG" >&5
18752 $as_echo "$LOG4CPP_CONFIG" >&6; }
18753 else
18754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18755 $as_echo "no" >&6; }
18756 fi
18757
18758
18759
18760 # Check whether --with-log4cpp was given.
18761 if test "${with_log4cpp+set}" = set; then :
18762   withval=$with_log4cpp;
18763         LOG4CPP_CONFIG="${with_log4cpp}"
18764         if ! test -f "${LOG4CPP_CONFIG}" ; then
18765                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
18766         fi
18767
18768 fi
18769
18770     if test -f "${LOG4CPP_CONFIG}"; then
18771         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
18772 $as_echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
18773         LIBS="`${LOG4CPP_CONFIG} --libs` $LIBS"
18774         CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
18775         ac_fn_cxx_check_header_mongrel "$LINENO" "log4cpp/CategoryStream.hh" "ac_cv_header_log4cpp_CategoryStream_hh" "$ac_includes_default"
18776 if test "x$ac_cv_header_log4cpp_CategoryStream_hh" = xyes; then :
18777
18778 else
18779   as_fn_error $? "unable to find log4cpp header files" "$LINENO" 5
18780 fi
18781
18782
18783         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h.  */
18785 #include <log4cpp/Category.hh>
18786 #include <log4cpp/CategoryStream.hh>
18787 int
18788 main ()
18789 {
18790 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
18791   ;
18792   return 0;
18793 }
18794 _ACEOF
18795 if ac_fn_cxx_try_link "$LINENO"; then :
18796
18797 $as_echo "#define XMLTOOLING_LOG4CPP 1" >>confdefs.h
18798
18799 else
18800   as_fn_error $? "unable to link with log4cpp, need version 1.0 or later" "$LINENO" 5
18801 fi
18802 rm -f core conftest.err conftest.$ac_objext \
18803     conftest$ac_exeext conftest.$ac_ext
18804         else
18805             as_fn_error $? "log4cpp-config not found, may need to use --with-log4cpp option" "$LINENO" 5
18806         fi
18807 fi
18808
18809 # Xerces settings
18810
18811 # Check whether --with-xerces was given.
18812 if test "${with_xerces+set}" = set; then :
18813   withval=$with_xerces; if test x_$with_xerces != x_/usr; then
18814         LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
18815         CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
18816     fi
18817 fi
18818
18819 LIBS="-lxerces-c $LIBS"
18820 ac_fn_cxx_check_header_mongrel "$LINENO" "xercesc/dom/DOM.hpp" "ac_cv_header_xercesc_dom_DOM_hpp" "$ac_includes_default"
18821 if test "x$ac_cv_header_xercesc_dom_DOM_hpp" = xyes; then :
18822
18823 else
18824   as_fn_error $? "unable to find xerces header files" "$LINENO" 5
18825 fi
18826
18827
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Xerces version" >&5
18829 $as_echo_n "checking Xerces version... " >&6; }
18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h.  */
18832 #include <xercesc/util/XercesVersion.hpp>
18833 int
18834 main ()
18835 {
18836 #if  _XERCES_VERSION != 20600
18837 int i = 0;
18838 #else
18839 #error cannot use version 2.6.0
18840 #endif
18841   ;
18842   return 0;
18843 }
18844 _ACEOF
18845 if ac_fn_cxx_try_cpp "$LINENO"; then :
18846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
18847 $as_echo "OK" >&6; }
18848 else
18849   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18851 as_fn_error $? "Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
18852 See \`config.log' for more details" "$LINENO" 5; }
18853 fi
18854 rm -f conftest.err conftest.i conftest.$ac_ext
18855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h.  */
18857 #include <xercesc/util/PlatformUtils.hpp>
18858 int
18859 main ()
18860 {
18861 xercesc::XMLPlatformUtils::Initialize()
18862   ;
18863   return 0;
18864 }
18865 _ACEOF
18866 if ac_fn_cxx_try_link "$LINENO"; then :
18867
18868 else
18869   as_fn_error $? "unable to link with Xerces" "$LINENO" 5
18870 fi
18871 rm -f core conftest.err conftest.$ac_objext \
18872     conftest$ac_exeext conftest.$ac_ext
18873
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces is 64-bit clean" >&5
18875 $as_echo_n "checking whether Xerces is 64-bit clean... " >&6; }
18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h.  */
18878 #include <xercesc/framework/MemBufInputSource.hpp>
18879 int
18880 main ()
18881 {
18882 using namespace XERCES_CPP_NAMESPACE; XMLFilePos testvar;
18883   ;
18884   return 0;
18885 }
18886 _ACEOF
18887 if ac_fn_cxx_try_compile "$LINENO"; then :
18888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18889 $as_echo "yes" >&6; }
18890 $as_echo "#define XMLTOOLING_XERCESC_64BITSAFE 1" >>confdefs.h
18891
18892 else
18893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18894 $as_echo "no" >&6; }
18895 fi
18896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18897
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces BinInputStream requires getContentType" >&5
18899 $as_echo_n "checking whether Xerces BinInputStream requires getContentType... " >&6; }
18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18901 /* end confdefs.h.  */
18902 #include <xercesc/util/BinMemInputStream.hpp>
18903 int
18904 main ()
18905 {
18906 using namespace XERCES_CPP_NAMESPACE; XMLByte buf[1024]; BinMemInputStream in(buf,1024); in.getContentType();
18907   ;
18908   return 0;
18909 }
18910 _ACEOF
18911 if ac_fn_cxx_try_compile "$LINENO"; then :
18912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18913 $as_echo "yes" >&6; }
18914 $as_echo "#define XMLTOOLING_XERCESC_INPUTSTREAM_HAS_CONTENTTYPE 1" >>confdefs.h
18915
18916 else
18917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18918 $as_echo "no" >&6; }
18919 fi
18920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18921
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces DOMLS API is compliant" >&5
18923 $as_echo_n "checking whether Xerces DOMLS API is compliant... " >&6; }
18924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18925 /* end confdefs.h.  */
18926 #include <xercesc/dom/DOM.hpp>
18927 int
18928 main ()
18929 {
18930 using namespace XERCES_CPP_NAMESPACE;
18931         DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(NULL);
18932         DOMLSSerializer *ls = ((DOMImplementationLS*)impl)->createLSSerializer();
18933   ;
18934   return 0;
18935 }
18936 _ACEOF
18937 if ac_fn_cxx_try_compile "$LINENO"; then :
18938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18939 $as_echo "yes" >&6; }
18940 $as_echo "#define XMLTOOLING_XERCESC_COMPLIANT_DOMLS 1" >>confdefs.h
18941
18942 else
18943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18944 $as_echo "no" >&6; }
18945 fi
18946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18947
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces has setIdAttribute(XMLCh*, bool)" >&5
18949 $as_echo_n "checking whether Xerces has setIdAttribute(XMLCh*, bool)... " >&6; }
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h.  */
18952 #include <xercesc/dom/DOM.hpp>
18953 int
18954 main ()
18955 {
18956 using namespace XERCES_CPP_NAMESPACE; DOMElement * elt; elt->setIdAttribute(NULL, false);
18957   ;
18958   return 0;
18959 }
18960 _ACEOF
18961 if ac_fn_cxx_try_compile "$LINENO"; then :
18962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18963 $as_echo "yes" >&6; }
18964 $as_echo "#define XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE 1" >>confdefs.h
18965
18966 else
18967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18968 $as_echo "no" >&6; }
18969 fi
18970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18971
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
18973 $as_echo_n "checking whether Xerces XMLString::release(XMLByte**) exists... " >&6; }
18974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18975 /* end confdefs.h.  */
18976 #include <xercesc/util/XMLString.hpp>
18977 int
18978 main ()
18979 {
18980 using namespace XERCES_CPP_NAMESPACE; XMLByte* buf=NULL; XMLString::release(&buf);
18981   ;
18982   return 0;
18983 }
18984 _ACEOF
18985 if ac_fn_cxx_try_compile "$LINENO"; then :
18986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18987 $as_echo "yes" >&6; }
18988 $as_echo "#define XMLTOOLING_XERCESC_HAS_XMLBYTE_RELEASE 1" >>confdefs.h
18989
18990 else
18991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18992 $as_echo "no" >&6; }
18993 fi
18994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18995
18996 # XML-Security settings
18997
18998 # Check whether --with-xmlsec was given.
18999 if test "${with_xmlsec+set}" = set; then :
19000   withval=$with_xmlsec;
19001 else
19002   with_xmlsec=/usr
19003 fi
19004
19005
19006 if test x_$with_xmlsec != x_no; then
19007
19008     # OpenSSL settings (need to do this first in case it's in a different spot from xmlsec)
19009
19010 # Check whether --with-openssl was given.
19011 if test "${with_openssl+set}" = set; then :
19012   withval=$with_openssl; if test x_$with_openssl != x_/usr; then
19013             SSLFLAGS="-I${with_openssl}/include"
19014             SSLLIBS="-L${with_openssl}/lib -lcrypto -lssl"
19015         else
19016             SSLLIBS="-lcrypto -lssl"
19017         fi
19018 fi
19019
19020
19021     if test "x$SSLLIBS" = "x" ; then
19022         # Extract the first word of "pkg-config", so it can be a program name with args.
19023 set dummy pkg-config; ac_word=$2
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19025 $as_echo_n "checking for $ac_word... " >&6; }
19026 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19027   $as_echo_n "(cached) " >&6
19028 else
19029   case $PKG_CONFIG in
19030   [\\/]* | ?:[\\/]*)
19031   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19032   ;;
19033   *)
19034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19035 for as_dir in $PATH
19036 do
19037   IFS=$as_save_IFS
19038   test -z "$as_dir" && as_dir=.
19039     for ac_exec_ext in '' $ac_executable_extensions; do
19040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19041     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19043     break 2
19044   fi
19045 done
19046   done
19047 IFS=$as_save_IFS
19048
19049   ;;
19050 esac
19051 fi
19052 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19053 if test -n "$PKG_CONFIG"; then
19054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19055 $as_echo "$PKG_CONFIG" >&6; }
19056 else
19057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19058 $as_echo "no" >&6; }
19059 fi
19060
19061
19062         if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
19063             if pkg-config openssl ; then
19064                 SSLLIBS="`$PKG_CONFIG --libs openssl`"
19065                 SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
19066             else
19067                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
19068 $as_echo "$as_me: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
19069             fi
19070         fi
19071     fi
19072
19073     if test "x$SSLLIBS" = "x" ; then
19074         SSLLIBS="-lcrypto -lssl"
19075     fi
19076
19077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL cflags" >&5
19078 $as_echo_n "checking for OpenSSL cflags... " >&6; }
19079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLFLAGS" >&5
19080 $as_echo "$SSLFLAGS" >&6; }
19081     CPPFLAGS="$CPPFLAGS $SSLFLAGS"
19082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL libraries" >&5
19083 $as_echo_n "checking for OpenSSL libraries... " >&6; }
19084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLLIBS" >&5
19085 $as_echo "$SSLLIBS" >&6; }
19086     XMLSEC_LIBS="$XMLSEC_LIBS $SSLLIBS"
19087
19088     # save and append master libs
19089     save_LIBS="$LIBS"
19090     LIBS="$XMLSEC_LIBS $LIBS"
19091
19092     ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
19093 if test "x$ac_cv_header_openssl_pem_h" = xyes; then :
19094
19095 else
19096   as_fn_error $? "unable to find openssl header files" "$LINENO" 5
19097 fi
19098
19099
19100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_CRYPTO_string" >&5
19101 $as_echo_n "checking for ERR_load_CRYPTO_string... " >&6; }
19102     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19103 /* end confdefs.h.  */
19104
19105 /* Override any GCC internal prototype to avoid an error.
19106    Use char because int might match the return type of a GCC
19107    builtin and then its argument prototype would still apply.  */
19108 #ifdef __cplusplus
19109 extern "C"
19110 #endif
19111 char ERR_load_CRYPTO_strings ();
19112 int
19113 main ()
19114 {
19115 return ERR_load_CRYPTO_strings ();
19116   ;
19117   return 0;
19118 }
19119 _ACEOF
19120 if ac_fn_cxx_try_link "$LINENO"; then :
19121
19122 else
19123   as_fn_error $? "unable to link with openssl libraries" "$LINENO" 5
19124 fi
19125 rm -f core conftest.err conftest.$ac_objext \
19126     conftest$ac_exeext conftest.$ac_ext
19127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19128 $as_echo "yes" >&6; }
19129
19130     ac_fn_cxx_check_decl "$LINENO" "EVP_sha512" "ac_cv_have_decl_EVP_sha512" "#include <openssl/evp.h>
19131 "
19132 if test "x$ac_cv_have_decl_EVP_sha512" = xyes; then :
19133
19134 $as_echo "#define XMLTOOLING_OPENSSL_HAVE_SHA2 1" >>confdefs.h
19135
19136 fi
19137
19138     ac_fn_cxx_check_decl "$LINENO" "EVP_PKEY_set1_EC_KEY" "ac_cv_have_decl_EVP_PKEY_set1_EC_KEY" "#include <openssl/evp.h>
19139 "
19140 if test "x$ac_cv_have_decl_EVP_PKEY_set1_EC_KEY" = xyes; then :
19141
19142 $as_echo "#define XMLTOOLING_OPENSSL_HAVE_EC 1" >>confdefs.h
19143
19144 fi
19145
19146
19147     # restore master libs
19148     LIBS="$save_LIBS"
19149
19150     if test x_$with_xmlsec != x_/usr; then
19151         CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
19152         LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
19153     fi
19154     XMLSEC_LIBS="$XMLSEC_LIBS -lxml-security-c"
19155
19156     # save and append master libs
19157     save_LIBS="$LIBS"
19158     LIBS="$XMLSEC_LIBS $LIBS"
19159
19160     ac_fn_cxx_check_header_mongrel "$LINENO" "xsec/utils/XSECPlatformUtils.hpp" "ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" "$ac_includes_default"
19161 if test "x$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" = xyes; then :
19162
19163 else
19164   as_fn_error $? "unable to find XML-Security header files" "$LINENO" 5
19165 fi
19166
19167
19168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML-Security version" >&5
19169 $as_echo_n "checking XML-Security version... " >&6; }
19170     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19171 /* end confdefs.h.  */
19172 #include <xsec/utils/XSECPlatformUtils.hpp>
19173 int
19174 main ()
19175 {
19176 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
19177 int i = 0;
19178 #else
19179 #error need version 1.4.0 or later
19180 #endif
19181   ;
19182   return 0;
19183 }
19184 _ACEOF
19185 if ac_fn_cxx_try_cpp "$LINENO"; then :
19186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
19187 $as_echo "OK" >&6; }
19188 else
19189   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19191 as_fn_error $? "XML-Security version 1.4.0 or greater is required.
19192 See \`config.log' for more details" "$LINENO" 5; }
19193 fi
19194 rm -f conftest.err conftest.i conftest.$ac_ext
19195
19196     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19197 /* end confdefs.h.  */
19198 #include <xsec/utils/XSECPlatformUtils.hpp>
19199 int
19200 main ()
19201 {
19202 XSECPlatformUtils::Initialise()
19203   ;
19204   return 0;
19205 }
19206 _ACEOF
19207 if ac_fn_cxx_try_link "$LINENO"; then :
19208
19209 else
19210   as_fn_error $? "unable to link with XML-Security" "$LINENO" 5
19211 fi
19212 rm -f core conftest.err conftest.$ac_objext \
19213     conftest$ac_exeext conftest.$ac_ext
19214     ac_fn_cxx_check_type "$LINENO" "xsecsize_t" "ac_cv_type_xsecsize_t" "$ac_includes_default"
19215 if test "x$ac_cv_type_xsecsize_t" = xyes; then :
19216
19217 $as_echo "#define HAVE_XSECSIZE_T 1" >>confdefs.h
19218
19219 fi
19220
19221
19222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C has multiple CRL support" >&5
19223 $as_echo_n "checking whether XML-Security-C has multiple CRL support... " >&6; }
19224     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19225 /* end confdefs.h.  */
19226 #include <xsec/dsig/DSIGKeyInfoX509.hpp>
19227 int
19228 main ()
19229 {
19230 DSIGKeyInfoX509* klist; klist->getX509CRLListSize();
19231   ;
19232   return 0;
19233 }
19234 _ACEOF
19235 if ac_fn_cxx_try_compile "$LINENO"; then :
19236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19237 $as_echo "yes" >&6; }
19238 $as_echo "#define XMLTOOLING_XMLSEC_MULTIPLECRL 1" >>confdefs.h
19239
19240 else
19241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19242 $as_echo "no" >&6; }
19243 fi
19244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19245
19246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C exposes the signature algorithm URI" >&5
19247 $as_echo_n "checking whether XML-Security-C exposes the signature algorithm URI... " >&6; }
19248     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h.  */
19250 #include <xsec/dsig/DSIGSignature.hpp>
19251 int
19252 main ()
19253 {
19254 DSIGSignature* sig; sig->getAlgorithmURI();
19255   ;
19256   return 0;
19257 }
19258 _ACEOF
19259 if ac_fn_cxx_try_compile "$LINENO"; then :
19260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19261 $as_echo "yes" >&6; }
19262 $as_echo "#define XMLTOOLING_XMLSEC_SIGALGORITHM 1" >>confdefs.h
19263
19264 else
19265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19266 $as_echo "no" >&6; }
19267 fi
19268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19269
19270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes ECC support" >&5
19271 $as_echo_n "checking whether XML-Security-C includes ECC support... " >&6; }
19272     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h.  */
19274 #include <xsec/dsig/DSIGKeyInfoValue.hpp>
19275 int
19276 main ()
19277 {
19278 DSIGKeyInfoValue* info; info->getECNamedCurve();
19279   ;
19280   return 0;
19281 }
19282 _ACEOF
19283 if ac_fn_cxx_try_compile "$LINENO"; then :
19284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19285 $as_echo "yes" >&6; }
19286 $as_echo "#define XMLTOOLING_XMLSEC_ECC 1" >>confdefs.h
19287
19288 else
19289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19290 $as_echo "no" >&6; }
19291 fi
19292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19293
19294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes C14N 1.1 support" >&5
19295 $as_echo_n "checking whether XML-Security-C includes C14N 1.1 support... " >&6; }
19296     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19297 /* end confdefs.h.  */
19298 #include <xsec/dsig/DSIGConstants.hpp>
19299 int
19300 main ()
19301 {
19302 transformType t = TRANSFORM_C14N11;
19303   ;
19304   return 0;
19305 }
19306 _ACEOF
19307 if ac_fn_cxx_try_compile "$LINENO"; then :
19308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19309 $as_echo "yes" >&6; }
19310 $as_echo "#define XMLTOOLING_XMLSEC_C14N11 1" >>confdefs.h
19311
19312 else
19313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19314 $as_echo "no" >&6; }
19315 fi
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19317
19318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes debug logging support" >&5
19319 $as_echo_n "checking whether XML-Security-C includes debug logging support... " >&6; }
19320     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19321 /* end confdefs.h.  */
19322 #include <xsec/utils/XSECPlatformUtils.hpp>
19323 int
19324 main ()
19325 {
19326 XSECPlatformUtils::SetReferenceLoggingSink(NULL)
19327   ;
19328   return 0;
19329 }
19330 _ACEOF
19331 if ac_fn_cxx_try_compile "$LINENO"; then :
19332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19333 $as_echo "yes" >&6; }
19334 $as_echo "#define XMLTOOLING_XMLSEC_DEBUGLOGGING 1" >>confdefs.h
19335
19336 else
19337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19338 $as_echo "no" >&6; }
19339 fi
19340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19341
19342     # restore master libs
19343     LIBS="$save_LIBS"
19344
19345     # libcurl settings
19346     # Extract the first word of "curl-config", so it can be a program name with args.
19347 set dummy curl-config; ac_word=$2
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19349 $as_echo_n "checking for $ac_word... " >&6; }
19350 if ${ac_cv_path_CURL_CONFIG+:} false; then :
19351   $as_echo_n "(cached) " >&6
19352 else
19353   case $CURL_CONFIG in
19354   [\\/]* | ?:[\\/]*)
19355   ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
19356   ;;
19357   *)
19358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19359 for as_dir in $PATH
19360 do
19361   IFS=$as_save_IFS
19362   test -z "$as_dir" && as_dir=.
19363     for ac_exec_ext in '' $ac_executable_extensions; do
19364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19365     ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19367     break 2
19368   fi
19369 done
19370   done
19371 IFS=$as_save_IFS
19372
19373   ;;
19374 esac
19375 fi
19376 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
19377 if test -n "$CURL_CONFIG"; then
19378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5
19379 $as_echo "$CURL_CONFIG" >&6; }
19380 else
19381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19382 $as_echo "no" >&6; }
19383 fi
19384
19385
19386
19387 # Check whether --with-curl was given.
19388 if test "${with_curl+set}" = set; then :
19389   withval=$with_curl;
19390         CURL_CONFIG="${with_curl}"
19391         if ! test -f "${CURL_CONFIG}" ; then
19392             CURL_CONFIG="${with_curl}/bin/curl-config"
19393         fi
19394
19395 fi
19396
19397     if test -f "${CURL_CONFIG}" ; then
19398         CPPFLAGS="`${CURL_CONFIG} --cflags` $CPPFLAGS"
19399         XMLSEC_LIBS="`${CURL_CONFIG} --libs` $XMLSEC_LIBS"
19400     else
19401         as_fn_error $? "curl-config not found, may need to use --with-curl option" "$LINENO" 5
19402     fi
19403
19404     # save and append master libs
19405     save_LIBS="$LIBS"
19406     LIBS="$XMLSEC_LIBS $LIBS"
19407
19408     ac_fn_cxx_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
19409 if test "x$ac_cv_header_curl_curl_h" = xyes; then :
19410
19411 else
19412   as_fn_error $? "unable to find libcurl header files" "$LINENO" 5
19413 fi
19414
19415
19416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
19417 $as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
19418 if ${ac_cv_lib_curl_curl_global_init+:} false; then :
19419   $as_echo_n "(cached) " >&6
19420 else
19421   ac_check_lib_save_LIBS=$LIBS
19422 LIBS="-lcurl  $LIBS"
19423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19424 /* end confdefs.h.  */
19425
19426 /* Override any GCC internal prototype to avoid an error.
19427    Use char because int might match the return type of a GCC
19428    builtin and then its argument prototype would still apply.  */
19429 #ifdef __cplusplus
19430 extern "C"
19431 #endif
19432 char curl_global_init ();
19433 int
19434 main ()
19435 {
19436 return curl_global_init ();
19437   ;
19438   return 0;
19439 }
19440 _ACEOF
19441 if ac_fn_cxx_try_link "$LINENO"; then :
19442   ac_cv_lib_curl_curl_global_init=yes
19443 else
19444   ac_cv_lib_curl_curl_global_init=no
19445 fi
19446 rm -f core conftest.err conftest.$ac_objext \
19447     conftest$ac_exeext conftest.$ac_ext
19448 LIBS=$ac_check_lib_save_LIBS
19449 fi
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
19451 $as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
19452 if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then :
19453   cat >>confdefs.h <<_ACEOF
19454 #define HAVE_LIBCURL 1
19455 _ACEOF
19456
19457   LIBS="-lcurl $LIBS"
19458
19459 else
19460   as_fn_error $? "unable to link with libcurl" "$LINENO" 5
19461 fi
19462
19463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURLOPT_SSL_CTX_FUNCTION in curl.h" >&5
19464 $as_echo_n "checking for CURLOPT_SSL_CTX_FUNCTION in curl.h... " >&6; }
19465     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19466 /* end confdefs.h.  */
19467 #include <curl/curl.h>
19468
19469 _ACEOF
19470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19471   $EGREP "CURLOPT_SSL_CTX_FUNCTION" >/dev/null 2>&1; then :
19472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19473 $as_echo "yes" >&6; }
19474 else
19475   as_fn_error $? "need libcurl that supports CURLOPT_SSL_CTX_FUNCTION" "$LINENO" 5
19476 fi
19477 rm -f conftest*
19478
19479     ac_fn_cxx_check_type "$LINENO" "curl_off_t" "ac_cv_type_curl_off_t" "$ac_includes_default"
19480 if test "x$ac_cv_type_curl_off_t" = xyes; then :
19481
19482 $as_echo "#define HAVE_CURL_OFF_T 1" >>confdefs.h
19483
19484 fi
19485
19486
19487     # restore master libs
19488     LIBS="$save_LIBS"
19489
19490
19491 else
19492     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlsec disabled, building without signature/encryption support" >&5
19493 $as_echo "$as_me: WARNING: xmlsec disabled, building without signature/encryption support" >&2;}
19494
19495 $as_echo "#define XMLTOOLING_NO_XMLSEC 1" >>confdefs.h
19496
19497 fi
19498  if test x_$with_xmlsec != x_no; then
19499   BUILD_XMLSEC_TRUE=
19500   BUILD_XMLSEC_FALSE='#'
19501 else
19502   BUILD_XMLSEC_TRUE='#'
19503   BUILD_XMLSEC_FALSE=
19504 fi
19505
19506
19507 # Does the STL in use help or screw us?
19508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19509 /* end confdefs.h.  */
19510 #include <string>
19511 int
19512 main ()
19513 {
19514 std::basic_string<unsigned short> foo; foo=foo+(unsigned short)65
19515   ;
19516   return 0;
19517 }
19518 _ACEOF
19519 if ac_fn_cxx_try_link "$LINENO"; then :
19520
19521 $as_echo "#define HAVE_GOOD_STL 1" >>confdefs.h
19522
19523 fi
19524 rm -f core conftest.err conftest.$ac_objext \
19525     conftest$ac_exeext conftest.$ac_ext
19526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19527 /* end confdefs.h.  */
19528 #include <vector>
19529 int
19530 main ()
19531 {
19532 std::iterator_traits<std::vector<int>::iterator>::value_type foo=0
19533   ;
19534   return 0;
19535 }
19536 _ACEOF
19537 if ac_fn_cxx_try_link "$LINENO"; then :
19538
19539 $as_echo "#define HAVE_ITERATOR_TRAITS 1" >>confdefs.h
19540
19541 fi
19542 rm -f core conftest.err conftest.$ac_objext \
19543     conftest$ac_exeext conftest.$ac_ext
19544
19545 # Check for unit test support
19546 CXXTEST="/usr/bin/cxxtestgen.pl"
19547 CXXTESTFLAGS=""
19548
19549 # Check whether --with-cxxtest was given.
19550 if test "${with_cxxtest+set}" = set; then :
19551   withval=$with_cxxtest; if test x_$with_cxxtest != x_/usr; then
19552         CXXTEST="${with_cxxtest}/cxxtestgen.pl"
19553         CXXTESTFLAGS="-I${with_cxxtest}"
19554     fi
19555 fi
19556
19557 if ! test -f "${CXXTEST}"; then
19558     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cxxtestgen not found, won't build unit tests" >&5
19559 $as_echo "$as_me: WARNING: cxxtestgen not found, won't build unit tests" >&2;}
19560 fi
19561
19562
19563
19564  if test -f ${CXXTEST}; then
19565   BUILD_UNITTEST_TRUE=
19566   BUILD_UNITTEST_FALSE='#'
19567 else
19568   BUILD_UNITTEST_TRUE='#'
19569   BUILD_UNITTEST_FALSE=
19570 fi
19571
19572
19573
19574 # we need the expanded forms...
19575 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19576 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19577
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
19579 $as_echo_n "checking our pkgconfig libname... " >&6; }
19580 test ".$ax_create_pkgconfig_libname" != "." || \
19581 ax_create_pkgconfig_libname="${PACKAGE_NAME}"
19582 test ".$ax_create_pkgconfig_libname" != "." || \
19583 ax_create_pkgconfig_libname="$PACKAGE"
19584 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
19585 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
19587 $as_echo "$ax_create_pkgconfig_libname" >&6; }
19588
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
19590 $as_echo_n "checking our pkgconfig version... " >&6; }
19591 test ".$ax_create_pkgconfig_version" != "." || \
19592 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
19593 test ".$ax_create_pkgconfig_version" != "." || \
19594 ax_create_pkgconfig_version="$VERSION"
19595 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
19596 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
19598 $as_echo "$ax_create_pkgconfig_version" >&6; }
19599
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
19601 $as_echo_n "checking our pkgconfig_libdir... " >&6; }
19602 test ".$pkgconfig_libdir" = "." && \
19603 pkgconfig_libdir='${libdir}/pkgconfig'
19604 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
19605 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
19606 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
19608 $as_echo "$pkgconfig_libdir" >&6; }
19609 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
19611 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
19612
19613
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
19615 $as_echo_n "checking our pkgconfig_libfile... " >&6; }
19616 test ".$pkgconfig_libfile" != "." || \
19617 pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
19618 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
19619 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
19621 $as_echo "$pkgconfig_libfile" >&6; }
19622 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
19624 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
19625
19626
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
19628 $as_echo_n "checking our package / suffix... " >&6; }
19629 ax_create_pkgconfig_suffix="$program_suffix"
19630 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
19632 $as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
19633
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
19635 $as_echo_n "checking our pkgconfig description... " >&6; }
19636 ax_create_pkgconfig_description="OpenSAML XMLTooling-C library"
19637 test ".$ax_create_pkgconfig_description" != "." || \
19638 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
19639 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
19640 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
19642 $as_echo "$ax_create_pkgconfig_description" >&6; }
19643
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
19645 $as_echo_n "checking our pkgconfig requires... " >&6; }
19646 ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
19647 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
19648 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
19650 $as_echo "$ax_create_pkgconfig_requires" >&6; }
19651
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
19653 $as_echo_n "checking our pkgconfig ext libs... " >&6; }
19654 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
19655 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
19656 ax_create_pkgconfig_libs="$XMLSEC_LIBS -lxmltooling"
19657 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
19658 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
19660 $as_echo "$ax_create_pkgconfig_libs" >&6; }
19661
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
19663 $as_echo_n "checking our pkgconfig cppflags... " >&6; }
19664 ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS"
19665 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
19666 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
19668 $as_echo "$ax_create_pkgconfig_cppflags" >&6; }
19669
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
19671 $as_echo_n "checking our pkgconfig ldflags... " >&6; }
19672 ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS"
19673 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
19674 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
19676 $as_echo "$ax_create_pkgconfig_ldflags" >&6; }
19677
19678 test ".$ax_create_pkgconfig_generate" != "." || \
19679 ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
19680 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
19681 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
19682 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
19684 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
19685
19686 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
19687 ax_create_pkgconfig_src_libdir=`pwd`
19688 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
19689 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19690          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
19691          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
19692          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
19693 $as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
19694     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19695             s//\1/
19696             q
19697           }
19698           /^X\(\/\/\)[^/].*/{
19699             s//\1/
19700             q
19701           }
19702           /^X\(\/\/\)$/{
19703             s//\1/
19704             q
19705           }
19706           /^X\(\/\).*/{
19707             s//\1/
19708             q
19709           }
19710           s/.*/./; q'`
19711 test ! -d $ax_create_pkgconfig_src_libdir/src || \
19712 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
19713 case ".$objdir" in
19714 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
19716 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
19717 fi
19718
19719 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
19720 ax_create_pkgconfig_src_headers=`pwd`
19721 v="$ac_top_srcdir" ;
19722 test ".$v" != "." || v="$ax_spec_dir"
19723 test ".$v" != "." || v="$srcdir"
19724 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
19725 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
19726 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19727          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
19728          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
19729          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
19730 $as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
19731     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19732             s//\1/
19733             q
19734           }
19735           /^X\(\/\/\)[^/].*/{
19736             s//\1/
19737             q
19738           }
19739           /^X\(\/\/\)$/{
19740             s//\1/
19741             q
19742           }
19743           /^X\(\/\).*/{
19744             s//\1/
19745             q
19746           }
19747           s/.*/./; q'`
19748 test ! -d $ax_create_pkgconfig_src_headers/include || \
19749 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
19751 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
19752 fi
19753
19754
19755 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
19756
19757
19758 LIBTOOL="$LIBTOOL --silent"
19759
19760 # output packaging and makefiles
19761 cat >confcache <<\_ACEOF
19762 # This file is a shell script that caches the results of configure
19763 # tests run on this system so they can be shared between configure
19764 # scripts and configure runs, see configure's option --config-cache.
19765 # It is not useful on other systems.  If it contains results you don't
19766 # want to keep, you may remove or edit it.
19767 #
19768 # config.status only pays attention to the cache file if you give it
19769 # the --recheck option to rerun configure.
19770 #
19771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19773 # following values.
19774
19775 _ACEOF
19776
19777 # The following way of writing the cache mishandles newlines in values,
19778 # but we know of no workaround that is simple, portable, and efficient.
19779 # So, we kill variables containing newlines.
19780 # Ultrix sh set writes to stderr and can't be redirected directly,
19781 # and sets the high bit in the cache file unless we assign to the vars.
19782 (
19783   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19784     eval ac_val=\$$ac_var
19785     case $ac_val in #(
19786     *${as_nl}*)
19787       case $ac_var in #(
19788       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19789 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19790       esac
19791       case $ac_var in #(
19792       _ | IFS | as_nl) ;; #(
19793       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19794       *) { eval $ac_var=; unset $ac_var;} ;;
19795       esac ;;
19796     esac
19797   done
19798
19799   (set) 2>&1 |
19800     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19801     *${as_nl}ac_space=\ *)
19802       # `set' does not quote correctly, so add quotes: double-quote
19803       # substitution turns \\\\ into \\, and sed turns \\ into \.
19804       sed -n \
19805         "s/'/'\\\\''/g;
19806           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19807       ;; #(
19808     *)
19809       # `set' quotes correctly as required by POSIX, so do not add quotes.
19810       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19811       ;;
19812     esac |
19813     sort
19814 ) |
19815   sed '
19816      /^ac_cv_env_/b end
19817      t clear
19818      :clear
19819      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19820      t end
19821      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19822      :end' >>confcache
19823 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19824   if test -w "$cache_file"; then
19825     if test "x$cache_file" != "x/dev/null"; then
19826       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19827 $as_echo "$as_me: updating cache $cache_file" >&6;}
19828       if test ! -f "$cache_file" || test -h "$cache_file"; then
19829         cat confcache >"$cache_file"
19830       else
19831         case $cache_file in #(
19832         */* | ?:*)
19833           mv -f confcache "$cache_file"$$ &&
19834           mv -f "$cache_file"$$ "$cache_file" ;; #(
19835         *)
19836           mv -f confcache "$cache_file" ;;
19837         esac
19838       fi
19839     fi
19840   else
19841     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19842 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19843   fi
19844 fi
19845 rm -f confcache
19846
19847 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19848 # Let make expand exec_prefix.
19849 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19850
19851 DEFS=-DHAVE_CONFIG_H
19852
19853 ac_libobjs=
19854 ac_ltlibobjs=
19855 U=
19856 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19857   # 1. Remove the extension, and $U if already installed.
19858   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19859   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19860   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19861   #    will be set to the directory where LIBOBJS objects are built.
19862   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19863   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19864 done
19865 LIBOBJS=$ac_libobjs
19866
19867 LTLIBOBJS=$ac_ltlibobjs
19868
19869
19870  if test -n "$EXEEXT"; then
19871   am__EXEEXT_TRUE=
19872   am__EXEEXT_FALSE='#'
19873 else
19874   am__EXEEXT_TRUE='#'
19875   am__EXEEXT_FALSE=
19876 fi
19877
19878 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19879   as_fn_error $? "conditional \"AMDEP\" was never defined.
19880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19881 fi
19882 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19883   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19885 fi
19886 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19887   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19889 fi
19890 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19891   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19893 fi
19894 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19895   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19897 fi
19898 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19899   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19901 fi
19902 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19903   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19905 fi
19906 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19907   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19909 fi
19910 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19911   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19913 fi
19914 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19915   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19917 fi
19918 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19919   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19921 fi
19922 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19923   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19925 fi
19926 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19927   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19929 fi
19930 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19931   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19933 fi
19934 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19935   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19937 fi
19938 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19939   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19941 fi
19942 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19943   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19945 fi
19946 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19947   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19949 fi
19950 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19951   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19953 fi
19954 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19955   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19957 fi
19958 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19959   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19961 fi
19962 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19963   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19965 fi
19966 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19967   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19969 fi
19970 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19971   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19973 fi
19974 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19975   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19977 fi
19978 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19979   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19981 fi
19982 if test -z "${BUILD_PTHREAD_TRUE}" && test -z "${BUILD_PTHREAD_FALSE}"; then
19983   as_fn_error $? "conditional \"BUILD_PTHREAD\" was never defined.
19984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19985 fi
19986 if test -z "${BUILD_XMLSEC_TRUE}" && test -z "${BUILD_XMLSEC_FALSE}"; then
19987   as_fn_error $? "conditional \"BUILD_XMLSEC\" was never defined.
19988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19989 fi
19990 if test -z "${BUILD_UNITTEST_TRUE}" && test -z "${BUILD_UNITTEST_FALSE}"; then
19991   as_fn_error $? "conditional \"BUILD_UNITTEST\" was never defined.
19992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19993 fi
19994
19995 : "${CONFIG_STATUS=./config.status}"
19996 ac_write_fail=0
19997 ac_clean_files_save=$ac_clean_files
19998 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20000 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20001 as_write_fail=0
20002 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20003 #! $SHELL
20004 # Generated by $as_me.
20005 # Run this file to recreate the current configuration.
20006 # Compiler output produced by configure, useful for debugging
20007 # configure, is in config.log if it exists.
20008
20009 debug=false
20010 ac_cs_recheck=false
20011 ac_cs_silent=false
20012
20013 SHELL=\${CONFIG_SHELL-$SHELL}
20014 export SHELL
20015 _ASEOF
20016 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20017 ## -------------------- ##
20018 ## M4sh Initialization. ##
20019 ## -------------------- ##
20020
20021 # Be more Bourne compatible
20022 DUALCASE=1; export DUALCASE # for MKS sh
20023 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20024   emulate sh
20025   NULLCMD=:
20026   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20027   # is contrary to our usage.  Disable this feature.
20028   alias -g '${1+"$@"}'='"$@"'
20029   setopt NO_GLOB_SUBST
20030 else
20031   case `(set -o) 2>/dev/null` in #(
20032   *posix*) :
20033     set -o posix ;; #(
20034   *) :
20035      ;;
20036 esac
20037 fi
20038
20039
20040 as_nl='
20041 '
20042 export as_nl
20043 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20044 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20045 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20046 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20047 # Prefer a ksh shell builtin over an external printf program on Solaris,
20048 # but without wasting forks for bash or zsh.
20049 if test -z "$BASH_VERSION$ZSH_VERSION" \
20050     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20051   as_echo='print -r --'
20052   as_echo_n='print -rn --'
20053 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20054   as_echo='printf %s\n'
20055   as_echo_n='printf %s'
20056 else
20057   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20058     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20059     as_echo_n='/usr/ucb/echo -n'
20060   else
20061     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20062     as_echo_n_body='eval
20063       arg=$1;
20064       case $arg in #(
20065       *"$as_nl"*)
20066         expr "X$arg" : "X\\(.*\\)$as_nl";
20067         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20068       esac;
20069       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20070     '
20071     export as_echo_n_body
20072     as_echo_n='sh -c $as_echo_n_body as_echo'
20073   fi
20074   export as_echo_body
20075   as_echo='sh -c $as_echo_body as_echo'
20076 fi
20077
20078 # The user is always right.
20079 if test "${PATH_SEPARATOR+set}" != set; then
20080   PATH_SEPARATOR=:
20081   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20082     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20083       PATH_SEPARATOR=';'
20084   }
20085 fi
20086
20087
20088 # IFS
20089 # We need space, tab and new line, in precisely that order.  Quoting is
20090 # there to prevent editors from complaining about space-tab.
20091 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20092 # splitting by setting IFS to empty value.)
20093 IFS=" ""        $as_nl"
20094
20095 # Find who we are.  Look in the path if we contain no directory separator.
20096 as_myself=
20097 case $0 in #((
20098   *[\\/]* ) as_myself=$0 ;;
20099   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20100 for as_dir in $PATH
20101 do
20102   IFS=$as_save_IFS
20103   test -z "$as_dir" && as_dir=.
20104     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20105   done
20106 IFS=$as_save_IFS
20107
20108      ;;
20109 esac
20110 # We did not find ourselves, most probably we were run as `sh COMMAND'
20111 # in which case we are not to be found in the path.
20112 if test "x$as_myself" = x; then
20113   as_myself=$0
20114 fi
20115 if test ! -f "$as_myself"; then
20116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20117   exit 1
20118 fi
20119
20120 # Unset variables that we do not need and which cause bugs (e.g. in
20121 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20122 # suppresses any "Segmentation fault" message there.  '((' could
20123 # trigger a bug in pdksh 5.2.14.
20124 for as_var in BASH_ENV ENV MAIL MAILPATH
20125 do eval test x\${$as_var+set} = xset \
20126   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20127 done
20128 PS1='$ '
20129 PS2='> '
20130 PS4='+ '
20131
20132 # NLS nuisances.
20133 LC_ALL=C
20134 export LC_ALL
20135 LANGUAGE=C
20136 export LANGUAGE
20137
20138 # CDPATH.
20139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20140
20141
20142 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20143 # ----------------------------------------
20144 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20145 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20146 # script with STATUS, using 1 if that was 0.
20147 as_fn_error ()
20148 {
20149   as_status=$1; test $as_status -eq 0 && as_status=1
20150   if test "$4"; then
20151     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20152     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20153   fi
20154   $as_echo "$as_me: error: $2" >&2
20155   as_fn_exit $as_status
20156 } # as_fn_error
20157
20158
20159 # as_fn_set_status STATUS
20160 # -----------------------
20161 # Set $? to STATUS, without forking.
20162 as_fn_set_status ()
20163 {
20164   return $1
20165 } # as_fn_set_status
20166
20167 # as_fn_exit STATUS
20168 # -----------------
20169 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20170 as_fn_exit ()
20171 {
20172   set +e
20173   as_fn_set_status $1
20174   exit $1
20175 } # as_fn_exit
20176
20177 # as_fn_unset VAR
20178 # ---------------
20179 # Portably unset VAR.
20180 as_fn_unset ()
20181 {
20182   { eval $1=; unset $1;}
20183 }
20184 as_unset=as_fn_unset
20185 # as_fn_append VAR VALUE
20186 # ----------------------
20187 # Append the text in VALUE to the end of the definition contained in VAR. Take
20188 # advantage of any shell optimizations that allow amortized linear growth over
20189 # repeated appends, instead of the typical quadratic growth present in naive
20190 # implementations.
20191 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20192   eval 'as_fn_append ()
20193   {
20194     eval $1+=\$2
20195   }'
20196 else
20197   as_fn_append ()
20198   {
20199     eval $1=\$$1\$2
20200   }
20201 fi # as_fn_append
20202
20203 # as_fn_arith ARG...
20204 # ------------------
20205 # Perform arithmetic evaluation on the ARGs, and store the result in the
20206 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20207 # must be portable across $(()) and expr.
20208 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20209   eval 'as_fn_arith ()
20210   {
20211     as_val=$(( $* ))
20212   }'
20213 else
20214   as_fn_arith ()
20215   {
20216     as_val=`expr "$@" || test $? -eq 1`
20217   }
20218 fi # as_fn_arith
20219
20220
20221 if expr a : '\(a\)' >/dev/null 2>&1 &&
20222    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20223   as_expr=expr
20224 else
20225   as_expr=false
20226 fi
20227
20228 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20229   as_basename=basename
20230 else
20231   as_basename=false
20232 fi
20233
20234 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20235   as_dirname=dirname
20236 else
20237   as_dirname=false
20238 fi
20239
20240 as_me=`$as_basename -- "$0" ||
20241 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20242          X"$0" : 'X\(//\)$' \| \
20243          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20244 $as_echo X/"$0" |
20245     sed '/^.*\/\([^/][^/]*\)\/*$/{
20246             s//\1/
20247             q
20248           }
20249           /^X\/\(\/\/\)$/{
20250             s//\1/
20251             q
20252           }
20253           /^X\/\(\/\).*/{
20254             s//\1/
20255             q
20256           }
20257           s/.*/./; q'`
20258
20259 # Avoid depending upon Character Ranges.
20260 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20261 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20262 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20263 as_cr_digits='0123456789'
20264 as_cr_alnum=$as_cr_Letters$as_cr_digits
20265
20266 ECHO_C= ECHO_N= ECHO_T=
20267 case `echo -n x` in #(((((
20268 -n*)
20269   case `echo 'xy\c'` in
20270   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20271   xy)  ECHO_C='\c';;
20272   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20273        ECHO_T=' ';;
20274   esac;;
20275 *)
20276   ECHO_N='-n';;
20277 esac
20278
20279 rm -f conf$$ conf$$.exe conf$$.file
20280 if test -d conf$$.dir; then
20281   rm -f conf$$.dir/conf$$.file
20282 else
20283   rm -f conf$$.dir
20284   mkdir conf$$.dir 2>/dev/null
20285 fi
20286 if (echo >conf$$.file) 2>/dev/null; then
20287   if ln -s conf$$.file conf$$ 2>/dev/null; then
20288     as_ln_s='ln -s'
20289     # ... but there are two gotchas:
20290     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20291     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20292     # In both cases, we have to default to `cp -p'.
20293     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20294       as_ln_s='cp -p'
20295   elif ln conf$$.file conf$$ 2>/dev/null; then
20296     as_ln_s=ln
20297   else
20298     as_ln_s='cp -p'
20299   fi
20300 else
20301   as_ln_s='cp -p'
20302 fi
20303 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20304 rmdir conf$$.dir 2>/dev/null
20305
20306
20307 # as_fn_mkdir_p
20308 # -------------
20309 # Create "$as_dir" as a directory, including parents if necessary.
20310 as_fn_mkdir_p ()
20311 {
20312
20313   case $as_dir in #(
20314   -*) as_dir=./$as_dir;;
20315   esac
20316   test -d "$as_dir" || eval $as_mkdir_p || {
20317     as_dirs=
20318     while :; do
20319       case $as_dir in #(
20320       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20321       *) as_qdir=$as_dir;;
20322       esac
20323       as_dirs="'$as_qdir' $as_dirs"
20324       as_dir=`$as_dirname -- "$as_dir" ||
20325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20326          X"$as_dir" : 'X\(//\)[^/]' \| \
20327          X"$as_dir" : 'X\(//\)$' \| \
20328          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20329 $as_echo X"$as_dir" |
20330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20331             s//\1/
20332             q
20333           }
20334           /^X\(\/\/\)[^/].*/{
20335             s//\1/
20336             q
20337           }
20338           /^X\(\/\/\)$/{
20339             s//\1/
20340             q
20341           }
20342           /^X\(\/\).*/{
20343             s//\1/
20344             q
20345           }
20346           s/.*/./; q'`
20347       test -d "$as_dir" && break
20348     done
20349     test -z "$as_dirs" || eval "mkdir $as_dirs"
20350   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20351
20352
20353 } # as_fn_mkdir_p
20354 if mkdir -p . 2>/dev/null; then
20355   as_mkdir_p='mkdir -p "$as_dir"'
20356 else
20357   test -d ./-p && rmdir ./-p
20358   as_mkdir_p=false
20359 fi
20360
20361 if test -x / >/dev/null 2>&1; then
20362   as_test_x='test -x'
20363 else
20364   if ls -dL / >/dev/null 2>&1; then
20365     as_ls_L_option=L
20366   else
20367     as_ls_L_option=
20368   fi
20369   as_test_x='
20370     eval sh -c '\''
20371       if test -d "$1"; then
20372         test -d "$1/.";
20373       else
20374         case $1 in #(
20375         -*)set "./$1";;
20376         esac;
20377         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20378         ???[sx]*):;;*)false;;esac;fi
20379     '\'' sh
20380   '
20381 fi
20382 as_executable_p=$as_test_x
20383
20384 # Sed expression to map a string onto a valid CPP name.
20385 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20386
20387 # Sed expression to map a string onto a valid variable name.
20388 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20389
20390
20391 exec 6>&1
20392 ## ----------------------------------- ##
20393 ## Main body of $CONFIG_STATUS script. ##
20394 ## ----------------------------------- ##
20395 _ASEOF
20396 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20397
20398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20399 # Save the log message, to keep $0 and so on meaningful, and to
20400 # report actual input values of CONFIG_FILES etc. instead of their
20401 # values after options handling.
20402 ac_log="
20403 This file was extended by xmltooling $as_me 1.4.1, which was
20404 generated by GNU Autoconf 2.68.  Invocation command line was
20405
20406   CONFIG_FILES    = $CONFIG_FILES
20407   CONFIG_HEADERS  = $CONFIG_HEADERS
20408   CONFIG_LINKS    = $CONFIG_LINKS
20409   CONFIG_COMMANDS = $CONFIG_COMMANDS
20410   $ $0 $@
20411
20412 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20413 "
20414
20415 _ACEOF
20416
20417 case $ac_config_files in *"
20418 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20419 esac
20420
20421 case $ac_config_headers in *"
20422 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20423 esac
20424
20425
20426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20427 # Files that config.status was made for.
20428 config_files="$ac_config_files"
20429 config_headers="$ac_config_headers"
20430 config_commands="$ac_config_commands"
20431
20432 _ACEOF
20433
20434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20435 ac_cs_usage="\
20436 \`$as_me' instantiates files and other configuration actions
20437 from templates according to the current configuration.  Unless the files
20438 and actions are specified as TAGs, all are instantiated by default.
20439
20440 Usage: $0 [OPTION]... [TAG]...
20441
20442   -h, --help       print this help, then exit
20443   -V, --version    print version number and configuration settings, then exit
20444       --config     print configuration, then exit
20445   -q, --quiet, --silent
20446                    do not print progress messages
20447   -d, --debug      don't remove temporary files
20448       --recheck    update $as_me by reconfiguring in the same conditions
20449       --file=FILE[:TEMPLATE]
20450                    instantiate the configuration file FILE
20451       --header=FILE[:TEMPLATE]
20452                    instantiate the configuration header FILE
20453
20454 Configuration files:
20455 $config_files
20456
20457 Configuration headers:
20458 $config_headers
20459
20460 Configuration commands:
20461 $config_commands
20462
20463 Report bugs to <https://bugs.internet2.edu/>."
20464
20465 _ACEOF
20466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20467 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20468 ac_cs_version="\\
20469 xmltooling config.status 1.4.1
20470 configured by $0, generated by GNU Autoconf 2.68,
20471   with options \\"\$ac_cs_config\\"
20472
20473 Copyright (C) 2010 Free Software Foundation, Inc.
20474 This config.status script is free software; the Free Software Foundation
20475 gives unlimited permission to copy, distribute and modify it."
20476
20477 ac_pwd='$ac_pwd'
20478 srcdir='$srcdir'
20479 INSTALL='$INSTALL'
20480 MKDIR_P='$MKDIR_P'
20481 AWK='$AWK'
20482 test -n "\$AWK" || AWK=awk
20483 _ACEOF
20484
20485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20486 # The default lists apply if the user does not specify any file.
20487 ac_need_defaults=:
20488 while test $# != 0
20489 do
20490   case $1 in
20491   --*=?*)
20492     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20493     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20494     ac_shift=:
20495     ;;
20496   --*=)
20497     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20498     ac_optarg=
20499     ac_shift=:
20500     ;;
20501   *)
20502     ac_option=$1
20503     ac_optarg=$2
20504     ac_shift=shift
20505     ;;
20506   esac
20507
20508   case $ac_option in
20509   # Handling of the options.
20510   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20511     ac_cs_recheck=: ;;
20512   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20513     $as_echo "$ac_cs_version"; exit ;;
20514   --config | --confi | --conf | --con | --co | --c )
20515     $as_echo "$ac_cs_config"; exit ;;
20516   --debug | --debu | --deb | --de | --d | -d )
20517     debug=: ;;
20518   --file | --fil | --fi | --f )
20519     $ac_shift
20520     case $ac_optarg in
20521     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20522     '') as_fn_error $? "missing file argument" ;;
20523     esac
20524     as_fn_append CONFIG_FILES " '$ac_optarg'"
20525     ac_need_defaults=false;;
20526   --header | --heade | --head | --hea )
20527     $ac_shift
20528     case $ac_optarg in
20529     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20530     esac
20531     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20532     ac_need_defaults=false;;
20533   --he | --h)
20534     # Conflict between --help and --header
20535     as_fn_error $? "ambiguous option: \`$1'
20536 Try \`$0 --help' for more information.";;
20537   --help | --hel | -h )
20538     $as_echo "$ac_cs_usage"; exit ;;
20539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20540   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20541     ac_cs_silent=: ;;
20542
20543   # This is an error.
20544   -*) as_fn_error $? "unrecognized option: \`$1'
20545 Try \`$0 --help' for more information." ;;
20546
20547   *) as_fn_append ac_config_targets " $1"
20548      ac_need_defaults=false ;;
20549
20550   esac
20551   shift
20552 done
20553
20554 ac_configure_extra_args=
20555
20556 if $ac_cs_silent; then
20557   exec 6>/dev/null
20558   ac_configure_extra_args="$ac_configure_extra_args --silent"
20559 fi
20560
20561 _ACEOF
20562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20563 if \$ac_cs_recheck; then
20564   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20565   shift
20566   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20567   CONFIG_SHELL='$SHELL'
20568   export CONFIG_SHELL
20569   exec "\$@"
20570 fi
20571
20572 _ACEOF
20573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20574 exec 5>>config.log
20575 {
20576   echo
20577   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20578 ## Running $as_me. ##
20579 _ASBOX
20580   $as_echo "$ac_log"
20581 } >&5
20582
20583 _ACEOF
20584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20585 #
20586 # INIT-COMMANDS
20587 #
20588 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20589
20590
20591 # The HP-UX ksh and POSIX shell print the target directory to stdout
20592 # if CDPATH is set.
20593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20594
20595 sed_quote_subst='$sed_quote_subst'
20596 double_quote_subst='$double_quote_subst'
20597 delay_variable_subst='$delay_variable_subst'
20598 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20599 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20600 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20601 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20602 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20603 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20604 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20605 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20606 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20607 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20608 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20609 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20610 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20611 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20612 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20613 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20614 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20615 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20616 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20617 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20618 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20619 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20620 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20621 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20622 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20623 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20624 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20625 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20626 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20627 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20628 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20629 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20630 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20631 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20632 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20633 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20634 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20635 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20636 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20637 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20638 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20639 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20640 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20641 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20642 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20643 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20644 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20645 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20646 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20647 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20648 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20649 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20650 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20651 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20652 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20653 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20654 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20655 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20656 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20657 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20658 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20659 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20660 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20661 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20662 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20663 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20664 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20665 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20666 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20667 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20668 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20669 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20670 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20671 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20672 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20673 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20674 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20675 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20676 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20677 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20678 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20679 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20680 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20681 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20682 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20683 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20684 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20685 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20686 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20687 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20688 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20689 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20690 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20691 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20692 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20693 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20694 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20695 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20696 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20697 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20698 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20699 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20700 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20701 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20702 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20703 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20704 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20705 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20706 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20707 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20708 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20709 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20710 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20711 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20712 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20713 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20714 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20715 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20716 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20717 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20718 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20719 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20720 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20721 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20722 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20723 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20724 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20725 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20726 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20727 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20728 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20729 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20730 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20731 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20732 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20733 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20734 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20735 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20736 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20737 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20738 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20739 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20740 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20741 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20742 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20743 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20744 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20745 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20746 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20747 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20748 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20749 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20750 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20751 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20752 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20753 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20754 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20755 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20756 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20757 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20758 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20759 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20760 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20761 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20762 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20763 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20764 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20765 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20766 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20767 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20768 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20769 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20770 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20771 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20772 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20773 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20774 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20775 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20776 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20777 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20778 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20779 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20780 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20781 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20782 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20783
20784 LTCC='$LTCC'
20785 LTCFLAGS='$LTCFLAGS'
20786 compiler='$compiler_DEFAULT'
20787
20788 # A function that is used when there is no print builtin or printf.
20789 func_fallback_echo ()
20790 {
20791   eval 'cat <<_LTECHO_EOF
20792 \$1
20793 _LTECHO_EOF'
20794 }
20795
20796 # Quote evaled strings.
20797 for var in SHELL \
20798 ECHO \
20799 SED \
20800 GREP \
20801 EGREP \
20802 FGREP \
20803 LD \
20804 NM \
20805 LN_S \
20806 lt_SP2NL \
20807 lt_NL2SP \
20808 reload_flag \
20809 OBJDUMP \
20810 deplibs_check_method \
20811 file_magic_cmd \
20812 file_magic_glob \
20813 want_nocaseglob \
20814 DLLTOOL \
20815 sharedlib_from_linklib_cmd \
20816 AR \
20817 AR_FLAGS \
20818 archiver_list_spec \
20819 STRIP \
20820 RANLIB \
20821 CC \
20822 CFLAGS \
20823 compiler \
20824 lt_cv_sys_global_symbol_pipe \
20825 lt_cv_sys_global_symbol_to_cdecl \
20826 lt_cv_sys_global_symbol_to_c_name_address \
20827 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20828 nm_file_list_spec \
20829 lt_prog_compiler_no_builtin_flag \
20830 lt_prog_compiler_pic \
20831 lt_prog_compiler_wl \
20832 lt_prog_compiler_static \
20833 lt_cv_prog_compiler_c_o \
20834 need_locks \
20835 MANIFEST_TOOL \
20836 DSYMUTIL \
20837 NMEDIT \
20838 LIPO \
20839 OTOOL \
20840 OTOOL64 \
20841 shrext_cmds \
20842 export_dynamic_flag_spec \
20843 whole_archive_flag_spec \
20844 compiler_needs_object \
20845 with_gnu_ld \
20846 allow_undefined_flag \
20847 no_undefined_flag \
20848 hardcode_libdir_flag_spec \
20849 hardcode_libdir_flag_spec_ld \
20850 hardcode_libdir_separator \
20851 exclude_expsyms \
20852 include_expsyms \
20853 file_list_spec \
20854 variables_saved_for_relink \
20855 libname_spec \
20856 library_names_spec \
20857 soname_spec \
20858 install_override_mode \
20859 finish_eval \
20860 old_striplib \
20861 striplib \
20862 compiler_lib_search_dirs \
20863 predep_objects \
20864 postdep_objects \
20865 predeps \
20866 postdeps \
20867 compiler_lib_search_path \
20868 LD_CXX \
20869 reload_flag_CXX \
20870 compiler_CXX \
20871 lt_prog_compiler_no_builtin_flag_CXX \
20872 lt_prog_compiler_pic_CXX \
20873 lt_prog_compiler_wl_CXX \
20874 lt_prog_compiler_static_CXX \
20875 lt_cv_prog_compiler_c_o_CXX \
20876 export_dynamic_flag_spec_CXX \
20877 whole_archive_flag_spec_CXX \
20878 compiler_needs_object_CXX \
20879 with_gnu_ld_CXX \
20880 allow_undefined_flag_CXX \
20881 no_undefined_flag_CXX \
20882 hardcode_libdir_flag_spec_CXX \
20883 hardcode_libdir_flag_spec_ld_CXX \
20884 hardcode_libdir_separator_CXX \
20885 exclude_expsyms_CXX \
20886 include_expsyms_CXX \
20887 file_list_spec_CXX \
20888 compiler_lib_search_dirs_CXX \
20889 predep_objects_CXX \
20890 postdep_objects_CXX \
20891 predeps_CXX \
20892 postdeps_CXX \
20893 compiler_lib_search_path_CXX; do
20894     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20895     *[\\\\\\\`\\"\\\$]*)
20896       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20897       ;;
20898     *)
20899       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20900       ;;
20901     esac
20902 done
20903
20904 # Double-quote double-evaled strings.
20905 for var in reload_cmds \
20906 old_postinstall_cmds \
20907 old_postuninstall_cmds \
20908 old_archive_cmds \
20909 extract_expsyms_cmds \
20910 old_archive_from_new_cmds \
20911 old_archive_from_expsyms_cmds \
20912 archive_cmds \
20913 archive_expsym_cmds \
20914 module_cmds \
20915 module_expsym_cmds \
20916 export_symbols_cmds \
20917 prelink_cmds \
20918 postlink_cmds \
20919 postinstall_cmds \
20920 postuninstall_cmds \
20921 finish_cmds \
20922 sys_lib_search_path_spec \
20923 sys_lib_dlsearch_path_spec \
20924 reload_cmds_CXX \
20925 old_archive_cmds_CXX \
20926 old_archive_from_new_cmds_CXX \
20927 old_archive_from_expsyms_cmds_CXX \
20928 archive_cmds_CXX \
20929 archive_expsym_cmds_CXX \
20930 module_cmds_CXX \
20931 module_expsym_cmds_CXX \
20932 export_symbols_cmds_CXX \
20933 prelink_cmds_CXX \
20934 postlink_cmds_CXX; do
20935     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20936     *[\\\\\\\`\\"\\\$]*)
20937       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20938       ;;
20939     *)
20940       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20941       ;;
20942     esac
20943 done
20944
20945 ac_aux_dir='$ac_aux_dir'
20946 xsi_shell='$xsi_shell'
20947 lt_shell_append='$lt_shell_append'
20948
20949 # See if we are running on zsh, and set the options which allow our
20950 # commands through without removal of \ escapes INIT.
20951 if test -n "\${ZSH_VERSION+set}" ; then
20952    setopt NO_GLOB_SUBST
20953 fi
20954
20955
20956     PACKAGE='$PACKAGE'
20957     VERSION='$VERSION'
20958     TIMESTAMP='$TIMESTAMP'
20959     RM='$RM'
20960     ofile='$ofile'
20961
20962
20963
20964
20965
20966
20967 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
20968 pkgconfig_prefix='$prefix'
20969 pkgconfig_execprefix='$exec_prefix'
20970 pkgconfig_bindir='$bindir'
20971 pkgconfig_libdir='$libdir'
20972 pkgconfig_includedir='$includedir'
20973 pkgconfig_datarootdir='$datarootdir'
20974 pkgconfig_datadir='$datadir'
20975 pkgconfig_sysconfdir='$sysconfdir'
20976 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
20977 pkgconfig_package='$PACKAGE_NAME'
20978 pkgconfig_libname='$ax_create_pkgconfig_libname'
20979 pkgconfig_description='$ax_create_pkgconfig_description'
20980 pkgconfig_version='$ax_create_pkgconfig_version'
20981 pkgconfig_requires='$ax_create_pkgconfig_requires'
20982 pkgconfig_libs='$ax_create_pkgconfig_libs'
20983 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
20984 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
20985 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
20986 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
20987
20988
20989 _ACEOF
20990
20991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20992
20993 # Handling of arguments.
20994 for ac_config_target in $ac_config_targets
20995 do
20996   case $ac_config_target in
20997     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20998     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20999     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21000     "xmltooling/config_pub.h") CONFIG_HEADERS="$CONFIG_HEADERS xmltooling/config_pub.h" ;;
21001     "xmltooling.spec") CONFIG_FILES="$CONFIG_FILES xmltooling.spec" ;;
21002     "pkginfo") CONFIG_FILES="$CONFIG_FILES pkginfo" ;;
21003     "Portfile") CONFIG_FILES="$CONFIG_FILES Portfile" ;;
21004     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21005     "xmltooling/Makefile") CONFIG_FILES="$CONFIG_FILES xmltooling/Makefile" ;;
21006     "xmltoolingtest/Makefile") CONFIG_FILES="$CONFIG_FILES xmltoolingtest/Makefile" ;;
21007     "schemas/Makefile") CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
21008     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21009     "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
21010
21011   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21012   esac
21013 done
21014
21015
21016 # If the user did not use the arguments to specify the items to instantiate,
21017 # then the envvar interface is used.  Set only those that are not.
21018 # We use the long form for the default assignment because of an extremely
21019 # bizarre bug on SunOS 4.1.3.
21020 if $ac_need_defaults; then
21021   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21022   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21023   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21024 fi
21025
21026 # Have a temporary directory for convenience.  Make it in the build tree
21027 # simply because there is no reason against having it here, and in addition,
21028 # creating and moving files from /tmp can sometimes cause problems.
21029 # Hook for its removal unless debugging.
21030 # Note that there is a small window in which the directory will not be cleaned:
21031 # after its creation but before its name has been assigned to `$tmp'.
21032 $debug ||
21033 {
21034   tmp= ac_tmp=
21035   trap 'exit_status=$?
21036   : "${ac_tmp:=$tmp}"
21037   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21038 ' 0
21039   trap 'as_fn_exit 1' 1 2 13 15
21040 }
21041 # Create a (secure) tmp directory for tmp files.
21042
21043 {
21044   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21045   test -d "$tmp"
21046 }  ||
21047 {
21048   tmp=./conf$$-$RANDOM
21049   (umask 077 && mkdir "$tmp")
21050 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21051 ac_tmp=$tmp
21052
21053 # Set up the scripts for CONFIG_FILES section.
21054 # No need to generate them if there are no CONFIG_FILES.
21055 # This happens for instance with `./config.status config.h'.
21056 if test -n "$CONFIG_FILES"; then
21057
21058
21059 ac_cr=`echo X | tr X '\015'`
21060 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21061 # But we know of no other shell where ac_cr would be empty at this
21062 # point, so we can use a bashism as a fallback.
21063 if test "x$ac_cr" = x; then
21064   eval ac_cr=\$\'\\r\'
21065 fi
21066 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21067 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21068   ac_cs_awk_cr='\\r'
21069 else
21070   ac_cs_awk_cr=$ac_cr
21071 fi
21072
21073 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21074 _ACEOF
21075
21076
21077 {
21078   echo "cat >conf$$subs.awk <<_ACEOF" &&
21079   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21080   echo "_ACEOF"
21081 } >conf$$subs.sh ||
21082   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21083 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21084 ac_delim='%!_!# '
21085 for ac_last_try in false false false false false :; do
21086   . ./conf$$subs.sh ||
21087     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21088
21089   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21090   if test $ac_delim_n = $ac_delim_num; then
21091     break
21092   elif $ac_last_try; then
21093     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21094   else
21095     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21096   fi
21097 done
21098 rm -f conf$$subs.sh
21099
21100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21101 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21102 _ACEOF
21103 sed -n '
21104 h
21105 s/^/S["/; s/!.*/"]=/
21106 p
21107 g
21108 s/^[^!]*!//
21109 :repl
21110 t repl
21111 s/'"$ac_delim"'$//
21112 t delim
21113 :nl
21114 h
21115 s/\(.\{148\}\)..*/\1/
21116 t more1
21117 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21118 p
21119 n
21120 b repl
21121 :more1
21122 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21123 p
21124 g
21125 s/.\{148\}//
21126 t nl
21127 :delim
21128 h
21129 s/\(.\{148\}\)..*/\1/
21130 t more2
21131 s/["\\]/\\&/g; s/^/"/; s/$/"/
21132 p
21133 b
21134 :more2
21135 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21136 p
21137 g
21138 s/.\{148\}//
21139 t delim
21140 ' <conf$$subs.awk | sed '
21141 /^[^""]/{
21142   N
21143   s/\n//
21144 }
21145 ' >>$CONFIG_STATUS || ac_write_fail=1
21146 rm -f conf$$subs.awk
21147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21148 _ACAWK
21149 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21150   for (key in S) S_is_set[key] = 1
21151   FS = "\a"
21152
21153 }
21154 {
21155   line = $ 0
21156   nfields = split(line, field, "@")
21157   substed = 0
21158   len = length(field[1])
21159   for (i = 2; i < nfields; i++) {
21160     key = field[i]
21161     keylen = length(key)
21162     if (S_is_set[key]) {
21163       value = S[key]
21164       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21165       len += length(value) + length(field[++i])
21166       substed = 1
21167     } else
21168       len += 1 + keylen
21169   }
21170
21171   print line
21172 }
21173
21174 _ACAWK
21175 _ACEOF
21176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21177 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21178   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21179 else
21180   cat
21181 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21182   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21183 _ACEOF
21184
21185 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21186 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21187 # trailing colons and then remove the whole line if VPATH becomes empty
21188 # (actually we leave an empty line to preserve line numbers).
21189 if test "x$srcdir" = x.; then
21190   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21191 h
21192 s///
21193 s/^/:/
21194 s/[      ]*$/:/
21195 s/:\$(srcdir):/:/g
21196 s/:\${srcdir}:/:/g
21197 s/:@srcdir@:/:/g
21198 s/^:*//
21199 s/:*$//
21200 x
21201 s/\(=[   ]*\).*/\1/
21202 G
21203 s/\n//
21204 s/^[^=]*=[       ]*$//
21205 }'
21206 fi
21207
21208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21209 fi # test -n "$CONFIG_FILES"
21210
21211 # Set up the scripts for CONFIG_HEADERS section.
21212 # No need to generate them if there are no CONFIG_HEADERS.
21213 # This happens for instance with `./config.status Makefile'.
21214 if test -n "$CONFIG_HEADERS"; then
21215 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21216 BEGIN {
21217 _ACEOF
21218
21219 # Transform confdefs.h into an awk script `defines.awk', embedded as
21220 # here-document in config.status, that substitutes the proper values into
21221 # config.h.in to produce config.h.
21222
21223 # Create a delimiter string that does not exist in confdefs.h, to ease
21224 # handling of long lines.
21225 ac_delim='%!_!# '
21226 for ac_last_try in false false :; do
21227   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21228   if test -z "$ac_tt"; then
21229     break
21230   elif $ac_last_try; then
21231     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21232   else
21233     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21234   fi
21235 done
21236
21237 # For the awk script, D is an array of macro values keyed by name,
21238 # likewise P contains macro parameters if any.  Preserve backslash
21239 # newline sequences.
21240
21241 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21242 sed -n '
21243 s/.\{148\}/&'"$ac_delim"'/g
21244 t rset
21245 :rset
21246 s/^[     ]*#[    ]*define[       ][      ]*/ /
21247 t def
21248 d
21249 :def
21250 s/\\$//
21251 t bsnl
21252 s/["\\]/\\&/g
21253 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21254 D["\1"]=" \3"/p
21255 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21256 d
21257 :bsnl
21258 s/["\\]/\\&/g
21259 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21260 D["\1"]=" \3\\\\\\n"\\/p
21261 t cont
21262 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21263 t cont
21264 d
21265 :cont
21266 n
21267 s/.\{148\}/&'"$ac_delim"'/g
21268 t clear
21269 :clear
21270 s/\\$//
21271 t bsnlc
21272 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21273 d
21274 :bsnlc
21275 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21276 b cont
21277 ' <confdefs.h | sed '
21278 s/'"$ac_delim"'/"\\\
21279 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21280
21281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21282   for (key in D) D_is_set[key] = 1
21283   FS = "\a"
21284 }
21285 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21286   line = \$ 0
21287   split(line, arg, " ")
21288   if (arg[1] == "#") {
21289     defundef = arg[2]
21290     mac1 = arg[3]
21291   } else {
21292     defundef = substr(arg[1], 2)
21293     mac1 = arg[2]
21294   }
21295   split(mac1, mac2, "(") #)
21296   macro = mac2[1]
21297   prefix = substr(line, 1, index(line, defundef) - 1)
21298   if (D_is_set[macro]) {
21299     # Preserve the white space surrounding the "#".
21300     print prefix "define", macro P[macro] D[macro]
21301     next
21302   } else {
21303     # Replace #undef with comments.  This is necessary, for example,
21304     # in the case of _POSIX_SOURCE, which is predefined and required
21305     # on some systems where configure will not decide to define it.
21306     if (defundef == "undef") {
21307       print "/*", prefix defundef, macro, "*/"
21308       next
21309     }
21310   }
21311 }
21312 { print }
21313 _ACAWK
21314 _ACEOF
21315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21316   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21317 fi # test -n "$CONFIG_HEADERS"
21318
21319
21320 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21321 shift
21322 for ac_tag
21323 do
21324   case $ac_tag in
21325   :[FHLC]) ac_mode=$ac_tag; continue;;
21326   esac
21327   case $ac_mode$ac_tag in
21328   :[FHL]*:*);;
21329   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21330   :[FH]-) ac_tag=-:-;;
21331   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21332   esac
21333   ac_save_IFS=$IFS
21334   IFS=:
21335   set x $ac_tag
21336   IFS=$ac_save_IFS
21337   shift
21338   ac_file=$1
21339   shift
21340
21341   case $ac_mode in
21342   :L) ac_source=$1;;
21343   :[FH])
21344     ac_file_inputs=
21345     for ac_f
21346     do
21347       case $ac_f in
21348       -) ac_f="$ac_tmp/stdin";;
21349       *) # Look for the file first in the build tree, then in the source tree
21350          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21351          # because $ac_f cannot contain `:'.
21352          test -f "$ac_f" ||
21353            case $ac_f in
21354            [\\/$]*) false;;
21355            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21356            esac ||
21357            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21358       esac
21359       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21360       as_fn_append ac_file_inputs " '$ac_f'"
21361     done
21362
21363     # Let's still pretend it is `configure' which instantiates (i.e., don't
21364     # use $as_me), people would be surprised to read:
21365     #    /* config.h.  Generated by config.status.  */
21366     configure_input='Generated from '`
21367           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21368         `' by configure.'
21369     if test x"$ac_file" != x-; then
21370       configure_input="$ac_file.  $configure_input"
21371       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21372 $as_echo "$as_me: creating $ac_file" >&6;}
21373     fi
21374     # Neutralize special characters interpreted by sed in replacement strings.
21375     case $configure_input in #(
21376     *\&* | *\|* | *\\* )
21377        ac_sed_conf_input=`$as_echo "$configure_input" |
21378        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21379     *) ac_sed_conf_input=$configure_input;;
21380     esac
21381
21382     case $ac_tag in
21383     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21384       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21385     esac
21386     ;;
21387   esac
21388
21389   ac_dir=`$as_dirname -- "$ac_file" ||
21390 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21391          X"$ac_file" : 'X\(//\)[^/]' \| \
21392          X"$ac_file" : 'X\(//\)$' \| \
21393          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21394 $as_echo X"$ac_file" |
21395     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21396             s//\1/
21397             q
21398           }
21399           /^X\(\/\/\)[^/].*/{
21400             s//\1/
21401             q
21402           }
21403           /^X\(\/\/\)$/{
21404             s//\1/
21405             q
21406           }
21407           /^X\(\/\).*/{
21408             s//\1/
21409             q
21410           }
21411           s/.*/./; q'`
21412   as_dir="$ac_dir"; as_fn_mkdir_p
21413   ac_builddir=.
21414
21415 case "$ac_dir" in
21416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21417 *)
21418   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21419   # A ".." for each directory in $ac_dir_suffix.
21420   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21421   case $ac_top_builddir_sub in
21422   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21423   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21424   esac ;;
21425 esac
21426 ac_abs_top_builddir=$ac_pwd
21427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21428 # for backward compatibility:
21429 ac_top_builddir=$ac_top_build_prefix
21430
21431 case $srcdir in
21432   .)  # We are building in place.
21433     ac_srcdir=.
21434     ac_top_srcdir=$ac_top_builddir_sub
21435     ac_abs_top_srcdir=$ac_pwd ;;
21436   [\\/]* | ?:[\\/]* )  # Absolute name.
21437     ac_srcdir=$srcdir$ac_dir_suffix;
21438     ac_top_srcdir=$srcdir
21439     ac_abs_top_srcdir=$srcdir ;;
21440   *) # Relative name.
21441     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21442     ac_top_srcdir=$ac_top_build_prefix$srcdir
21443     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21444 esac
21445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21446
21447
21448   case $ac_mode in
21449   :F)
21450   #
21451   # CONFIG_FILE
21452   #
21453
21454   case $INSTALL in
21455   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21456   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21457   esac
21458   ac_MKDIR_P=$MKDIR_P
21459   case $MKDIR_P in
21460   [\\/$]* | ?:[\\/]* ) ;;
21461   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21462   esac
21463 _ACEOF
21464
21465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21466 # If the template does not know about datarootdir, expand it.
21467 # FIXME: This hack should be removed a few years after 2.60.
21468 ac_datarootdir_hack=; ac_datarootdir_seen=
21469 ac_sed_dataroot='
21470 /datarootdir/ {
21471   p
21472   q
21473 }
21474 /@datadir@/p
21475 /@docdir@/p
21476 /@infodir@/p
21477 /@localedir@/p
21478 /@mandir@/p'
21479 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21480 *datarootdir*) ac_datarootdir_seen=yes;;
21481 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21482   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21483 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21484 _ACEOF
21485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21486   ac_datarootdir_hack='
21487   s&@datadir@&$datadir&g
21488   s&@docdir@&$docdir&g
21489   s&@infodir@&$infodir&g
21490   s&@localedir@&$localedir&g
21491   s&@mandir@&$mandir&g
21492   s&\\\${datarootdir}&$datarootdir&g' ;;
21493 esac
21494 _ACEOF
21495
21496 # Neutralize VPATH when `$srcdir' = `.'.
21497 # Shell code in configure.ac might set extrasub.
21498 # FIXME: do we really want to maintain this feature?
21499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21500 ac_sed_extra="$ac_vpsub
21501 $extrasub
21502 _ACEOF
21503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21504 :t
21505 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21506 s|@configure_input@|$ac_sed_conf_input|;t t
21507 s&@top_builddir@&$ac_top_builddir_sub&;t t
21508 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21509 s&@srcdir@&$ac_srcdir&;t t
21510 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21511 s&@top_srcdir@&$ac_top_srcdir&;t t
21512 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21513 s&@builddir@&$ac_builddir&;t t
21514 s&@abs_builddir@&$ac_abs_builddir&;t t
21515 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21516 s&@INSTALL@&$ac_INSTALL&;t t
21517 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21518 $ac_datarootdir_hack
21519 "
21520 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21521   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21522
21523 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21524   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21525   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21526       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21527   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21528 which seems to be undefined.  Please make sure it is defined" >&5
21529 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21530 which seems to be undefined.  Please make sure it is defined" >&2;}
21531
21532   rm -f "$ac_tmp/stdin"
21533   case $ac_file in
21534   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21535   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21536   esac \
21537   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21538  ;;
21539   :H)
21540   #
21541   # CONFIG_HEADER
21542   #
21543   if test x"$ac_file" != x-; then
21544     {
21545       $as_echo "/* $configure_input  */" \
21546       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21547     } >"$ac_tmp/config.h" \
21548       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21549     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21550       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21551 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21552     else
21553       rm -f "$ac_file"
21554       mv "$ac_tmp/config.h" "$ac_file" \
21555         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21556     fi
21557   else
21558     $as_echo "/* $configure_input  */" \
21559       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21560       || as_fn_error $? "could not create -" "$LINENO" 5
21561   fi
21562 # Compute "$ac_file"'s index in $config_headers.
21563 _am_arg="$ac_file"
21564 _am_stamp_count=1
21565 for _am_header in $config_headers :; do
21566   case $_am_header in
21567     $_am_arg | $_am_arg:* )
21568       break ;;
21569     * )
21570       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21571   esac
21572 done
21573 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21574 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21575          X"$_am_arg" : 'X\(//\)[^/]' \| \
21576          X"$_am_arg" : 'X\(//\)$' \| \
21577          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21578 $as_echo X"$_am_arg" |
21579     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21580             s//\1/
21581             q
21582           }
21583           /^X\(\/\/\)[^/].*/{
21584             s//\1/
21585             q
21586           }
21587           /^X\(\/\/\)$/{
21588             s//\1/
21589             q
21590           }
21591           /^X\(\/\).*/{
21592             s//\1/
21593             q
21594           }
21595           s/.*/./; q'`/stamp-h$_am_stamp_count
21596  ;;
21597
21598   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21599 $as_echo "$as_me: executing $ac_file commands" >&6;}
21600  ;;
21601   esac
21602
21603
21604   case $ac_file$ac_mode in
21605     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21606   # Autoconf 2.62 quotes --file arguments for eval, but not when files
21607   # are listed without --file.  Let's play safe and only enable the eval
21608   # if we detect the quoting.
21609   case $CONFIG_FILES in
21610   *\'*) eval set x "$CONFIG_FILES" ;;
21611   *)   set x $CONFIG_FILES ;;
21612   esac
21613   shift
21614   for mf
21615   do
21616     # Strip MF so we end up with the name of the file.
21617     mf=`echo "$mf" | sed -e 's/:.*$//'`
21618     # Check whether this is an Automake generated Makefile or not.
21619     # We used to match only the files named `Makefile.in', but
21620     # some people rename them; so instead we look at the file content.
21621     # Grep'ing the first line is not enough: some people post-process
21622     # each Makefile.in and add a new line on top of each file to say so.
21623     # Grep'ing the whole file is not good either: AIX grep has a line
21624     # limit of 2048, but all sed's we know have understand at least 4000.
21625     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21626       dirpart=`$as_dirname -- "$mf" ||
21627 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21628          X"$mf" : 'X\(//\)[^/]' \| \
21629          X"$mf" : 'X\(//\)$' \| \
21630          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21631 $as_echo X"$mf" |
21632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21633             s//\1/
21634             q
21635           }
21636           /^X\(\/\/\)[^/].*/{
21637             s//\1/
21638             q
21639           }
21640           /^X\(\/\/\)$/{
21641             s//\1/
21642             q
21643           }
21644           /^X\(\/\).*/{
21645             s//\1/
21646             q
21647           }
21648           s/.*/./; q'`
21649     else
21650       continue
21651     fi
21652     # Extract the definition of DEPDIR, am__include, and am__quote
21653     # from the Makefile without running `make'.
21654     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21655     test -z "$DEPDIR" && continue
21656     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21657     test -z "am__include" && continue
21658     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21659     # When using ansi2knr, U may be empty or an underscore; expand it
21660     U=`sed -n 's/^U = //p' < "$mf"`
21661     # Find all dependency output files, they are included files with
21662     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21663     # simplest approach to changing $(DEPDIR) to its actual value in the
21664     # expansion.
21665     for file in `sed -n "
21666       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21667          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21668       # Make sure the directory exists.
21669       test -f "$dirpart/$file" && continue
21670       fdir=`$as_dirname -- "$file" ||
21671 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21672          X"$file" : 'X\(//\)[^/]' \| \
21673          X"$file" : 'X\(//\)$' \| \
21674          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21675 $as_echo X"$file" |
21676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21677             s//\1/
21678             q
21679           }
21680           /^X\(\/\/\)[^/].*/{
21681             s//\1/
21682             q
21683           }
21684           /^X\(\/\/\)$/{
21685             s//\1/
21686             q
21687           }
21688           /^X\(\/\).*/{
21689             s//\1/
21690             q
21691           }
21692           s/.*/./; q'`
21693       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21694       # echo "creating $dirpart/$file"
21695       echo '# dummy' > "$dirpart/$file"
21696     done
21697   done
21698 }
21699  ;;
21700     "libtool":C)
21701
21702     # See if we are running on zsh, and set the options which allow our
21703     # commands through without removal of \ escapes.
21704     if test -n "${ZSH_VERSION+set}" ; then
21705       setopt NO_GLOB_SUBST
21706     fi
21707
21708     cfgfile="${ofile}T"
21709     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21710     $RM "$cfgfile"
21711
21712     cat <<_LT_EOF >> "$cfgfile"
21713 #! $SHELL
21714
21715 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21716 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21717 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21718 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21719 #
21720 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21721 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21722 #                 Inc.
21723 #   Written by Gordon Matzigkeit, 1996
21724 #
21725 #   This file is part of GNU Libtool.
21726 #
21727 # GNU Libtool is free software; you can redistribute it and/or
21728 # modify it under the terms of the GNU General Public License as
21729 # published by the Free Software Foundation; either version 2 of
21730 # the License, or (at your option) any later version.
21731 #
21732 # As a special exception to the GNU General Public License,
21733 # if you distribute this file as part of a program or library that
21734 # is built using GNU Libtool, you may include this file under the
21735 # same distribution terms that you use for the rest of that program.
21736 #
21737 # GNU Libtool is distributed in the hope that it will be useful,
21738 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21739 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21740 # GNU General Public License for more details.
21741 #
21742 # You should have received a copy of the GNU General Public License
21743 # along with GNU Libtool; see the file COPYING.  If not, a copy
21744 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21745 # obtained by writing to the Free Software Foundation, Inc.,
21746 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21747
21748
21749 # The names of the tagged configurations supported by this script.
21750 available_tags="CXX "
21751
21752 # ### BEGIN LIBTOOL CONFIG
21753
21754 # Whether or not to build static libraries.
21755 build_old_libs=$enable_static
21756
21757 # Which release of libtool.m4 was used?
21758 macro_version=$macro_version
21759 macro_revision=$macro_revision
21760
21761 # Whether or not to build shared libraries.
21762 build_libtool_libs=$enable_shared
21763
21764 # What type of objects to build.
21765 pic_mode=$pic_mode
21766
21767 # Whether or not to optimize for fast installation.
21768 fast_install=$enable_fast_install
21769
21770 # Shell to use when invoking shell scripts.
21771 SHELL=$lt_SHELL
21772
21773 # An echo program that protects backslashes.
21774 ECHO=$lt_ECHO
21775
21776 # The host system.
21777 host_alias=$host_alias
21778 host=$host
21779 host_os=$host_os
21780
21781 # The build system.
21782 build_alias=$build_alias
21783 build=$build
21784 build_os=$build_os
21785
21786 # A sed program that does not truncate output.
21787 SED=$lt_SED
21788
21789 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21790 Xsed="\$SED -e 1s/^X//"
21791
21792 # A grep program that handles long lines.
21793 GREP=$lt_GREP
21794
21795 # An ERE matcher.
21796 EGREP=$lt_EGREP
21797
21798 # A literal string matcher.
21799 FGREP=$lt_FGREP
21800
21801 # A BSD- or MS-compatible name lister.
21802 NM=$lt_NM
21803
21804 # Whether we need soft or hard links.
21805 LN_S=$lt_LN_S
21806
21807 # What is the maximum length of a command?
21808 max_cmd_len=$max_cmd_len
21809
21810 # Object file suffix (normally "o").
21811 objext=$ac_objext
21812
21813 # Executable file suffix (normally "").
21814 exeext=$exeext
21815
21816 # whether the shell understands "unset".
21817 lt_unset=$lt_unset
21818
21819 # turn spaces into newlines.
21820 SP2NL=$lt_lt_SP2NL
21821
21822 # turn newlines into spaces.
21823 NL2SP=$lt_lt_NL2SP
21824
21825 # convert \$build file names to \$host format.
21826 to_host_file_cmd=$lt_cv_to_host_file_cmd
21827
21828 # convert \$build files to toolchain format.
21829 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21830
21831 # An object symbol dumper.
21832 OBJDUMP=$lt_OBJDUMP
21833
21834 # Method to check whether dependent libraries are shared objects.
21835 deplibs_check_method=$lt_deplibs_check_method
21836
21837 # Command to use when deplibs_check_method = "file_magic".
21838 file_magic_cmd=$lt_file_magic_cmd
21839
21840 # How to find potential files when deplibs_check_method = "file_magic".
21841 file_magic_glob=$lt_file_magic_glob
21842
21843 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21844 want_nocaseglob=$lt_want_nocaseglob
21845
21846 # DLL creation program.
21847 DLLTOOL=$lt_DLLTOOL
21848
21849 # Command to associate shared and link libraries.
21850 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21851
21852 # The archiver.
21853 AR=$lt_AR
21854
21855 # Flags to create an archive.
21856 AR_FLAGS=$lt_AR_FLAGS
21857
21858 # How to feed a file listing to the archiver.
21859 archiver_list_spec=$lt_archiver_list_spec
21860
21861 # A symbol stripping program.
21862 STRIP=$lt_STRIP
21863
21864 # Commands used to install an old-style archive.
21865 RANLIB=$lt_RANLIB
21866 old_postinstall_cmds=$lt_old_postinstall_cmds
21867 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21868
21869 # Whether to use a lock for old archive extraction.
21870 lock_old_archive_extraction=$lock_old_archive_extraction
21871
21872 # A C compiler.
21873 LTCC=$lt_CC
21874
21875 # LTCC compiler flags.
21876 LTCFLAGS=$lt_CFLAGS
21877
21878 # Take the output of nm and produce a listing of raw symbols and C names.
21879 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21880
21881 # Transform the output of nm in a proper C declaration.
21882 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21883
21884 # Transform the output of nm in a C name address pair.
21885 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21886
21887 # Transform the output of nm in a C name address pair when lib prefix is needed.
21888 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21889
21890 # Specify filename containing input files for \$NM.
21891 nm_file_list_spec=$lt_nm_file_list_spec
21892
21893 # The root where to search for dependent libraries,and in which our libraries should be installed.
21894 lt_sysroot=$lt_sysroot
21895
21896 # The name of the directory that contains temporary libtool files.
21897 objdir=$objdir
21898
21899 # Used to examine libraries when file_magic_cmd begins with "file".
21900 MAGIC_CMD=$MAGIC_CMD
21901
21902 # Must we lock files when doing compilation?
21903 need_locks=$lt_need_locks
21904
21905 # Manifest tool.
21906 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21907
21908 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21909 DSYMUTIL=$lt_DSYMUTIL
21910
21911 # Tool to change global to local symbols on Mac OS X.
21912 NMEDIT=$lt_NMEDIT
21913
21914 # Tool to manipulate fat objects and archives on Mac OS X.
21915 LIPO=$lt_LIPO
21916
21917 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21918 OTOOL=$lt_OTOOL
21919
21920 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21921 OTOOL64=$lt_OTOOL64
21922
21923 # Old archive suffix (normally "a").
21924 libext=$libext
21925
21926 # Shared library suffix (normally ".so").
21927 shrext_cmds=$lt_shrext_cmds
21928
21929 # The commands to extract the exported symbol list from a shared archive.
21930 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21931
21932 # Variables whose values should be saved in libtool wrapper scripts and
21933 # restored at link time.
21934 variables_saved_for_relink=$lt_variables_saved_for_relink
21935
21936 # Do we need the "lib" prefix for modules?
21937 need_lib_prefix=$need_lib_prefix
21938
21939 # Do we need a version for libraries?
21940 need_version=$need_version
21941
21942 # Library versioning type.
21943 version_type=$version_type
21944
21945 # Shared library runtime path variable.
21946 runpath_var=$runpath_var
21947
21948 # Shared library path variable.
21949 shlibpath_var=$shlibpath_var
21950
21951 # Is shlibpath searched before the hard-coded library search path?
21952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21953
21954 # Format of library name prefix.
21955 libname_spec=$lt_libname_spec
21956
21957 # List of archive names.  First name is the real one, the rest are links.
21958 # The last name is the one that the linker finds with -lNAME
21959 library_names_spec=$lt_library_names_spec
21960
21961 # The coded name of the library, if different from the real name.
21962 soname_spec=$lt_soname_spec
21963
21964 # Permission mode override for installation of shared libraries.
21965 install_override_mode=$lt_install_override_mode
21966
21967 # Command to use after installation of a shared archive.
21968 postinstall_cmds=$lt_postinstall_cmds
21969
21970 # Command to use after uninstallation of a shared archive.
21971 postuninstall_cmds=$lt_postuninstall_cmds
21972
21973 # Commands used to finish a libtool library installation in a directory.
21974 finish_cmds=$lt_finish_cmds
21975
21976 # As "finish_cmds", except a single script fragment to be evaled but
21977 # not shown.
21978 finish_eval=$lt_finish_eval
21979
21980 # Whether we should hardcode library paths into libraries.
21981 hardcode_into_libs=$hardcode_into_libs
21982
21983 # Compile-time system search path for libraries.
21984 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21985
21986 # Run-time system search path for libraries.
21987 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21988
21989 # Whether dlopen is supported.
21990 dlopen_support=$enable_dlopen
21991
21992 # Whether dlopen of programs is supported.
21993 dlopen_self=$enable_dlopen_self
21994
21995 # Whether dlopen of statically linked programs is supported.
21996 dlopen_self_static=$enable_dlopen_self_static
21997
21998 # Commands to strip libraries.
21999 old_striplib=$lt_old_striplib
22000 striplib=$lt_striplib
22001
22002
22003 # The linker used to build libraries.
22004 LD=$lt_LD
22005
22006 # How to create reloadable object files.
22007 reload_flag=$lt_reload_flag
22008 reload_cmds=$lt_reload_cmds
22009
22010 # Commands used to build an old-style archive.
22011 old_archive_cmds=$lt_old_archive_cmds
22012
22013 # A language specific compiler.
22014 CC=$lt_compiler
22015
22016 # Is the compiler the GNU compiler?
22017 with_gcc=$GCC
22018
22019 # Compiler flag to turn off builtin functions.
22020 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22021
22022 # Additional compiler flags for building library objects.
22023 pic_flag=$lt_lt_prog_compiler_pic
22024
22025 # How to pass a linker flag through the compiler.
22026 wl=$lt_lt_prog_compiler_wl
22027
22028 # Compiler flag to prevent dynamic linking.
22029 link_static_flag=$lt_lt_prog_compiler_static
22030
22031 # Does compiler simultaneously support -c and -o options?
22032 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22033
22034 # Whether or not to add -lc for building shared libraries.
22035 build_libtool_need_lc=$archive_cmds_need_lc
22036
22037 # Whether or not to disallow shared libs when runtime libs are static.
22038 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22039
22040 # Compiler flag to allow reflexive dlopens.
22041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22042
22043 # Compiler flag to generate shared objects directly from archives.
22044 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22045
22046 # Whether the compiler copes with passing no objects directly.
22047 compiler_needs_object=$lt_compiler_needs_object
22048
22049 # Create an old-style archive from a shared archive.
22050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22051
22052 # Create a temporary old-style archive to link instead of a shared archive.
22053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22054
22055 # Commands used to build a shared archive.
22056 archive_cmds=$lt_archive_cmds
22057 archive_expsym_cmds=$lt_archive_expsym_cmds
22058
22059 # Commands used to build a loadable module if different from building
22060 # a shared archive.
22061 module_cmds=$lt_module_cmds
22062 module_expsym_cmds=$lt_module_expsym_cmds
22063
22064 # Whether we are building with GNU ld or not.
22065 with_gnu_ld=$lt_with_gnu_ld
22066
22067 # Flag that allows shared libraries with undefined symbols to be built.
22068 allow_undefined_flag=$lt_allow_undefined_flag
22069
22070 # Flag that enforces no undefined symbols.
22071 no_undefined_flag=$lt_no_undefined_flag
22072
22073 # Flag to hardcode \$libdir into a binary during linking.
22074 # This must work even if \$libdir does not exist
22075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22076
22077 # If ld is used when linking, flag to hardcode \$libdir into a binary
22078 # during linking.  This must work even if \$libdir does not exist.
22079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22080
22081 # Whether we need a single "-rpath" flag with a separated argument.
22082 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22083
22084 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22085 # DIR into the resulting binary.
22086 hardcode_direct=$hardcode_direct
22087
22088 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22089 # DIR into the resulting binary and the resulting library dependency is
22090 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22091 # library is relocated.
22092 hardcode_direct_absolute=$hardcode_direct_absolute
22093
22094 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22095 # into the resulting binary.
22096 hardcode_minus_L=$hardcode_minus_L
22097
22098 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22099 # into the resulting binary.
22100 hardcode_shlibpath_var=$hardcode_shlibpath_var
22101
22102 # Set to "yes" if building a shared library automatically hardcodes DIR
22103 # into the library and all subsequent libraries and executables linked
22104 # against it.
22105 hardcode_automatic=$hardcode_automatic
22106
22107 # Set to yes if linker adds runtime paths of dependent libraries
22108 # to runtime path list.
22109 inherit_rpath=$inherit_rpath
22110
22111 # Whether libtool must link a program against all its dependency libraries.
22112 link_all_deplibs=$link_all_deplibs
22113
22114 # Set to "yes" if exported symbols are required.
22115 always_export_symbols=$always_export_symbols
22116
22117 # The commands to list exported symbols.
22118 export_symbols_cmds=$lt_export_symbols_cmds
22119
22120 # Symbols that should not be listed in the preloaded symbols.
22121 exclude_expsyms=$lt_exclude_expsyms
22122
22123 # Symbols that must always be exported.
22124 include_expsyms=$lt_include_expsyms
22125
22126 # Commands necessary for linking programs (against libraries) with templates.
22127 prelink_cmds=$lt_prelink_cmds
22128
22129 # Commands necessary for finishing linking programs.
22130 postlink_cmds=$lt_postlink_cmds
22131
22132 # Specify filename containing input files.
22133 file_list_spec=$lt_file_list_spec
22134
22135 # How to hardcode a shared library path into an executable.
22136 hardcode_action=$hardcode_action
22137
22138 # The directories searched by this compiler when creating a shared library.
22139 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22140
22141 # Dependencies to place before and after the objects being linked to
22142 # create a shared library.
22143 predep_objects=$lt_predep_objects
22144 postdep_objects=$lt_postdep_objects
22145 predeps=$lt_predeps
22146 postdeps=$lt_postdeps
22147
22148 # The library search path used internally by the compiler when linking
22149 # a shared library.
22150 compiler_lib_search_path=$lt_compiler_lib_search_path
22151
22152 # ### END LIBTOOL CONFIG
22153
22154 _LT_EOF
22155
22156   case $host_os in
22157   aix3*)
22158     cat <<\_LT_EOF >> "$cfgfile"
22159 # AIX sometimes has problems with the GCC collect2 program.  For some
22160 # reason, if we set the COLLECT_NAMES environment variable, the problems
22161 # vanish in a puff of smoke.
22162 if test "X${COLLECT_NAMES+set}" != Xset; then
22163   COLLECT_NAMES=
22164   export COLLECT_NAMES
22165 fi
22166 _LT_EOF
22167     ;;
22168   esac
22169
22170
22171 ltmain="$ac_aux_dir/ltmain.sh"
22172
22173
22174   # We use sed instead of cat because bash on DJGPP gets confused if
22175   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22176   # text mode, it properly converts lines to CR/LF.  This bash problem
22177   # is reportedly fixed, but why not run on old versions too?
22178   sed '$q' "$ltmain" >> "$cfgfile" \
22179      || (rm -f "$cfgfile"; exit 1)
22180
22181   if test x"$xsi_shell" = xyes; then
22182   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22183 func_dirname ()\
22184 {\
22185 \    case ${1} in\
22186 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22187 \      *  ) func_dirname_result="${3}" ;;\
22188 \    esac\
22189 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22190   && mv -f "$cfgfile.tmp" "$cfgfile" \
22191     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22192 test 0 -eq $? || _lt_function_replace_fail=:
22193
22194
22195   sed -e '/^func_basename ()$/,/^} # func_basename /c\
22196 func_basename ()\
22197 {\
22198 \    func_basename_result="${1##*/}"\
22199 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22200   && mv -f "$cfgfile.tmp" "$cfgfile" \
22201     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22202 test 0 -eq $? || _lt_function_replace_fail=:
22203
22204
22205   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22206 func_dirname_and_basename ()\
22207 {\
22208 \    case ${1} in\
22209 \      */*) func_dirname_result="${1%/*}${2}" ;;\
22210 \      *  ) func_dirname_result="${3}" ;;\
22211 \    esac\
22212 \    func_basename_result="${1##*/}"\
22213 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22214   && mv -f "$cfgfile.tmp" "$cfgfile" \
22215     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22216 test 0 -eq $? || _lt_function_replace_fail=:
22217
22218
22219   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22220 func_stripname ()\
22221 {\
22222 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22223 \    # positional parameters, so assign one to ordinary parameter first.\
22224 \    func_stripname_result=${3}\
22225 \    func_stripname_result=${func_stripname_result#"${1}"}\
22226 \    func_stripname_result=${func_stripname_result%"${2}"}\
22227 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22228   && mv -f "$cfgfile.tmp" "$cfgfile" \
22229     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22230 test 0 -eq $? || _lt_function_replace_fail=:
22231
22232
22233   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22234 func_split_long_opt ()\
22235 {\
22236 \    func_split_long_opt_name=${1%%=*}\
22237 \    func_split_long_opt_arg=${1#*=}\
22238 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22239   && mv -f "$cfgfile.tmp" "$cfgfile" \
22240     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22241 test 0 -eq $? || _lt_function_replace_fail=:
22242
22243
22244   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22245 func_split_short_opt ()\
22246 {\
22247 \    func_split_short_opt_arg=${1#??}\
22248 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22249 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22250   && mv -f "$cfgfile.tmp" "$cfgfile" \
22251     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22252 test 0 -eq $? || _lt_function_replace_fail=:
22253
22254
22255   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22256 func_lo2o ()\
22257 {\
22258 \    case ${1} in\
22259 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22260 \      *)    func_lo2o_result=${1} ;;\
22261 \    esac\
22262 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22263   && mv -f "$cfgfile.tmp" "$cfgfile" \
22264     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22265 test 0 -eq $? || _lt_function_replace_fail=:
22266
22267
22268   sed -e '/^func_xform ()$/,/^} # func_xform /c\
22269 func_xform ()\
22270 {\
22271     func_xform_result=${1%.*}.lo\
22272 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22273   && mv -f "$cfgfile.tmp" "$cfgfile" \
22274     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22275 test 0 -eq $? || _lt_function_replace_fail=:
22276
22277
22278   sed -e '/^func_arith ()$/,/^} # func_arith /c\
22279 func_arith ()\
22280 {\
22281     func_arith_result=$(( $* ))\
22282 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22283   && mv -f "$cfgfile.tmp" "$cfgfile" \
22284     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22285 test 0 -eq $? || _lt_function_replace_fail=:
22286
22287
22288   sed -e '/^func_len ()$/,/^} # func_len /c\
22289 func_len ()\
22290 {\
22291     func_len_result=${#1}\
22292 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22293   && mv -f "$cfgfile.tmp" "$cfgfile" \
22294     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22295 test 0 -eq $? || _lt_function_replace_fail=:
22296
22297 fi
22298
22299 if test x"$lt_shell_append" = xyes; then
22300   sed -e '/^func_append ()$/,/^} # func_append /c\
22301 func_append ()\
22302 {\
22303     eval "${1}+=\\${2}"\
22304 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22305   && mv -f "$cfgfile.tmp" "$cfgfile" \
22306     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22307 test 0 -eq $? || _lt_function_replace_fail=:
22308
22309
22310   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22311 func_append_quoted ()\
22312 {\
22313 \    func_quote_for_eval "${2}"\
22314 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22315 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22316   && mv -f "$cfgfile.tmp" "$cfgfile" \
22317     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22318 test 0 -eq $? || _lt_function_replace_fail=:
22319
22320
22321   # Save a `func_append' function call where possible by direct use of '+='
22322   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22323     && mv -f "$cfgfile.tmp" "$cfgfile" \
22324       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22325   test 0 -eq $? || _lt_function_replace_fail=:
22326 else
22327   # Save a `func_append' function call even when '+=' is not available
22328   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22329     && mv -f "$cfgfile.tmp" "$cfgfile" \
22330       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22331   test 0 -eq $? || _lt_function_replace_fail=:
22332 fi
22333
22334 if test x"$_lt_function_replace_fail" = x":"; then
22335   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22336 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22337 fi
22338
22339
22340    mv -f "$cfgfile" "$ofile" ||
22341     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22342   chmod +x "$ofile"
22343
22344
22345     cat <<_LT_EOF >> "$ofile"
22346
22347 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22348
22349 # The linker used to build libraries.
22350 LD=$lt_LD_CXX
22351
22352 # How to create reloadable object files.
22353 reload_flag=$lt_reload_flag_CXX
22354 reload_cmds=$lt_reload_cmds_CXX
22355
22356 # Commands used to build an old-style archive.
22357 old_archive_cmds=$lt_old_archive_cmds_CXX
22358
22359 # A language specific compiler.
22360 CC=$lt_compiler_CXX
22361
22362 # Is the compiler the GNU compiler?
22363 with_gcc=$GCC_CXX
22364
22365 # Compiler flag to turn off builtin functions.
22366 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22367
22368 # Additional compiler flags for building library objects.
22369 pic_flag=$lt_lt_prog_compiler_pic_CXX
22370
22371 # How to pass a linker flag through the compiler.
22372 wl=$lt_lt_prog_compiler_wl_CXX
22373
22374 # Compiler flag to prevent dynamic linking.
22375 link_static_flag=$lt_lt_prog_compiler_static_CXX
22376
22377 # Does compiler simultaneously support -c and -o options?
22378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22379
22380 # Whether or not to add -lc for building shared libraries.
22381 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22382
22383 # Whether or not to disallow shared libs when runtime libs are static.
22384 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22385
22386 # Compiler flag to allow reflexive dlopens.
22387 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22388
22389 # Compiler flag to generate shared objects directly from archives.
22390 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22391
22392 # Whether the compiler copes with passing no objects directly.
22393 compiler_needs_object=$lt_compiler_needs_object_CXX
22394
22395 # Create an old-style archive from a shared archive.
22396 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22397
22398 # Create a temporary old-style archive to link instead of a shared archive.
22399 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22400
22401 # Commands used to build a shared archive.
22402 archive_cmds=$lt_archive_cmds_CXX
22403 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22404
22405 # Commands used to build a loadable module if different from building
22406 # a shared archive.
22407 module_cmds=$lt_module_cmds_CXX
22408 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22409
22410 # Whether we are building with GNU ld or not.
22411 with_gnu_ld=$lt_with_gnu_ld_CXX
22412
22413 # Flag that allows shared libraries with undefined symbols to be built.
22414 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22415
22416 # Flag that enforces no undefined symbols.
22417 no_undefined_flag=$lt_no_undefined_flag_CXX
22418
22419 # Flag to hardcode \$libdir into a binary during linking.
22420 # This must work even if \$libdir does not exist
22421 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22422
22423 # If ld is used when linking, flag to hardcode \$libdir into a binary
22424 # during linking.  This must work even if \$libdir does not exist.
22425 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22426
22427 # Whether we need a single "-rpath" flag with a separated argument.
22428 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22429
22430 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22431 # DIR into the resulting binary.
22432 hardcode_direct=$hardcode_direct_CXX
22433
22434 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22435 # DIR into the resulting binary and the resulting library dependency is
22436 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22437 # library is relocated.
22438 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22439
22440 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22441 # into the resulting binary.
22442 hardcode_minus_L=$hardcode_minus_L_CXX
22443
22444 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22445 # into the resulting binary.
22446 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22447
22448 # Set to "yes" if building a shared library automatically hardcodes DIR
22449 # into the library and all subsequent libraries and executables linked
22450 # against it.
22451 hardcode_automatic=$hardcode_automatic_CXX
22452
22453 # Set to yes if linker adds runtime paths of dependent libraries
22454 # to runtime path list.
22455 inherit_rpath=$inherit_rpath_CXX
22456
22457 # Whether libtool must link a program against all its dependency libraries.
22458 link_all_deplibs=$link_all_deplibs_CXX
22459
22460 # Set to "yes" if exported symbols are required.
22461 always_export_symbols=$always_export_symbols_CXX
22462
22463 # The commands to list exported symbols.
22464 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22465
22466 # Symbols that should not be listed in the preloaded symbols.
22467 exclude_expsyms=$lt_exclude_expsyms_CXX
22468
22469 # Symbols that must always be exported.
22470 include_expsyms=$lt_include_expsyms_CXX
22471
22472 # Commands necessary for linking programs (against libraries) with templates.
22473 prelink_cmds=$lt_prelink_cmds_CXX
22474
22475 # Commands necessary for finishing linking programs.
22476 postlink_cmds=$lt_postlink_cmds_CXX
22477
22478 # Specify filename containing input files.
22479 file_list_spec=$lt_file_list_spec_CXX
22480
22481 # How to hardcode a shared library path into an executable.
22482 hardcode_action=$hardcode_action_CXX
22483
22484 # The directories searched by this compiler when creating a shared library.
22485 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22486
22487 # Dependencies to place before and after the objects being linked to
22488 # create a shared library.
22489 predep_objects=$lt_predep_objects_CXX
22490 postdep_objects=$lt_postdep_objects_CXX
22491 predeps=$lt_predeps_CXX
22492 postdeps=$lt_postdeps_CXX
22493
22494 # The library search path used internally by the compiler when linking
22495 # a shared library.
22496 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22497
22498 # ### END LIBTOOL TAG CONFIG: CXX
22499 _LT_EOF
22500
22501  ;;
22502     "$ax_create_pkgconfig_generate":C)
22503 pkgconfig_generate="$ax_create_pkgconfig_generate"
22504 if test ! -f "$pkgconfig_generate.in"
22505 then generate="true"
22506 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
22507 then generate="true"
22508 else generate="false";
22509 fi
22510 if $generate ; then
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
22512 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
22513 cat > $pkgconfig_generate.in <<AXEOF
22514 # generated by configure / remove this line to disable regeneration
22515 prefix=@prefix@
22516 exec_prefix=@exec_prefix@
22517 bindir=@bindir@
22518 libdir=@libdir@
22519 datarootdir=@datarootdir@
22520 datadir=@datadir@
22521 sysconfdir=@sysconfdir@
22522 includedir=@includedir@
22523 package=@PACKAGE@
22524 suffix=@suffix@
22525
22526 Name: @PACKAGE_NAME@
22527 Description: @PACKAGE_DESCRIPTION@
22528 Version: @PACKAGE_VERSION@
22529 Requires: @PACKAGE_REQUIRES@
22530 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
22531 Cflags: -I\${includedir} @CPPFLAGS@
22532 AXEOF
22533 fi # DONE generate $pkgconfig_generate.in
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
22535 $as_echo "$as_me: creating $pkgconfig_generate" >&6;}
22536 cat >conftest.sed <<AXEOF
22537 s|@prefix@|${pkgconfig_prefix}|
22538 s|@exec_prefix@|${pkgconfig_execprefix}|
22539 s|@bindir@|${pkgconfig_bindir}|
22540 s|@libdir@|${pkgconfig_libdir}|
22541 s|@datarootdir@|${pkgconfig_datarootdir}|
22542 s|@datadir@|${pkgconfig_datadir}|
22543 s|@sysconfdir@|${pkgconfig_sysconfdir}|
22544 s|@includedir@|${pkgconfig_includedir}|
22545 s|@suffix@|${pkgconfig_suffix}|
22546 s|@PACKAGE@|${pkgconfig_package}|
22547 s|@PACKAGE_NAME@|${pkgconfig_libname}|
22548 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
22549 s|@PACKAGE_VERSION@|${pkgconfig_version}|
22550 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
22551 s|@LIBS@|${pkgconfig_libs}|
22552 s|@LDFLAGS@|${pkgconfig_ldflags}|
22553 s|@CPPFLAGS@|${pkgconfig_cppflags}|
22554 AXEOF
22555 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_generate
22556 if test ! -s $pkgconfig_generate ; then
22557     as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
22558 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
22559 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
22561 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
22562 cat >conftest.sed <<AXEOF
22563 s|@prefix@|${pkgconfig_prefix}|
22564 s|@exec_prefix@|${pkgconfig_execprefix}|
22565 s|@bindir@|${pkgconfig_bindir}|
22566 s|@libdir@|${pkgconfig_src_libdir}|
22567 s|@datarootdir@|${pkgconfig_datarootdir}|
22568 s|@datadir@|${pkgconfig_datadir}|
22569 s|@sysconfdir@|${pkgconfig_sysconfdir}|
22570 s|@includedir@|${pkgconfig_src_headers}|
22571 s|@suffix@|${pkgconfig_suffix}|
22572 s|@PACKAGE@|${pkgconfig_package}|
22573 s|@PACKAGE_NAME@|${pkgconfig_libname}|
22574 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
22575 s|@PACKAGE_VERSION@|${pkgconfig_version}|
22576 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
22577 s|@LIBS@|${pkgconfig_libs}|
22578 s|@LDFLAGS@|${pkgconfig_ldflags}|
22579 s|@CPPFLAGS@|${pkgconfig_cppflags}|
22580 AXEOF
22581 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
22582 if test ! -s $pkgconfig_uninstalled ; then
22583     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
22584 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
22585            pkgconfig_requires_add=`echo ${pkgconfig_requires}`
22586 if test ".$pkgconfig_requires_add" != "." ; then
22587            pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
22588     else   pkgconfig_requires_add=":" ; fi
22589 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
22591 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
22592 cat >conftest.sed <<AXEOF
22593 s|@prefix@|\"${pkgconfig_prefix}\"|
22594 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
22595 s|@bindir@|\"${pkgconfig_bindir}\"|
22596 s|@libdir@|\"${pkgconfig_src_libdir}\"|
22597 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
22598 s|@datadir@|\"${pkgconfig_datadir}\"|
22599 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
22600 s|@includedir@|\"${pkgconfig_src_headers}\"|
22601 s|@suffix@|\"${pkgconfig_suffix}\"|
22602 s|@PACKAGE@|\"${pkgconfig_package}\"|
22603 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
22604 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
22605 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
22606 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
22607 s|@LIBS@|\"${pkgconfig_libs}\"|
22608 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
22609 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
22610 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
22611 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
22612 s>Version: *>\\;\\; --modversion|--version) echo >
22613 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
22614 s>Libs: *>\\;\\; --libs) echo >
22615 s>Cflags: *>\\;\\; --cflags) echo >
22616 /--libs)/a\\
22617        $pkgconfig_requires_add
22618 /--cflags)/a\\
22619        $pkgconfig_requires_add\\
22620 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
22621 ;; --uninstalled) exit 0 \\
22622 ;; *) ;; esac done
22623 AXEOF
22624 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_uninstalled
22625 if test ! -s $pkgconfig_uninstalled ; then
22626     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
22627 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
22628  ;;
22629
22630   esac
22631 done # for ac_tag
22632
22633
22634 as_fn_exit 0
22635 _ACEOF
22636 ac_clean_files=$ac_clean_files_save
22637
22638 test $ac_write_fail = 0 ||
22639   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22640
22641
22642 # configure is writing to config.log, and then calls config.status.
22643 # config.status does its own redirection, appending to config.log.
22644 # Unfortunately, on DOS this fails, as config.log is still kept open
22645 # by configure, so config.status won't be able to write to it; its
22646 # output is simply discarded.  So we exec the FD to /dev/null,
22647 # effectively closing config.log, so it can be properly (re)opened and
22648 # appended to by config.status.  When coming back to configure, we
22649 # need to make the FD available again.
22650 if test "$no_create" != yes; then
22651   ac_cs_success=:
22652   ac_config_status_args=
22653   test "$silent" = yes &&
22654     ac_config_status_args="$ac_config_status_args --quiet"
22655   exec 5>/dev/null
22656   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22657   exec 5>>config.log
22658   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22659   # would make configure fail if this is the last instruction.
22660   $ac_cs_success || as_fn_exit 1
22661 fi
22662 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22663   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22664 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22665 fi
22666