It turns out the *.a static libraries were a autoconf error upstream
[shibboleth/xmltooling.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for xmltooling 1.4.
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 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: https://bugs.internet2.edu/ about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='xmltooling'
703 PACKAGE_TARNAME='xmltooling'
704 PACKAGE_VERSION='1.4'
705 PACKAGE_STRING='xmltooling 1.4'
706 PACKAGE_BUGREPORT='https://bugs.internet2.edu/'
707 PACKAGE_URL=''
708
709 ac_unique_file="xmltooling"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 #  include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #  include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
745
746 ac_subst_vars='am__EXEEXT_FALSE
747 am__EXEEXT_TRUE
748 LTLIBOBJS
749 LIBOBJS
750 pkgconfig_libfile
751 pkgconfig_libdir
752 BUILD_UNITTEST_FALSE
753 BUILD_UNITTEST_TRUE
754 CXXTESTFLAGS
755 CXXTEST
756 BUILD_XMLSEC_FALSE
757 BUILD_XMLSEC_TRUE
758 XMLSEC_LIBS
759 CURL_CONFIG
760 PKG_CONFIG
761 LOG4CPP_CONFIG
762 LOG4SHIB_CONFIG
763 BUILD_PTHREAD_FALSE
764 BUILD_PTHREAD_TRUE
765 PTHREAD_CFLAGS
766 PTHREAD_LIBS
767 PTHREAD_CC
768 acx_pthread_config
769 CXXCPP
770 am__fastdepCXX_FALSE
771 am__fastdepCXX_TRUE
772 CXXDEPMODE
773 ac_ct_CXX
774 CXXFLAGS
775 CXX
776 DOXYGEN_PAPER_SIZE
777 DX_COND_latex_FALSE
778 DX_COND_latex_TRUE
779 DX_COND_pdf_FALSE
780 DX_COND_pdf_TRUE
781 DX_PDFLATEX
782 DX_FLAG_pdf
783 DX_COND_ps_FALSE
784 DX_COND_ps_TRUE
785 DX_EGREP
786 DX_DVIPS
787 DX_MAKEINDEX
788 DX_LATEX
789 DX_FLAG_ps
790 DX_COND_html_FALSE
791 DX_COND_html_TRUE
792 DX_FLAG_html
793 DX_COND_chi_FALSE
794 DX_COND_chi_TRUE
795 DX_FLAG_chi
796 DX_COND_chm_FALSE
797 DX_COND_chm_TRUE
798 DX_HHC
799 DX_FLAG_chm
800 DX_COND_xml_FALSE
801 DX_COND_xml_TRUE
802 DX_FLAG_xml
803 DX_COND_rtf_FALSE
804 DX_COND_rtf_TRUE
805 DX_FLAG_rtf
806 DX_COND_man_FALSE
807 DX_COND_man_TRUE
808 DX_FLAG_man
809 DX_COND_dot_FALSE
810 DX_COND_dot_TRUE
811 DX_DOT
812 DX_FLAG_dot
813 DX_COND_doc_FALSE
814 DX_COND_doc_TRUE
815 DX_PERL
816 DX_DOXYGEN
817 DX_FLAG_doc
818 DX_ENV
819 DX_DOCDIR
820 DX_CONFIG
821 DX_PROJECT
822 CPP
823 OTOOL64
824 OTOOL
825 LIPO
826 NMEDIT
827 DSYMUTIL
828 lt_ECHO
829 RANLIB
830 AR
831 OBJDUMP
832 LN_S
833 NM
834 ac_ct_DUMPBIN
835 DUMPBIN
836 LD
837 FGREP
838 EGREP
839 GREP
840 SED
841 am__fastdepCC_FALSE
842 am__fastdepCC_TRUE
843 CCDEPMODE
844 AMDEPBACKSLASH
845 AMDEP_FALSE
846 AMDEP_TRUE
847 am__quote
848 am__include
849 DEPDIR
850 OBJEXT
851 EXEEXT
852 ac_ct_CC
853 CPPFLAGS
854 LDFLAGS
855 CFLAGS
856 CC
857 host_os
858 host_vendor
859 host_cpu
860 host
861 build_os
862 build_vendor
863 build_cpu
864 build
865 LIBTOOL
866 am__untar
867 am__tar
868 AMTAR
869 am__leading_dot
870 SET_MAKE
871 AWK
872 mkdir_p
873 MKDIR_P
874 INSTALL_STRIP_PROGRAM
875 STRIP
876 install_sh
877 MAKEINFO
878 AUTOHEADER
879 AUTOMAKE
880 AUTOCONF
881 ACLOCAL
882 VERSION
883 PACKAGE
884 CYGPATH_W
885 am__isrc
886 INSTALL_DATA
887 INSTALL_SCRIPT
888 INSTALL_PROGRAM
889 target_alias
890 host_alias
891 build_alias
892 LIBS
893 ECHO_T
894 ECHO_N
895 ECHO_C
896 DEFS
897 mandir
898 localedir
899 libdir
900 psdir
901 pdfdir
902 dvidir
903 htmldir
904 infodir
905 docdir
906 oldincludedir
907 includedir
908 localstatedir
909 sharedstatedir
910 sysconfdir
911 datadir
912 datarootdir
913 libexecdir
914 sbindir
915 bindir
916 program_transform_name
917 prefix
918 exec_prefix
919 PACKAGE_URL
920 PACKAGE_BUGREPORT
921 PACKAGE_STRING
922 PACKAGE_VERSION
923 PACKAGE_TARNAME
924 PACKAGE_NAME
925 PATH_SEPARATOR
926 SHELL'
927 ac_subst_files=''
928 ac_user_opts='
929 enable_option_checking
930 enable_static
931 enable_shared
932 with_pic
933 enable_fast_install
934 enable_dependency_tracking
935 with_gnu_ld
936 enable_libtool_lock
937 enable_doxygen_doc
938 enable_doxygen_dot
939 enable_doxygen_man
940 enable_doxygen_rtf
941 enable_doxygen_xml
942 enable_doxygen_chm
943 enable_doxygen_chi
944 enable_doxygen_html
945 enable_doxygen_ps
946 enable_doxygen_pdf
947 enable_debug
948 with_log4shib
949 with_log4cpp
950 with_xerces
951 with_xmlsec
952 with_openssl
953 with_curl
954 with_cxxtest
955 '
956       ac_precious_vars='build_alias
957 host_alias
958 target_alias
959 CC
960 CFLAGS
961 LDFLAGS
962 LIBS
963 CPPFLAGS
964 CPP
965 DOXYGEN_PAPER_SIZE
966 CXX
967 CXXFLAGS
968 CCC
969 CXXCPP'
970
971
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 ac_unrecognized_opts=
976 ac_unrecognized_sep=
977 # The variables have the same names as the options, with
978 # dashes changed to underlines.
979 cache_file=/dev/null
980 exec_prefix=NONE
981 no_create=
982 no_recursion=
983 prefix=NONE
984 program_prefix=NONE
985 program_suffix=NONE
986 program_transform_name=s,x,x,
987 silent=
988 site=
989 srcdir=
990 verbose=
991 x_includes=NONE
992 x_libraries=NONE
993
994 # Installation directory options.
995 # These are left unexpanded so users can "make install exec_prefix=/foo"
996 # and all the variables that are supposed to be based on exec_prefix
997 # by default will actually change.
998 # Use braces instead of parens because sh, perl, etc. also accept them.
999 # (The list follows the same order as the GNU Coding Standards.)
1000 bindir='${exec_prefix}/bin'
1001 sbindir='${exec_prefix}/sbin'
1002 libexecdir='${exec_prefix}/libexec'
1003 datarootdir='${prefix}/share'
1004 datadir='${datarootdir}'
1005 sysconfdir='${prefix}/etc'
1006 sharedstatedir='${prefix}/com'
1007 localstatedir='${prefix}/var'
1008 includedir='${prefix}/include'
1009 oldincludedir='/usr/include'
1010 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1011 infodir='${datarootdir}/info'
1012 htmldir='${docdir}'
1013 dvidir='${docdir}'
1014 pdfdir='${docdir}'
1015 psdir='${docdir}'
1016 libdir='${exec_prefix}/lib'
1017 localedir='${datarootdir}/locale'
1018 mandir='${datarootdir}/man'
1019
1020 ac_prev=
1021 ac_dashdash=
1022 for ac_option
1023 do
1024   # If the previous option needs an argument, assign it.
1025   if test -n "$ac_prev"; then
1026     eval $ac_prev=\$ac_option
1027     ac_prev=
1028     continue
1029   fi
1030
1031   case $ac_option in
1032   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033   *=)   ac_optarg= ;;
1034   *)    ac_optarg=yes ;;
1035   esac
1036
1037   # Accept the important Cygnus configure options, so we can diagnose typos.
1038
1039   case $ac_dashdash$ac_option in
1040   --)
1041     ac_dashdash=yes ;;
1042
1043   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044     ac_prev=bindir ;;
1045   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046     bindir=$ac_optarg ;;
1047
1048   -build | --build | --buil | --bui | --bu)
1049     ac_prev=build_alias ;;
1050   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051     build_alias=$ac_optarg ;;
1052
1053   -cache-file | --cache-file | --cache-fil | --cache-fi \
1054   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055     ac_prev=cache_file ;;
1056   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058     cache_file=$ac_optarg ;;
1059
1060   --config-cache | -C)
1061     cache_file=config.cache ;;
1062
1063   -datadir | --datadir | --datadi | --datad)
1064     ac_prev=datadir ;;
1065   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066     datadir=$ac_optarg ;;
1067
1068   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069   | --dataroo | --dataro | --datar)
1070     ac_prev=datarootdir ;;
1071   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073     datarootdir=$ac_optarg ;;
1074
1075   -disable-* | --disable-*)
1076     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077     # Reject names that are not valid shell variable names.
1078     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079       as_fn_error $? "invalid feature name: $ac_useropt"
1080     ac_useropt_orig=$ac_useropt
1081     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082     case $ac_user_opts in
1083       *"
1084 "enable_$ac_useropt"
1085 "*) ;;
1086       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1087          ac_unrecognized_sep=', ';;
1088     esac
1089     eval enable_$ac_useropt=no ;;
1090
1091   -docdir | --docdir | --docdi | --doc | --do)
1092     ac_prev=docdir ;;
1093   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094     docdir=$ac_optarg ;;
1095
1096   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097     ac_prev=dvidir ;;
1098   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099     dvidir=$ac_optarg ;;
1100
1101   -enable-* | --enable-*)
1102     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105       as_fn_error $? "invalid feature name: $ac_useropt"
1106     ac_useropt_orig=$ac_useropt
1107     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108     case $ac_user_opts in
1109       *"
1110 "enable_$ac_useropt"
1111 "*) ;;
1112       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1113          ac_unrecognized_sep=', ';;
1114     esac
1115     eval enable_$ac_useropt=\$ac_optarg ;;
1116
1117   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1118   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1119   | --exec | --exe | --ex)
1120     ac_prev=exec_prefix ;;
1121   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1122   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1123   | --exec=* | --exe=* | --ex=*)
1124     exec_prefix=$ac_optarg ;;
1125
1126   -gas | --gas | --ga | --g)
1127     # Obsolete; use --with-gas.
1128     with_gas=yes ;;
1129
1130   -help | --help | --hel | --he | -h)
1131     ac_init_help=long ;;
1132   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1133     ac_init_help=recursive ;;
1134   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1135     ac_init_help=short ;;
1136
1137   -host | --host | --hos | --ho)
1138     ac_prev=host_alias ;;
1139   -host=* | --host=* | --hos=* | --ho=*)
1140     host_alias=$ac_optarg ;;
1141
1142   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1143     ac_prev=htmldir ;;
1144   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1145   | --ht=*)
1146     htmldir=$ac_optarg ;;
1147
1148   -includedir | --includedir | --includedi | --included | --include \
1149   | --includ | --inclu | --incl | --inc)
1150     ac_prev=includedir ;;
1151   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1152   | --includ=* | --inclu=* | --incl=* | --inc=*)
1153     includedir=$ac_optarg ;;
1154
1155   -infodir | --infodir | --infodi | --infod | --info | --inf)
1156     ac_prev=infodir ;;
1157   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1158     infodir=$ac_optarg ;;
1159
1160   -libdir | --libdir | --libdi | --libd)
1161     ac_prev=libdir ;;
1162   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1163     libdir=$ac_optarg ;;
1164
1165   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1166   | --libexe | --libex | --libe)
1167     ac_prev=libexecdir ;;
1168   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1169   | --libexe=* | --libex=* | --libe=*)
1170     libexecdir=$ac_optarg ;;
1171
1172   -localedir | --localedir | --localedi | --localed | --locale)
1173     ac_prev=localedir ;;
1174   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1175     localedir=$ac_optarg ;;
1176
1177   -localstatedir | --localstatedir | --localstatedi | --localstated \
1178   | --localstate | --localstat | --localsta | --localst | --locals)
1179     ac_prev=localstatedir ;;
1180   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1181   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1182     localstatedir=$ac_optarg ;;
1183
1184   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1185     ac_prev=mandir ;;
1186   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1187     mandir=$ac_optarg ;;
1188
1189   -nfp | --nfp | --nf)
1190     # Obsolete; use --without-fp.
1191     with_fp=no ;;
1192
1193   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1194   | --no-cr | --no-c | -n)
1195     no_create=yes ;;
1196
1197   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1198   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1199     no_recursion=yes ;;
1200
1201   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1202   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1203   | --oldin | --oldi | --old | --ol | --o)
1204     ac_prev=oldincludedir ;;
1205   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1206   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1207   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1208     oldincludedir=$ac_optarg ;;
1209
1210   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1211     ac_prev=prefix ;;
1212   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1213     prefix=$ac_optarg ;;
1214
1215   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1216   | --program-pre | --program-pr | --program-p)
1217     ac_prev=program_prefix ;;
1218   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1219   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1220     program_prefix=$ac_optarg ;;
1221
1222   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1223   | --program-suf | --program-su | --program-s)
1224     ac_prev=program_suffix ;;
1225   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1226   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1227     program_suffix=$ac_optarg ;;
1228
1229   -program-transform-name | --program-transform-name \
1230   | --program-transform-nam | --program-transform-na \
1231   | --program-transform-n | --program-transform- \
1232   | --program-transform | --program-transfor \
1233   | --program-transfo | --program-transf \
1234   | --program-trans | --program-tran \
1235   | --progr-tra | --program-tr | --program-t)
1236     ac_prev=program_transform_name ;;
1237   -program-transform-name=* | --program-transform-name=* \
1238   | --program-transform-nam=* | --program-transform-na=* \
1239   | --program-transform-n=* | --program-transform-=* \
1240   | --program-transform=* | --program-transfor=* \
1241   | --program-transfo=* | --program-transf=* \
1242   | --program-trans=* | --program-tran=* \
1243   | --progr-tra=* | --program-tr=* | --program-t=*)
1244     program_transform_name=$ac_optarg ;;
1245
1246   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1247     ac_prev=pdfdir ;;
1248   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1249     pdfdir=$ac_optarg ;;
1250
1251   -psdir | --psdir | --psdi | --psd | --ps)
1252     ac_prev=psdir ;;
1253   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1254     psdir=$ac_optarg ;;
1255
1256   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257   | -silent | --silent | --silen | --sile | --sil)
1258     silent=yes ;;
1259
1260   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1261     ac_prev=sbindir ;;
1262   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1263   | --sbi=* | --sb=*)
1264     sbindir=$ac_optarg ;;
1265
1266   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1267   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1268   | --sharedst | --shareds | --shared | --share | --shar \
1269   | --sha | --sh)
1270     ac_prev=sharedstatedir ;;
1271   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1272   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1273   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1274   | --sha=* | --sh=*)
1275     sharedstatedir=$ac_optarg ;;
1276
1277   -site | --site | --sit)
1278     ac_prev=site ;;
1279   -site=* | --site=* | --sit=*)
1280     site=$ac_optarg ;;
1281
1282   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1283     ac_prev=srcdir ;;
1284   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1285     srcdir=$ac_optarg ;;
1286
1287   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1288   | --syscon | --sysco | --sysc | --sys | --sy)
1289     ac_prev=sysconfdir ;;
1290   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1291   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1292     sysconfdir=$ac_optarg ;;
1293
1294   -target | --target | --targe | --targ | --tar | --ta | --t)
1295     ac_prev=target_alias ;;
1296   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1297     target_alias=$ac_optarg ;;
1298
1299   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1300     verbose=yes ;;
1301
1302   -version | --version | --versio | --versi | --vers | -V)
1303     ac_init_version=: ;;
1304
1305   -with-* | --with-*)
1306     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1307     # Reject names that are not valid shell variable names.
1308     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309       as_fn_error $? "invalid package name: $ac_useropt"
1310     ac_useropt_orig=$ac_useropt
1311     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312     case $ac_user_opts in
1313       *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317          ac_unrecognized_sep=', ';;
1318     esac
1319     eval with_$ac_useropt=\$ac_optarg ;;
1320
1321   -without-* | --without-*)
1322     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323     # Reject names that are not valid shell variable names.
1324     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325       as_fn_error $? "invalid package name: $ac_useropt"
1326     ac_useropt_orig=$ac_useropt
1327     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328     case $ac_user_opts in
1329       *"
1330 "with_$ac_useropt"
1331 "*) ;;
1332       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333          ac_unrecognized_sep=', ';;
1334     esac
1335     eval with_$ac_useropt=no ;;
1336
1337   --x)
1338     # Obsolete; use --with-x.
1339     with_x=yes ;;
1340
1341   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342   | --x-incl | --x-inc | --x-in | --x-i)
1343     ac_prev=x_includes ;;
1344   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346     x_includes=$ac_optarg ;;
1347
1348   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350     ac_prev=x_libraries ;;
1351   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353     x_libraries=$ac_optarg ;;
1354
1355   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1356 Try \`$0 --help' for more information"
1357     ;;
1358
1359   *=*)
1360     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1361     # Reject names that are not valid shell variable names.
1362     case $ac_envvar in #(
1363       '' | [0-9]* | *[!_$as_cr_alnum]* )
1364       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1365     esac
1366     eval $ac_envvar=\$ac_optarg
1367     export $ac_envvar ;;
1368
1369   *)
1370     # FIXME: should be removed in autoconf 3.0.
1371     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375     ;;
1376
1377   esac
1378 done
1379
1380 if test -n "$ac_prev"; then
1381   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382   as_fn_error $? "missing argument to $ac_option"
1383 fi
1384
1385 if test -n "$ac_unrecognized_opts"; then
1386   case $enable_option_checking in
1387     no) ;;
1388     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1389     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390   esac
1391 fi
1392
1393 # Check all directory arguments for consistency.
1394 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395                 datadir sysconfdir sharedstatedir localstatedir includedir \
1396                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397                 libdir localedir mandir
1398 do
1399   eval ac_val=\$$ac_var
1400   # Remove trailing slashes.
1401   case $ac_val in
1402     */ )
1403       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1404       eval $ac_var=\$ac_val;;
1405   esac
1406   # Be sure to have absolute directory names.
1407   case $ac_val in
1408     [\\/$]* | ?:[\\/]* )  continue;;
1409     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1410   esac
1411   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1412 done
1413
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1417 build=$build_alias
1418 host=$host_alias
1419 target=$target_alias
1420
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x; then
1423   if test "x$build_alias" = x; then
1424     cross_compiling=maybe
1425     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1426     If a cross compiler is detected then cross compile mode will be used" >&2
1427   elif test "x$build_alias" != "x$host_alias"; then
1428     cross_compiling=yes
1429   fi
1430 fi
1431
1432 ac_tool_prefix=
1433 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1434
1435 test "$silent" = yes && exec 6>/dev/null
1436
1437
1438 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di=`ls -di .` &&
1440 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441   as_fn_error $? "working directory cannot be determined"
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443   as_fn_error $? "pwd does not report name of working directory"
1444
1445
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448   ac_srcdir_defaulted=yes
1449   # Try the directory containing this script, then the parent directory.
1450   ac_confdir=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452          X"$as_myself" : 'X\(//\)[^/]' \| \
1453          X"$as_myself" : 'X\(//\)$' \| \
1454          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 $as_echo X"$as_myself" |
1456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457             s//\1/
1458             q
1459           }
1460           /^X\(\/\/\)[^/].*/{
1461             s//\1/
1462             q
1463           }
1464           /^X\(\/\/\)$/{
1465             s//\1/
1466             q
1467           }
1468           /^X\(\/\).*/{
1469             s//\1/
1470             q
1471           }
1472           s/.*/./; q'`
1473   srcdir=$ac_confdir
1474   if test ! -r "$srcdir/$ac_unique_file"; then
1475     srcdir=..
1476   fi
1477 else
1478   ac_srcdir_defaulted=no
1479 fi
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1483 fi
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 ac_abs_confdir=`(
1486         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1487         pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490   srcdir=.
1491 fi
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500   eval ac_env_${ac_var}_value=\$${ac_var}
1501   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1504
1505 #
1506 # Report the --help message.
1507 #
1508 if test "$ac_init_help" = "long"; then
1509   # Omit some internal or obsolete options to make the list less imposing.
1510   # This message is too long to be a string in the A/UX 3.1 sh.
1511   cat <<_ACEOF
1512 \`configure' configures xmltooling 1.4 to adapt to many kinds of systems.
1513
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1515
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE.  See below for descriptions of some of the useful variables.
1518
1519 Defaults for the options are specified in brackets.
1520
1521 Configuration:
1522   -h, --help              display this help and exit
1523       --help=short        display options specific to this package
1524       --help=recursive    display the short help of all the included packages
1525   -V, --version           display version information and exit
1526   -q, --quiet, --silent   do not print \`checking ...' messages
1527       --cache-file=FILE   cache test results in FILE [disabled]
1528   -C, --config-cache      alias for \`--cache-file=config.cache'
1529   -n, --no-create         do not create output files
1530       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1531
1532 Installation directories:
1533   --prefix=PREFIX         install architecture-independent files in PREFIX
1534                           [$ac_default_prefix]
1535   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1536                           [PREFIX]
1537
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1542
1543 For better control, use the options below.
1544
1545 Fine tuning of the installation directories:
1546   --bindir=DIR            user executables [EPREFIX/bin]
1547   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1548   --libexecdir=DIR        program executables [EPREFIX/libexec]
1549   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1550   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1551   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1552   --libdir=DIR            object code libraries [EPREFIX/lib]
1553   --includedir=DIR        C header files [PREFIX/include]
1554   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1555   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1556   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1557   --infodir=DIR           info documentation [DATAROOTDIR/info]
1558   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1559   --mandir=DIR            man documentation [DATAROOTDIR/man]
1560   --docdir=DIR            documentation root [DATAROOTDIR/doc/xmltooling]
1561   --htmldir=DIR           html documentation [DOCDIR]
1562   --dvidir=DIR            dvi documentation [DOCDIR]
1563   --pdfdir=DIR            pdf documentation [DOCDIR]
1564   --psdir=DIR             ps documentation [DOCDIR]
1565 _ACEOF
1566
1567   cat <<\_ACEOF
1568
1569 Program names:
1570   --program-prefix=PREFIX            prepend PREFIX to installed program names
1571   --program-suffix=SUFFIX            append SUFFIX to installed program names
1572   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1573
1574 System types:
1575   --build=BUILD     configure for building on BUILD [guessed]
1576   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1577 _ACEOF
1578 fi
1579
1580 if test -n "$ac_init_help"; then
1581   case $ac_init_help in
1582      short | recursive ) echo "Configuration of xmltooling 1.4:";;
1583    esac
1584   cat <<\_ACEOF
1585
1586 Optional Features:
1587   --disable-option-checking  ignore unrecognized --enable/--with options
1588   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1589   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1590   --enable-static[=PKGS]  build static libraries [default=no]
1591   --enable-shared[=PKGS]  build shared libraries [default=yes]
1592   --enable-fast-install[=PKGS]
1593                           optimize for fast installation [default=yes]
1594   --disable-dependency-tracking  speeds up one-time build
1595   --enable-dependency-tracking   do not reject slow dependency extractors
1596   --disable-libtool-lock  avoid locking (might break parallel builds)
1597   --disable-doxygen-doc   don't generate any doxygen documentation
1598   --disable-doxygen-dot   don't generate graphics for doxygen documentation
1599   --enable-doxygen-man    generate doxygen manual pages
1600   --enable-doxygen-rtf    generate doxygen RTF documentation
1601   --enable-doxygen-xml    generate doxygen XML documentation
1602   --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1603   --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1604                           file
1605   --disable-doxygen-html  don't generate doxygen plain HTML documentation
1606   --enable-doxygen-ps     generate doxygen PostScript documentation
1607   --enable-doxygen-pdf    generate doxygen PDF documentation
1608   --enable-debug          Have GCC compile with symbols (Default = no)
1609
1610 Optional Packages:
1611   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1612   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1613   --with-pic              try to use only PIC/non-PIC objects [default=use
1614                           both]
1615   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1616   --with-log4shib=PATH    where log4shib-config is installed
1617   --with-log4cpp=PATH     where log4cpp-config is installed
1618   --with-xerces=PATH      where xerces-c is installed
1619   --with-xmlsec=PATH      where xmlsec is installed
1620   --with-openssl=PATH     where openssl is installed
1621   --with-curl=PATH        where curl-config is installed
1622   --with-cxxtest=PATH     where cxxtest is installed
1623
1624 Some influential environment variables:
1625   CC          C compiler command
1626   CFLAGS      C compiler flags
1627   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1628               nonstandard directory <lib dir>
1629   LIBS        libraries to pass to the linker, e.g. -l<library>
1630   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1631               you have headers in a nonstandard directory <include dir>
1632   CPP         C preprocessor
1633   DOXYGEN_PAPER_SIZE
1634               a4wide (default), a4, letter, legal or executive
1635   CXX         C++ compiler command
1636   CXXFLAGS    C++ compiler flags
1637   CXXCPP      C++ preprocessor
1638
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1641
1642 Report bugs to <https://bugs.internet2.edu/>.
1643 _ACEOF
1644 ac_status=$?
1645 fi
1646
1647 if test "$ac_init_help" = "recursive"; then
1648   # If there are subdirs, report their specific --help.
1649   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1650     test -d "$ac_dir" ||
1651       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1652       continue
1653     ac_builddir=.
1654
1655 case "$ac_dir" in
1656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 *)
1658   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1659   # A ".." for each directory in $ac_dir_suffix.
1660   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1661   case $ac_top_builddir_sub in
1662   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664   esac ;;
1665 esac
1666 ac_abs_top_builddir=$ac_pwd
1667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668 # for backward compatibility:
1669 ac_top_builddir=$ac_top_build_prefix
1670
1671 case $srcdir in
1672   .)  # We are building in place.
1673     ac_srcdir=.
1674     ac_top_srcdir=$ac_top_builddir_sub
1675     ac_abs_top_srcdir=$ac_pwd ;;
1676   [\\/]* | ?:[\\/]* )  # Absolute name.
1677     ac_srcdir=$srcdir$ac_dir_suffix;
1678     ac_top_srcdir=$srcdir
1679     ac_abs_top_srcdir=$srcdir ;;
1680   *) # Relative name.
1681     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682     ac_top_srcdir=$ac_top_build_prefix$srcdir
1683     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684 esac
1685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686
1687     cd "$ac_dir" || { ac_status=$?; continue; }
1688     # Check for guested configure.
1689     if test -f "$ac_srcdir/configure.gnu"; then
1690       echo &&
1691       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1692     elif test -f "$ac_srcdir/configure"; then
1693       echo &&
1694       $SHELL "$ac_srcdir/configure" --help=recursive
1695     else
1696       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697     fi || ac_status=$?
1698     cd "$ac_pwd" || { ac_status=$?; break; }
1699   done
1700 fi
1701
1702 test -n "$ac_init_help" && exit $ac_status
1703 if $ac_init_version; then
1704   cat <<\_ACEOF
1705 xmltooling configure 1.4
1706 generated by GNU Autoconf 2.67
1707
1708 Copyright (C) 2010 Free Software Foundation, Inc.
1709 This configure script is free software; the Free Software Foundation
1710 gives unlimited permission to copy, distribute and modify it.
1711 _ACEOF
1712   exit
1713 fi
1714
1715 ## ------------------------ ##
1716 ## Autoconf initialization. ##
1717 ## ------------------------ ##
1718
1719 # ac_fn_c_try_compile LINENO
1720 # --------------------------
1721 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_compile ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   rm -f conftest.$ac_objext
1726   if { { ac_try="$ac_compile"
1727 case "(($ac_try" in
1728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729   *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733   (eval "$ac_compile") 2>conftest.err
1734   ac_status=$?
1735   if test -s conftest.err; then
1736     grep -v '^ *+' conftest.err >conftest.er1
1737     cat conftest.er1 >&5
1738     mv -f conftest.er1 conftest.err
1739   fi
1740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741   test $ac_status = 0; } && {
1742          test -z "$ac_c_werror_flag" ||
1743          test ! -s conftest.err
1744        } && test -s conftest.$ac_objext; then :
1745   ac_retval=0
1746 else
1747   $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750         ac_retval=1
1751 fi
1752   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1753   as_fn_set_status $ac_retval
1754
1755 } # ac_fn_c_try_compile
1756
1757 # ac_fn_c_try_link LINENO
1758 # -----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_link ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   rm -f conftest.$ac_objext conftest$ac_exeext
1764   if { { ac_try="$ac_link"
1765 case "(($ac_try" in
1766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767   *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771   (eval "$ac_link") 2>conftest.err
1772   ac_status=$?
1773   if test -s conftest.err; then
1774     grep -v '^ *+' conftest.err >conftest.er1
1775     cat conftest.er1 >&5
1776     mv -f conftest.er1 conftest.err
1777   fi
1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; } && {
1780          test -z "$ac_c_werror_flag" ||
1781          test ! -s conftest.err
1782        } && test -s conftest$ac_exeext && {
1783          test "$cross_compiling" = yes ||
1784          $as_test_x conftest$ac_exeext
1785        }; then :
1786   ac_retval=0
1787 else
1788   $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791         ac_retval=1
1792 fi
1793   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1794   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1795   # interfere with the next link command; also delete a directory that is
1796   # left behind by Apple's compiler.  We do this before executing the actions.
1797   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799   as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_link
1802
1803 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1804 # -------------------------------------------------------
1805 # Tests whether HEADER exists and can be compiled using the include files in
1806 # INCLUDES, setting the cache variable VAR accordingly.
1807 ac_fn_c_check_header_compile ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval "test \"\${$3+set}\"" = set; then :
1813   $as_echo_n "(cached) " >&6
1814 else
1815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h.  */
1817 $4
1818 #include <$2>
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821   eval "$3=yes"
1822 else
1823   eval "$3=no"
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 fi
1827 eval ac_res=\$$3
1828                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831
1832 } # ac_fn_c_check_header_compile
1833
1834 # ac_fn_c_try_cpp LINENO
1835 # ----------------------
1836 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_cpp ()
1838 {
1839   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840   if { { ac_try="$ac_cpp conftest.$ac_ext"
1841 case "(($ac_try" in
1842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843   *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1848   ac_status=$?
1849   if test -s conftest.err; then
1850     grep -v '^ *+' conftest.err >conftest.er1
1851     cat conftest.er1 >&5
1852     mv -f conftest.er1 conftest.err
1853   fi
1854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855   test $ac_status = 0; } > conftest.i && {
1856          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1857          test ! -s conftest.err
1858        }; then :
1859   ac_retval=0
1860 else
1861   $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864     ac_retval=1
1865 fi
1866   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867   as_fn_set_status $ac_retval
1868
1869 } # ac_fn_c_try_cpp
1870
1871 # ac_fn_c_try_run LINENO
1872 # ----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1874 # that executables *can* be run.
1875 ac_fn_c_try_run ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881   *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885   (eval "$ac_link") 2>&5
1886   ac_status=$?
1887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1889   { { case "(($ac_try" in
1890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891   *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895   (eval "$ac_try") 2>&5
1896   ac_status=$?
1897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898   test $ac_status = 0; }; }; then :
1899   ac_retval=0
1900 else
1901   $as_echo "$as_me: program exited with status $ac_status" >&5
1902        $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905        ac_retval=$ac_status
1906 fi
1907   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909   as_fn_set_status $ac_retval
1910
1911 } # ac_fn_c_try_run
1912
1913 # ac_fn_c_check_func LINENO FUNC VAR
1914 # ----------------------------------
1915 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1916 ac_fn_c_check_func ()
1917 {
1918   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if eval "test \"\${$3+set}\"" = set; then :
1922   $as_echo_n "(cached) " >&6
1923 else
1924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h.  */
1926 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1928 #define $2 innocuous_$2
1929
1930 /* System header to define __stub macros and hopefully few prototypes,
1931     which can conflict with char $2 (); below.
1932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1933     <limits.h> exists even on freestanding compilers.  */
1934
1935 #ifdef __STDC__
1936 # include <limits.h>
1937 #else
1938 # include <assert.h>
1939 #endif
1940
1941 #undef $2
1942
1943 /* Override any GCC internal prototype to avoid an error.
1944    Use char because int might match the return type of a GCC
1945    builtin and then its argument prototype would still apply.  */
1946 #ifdef __cplusplus
1947 extern "C"
1948 #endif
1949 char $2 ();
1950 /* The GNU C library defines this for functions which it implements
1951     to always fail with ENOSYS.  Some functions are actually named
1952     something starting with __ and the normal name is an alias.  */
1953 #if defined __stub_$2 || defined __stub___$2
1954 choke me
1955 #endif
1956
1957 int
1958 main ()
1959 {
1960 return $2 ();
1961   ;
1962   return 0;
1963 }
1964 _ACEOF
1965 if ac_fn_c_try_link "$LINENO"; then :
1966   eval "$3=yes"
1967 else
1968   eval "$3=no"
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext \
1971     conftest$ac_exeext conftest.$ac_ext
1972 fi
1973 eval ac_res=\$$3
1974                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977
1978 } # ac_fn_c_check_func
1979
1980 # ac_fn_cxx_try_compile LINENO
1981 # ----------------------------
1982 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1983 ac_fn_cxx_try_compile ()
1984 {
1985   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986   rm -f conftest.$ac_objext
1987   if { { ac_try="$ac_compile"
1988 case "(($ac_try" in
1989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990   *) ac_try_echo=$ac_try;;
1991 esac
1992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993 $as_echo "$ac_try_echo"; } >&5
1994   (eval "$ac_compile") 2>conftest.err
1995   ac_status=$?
1996   if test -s conftest.err; then
1997     grep -v '^ *+' conftest.err >conftest.er1
1998     cat conftest.er1 >&5
1999     mv -f conftest.er1 conftest.err
2000   fi
2001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002   test $ac_status = 0; } && {
2003          test -z "$ac_cxx_werror_flag" ||
2004          test ! -s conftest.err
2005        } && test -s conftest.$ac_objext; then :
2006   ac_retval=0
2007 else
2008   $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2010
2011         ac_retval=1
2012 fi
2013   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014   as_fn_set_status $ac_retval
2015
2016 } # ac_fn_cxx_try_compile
2017
2018 # ac_fn_cxx_try_cpp LINENO
2019 # ------------------------
2020 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2021 ac_fn_cxx_try_cpp ()
2022 {
2023   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024   if { { ac_try="$ac_cpp conftest.$ac_ext"
2025 case "(($ac_try" in
2026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027   *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2032   ac_status=$?
2033   if test -s conftest.err; then
2034     grep -v '^ *+' conftest.err >conftest.er1
2035     cat conftest.er1 >&5
2036     mv -f conftest.er1 conftest.err
2037   fi
2038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039   test $ac_status = 0; } > conftest.i && {
2040          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2041          test ! -s conftest.err
2042        }; then :
2043   ac_retval=0
2044 else
2045   $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048     ac_retval=1
2049 fi
2050   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051   as_fn_set_status $ac_retval
2052
2053 } # ac_fn_cxx_try_cpp
2054
2055 # ac_fn_cxx_try_link LINENO
2056 # -------------------------
2057 # Try to link conftest.$ac_ext, and return whether this succeeded.
2058 ac_fn_cxx_try_link ()
2059 {
2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061   rm -f conftest.$ac_objext conftest$ac_exeext
2062   if { { ac_try="$ac_link"
2063 case "(($ac_try" in
2064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065   *) ac_try_echo=$ac_try;;
2066 esac
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069   (eval "$ac_link") 2>conftest.err
2070   ac_status=$?
2071   if test -s conftest.err; then
2072     grep -v '^ *+' conftest.err >conftest.er1
2073     cat conftest.er1 >&5
2074     mv -f conftest.er1 conftest.err
2075   fi
2076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077   test $ac_status = 0; } && {
2078          test -z "$ac_cxx_werror_flag" ||
2079          test ! -s conftest.err
2080        } && test -s conftest$ac_exeext && {
2081          test "$cross_compiling" = yes ||
2082          $as_test_x conftest$ac_exeext
2083        }; then :
2084   ac_retval=0
2085 else
2086   $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2088
2089         ac_retval=1
2090 fi
2091   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2092   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2093   # interfere with the next link command; also delete a directory that is
2094   # left behind by Apple's compiler.  We do this before executing the actions.
2095   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2097   as_fn_set_status $ac_retval
2098
2099 } # ac_fn_cxx_try_link
2100
2101 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2102 # -------------------------------------------
2103 # Tests whether TYPE exists after having included INCLUDES, setting cache
2104 # variable VAR accordingly.
2105 ac_fn_c_check_type ()
2106 {
2107   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if eval "test \"\${$3+set}\"" = set; then :
2111   $as_echo_n "(cached) " >&6
2112 else
2113   eval "$3=no"
2114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h.  */
2116 $4
2117 int
2118 main ()
2119 {
2120 if (sizeof ($2))
2121          return 0;
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h.  */
2129 $4
2130 int
2131 main ()
2132 {
2133 if (sizeof (($2)))
2134             return 0;
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140
2141 else
2142   eval "$3=yes"
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 fi
2148 eval ac_res=\$$3
2149                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2152
2153 } # ac_fn_c_check_type
2154
2155 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2156 # --------------------------------------------
2157 # Tries to find the compile-time value of EXPR in a program that includes
2158 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2159 # computed
2160 ac_fn_c_compute_int ()
2161 {
2162   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163   if test "$cross_compiling" = yes; then
2164     # Depending upon the size, compute the lo and hi bounds.
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h.  */
2167 $4
2168 int
2169 main ()
2170 {
2171 static int test_array [1 - 2 * !(($2) >= 0)];
2172 test_array [0] = 0
2173
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179   ac_lo=0 ac_mid=0
2180   while :; do
2181     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h.  */
2183 $4
2184 int
2185 main ()
2186 {
2187 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2188 test_array [0] = 0
2189
2190   ;
2191   return 0;
2192 }
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195   ac_hi=$ac_mid; break
2196 else
2197   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2198                         if test $ac_lo -le $ac_mid; then
2199                           ac_lo= ac_hi=
2200                           break
2201                         fi
2202                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205   done
2206 else
2207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h.  */
2209 $4
2210 int
2211 main ()
2212 {
2213 static int test_array [1 - 2 * !(($2) < 0)];
2214 test_array [0] = 0
2215
2216   ;
2217   return 0;
2218 }
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221   ac_hi=-1 ac_mid=-1
2222   while :; do
2223     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h.  */
2225 $4
2226 int
2227 main ()
2228 {
2229 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2230 test_array [0] = 0
2231
2232   ;
2233   return 0;
2234 }
2235 _ACEOF
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237   ac_lo=$ac_mid; break
2238 else
2239   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2240                         if test $ac_mid -le $ac_hi; then
2241                           ac_lo= ac_hi=
2242                           break
2243                         fi
2244                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2245 fi
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247   done
2248 else
2249   ac_lo= ac_hi=
2250 fi
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 # Binary search between lo and hi bounds.
2255 while test "x$ac_lo" != "x$ac_hi"; do
2256   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2259 $4
2260 int
2261 main ()
2262 {
2263 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2264 test_array [0] = 0
2265
2266   ;
2267   return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271   ac_hi=$ac_mid
2272 else
2273   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 done
2277 case $ac_lo in #((
2278 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2279 '') ac_retval=1 ;;
2280 esac
2281   else
2282     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h.  */
2284 $4
2285 static long int longval () { return $2; }
2286 static unsigned long int ulongval () { return $2; }
2287 #include <stdio.h>
2288 #include <stdlib.h>
2289 int
2290 main ()
2291 {
2292
2293   FILE *f = fopen ("conftest.val", "w");
2294   if (! f)
2295     return 1;
2296   if (($2) < 0)
2297     {
2298       long int i = longval ();
2299       if (i != ($2))
2300         return 1;
2301       fprintf (f, "%ld", i);
2302     }
2303   else
2304     {
2305       unsigned long int i = ulongval ();
2306       if (i != ($2))
2307         return 1;
2308       fprintf (f, "%lu", i);
2309     }
2310   /* Do not output a trailing newline, as this causes \r\n confusion
2311      on some platforms.  */
2312   return ferror (f) || fclose (f) != 0;
2313
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 if ac_fn_c_try_run "$LINENO"; then :
2319   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2320 else
2321   ac_retval=1
2322 fi
2323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2324   conftest.$ac_objext conftest.beam conftest.$ac_ext
2325 rm -f conftest.val
2326
2327   fi
2328   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2329   as_fn_set_status $ac_retval
2330
2331 } # ac_fn_c_compute_int
2332
2333 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2334 # -------------------------------------------------------
2335 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2336 # the include files in INCLUDES and setting the cache variable VAR
2337 # accordingly.
2338 ac_fn_c_check_header_mongrel ()
2339 {
2340   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341   if eval "test \"\${$3+set}\"" = set; then :
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if eval "test \"\${$3+set}\"" = set; then :
2345   $as_echo_n "(cached) " >&6
2346 fi
2347 eval ac_res=\$$3
2348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 else
2351   # Is the header compilable?
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2353 $as_echo_n "checking $2 usability... " >&6; }
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h.  */
2356 $4
2357 #include <$2>
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360   ac_header_compiler=yes
2361 else
2362   ac_header_compiler=no
2363 fi
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2366 $as_echo "$ac_header_compiler" >&6; }
2367
2368 # Is the header present?
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2370 $as_echo_n "checking $2 presence... " >&6; }
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h.  */
2373 #include <$2>
2374 _ACEOF
2375 if ac_fn_c_try_cpp "$LINENO"; then :
2376   ac_header_preproc=yes
2377 else
2378   ac_header_preproc=no
2379 fi
2380 rm -f conftest.err conftest.i conftest.$ac_ext
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2382 $as_echo "$ac_header_preproc" >&6; }
2383
2384 # So?  What about this header?
2385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2386   yes:no: )
2387     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2388 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2390 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2391     ;;
2392   no:yes:* )
2393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2394 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2395     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2396 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2397     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2398 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2399     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2400 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2401     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2402 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2403 ( $as_echo "## ------------------------------------------ ##
2404 ## Report this to https://bugs.internet2.edu/ ##
2405 ## ------------------------------------------ ##"
2406      ) | sed "s/^/$as_me: WARNING:     /" >&2
2407     ;;
2408 esac
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if eval "test \"\${$3+set}\"" = set; then :
2412   $as_echo_n "(cached) " >&6
2413 else
2414   eval "$3=\$ac_header_compiler"
2415 fi
2416 eval ac_res=\$$3
2417                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 fi
2420   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2421
2422 } # ac_fn_c_check_header_mongrel
2423
2424 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2425 # ---------------------------------------------------------
2426 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2427 # the include files in INCLUDES and setting the cache variable VAR
2428 # accordingly.
2429 ac_fn_cxx_check_header_mongrel ()
2430 {
2431   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432   if eval "test \"\${$3+set}\"" = set; then :
2433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2434 $as_echo_n "checking for $2... " >&6; }
2435 if eval "test \"\${$3+set}\"" = set; then :
2436   $as_echo_n "(cached) " >&6
2437 fi
2438 eval ac_res=\$$3
2439                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2441 else
2442   # Is the header compilable?
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2444 $as_echo_n "checking $2 usability... " >&6; }
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h.  */
2447 $4
2448 #include <$2>
2449 _ACEOF
2450 if ac_fn_cxx_try_compile "$LINENO"; then :
2451   ac_header_compiler=yes
2452 else
2453   ac_header_compiler=no
2454 fi
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2457 $as_echo "$ac_header_compiler" >&6; }
2458
2459 # Is the header present?
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2461 $as_echo_n "checking $2 presence... " >&6; }
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h.  */
2464 #include <$2>
2465 _ACEOF
2466 if ac_fn_cxx_try_cpp "$LINENO"; then :
2467   ac_header_preproc=yes
2468 else
2469   ac_header_preproc=no
2470 fi
2471 rm -f conftest.err conftest.i conftest.$ac_ext
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2473 $as_echo "$ac_header_preproc" >&6; }
2474
2475 # So?  What about this header?
2476 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2477   yes:no: )
2478     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2479 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2480     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2481 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2482     ;;
2483   no:yes:* )
2484     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2485 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2486     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2487 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2488     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2489 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2490     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2491 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2492     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2493 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2494 ( $as_echo "## ------------------------------------------ ##
2495 ## Report this to https://bugs.internet2.edu/ ##
2496 ## ------------------------------------------ ##"
2497      ) | sed "s/^/$as_me: WARNING:     /" >&2
2498     ;;
2499 esac
2500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2501 $as_echo_n "checking for $2... " >&6; }
2502 if eval "test \"\${$3+set}\"" = set; then :
2503   $as_echo_n "(cached) " >&6
2504 else
2505   eval "$3=\$ac_header_compiler"
2506 fi
2507 eval ac_res=\$$3
2508                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 fi
2511   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2512
2513 } # ac_fn_cxx_check_header_mongrel
2514
2515 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2516 # -----------------------------------------------
2517 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2518 # accordingly.
2519 ac_fn_cxx_check_decl ()
2520 {
2521   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522   as_decl_name=`echo $2|sed 's/ *(.*//'`
2523   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2525 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2526 if eval "test \"\${$3+set}\"" = set; then :
2527   $as_echo_n "(cached) " >&6
2528 else
2529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h.  */
2531 $4
2532 int
2533 main ()
2534 {
2535 #ifndef $as_decl_name
2536 #ifdef __cplusplus
2537   (void) $as_decl_use;
2538 #else
2539   (void) $as_decl_name;
2540 #endif
2541 #endif
2542
2543   ;
2544   return 0;
2545 }
2546 _ACEOF
2547 if ac_fn_cxx_try_compile "$LINENO"; then :
2548   eval "$3=yes"
2549 else
2550   eval "$3=no"
2551 fi
2552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 fi
2554 eval ac_res=\$$3
2555                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2558
2559 } # ac_fn_cxx_check_decl
2560
2561 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2562 # ---------------------------------------------
2563 # Tests whether TYPE exists after having included INCLUDES, setting cache
2564 # variable VAR accordingly.
2565 ac_fn_cxx_check_type ()
2566 {
2567   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2569 $as_echo_n "checking for $2... " >&6; }
2570 if eval "test \"\${$3+set}\"" = set; then :
2571   $as_echo_n "(cached) " >&6
2572 else
2573   eval "$3=no"
2574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h.  */
2576 $4
2577 int
2578 main ()
2579 {
2580 if (sizeof ($2))
2581          return 0;
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 if ac_fn_cxx_try_compile "$LINENO"; then :
2587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h.  */
2589 $4
2590 int
2591 main ()
2592 {
2593 if (sizeof (($2)))
2594             return 0;
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 if ac_fn_cxx_try_compile "$LINENO"; then :
2600
2601 else
2602   eval "$3=yes"
2603 fi
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 fi
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 fi
2608 eval ac_res=\$$3
2609                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2610 $as_echo "$ac_res" >&6; }
2611   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2612
2613 } # ac_fn_cxx_check_type
2614 cat >config.log <<_ACEOF
2615 This file contains any messages produced by compilers while
2616 running configure, to aid debugging if configure makes a mistake.
2617
2618 It was created by xmltooling $as_me 1.4, which was
2619 generated by GNU Autoconf 2.67.  Invocation command line was
2620
2621   $ $0 $@
2622
2623 _ACEOF
2624 exec 5>>config.log
2625 {
2626 cat <<_ASUNAME
2627 ## --------- ##
2628 ## Platform. ##
2629 ## --------- ##
2630
2631 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2632 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2633 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2634 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2635 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2636
2637 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2638 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2639
2640 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2641 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2642 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2643 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2644 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2645 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2646 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2647
2648 _ASUNAME
2649
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655     $as_echo "PATH: $as_dir"
2656   done
2657 IFS=$as_save_IFS
2658
2659 } >&5
2660
2661 cat >&5 <<_ACEOF
2662
2663
2664 ## ----------- ##
2665 ## Core tests. ##
2666 ## ----------- ##
2667
2668 _ACEOF
2669
2670
2671 # Keep a trace of the command line.
2672 # Strip out --no-create and --no-recursion so they do not pile up.
2673 # Strip out --silent because we don't want to record it for future runs.
2674 # Also quote any args containing shell meta-characters.
2675 # Make two passes to allow for proper duplicate-argument suppression.
2676 ac_configure_args=
2677 ac_configure_args0=
2678 ac_configure_args1=
2679 ac_must_keep_next=false
2680 for ac_pass in 1 2
2681 do
2682   for ac_arg
2683   do
2684     case $ac_arg in
2685     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2686     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2687     | -silent | --silent | --silen | --sile | --sil)
2688       continue ;;
2689     *\'*)
2690       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2691     esac
2692     case $ac_pass in
2693     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2694     2)
2695       as_fn_append ac_configure_args1 " '$ac_arg'"
2696       if test $ac_must_keep_next = true; then
2697         ac_must_keep_next=false # Got value, back to normal.
2698       else
2699         case $ac_arg in
2700           *=* | --config-cache | -C | -disable-* | --disable-* \
2701           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2702           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2703           | -with-* | --with-* | -without-* | --without-* | --x)
2704             case "$ac_configure_args0 " in
2705               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2706             esac
2707             ;;
2708           -* ) ac_must_keep_next=true ;;
2709         esac
2710       fi
2711       as_fn_append ac_configure_args " '$ac_arg'"
2712       ;;
2713     esac
2714   done
2715 done
2716 { ac_configure_args0=; unset ac_configure_args0;}
2717 { ac_configure_args1=; unset ac_configure_args1;}
2718
2719 # When interrupted or exit'd, cleanup temporary files, and complete
2720 # config.log.  We remove comments because anyway the quotes in there
2721 # would cause problems or look ugly.
2722 # WARNING: Use '\'' to represent an apostrophe within the trap.
2723 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2724 trap 'exit_status=$?
2725   # Save into config.log some information that might help in debugging.
2726   {
2727     echo
2728
2729     $as_echo "## ---------------- ##
2730 ## Cache variables. ##
2731 ## ---------------- ##"
2732     echo
2733     # The following way of writing the cache mishandles newlines in values,
2734 (
2735   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2736     eval ac_val=\$$ac_var
2737     case $ac_val in #(
2738     *${as_nl}*)
2739       case $ac_var in #(
2740       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2741 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2742       esac
2743       case $ac_var in #(
2744       _ | IFS | as_nl) ;; #(
2745       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2746       *) { eval $ac_var=; unset $ac_var;} ;;
2747       esac ;;
2748     esac
2749   done
2750   (set) 2>&1 |
2751     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2752     *${as_nl}ac_space=\ *)
2753       sed -n \
2754         "s/'\''/'\''\\\\'\'''\''/g;
2755           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2756       ;; #(
2757     *)
2758       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2759       ;;
2760     esac |
2761     sort
2762 )
2763     echo
2764
2765     $as_echo "## ----------------- ##
2766 ## Output variables. ##
2767 ## ----------------- ##"
2768     echo
2769     for ac_var in $ac_subst_vars
2770     do
2771       eval ac_val=\$$ac_var
2772       case $ac_val in
2773       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2774       esac
2775       $as_echo "$ac_var='\''$ac_val'\''"
2776     done | sort
2777     echo
2778
2779     if test -n "$ac_subst_files"; then
2780       $as_echo "## ------------------- ##
2781 ## File substitutions. ##
2782 ## ------------------- ##"
2783       echo
2784       for ac_var in $ac_subst_files
2785       do
2786         eval ac_val=\$$ac_var
2787         case $ac_val in
2788         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2789         esac
2790         $as_echo "$ac_var='\''$ac_val'\''"
2791       done | sort
2792       echo
2793     fi
2794
2795     if test -s confdefs.h; then
2796       $as_echo "## ----------- ##
2797 ## confdefs.h. ##
2798 ## ----------- ##"
2799       echo
2800       cat confdefs.h
2801       echo
2802     fi
2803     test "$ac_signal" != 0 &&
2804       $as_echo "$as_me: caught signal $ac_signal"
2805     $as_echo "$as_me: exit $exit_status"
2806   } >&5
2807   rm -f core *.core core.conftest.* &&
2808     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2809     exit $exit_status
2810 ' 0
2811 for ac_signal in 1 2 13 15; do
2812   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2813 done
2814 ac_signal=0
2815
2816 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2817 rm -f -r conftest* confdefs.h
2818
2819 $as_echo "/* confdefs.h */" > confdefs.h
2820
2821 # Predefined preprocessor variables.
2822
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_NAME "$PACKAGE_NAME"
2825 _ACEOF
2826
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2829 _ACEOF
2830
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2833 _ACEOF
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_STRING "$PACKAGE_STRING"
2837 _ACEOF
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2841 _ACEOF
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_URL "$PACKAGE_URL"
2845 _ACEOF
2846
2847
2848 # Let the site file select an alternate cache file if it wants to.
2849 # Prefer an explicitly selected file to automatically selected ones.
2850 ac_site_file1=NONE
2851 ac_site_file2=NONE
2852 if test -n "$CONFIG_SITE"; then
2853   # We do not want a PATH search for config.site.
2854   case $CONFIG_SITE in #((
2855     -*)  ac_site_file1=./$CONFIG_SITE;;
2856     */*) ac_site_file1=$CONFIG_SITE;;
2857     *)   ac_site_file1=./$CONFIG_SITE;;
2858   esac
2859 elif test "x$prefix" != xNONE; then
2860   ac_site_file1=$prefix/share/config.site
2861   ac_site_file2=$prefix/etc/config.site
2862 else
2863   ac_site_file1=$ac_default_prefix/share/config.site
2864   ac_site_file2=$ac_default_prefix/etc/config.site
2865 fi
2866 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2867 do
2868   test "x$ac_site_file" = xNONE && continue
2869   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2870     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2871 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2872     sed 's/^/| /' "$ac_site_file" >&5
2873     . "$ac_site_file" \
2874       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876 as_fn_error $? "failed to load site script $ac_site_file
2877 See \`config.log' for more details" "$LINENO" 5 ; }
2878   fi
2879 done
2880
2881 if test -r "$cache_file"; then
2882   # Some versions of bash will fail to source /dev/null (special files
2883   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2884   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2885     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2886 $as_echo "$as_me: loading cache $cache_file" >&6;}
2887     case $cache_file in
2888       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2889       *)                      . "./$cache_file";;
2890     esac
2891   fi
2892 else
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2894 $as_echo "$as_me: creating cache $cache_file" >&6;}
2895   >$cache_file
2896 fi
2897
2898 # Check that the precious variables saved in the cache have kept the same
2899 # value.
2900 ac_cache_corrupted=false
2901 for ac_var in $ac_precious_vars; do
2902   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2903   eval ac_new_set=\$ac_env_${ac_var}_set
2904   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2905   eval ac_new_val=\$ac_env_${ac_var}_value
2906   case $ac_old_set,$ac_new_set in
2907     set,)
2908       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2909 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2910       ac_cache_corrupted=: ;;
2911     ,set)
2912       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2913 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2914       ac_cache_corrupted=: ;;
2915     ,);;
2916     *)
2917       if test "x$ac_old_val" != "x$ac_new_val"; then
2918         # differences in whitespace do not lead to failure.
2919         ac_old_val_w=`echo x $ac_old_val`
2920         ac_new_val_w=`echo x $ac_new_val`
2921         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2922           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2923 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2924           ac_cache_corrupted=:
2925         else
2926           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2927 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2928           eval $ac_var=\$ac_old_val
2929         fi
2930         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2931 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2932         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2933 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2934       fi;;
2935   esac
2936   # Pass precious variables to config.status.
2937   if test "$ac_new_set" = set; then
2938     case $ac_new_val in
2939     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2940     *) ac_arg=$ac_var=$ac_new_val ;;
2941     esac
2942     case " $ac_configure_args " in
2943       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2944       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2945     esac
2946   fi
2947 done
2948 if $ac_cache_corrupted; then
2949   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2952 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2953   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2954 fi
2955 ## -------------------- ##
2956 ## Main body of script. ##
2957 ## -------------------- ##
2958
2959 ac_ext=c
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964
2965
2966
2967 ac_aux_dir=
2968 for ac_dir in build-aux "$srcdir"/build-aux; do
2969   if test -f "$ac_dir/install-sh"; then
2970     ac_aux_dir=$ac_dir
2971     ac_install_sh="$ac_aux_dir/install-sh -c"
2972     break
2973   elif test -f "$ac_dir/install.sh"; then
2974     ac_aux_dir=$ac_dir
2975     ac_install_sh="$ac_aux_dir/install.sh -c"
2976     break
2977   elif test -f "$ac_dir/shtool"; then
2978     ac_aux_dir=$ac_dir
2979     ac_install_sh="$ac_aux_dir/shtool install -c"
2980     break
2981   fi
2982 done
2983 if test -z "$ac_aux_dir"; then
2984   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2985 fi
2986
2987 # These three variables are undocumented and unsupported,
2988 # and are intended to be withdrawn in a future Autoconf release.
2989 # They can cause serious problems if a builder's source tree is in a directory
2990 # whose full name contains unusual characters.
2991 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2992 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2993 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2994
2995
2996
2997 am__api_version='1.11'
2998
2999 # Find a good install program.  We prefer a C program (faster),
3000 # so one script is as good as another.  But avoid the broken or
3001 # incompatible versions:
3002 # SysV /etc/install, /usr/sbin/install
3003 # SunOS /usr/etc/install
3004 # IRIX /sbin/install
3005 # AIX /bin/install
3006 # AmigaOS /C/install, which installs bootblocks on floppy discs
3007 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3008 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3009 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3010 # OS/2's system install, which has a completely different semantic
3011 # ./install, which can be erroneously created by make from ./install.sh.
3012 # Reject install programs that cannot install multiple files.
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3014 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3015 if test -z "$INSTALL"; then
3016 if test "${ac_cv_path_install+set}" = set; then :
3017   $as_echo_n "(cached) " >&6
3018 else
3019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022   IFS=$as_save_IFS
3023   test -z "$as_dir" && as_dir=.
3024     # Account for people who put trailing slashes in PATH elements.
3025 case $as_dir/ in #((
3026   ./ | .// | /[cC]/* | \
3027   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3028   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3029   /usr/ucb/* ) ;;
3030   *)
3031     # OSF1 and SCO ODT 3.0 have their own names for install.
3032     # Don't use installbsd from OSF since it installs stuff as root
3033     # by default.
3034     for ac_prog in ginstall scoinst install; do
3035       for ac_exec_ext in '' $ac_executable_extensions; do
3036         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3037           if test $ac_prog = install &&
3038             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3039             # AIX install.  It has an incompatible calling convention.
3040             :
3041           elif test $ac_prog = install &&
3042             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3043             # program-specific install script used by HP pwplus--don't use.
3044             :
3045           else
3046             rm -rf conftest.one conftest.two conftest.dir
3047             echo one > conftest.one
3048             echo two > conftest.two
3049             mkdir conftest.dir
3050             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3051               test -s conftest.one && test -s conftest.two &&
3052               test -s conftest.dir/conftest.one &&
3053               test -s conftest.dir/conftest.two
3054             then
3055               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3056               break 3
3057             fi
3058           fi
3059         fi
3060       done
3061     done
3062     ;;
3063 esac
3064
3065   done
3066 IFS=$as_save_IFS
3067
3068 rm -rf conftest.one conftest.two conftest.dir
3069
3070 fi
3071   if test "${ac_cv_path_install+set}" = set; then
3072     INSTALL=$ac_cv_path_install
3073   else
3074     # As a last resort, use the slow shell script.  Don't cache a
3075     # value for INSTALL within a source directory, because that will
3076     # break other packages using the cache if that directory is
3077     # removed, or if the value is a relative name.
3078     INSTALL=$ac_install_sh
3079   fi
3080 fi
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3082 $as_echo "$INSTALL" >&6; }
3083
3084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3085 # It thinks the first close brace ends the variable substitution.
3086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3087
3088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3089
3090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3091
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3093 $as_echo_n "checking whether build environment is sane... " >&6; }
3094 # Just in case
3095 sleep 1
3096 echo timestamp > conftest.file
3097 # Reject unsafe characters in $srcdir or the absolute working directory
3098 # name.  Accept space and tab only in the latter.
3099 am_lf='
3100 '
3101 case `pwd` in
3102   *[\\\"\#\$\&\'\`$am_lf]*)
3103     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3104 esac
3105 case $srcdir in
3106   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3107     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3108 esac
3109
3110 # Do `set' in a subshell so we don't clobber the current shell's
3111 # arguments.  Must try -L first in case configure is actually a
3112 # symlink; some systems play weird games with the mod time of symlinks
3113 # (eg FreeBSD returns the mod time of the symlink's containing
3114 # directory).
3115 if (
3116    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3117    if test "$*" = "X"; then
3118       # -L didn't work.
3119       set X `ls -t "$srcdir/configure" conftest.file`
3120    fi
3121    rm -f conftest.file
3122    if test "$*" != "X $srcdir/configure conftest.file" \
3123       && test "$*" != "X conftest.file $srcdir/configure"; then
3124
3125       # If neither matched, then we have a broken ls.  This can happen
3126       # if, for instance, CONFIG_SHELL is bash and it inherits a
3127       # broken ls alias from the environment.  This has actually
3128       # happened.  Such a system could not be considered "sane".
3129       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3130 alias in your environment" "$LINENO" 5
3131    fi
3132
3133    test "$2" = conftest.file
3134    )
3135 then
3136    # Ok.
3137    :
3138 else
3139    as_fn_error $? "newly created file is older than distributed files!
3140 Check your system clock" "$LINENO" 5
3141 fi
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3143 $as_echo "yes" >&6; }
3144 test "$program_prefix" != NONE &&
3145   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3146 # Use a double $ so make ignores it.
3147 test "$program_suffix" != NONE &&
3148   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3149 # Double any \ or $.
3150 # By default was `s,x,x', remove it if useless.
3151 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3152 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3153
3154 # expand $ac_aux_dir to an absolute path
3155 am_aux_dir=`cd $ac_aux_dir && pwd`
3156
3157 if test x"${MISSING+set}" != xset; then
3158   case $am_aux_dir in
3159   *\ * | *\     *)
3160     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3161   *)
3162     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3163   esac
3164 fi
3165 # Use eval to expand $SHELL
3166 if eval "$MISSING --run true"; then
3167   am_missing_run="$MISSING --run "
3168 else
3169   am_missing_run=
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3171 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3172 fi
3173
3174 if test x"${install_sh}" != xset; then
3175   case $am_aux_dir in
3176   *\ * | *\     *)
3177     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3178   *)
3179     install_sh="\${SHELL} $am_aux_dir/install-sh"
3180   esac
3181 fi
3182
3183 # Installed binaries are usually stripped using `strip' when the user
3184 # run `make install-strip'.  However `strip' might not be the right
3185 # tool to use in cross-compilation environments, therefore Automake
3186 # will honor the `STRIP' environment variable to overrule this program.
3187 if test "$cross_compiling" != no; then
3188   if test -n "$ac_tool_prefix"; then
3189   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}strip; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_STRIP+set}" = set; then :
3194   $as_echo_n "(cached) " >&6
3195 else
3196   if test -n "$STRIP"; then
3197   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204     for ac_exec_ext in '' $ac_executable_extensions; do
3205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211   done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 STRIP=$ac_cv_prog_STRIP
3217 if test -n "$STRIP"; then
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3219 $as_echo "$STRIP" >&6; }
3220 else
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225
3226 fi
3227 if test -z "$ac_cv_prog_STRIP"; then
3228   ac_ct_STRIP=$STRIP
3229   # Extract the first word of "strip", so it can be a program name with args.
3230 set dummy strip; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3234   $as_echo_n "(cached) " >&6
3235 else
3236   if test -n "$ac_ct_STRIP"; then
3237   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3241 do
3242   IFS=$as_save_IFS
3243   test -z "$as_dir" && as_dir=.
3244     for ac_exec_ext in '' $ac_executable_extensions; do
3245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3246     ac_cv_prog_ac_ct_STRIP="strip"
3247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248     break 2
3249   fi
3250 done
3251   done
3252 IFS=$as_save_IFS
3253
3254 fi
3255 fi
3256 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3257 if test -n "$ac_ct_STRIP"; then
3258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3259 $as_echo "$ac_ct_STRIP" >&6; }
3260 else
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 fi
3264
3265   if test "x$ac_ct_STRIP" = x; then
3266     STRIP=":"
3267   else
3268     case $cross_compiling:$ac_tool_warned in
3269 yes:)
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3272 ac_tool_warned=yes ;;
3273 esac
3274     STRIP=$ac_ct_STRIP
3275   fi
3276 else
3277   STRIP="$ac_cv_prog_STRIP"
3278 fi
3279
3280 fi
3281 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3282
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3284 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3285 if test -z "$MKDIR_P"; then
3286   if test "${ac_cv_path_mkdir+set}" = set; then :
3287   $as_echo_n "(cached) " >&6
3288 else
3289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294     for ac_prog in mkdir gmkdir; do
3295          for ac_exec_ext in '' $ac_executable_extensions; do
3296            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3297            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3298              'mkdir (GNU coreutils) '* | \
3299              'mkdir (coreutils) '* | \
3300              'mkdir (fileutils) '4.1*)
3301                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3302                break 3;;
3303            esac
3304          done
3305        done
3306   done
3307 IFS=$as_save_IFS
3308
3309 fi
3310
3311   test -d ./--version && rmdir ./--version
3312   if test "${ac_cv_path_mkdir+set}" = set; then
3313     MKDIR_P="$ac_cv_path_mkdir -p"
3314   else
3315     # As a last resort, use the slow shell script.  Don't cache a
3316     # value for MKDIR_P within a source directory, because that will
3317     # break other packages using the cache if that directory is
3318     # removed, or if the value is a relative name.
3319     MKDIR_P="$ac_install_sh -d"
3320   fi
3321 fi
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3323 $as_echo "$MKDIR_P" >&6; }
3324
3325 mkdir_p="$MKDIR_P"
3326 case $mkdir_p in
3327   [\\/$]* | ?:[\\/]*) ;;
3328   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3329 esac
3330
3331 for ac_prog in gawk mawk nawk awk
3332 do
3333   # Extract the first word of "$ac_prog", so it can be a program name with args.
3334 set dummy $ac_prog; ac_word=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if test "${ac_cv_prog_AWK+set}" = set; then :
3338   $as_echo_n "(cached) " >&6
3339 else
3340   if test -n "$AWK"; then
3341   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3342 else
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3345 do
3346   IFS=$as_save_IFS
3347   test -z "$as_dir" && as_dir=.
3348     for ac_exec_ext in '' $ac_executable_extensions; do
3349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350     ac_cv_prog_AWK="$ac_prog"
3351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352     break 2
3353   fi
3354 done
3355   done
3356 IFS=$as_save_IFS
3357
3358 fi
3359 fi
3360 AWK=$ac_cv_prog_AWK
3361 if test -n "$AWK"; then
3362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3363 $as_echo "$AWK" >&6; }
3364 else
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 fi
3368
3369
3370   test -n "$AWK" && break
3371 done
3372
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3374 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3375 set x ${MAKE-make}
3376 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3377 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3378   $as_echo_n "(cached) " >&6
3379 else
3380   cat >conftest.make <<\_ACEOF
3381 SHELL = /bin/sh
3382 all:
3383         @echo '@@@%%%=$(MAKE)=@@@%%%'
3384 _ACEOF
3385 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3386 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3387   *@@@%%%=?*=@@@%%%*)
3388     eval ac_cv_prog_make_${ac_make}_set=yes;;
3389   *)
3390     eval ac_cv_prog_make_${ac_make}_set=no;;
3391 esac
3392 rm -f conftest.make
3393 fi
3394 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3396 $as_echo "yes" >&6; }
3397   SET_MAKE=
3398 else
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3401   SET_MAKE="MAKE=${MAKE-make}"
3402 fi
3403
3404 rm -rf .tst 2>/dev/null
3405 mkdir .tst 2>/dev/null
3406 if test -d .tst; then
3407   am__leading_dot=.
3408 else
3409   am__leading_dot=_
3410 fi
3411 rmdir .tst 2>/dev/null
3412
3413 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3414   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3415   # is not polluted with repeated "-I."
3416   am__isrc=' -I$(srcdir)'
3417   # test to see if srcdir already configured
3418   if test -f $srcdir/config.status; then
3419     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3420   fi
3421 fi
3422
3423 # test whether we have cygpath
3424 if test -z "$CYGPATH_W"; then
3425   if (cygpath --version) >/dev/null 2>/dev/null; then
3426     CYGPATH_W='cygpath -w'
3427   else
3428     CYGPATH_W=echo
3429   fi
3430 fi
3431
3432
3433 # Define the identity of the package.
3434  PACKAGE='xmltooling'
3435  VERSION='1.4'
3436
3437
3438 cat >>confdefs.h <<_ACEOF
3439 #define PACKAGE "$PACKAGE"
3440 _ACEOF
3441
3442
3443 cat >>confdefs.h <<_ACEOF
3444 #define VERSION "$VERSION"
3445 _ACEOF
3446
3447 # Some tools Automake needs.
3448
3449 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3450
3451
3452 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3453
3454
3455 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3456
3457
3458 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3459
3460
3461 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3462
3463 # We need awk for the "check" target.  The system "awk" is bad on
3464 # some platforms.
3465 # Always define AMTAR for backward compatibility.
3466
3467 AMTAR=${AMTAR-"${am_missing_run}tar"}
3468
3469 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3470
3471
3472
3473
3474
3475 # Check whether --enable-static was given.
3476 if test "${enable_static+set}" = set; then :
3477   enableval=$enable_static; p=${PACKAGE-default}
3478     case $enableval in
3479     yes) enable_static=yes ;;
3480     no) enable_static=no ;;
3481     *)
3482      enable_static=no
3483       # Look at the argument we got.  We use all the common list separators.
3484       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3485       for pkg in $enableval; do
3486         IFS="$lt_save_ifs"
3487         if test "X$pkg" = "X$p"; then
3488           enable_static=yes
3489         fi
3490       done
3491       IFS="$lt_save_ifs"
3492       ;;
3493     esac
3494 else
3495   enable_static=no
3496 fi
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506 case `pwd` in
3507   *\ * | *\     *)
3508     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3509 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3510 esac
3511
3512
3513
3514 macro_version='2.2.6b'
3515 macro_revision='1.3017'
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529 ltmain="$ac_aux_dir/ltmain.sh"
3530
3531 # Make sure we can run config.sub.
3532 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3533   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3534
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3536 $as_echo_n "checking build system type... " >&6; }
3537 if test "${ac_cv_build+set}" = set; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   ac_build_alias=$build_alias
3541 test "x$ac_build_alias" = x &&
3542   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3543 test "x$ac_build_alias" = x &&
3544   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3545 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3546   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3547
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3550 $as_echo "$ac_cv_build" >&6; }
3551 case $ac_cv_build in
3552 *-*-*) ;;
3553 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3554 esac
3555 build=$ac_cv_build
3556 ac_save_IFS=$IFS; IFS='-'
3557 set x $ac_cv_build
3558 shift
3559 build_cpu=$1
3560 build_vendor=$2
3561 shift; shift
3562 # Remember, the first character of IFS is used to create $*,
3563 # except with old shells:
3564 build_os=$*
3565 IFS=$ac_save_IFS
3566 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3567
3568
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3570 $as_echo_n "checking host system type... " >&6; }
3571 if test "${ac_cv_host+set}" = set; then :
3572   $as_echo_n "(cached) " >&6
3573 else
3574   if test "x$host_alias" = x; then
3575   ac_cv_host=$ac_cv_build
3576 else
3577   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3578     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3579 fi
3580
3581 fi
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3583 $as_echo "$ac_cv_host" >&6; }
3584 case $ac_cv_host in
3585 *-*-*) ;;
3586 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3587 esac
3588 host=$ac_cv_host
3589 ac_save_IFS=$IFS; IFS='-'
3590 set x $ac_cv_host
3591 shift
3592 host_cpu=$1
3593 host_vendor=$2
3594 shift; shift
3595 # Remember, the first character of IFS is used to create $*,
3596 # except with old shells:
3597 host_os=$*
3598 IFS=$ac_save_IFS
3599 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3600
3601
3602 DEPDIR="${am__leading_dot}deps"
3603
3604 ac_config_commands="$ac_config_commands depfiles"
3605
3606
3607 am_make=${MAKE-make}
3608 cat > confinc << 'END'
3609 am__doit:
3610         @echo this is the am__doit target
3611 .PHONY: am__doit
3612 END
3613 # If we don't find an include directive, just comment out the code.
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3615 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3616 am__include="#"
3617 am__quote=
3618 _am_result=none
3619 # First try GNU make style include.
3620 echo "include confinc" > confmf
3621 # Ignore all kinds of additional output from `make'.
3622 case `$am_make -s -f confmf 2> /dev/null` in #(
3623 *the\ am__doit\ target*)
3624   am__include=include
3625   am__quote=
3626   _am_result=GNU
3627   ;;
3628 esac
3629 # Now try BSD make style include.
3630 if test "$am__include" = "#"; then
3631    echo '.include "confinc"' > confmf
3632    case `$am_make -s -f confmf 2> /dev/null` in #(
3633    *the\ am__doit\ target*)
3634      am__include=.include
3635      am__quote="\""
3636      _am_result=BSD
3637      ;;
3638    esac
3639 fi
3640
3641
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3643 $as_echo "$_am_result" >&6; }
3644 rm -f confinc confmf
3645
3646 # Check whether --enable-dependency-tracking was given.
3647 if test "${enable_dependency_tracking+set}" = set; then :
3648   enableval=$enable_dependency_tracking;
3649 fi
3650
3651 if test "x$enable_dependency_tracking" != xno; then
3652   am_depcomp="$ac_aux_dir/depcomp"
3653   AMDEPBACKSLASH='\'
3654 fi
3655  if test "x$enable_dependency_tracking" != xno; then
3656   AMDEP_TRUE=
3657   AMDEP_FALSE='#'
3658 else
3659   AMDEP_TRUE='#'
3660   AMDEP_FALSE=
3661 fi
3662
3663
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669 if test -n "$ac_tool_prefix"; then
3670   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3671 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 $as_echo_n "checking for $ac_word... " >&6; }
3674 if test "${ac_cv_prog_CC+set}" = set; then :
3675   $as_echo_n "(cached) " >&6
3676 else
3677   if test -n "$CC"; then
3678   ac_cv_prog_CC="$CC" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685     for ac_exec_ext in '' $ac_executable_extensions; do
3686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3687     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689     break 2
3690   fi
3691 done
3692   done
3693 IFS=$as_save_IFS
3694
3695 fi
3696 fi
3697 CC=$ac_cv_prog_CC
3698 if test -n "$CC"; then
3699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3700 $as_echo "$CC" >&6; }
3701 else
3702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3704 fi
3705
3706
3707 fi
3708 if test -z "$ac_cv_prog_CC"; then
3709   ac_ct_CC=$CC
3710   # Extract the first word of "gcc", so it can be a program name with args.
3711 set dummy gcc; ac_word=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3715   $as_echo_n "(cached) " >&6
3716 else
3717   if test -n "$ac_ct_CC"; then
3718   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723   IFS=$as_save_IFS
3724   test -z "$as_dir" && as_dir=.
3725     for ac_exec_ext in '' $ac_executable_extensions; do
3726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727     ac_cv_prog_ac_ct_CC="gcc"
3728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729     break 2
3730   fi
3731 done
3732   done
3733 IFS=$as_save_IFS
3734
3735 fi
3736 fi
3737 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3738 if test -n "$ac_ct_CC"; then
3739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3740 $as_echo "$ac_ct_CC" >&6; }
3741 else
3742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3744 fi
3745
3746   if test "x$ac_ct_CC" = x; then
3747     CC=""
3748   else
3749     case $cross_compiling:$ac_tool_warned in
3750 yes:)
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3753 ac_tool_warned=yes ;;
3754 esac
3755     CC=$ac_ct_CC
3756   fi
3757 else
3758   CC="$ac_cv_prog_CC"
3759 fi
3760
3761 if test -z "$CC"; then
3762           if test -n "$ac_tool_prefix"; then
3763     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3764 set dummy ${ac_tool_prefix}cc; ac_word=$2
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766 $as_echo_n "checking for $ac_word... " >&6; }
3767 if test "${ac_cv_prog_CC+set}" = set; then :
3768   $as_echo_n "(cached) " >&6
3769 else
3770   if test -n "$CC"; then
3771   ac_cv_prog_CC="$CC" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776   IFS=$as_save_IFS
3777   test -z "$as_dir" && as_dir=.
3778     for ac_exec_ext in '' $ac_executable_extensions; do
3779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3780     ac_cv_prog_CC="${ac_tool_prefix}cc"
3781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782     break 2
3783   fi
3784 done
3785   done
3786 IFS=$as_save_IFS
3787
3788 fi
3789 fi
3790 CC=$ac_cv_prog_CC
3791 if test -n "$CC"; then
3792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3793 $as_echo "$CC" >&6; }
3794 else
3795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 $as_echo "no" >&6; }
3797 fi
3798
3799
3800   fi
3801 fi
3802 if test -z "$CC"; then
3803   # Extract the first word of "cc", so it can be a program name with args.
3804 set dummy cc; ac_word=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if test "${ac_cv_prog_CC+set}" = set; then :
3808   $as_echo_n "(cached) " >&6
3809 else
3810   if test -n "$CC"; then
3811   ac_cv_prog_CC="$CC" # Let the user override the test.
3812 else
3813   ac_prog_rejected=no
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3816 do
3817   IFS=$as_save_IFS
3818   test -z "$as_dir" && as_dir=.
3819     for ac_exec_ext in '' $ac_executable_extensions; do
3820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3821     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3822        ac_prog_rejected=yes
3823        continue
3824      fi
3825     ac_cv_prog_CC="cc"
3826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827     break 2
3828   fi
3829 done
3830   done
3831 IFS=$as_save_IFS
3832
3833 if test $ac_prog_rejected = yes; then
3834   # We found a bogon in the path, so make sure we never use it.
3835   set dummy $ac_cv_prog_CC
3836   shift
3837   if test $# != 0; then
3838     # We chose a different compiler from the bogus one.
3839     # However, it has the same basename, so the bogon will be chosen
3840     # first if we set CC to just the basename; use the full file name.
3841     shift
3842     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3843   fi
3844 fi
3845 fi
3846 fi
3847 CC=$ac_cv_prog_CC
3848 if test -n "$CC"; then
3849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3850 $as_echo "$CC" >&6; }
3851 else
3852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 $as_echo "no" >&6; }
3854 fi
3855
3856
3857 fi
3858 if test -z "$CC"; then
3859   if test -n "$ac_tool_prefix"; then
3860   for ac_prog in cl.exe
3861   do
3862     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 $as_echo_n "checking for $ac_word... " >&6; }
3866 if test "${ac_cv_prog_CC+set}" = set; then :
3867   $as_echo_n "(cached) " >&6
3868 else
3869   if test -n "$CC"; then
3870   ac_cv_prog_CC="$CC" # Let the user override the test.
3871 else
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875   IFS=$as_save_IFS
3876   test -z "$as_dir" && as_dir=.
3877     for ac_exec_ext in '' $ac_executable_extensions; do
3878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3879     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881     break 2
3882   fi
3883 done
3884   done
3885 IFS=$as_save_IFS
3886
3887 fi
3888 fi
3889 CC=$ac_cv_prog_CC
3890 if test -n "$CC"; then
3891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3892 $as_echo "$CC" >&6; }
3893 else
3894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 $as_echo "no" >&6; }
3896 fi
3897
3898
3899     test -n "$CC" && break
3900   done
3901 fi
3902 if test -z "$CC"; then
3903   ac_ct_CC=$CC
3904   for ac_prog in cl.exe
3905 do
3906   # Extract the first word of "$ac_prog", so it can be a program name with args.
3907 set dummy $ac_prog; ac_word=$2
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3911   $as_echo_n "(cached) " >&6
3912 else
3913   if test -n "$ac_ct_CC"; then
3914   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3915 else
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3918 do
3919   IFS=$as_save_IFS
3920   test -z "$as_dir" && as_dir=.
3921     for ac_exec_ext in '' $ac_executable_extensions; do
3922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923     ac_cv_prog_ac_ct_CC="$ac_prog"
3924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925     break 2
3926   fi
3927 done
3928   done
3929 IFS=$as_save_IFS
3930
3931 fi
3932 fi
3933 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3934 if test -n "$ac_ct_CC"; then
3935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3936 $as_echo "$ac_ct_CC" >&6; }
3937 else
3938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3940 fi
3941
3942
3943   test -n "$ac_ct_CC" && break
3944 done
3945
3946   if test "x$ac_ct_CC" = x; then
3947     CC=""
3948   else
3949     case $cross_compiling:$ac_tool_warned in
3950 yes:)
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3953 ac_tool_warned=yes ;;
3954 esac
3955     CC=$ac_ct_CC
3956   fi
3957 fi
3958
3959 fi
3960
3961
3962 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3964 as_fn_error $? "no acceptable C compiler found in \$PATH
3965 See \`config.log' for more details" "$LINENO" 5 ; }
3966
3967 # Provide some information about the compiler.
3968 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3969 set X $ac_compile
3970 ac_compiler=$2
3971 for ac_option in --version -v -V -qversion; do
3972   { { ac_try="$ac_compiler $ac_option >&5"
3973 case "(($ac_try" in
3974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975   *) ac_try_echo=$ac_try;;
3976 esac
3977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978 $as_echo "$ac_try_echo"; } >&5
3979   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3980   ac_status=$?
3981   if test -s conftest.err; then
3982     sed '10a\
3983 ... rest of stderr output deleted ...
3984          10q' conftest.err >conftest.er1
3985     cat conftest.er1 >&5
3986   fi
3987   rm -f conftest.er1 conftest.err
3988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989   test $ac_status = 0; }
3990 done
3991
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h.  */
3994
3995 int
3996 main ()
3997 {
3998
3999   ;
4000   return 0;
4001 }
4002 _ACEOF
4003 ac_clean_files_save=$ac_clean_files
4004 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4005 # Try to create an executable without -o first, disregard a.out.
4006 # It will help us diagnose broken compilers, and finding out an intuition
4007 # of exeext.
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4009 $as_echo_n "checking whether the C compiler works... " >&6; }
4010 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4011
4012 # The possible output files:
4013 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4014
4015 ac_rmfiles=
4016 for ac_file in $ac_files
4017 do
4018   case $ac_file in
4019     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4020     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4021   esac
4022 done
4023 rm -f $ac_rmfiles
4024
4025 if { { ac_try="$ac_link_default"
4026 case "(($ac_try" in
4027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028   *) ac_try_echo=$ac_try;;
4029 esac
4030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4031 $as_echo "$ac_try_echo"; } >&5
4032   (eval "$ac_link_default") 2>&5
4033   ac_status=$?
4034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4035   test $ac_status = 0; }; then :
4036   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4037 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4038 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4039 # so that the user can short-circuit this test for compilers unknown to
4040 # Autoconf.
4041 for ac_file in $ac_files ''
4042 do
4043   test -f "$ac_file" || continue
4044   case $ac_file in
4045     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4046         ;;
4047     [ab].out )
4048         # We found the default executable, but exeext='' is most
4049         # certainly right.
4050         break;;
4051     *.* )
4052         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4053         then :; else
4054            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4055         fi
4056         # We set ac_cv_exeext here because the later test for it is not
4057         # safe: cross compilers may not add the suffix if given an `-o'
4058         # argument, so we may need to know it at that point already.
4059         # Even if this section looks crufty: it has the advantage of
4060         # actually working.
4061         break;;
4062     * )
4063         break;;
4064   esac
4065 done
4066 test "$ac_cv_exeext" = no && ac_cv_exeext=
4067
4068 else
4069   ac_file=''
4070 fi
4071 if test -z "$ac_file"; then :
4072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073 $as_echo "no" >&6; }
4074 $as_echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4076
4077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4079 as_fn_error 77 "C compiler cannot create executables
4080 See \`config.log' for more details" "$LINENO" 5 ; }
4081 else
4082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4083 $as_echo "yes" >&6; }
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4086 $as_echo_n "checking for C compiler default output file name... " >&6; }
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4088 $as_echo "$ac_file" >&6; }
4089 ac_exeext=$ac_cv_exeext
4090
4091 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4092 ac_clean_files=$ac_clean_files_save
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4094 $as_echo_n "checking for suffix of executables... " >&6; }
4095 if { { ac_try="$ac_link"
4096 case "(($ac_try" in
4097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098   *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102   (eval "$ac_link") 2>&5
4103   ac_status=$?
4104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105   test $ac_status = 0; }; then :
4106   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4107 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4108 # work properly (i.e., refer to `conftest.exe'), while it won't with
4109 # `rm'.
4110 for ac_file in conftest.exe conftest conftest.*; do
4111   test -f "$ac_file" || continue
4112   case $ac_file in
4113     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4114     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4115           break;;
4116     * ) break;;
4117   esac
4118 done
4119 else
4120   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4122 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4123 See \`config.log' for more details" "$LINENO" 5 ; }
4124 fi
4125 rm -f conftest conftest$ac_cv_exeext
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4127 $as_echo "$ac_cv_exeext" >&6; }
4128
4129 rm -f conftest.$ac_ext
4130 EXEEXT=$ac_cv_exeext
4131 ac_exeext=$EXEEXT
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h.  */
4134 #include <stdio.h>
4135 int
4136 main ()
4137 {
4138 FILE *f = fopen ("conftest.out", "w");
4139  return ferror (f) || fclose (f) != 0;
4140
4141   ;
4142   return 0;
4143 }
4144 _ACEOF
4145 ac_clean_files="$ac_clean_files conftest.out"
4146 # Check that the compiler produces executables we can run.  If not, either
4147 # the compiler is broken, or we cross compile.
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4149 $as_echo_n "checking whether we are cross compiling... " >&6; }
4150 if test "$cross_compiling" != yes; then
4151   { { ac_try="$ac_link"
4152 case "(($ac_try" in
4153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154   *) ac_try_echo=$ac_try;;
4155 esac
4156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4157 $as_echo "$ac_try_echo"; } >&5
4158   (eval "$ac_link") 2>&5
4159   ac_status=$?
4160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161   test $ac_status = 0; }
4162   if { ac_try='./conftest$ac_cv_exeext'
4163   { { case "(($ac_try" in
4164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165   *) ac_try_echo=$ac_try;;
4166 esac
4167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4168 $as_echo "$ac_try_echo"; } >&5
4169   (eval "$ac_try") 2>&5
4170   ac_status=$?
4171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4172   test $ac_status = 0; }; }; then
4173     cross_compiling=no
4174   else
4175     if test "$cross_compiling" = maybe; then
4176         cross_compiling=yes
4177     else
4178         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4180 as_fn_error $? "cannot run C compiled programs.
4181 If you meant to cross compile, use \`--host'.
4182 See \`config.log' for more details" "$LINENO" 5 ; }
4183     fi
4184   fi
4185 fi
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4187 $as_echo "$cross_compiling" >&6; }
4188
4189 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4190 ac_clean_files=$ac_clean_files_save
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4192 $as_echo_n "checking for suffix of object files... " >&6; }
4193 if test "${ac_cv_objext+set}" = set; then :
4194   $as_echo_n "(cached) " >&6
4195 else
4196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h.  */
4198
4199 int
4200 main ()
4201 {
4202
4203   ;
4204   return 0;
4205 }
4206 _ACEOF
4207 rm -f conftest.o conftest.obj
4208 if { { ac_try="$ac_compile"
4209 case "(($ac_try" in
4210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211   *) ac_try_echo=$ac_try;;
4212 esac
4213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 $as_echo "$ac_try_echo"; } >&5
4215   (eval "$ac_compile") 2>&5
4216   ac_status=$?
4217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218   test $ac_status = 0; }; then :
4219   for ac_file in conftest.o conftest.obj conftest.*; do
4220   test -f "$ac_file" || continue;
4221   case $ac_file in
4222     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4223     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4224        break;;
4225   esac
4226 done
4227 else
4228   $as_echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4230
4231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4233 as_fn_error $? "cannot compute suffix of object files: cannot compile
4234 See \`config.log' for more details" "$LINENO" 5 ; }
4235 fi
4236 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4239 $as_echo "$ac_cv_objext" >&6; }
4240 OBJEXT=$ac_cv_objext
4241 ac_objext=$OBJEXT
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4243 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4244 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4245   $as_echo_n "(cached) " >&6
4246 else
4247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h.  */
4249
4250 int
4251 main ()
4252 {
4253 #ifndef __GNUC__
4254        choke me
4255 #endif
4256
4257   ;
4258   return 0;
4259 }
4260 _ACEOF
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262   ac_compiler_gnu=yes
4263 else
4264   ac_compiler_gnu=no
4265 fi
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4268
4269 fi
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4271 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4272 if test $ac_compiler_gnu = yes; then
4273   GCC=yes
4274 else
4275   GCC=
4276 fi
4277 ac_test_CFLAGS=${CFLAGS+set}
4278 ac_save_CFLAGS=$CFLAGS
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4280 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4281 if test "${ac_cv_prog_cc_g+set}" = set; then :
4282   $as_echo_n "(cached) " >&6
4283 else
4284   ac_save_c_werror_flag=$ac_c_werror_flag
4285    ac_c_werror_flag=yes
4286    ac_cv_prog_cc_g=no
4287    CFLAGS="-g"
4288    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h.  */
4290
4291 int
4292 main ()
4293 {
4294
4295   ;
4296   return 0;
4297 }
4298 _ACEOF
4299 if ac_fn_c_try_compile "$LINENO"; then :
4300   ac_cv_prog_cc_g=yes
4301 else
4302   CFLAGS=""
4303       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h.  */
4305
4306 int
4307 main ()
4308 {
4309
4310   ;
4311   return 0;
4312 }
4313 _ACEOF
4314 if ac_fn_c_try_compile "$LINENO"; then :
4315
4316 else
4317   ac_c_werror_flag=$ac_save_c_werror_flag
4318          CFLAGS="-g"
4319          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h.  */
4321
4322 int
4323 main ()
4324 {
4325
4326   ;
4327   return 0;
4328 }
4329 _ACEOF
4330 if ac_fn_c_try_compile "$LINENO"; then :
4331   ac_cv_prog_cc_g=yes
4332 fi
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 fi
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336 fi
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338    ac_c_werror_flag=$ac_save_c_werror_flag
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4341 $as_echo "$ac_cv_prog_cc_g" >&6; }
4342 if test "$ac_test_CFLAGS" = set; then
4343   CFLAGS=$ac_save_CFLAGS
4344 elif test $ac_cv_prog_cc_g = yes; then
4345   if test "$GCC" = yes; then
4346     CFLAGS="-g -O2"
4347   else
4348     CFLAGS="-g"
4349   fi
4350 else
4351   if test "$GCC" = yes; then
4352     CFLAGS="-O2"
4353   else
4354     CFLAGS=
4355   fi
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4358 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4359 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4360   $as_echo_n "(cached) " >&6
4361 else
4362   ac_cv_prog_cc_c89=no
4363 ac_save_CC=$CC
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h.  */
4366 #include <stdarg.h>
4367 #include <stdio.h>
4368 #include <sys/types.h>
4369 #include <sys/stat.h>
4370 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4371 struct buf { int x; };
4372 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4373 static char *e (p, i)
4374      char **p;
4375      int i;
4376 {
4377   return p[i];
4378 }
4379 static char *f (char * (*g) (char **, int), char **p, ...)
4380 {
4381   char *s;
4382   va_list v;
4383   va_start (v,p);
4384   s = g (p, va_arg (v,int));
4385   va_end (v);
4386   return s;
4387 }
4388
4389 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4390    function prototypes and stuff, but not '\xHH' hex character constants.
4391    These don't provoke an error unfortunately, instead are silently treated
4392    as 'x'.  The following induces an error, until -std is added to get
4393    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4394    array size at least.  It's necessary to write '\x00'==0 to get something
4395    that's true only with -std.  */
4396 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4397
4398 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4399    inside strings and character constants.  */
4400 #define FOO(x) 'x'
4401 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4402
4403 int test (int i, double x);
4404 struct s1 {int (*f) (int a);};
4405 struct s2 {int (*f) (double a);};
4406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4407 int argc;
4408 char **argv;
4409 int
4410 main ()
4411 {
4412 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4418         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4419 do
4420   CC="$ac_save_CC $ac_arg"
4421   if ac_fn_c_try_compile "$LINENO"; then :
4422   ac_cv_prog_cc_c89=$ac_arg
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext
4425   test "x$ac_cv_prog_cc_c89" != "xno" && break
4426 done
4427 rm -f conftest.$ac_ext
4428 CC=$ac_save_CC
4429
4430 fi
4431 # AC_CACHE_VAL
4432 case "x$ac_cv_prog_cc_c89" in
4433   x)
4434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4435 $as_echo "none needed" >&6; } ;;
4436   xno)
4437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4438 $as_echo "unsupported" >&6; } ;;
4439   *)
4440     CC="$CC $ac_cv_prog_cc_c89"
4441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4442 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4443 esac
4444 if test "x$ac_cv_prog_cc_c89" != xno; then :
4445
4446 fi
4447
4448 ac_ext=c
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453
4454 depcc="$CC"   am_compiler_list=
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4457 $as_echo_n "checking dependency style of $depcc... " >&6; }
4458 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4459   $as_echo_n "(cached) " >&6
4460 else
4461   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4462   # We make a subdir and do the tests there.  Otherwise we can end up
4463   # making bogus files that we don't know about and never remove.  For
4464   # instance it was reported that on HP-UX the gcc test will end up
4465   # making a dummy file named `D' -- because `-MD' means `put the output
4466   # in D'.
4467   mkdir conftest.dir
4468   # Copy depcomp to subdir because otherwise we won't find it if we're
4469   # using a relative directory.
4470   cp "$am_depcomp" conftest.dir
4471   cd conftest.dir
4472   # We will build objects and dependencies in a subdirectory because
4473   # it helps to detect inapplicable dependency modes.  For instance
4474   # both Tru64's cc and ICC support -MD to output dependencies as a
4475   # side effect of compilation, but ICC will put the dependencies in
4476   # the current directory while Tru64 will put them in the object
4477   # directory.
4478   mkdir sub
4479
4480   am_cv_CC_dependencies_compiler_type=none
4481   if test "$am_compiler_list" = ""; then
4482      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4483   fi
4484   am__universal=false
4485   case " $depcc " in #(
4486      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4487      esac
4488
4489   for depmode in $am_compiler_list; do
4490     # Setup a source with many dependencies, because some compilers
4491     # like to wrap large dependency lists on column 80 (with \), and
4492     # we should not choose a depcomp mode which is confused by this.
4493     #
4494     # We need to recreate these files for each test, as the compiler may
4495     # overwrite some of them when testing with obscure command lines.
4496     # This happens at least with the AIX C compiler.
4497     : > sub/conftest.c
4498     for i in 1 2 3 4 5 6; do
4499       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4500       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4501       # Solaris 8's {/usr,}/bin/sh.
4502       touch sub/conftst$i.h
4503     done
4504     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4505
4506     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4507     # mode.  It turns out that the SunPro C++ compiler does not properly
4508     # handle `-M -o', and we need to detect this.  Also, some Intel
4509     # versions had trouble with output in subdirs
4510     am__obj=sub/conftest.${OBJEXT-o}
4511     am__minus_obj="-o $am__obj"
4512     case $depmode in
4513     gcc)
4514       # This depmode causes a compiler race in universal mode.
4515       test "$am__universal" = false || continue
4516       ;;
4517     nosideeffect)
4518       # after this tag, mechanisms are not by side-effect, so they'll
4519       # only be used when explicitly requested
4520       if test "x$enable_dependency_tracking" = xyes; then
4521         continue
4522       else
4523         break
4524       fi
4525       ;;
4526     msvisualcpp | msvcmsys)
4527       # This compiler won't grok `-c -o', but also, the minuso test has
4528       # not run yet.  These depmodes are late enough in the game, and
4529       # so weak that their functioning should not be impacted.
4530       am__obj=conftest.${OBJEXT-o}
4531       am__minus_obj=
4532       ;;
4533     none) break ;;
4534     esac
4535     if depmode=$depmode \
4536        source=sub/conftest.c object=$am__obj \
4537        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4538        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4539          >/dev/null 2>conftest.err &&
4540        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4541        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4542        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4543        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4544       # icc doesn't choke on unknown options, it will just issue warnings
4545       # or remarks (even with -Werror).  So we grep stderr for any message
4546       # that says an option was ignored or not supported.
4547       # When given -MP, icc 7.0 and 7.1 complain thusly:
4548       #   icc: Command line warning: ignoring option '-M'; no argument required
4549       # The diagnosis changed in icc 8.0:
4550       #   icc: Command line remark: option '-MP' not supported
4551       if (grep 'ignoring option' conftest.err ||
4552           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4553         am_cv_CC_dependencies_compiler_type=$depmode
4554         break
4555       fi
4556     fi
4557   done
4558
4559   cd ..
4560   rm -rf conftest.dir
4561 else
4562   am_cv_CC_dependencies_compiler_type=none
4563 fi
4564
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4567 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4568 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4569
4570  if
4571   test "x$enable_dependency_tracking" != xno \
4572   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4573   am__fastdepCC_TRUE=
4574   am__fastdepCC_FALSE='#'
4575 else
4576   am__fastdepCC_TRUE='#'
4577   am__fastdepCC_FALSE=
4578 fi
4579
4580
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4582 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4583 if test "${ac_cv_path_SED+set}" = set; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4587      for ac_i in 1 2 3 4 5 6 7; do
4588        ac_script="$ac_script$as_nl$ac_script"
4589      done
4590      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4591      { ac_script=; unset ac_script;}
4592      if test -z "$SED"; then
4593   ac_path_SED_found=false
4594   # Loop through the user's path and test for each of PROGNAME-LIST
4595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598   IFS=$as_save_IFS
4599   test -z "$as_dir" && as_dir=.
4600     for ac_prog in sed gsed; do
4601     for ac_exec_ext in '' $ac_executable_extensions; do
4602       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4603       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4604 # Check for GNU ac_path_SED and select it if it is found.
4605   # Check for GNU $ac_path_SED
4606 case `"$ac_path_SED" --version 2>&1` in
4607 *GNU*)
4608   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4609 *)
4610   ac_count=0
4611   $as_echo_n 0123456789 >"conftest.in"
4612   while :
4613   do
4614     cat "conftest.in" "conftest.in" >"conftest.tmp"
4615     mv "conftest.tmp" "conftest.in"
4616     cp "conftest.in" "conftest.nl"
4617     $as_echo '' >> "conftest.nl"
4618     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4619     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4620     as_fn_arith $ac_count + 1 && ac_count=$as_val
4621     if test $ac_count -gt ${ac_path_SED_max-0}; then
4622       # Best one so far, save it but keep looking for a better one
4623       ac_cv_path_SED="$ac_path_SED"
4624       ac_path_SED_max=$ac_count
4625     fi
4626     # 10*(2^10) chars as input seems more than enough
4627     test $ac_count -gt 10 && break
4628   done
4629   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4630 esac
4631
4632       $ac_path_SED_found && break 3
4633     done
4634   done
4635   done
4636 IFS=$as_save_IFS
4637   if test -z "$ac_cv_path_SED"; then
4638     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4639   fi
4640 else
4641   ac_cv_path_SED=$SED
4642 fi
4643
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4646 $as_echo "$ac_cv_path_SED" >&6; }
4647  SED="$ac_cv_path_SED"
4648   rm -f conftest.sed
4649
4650 test -z "$SED" && SED=sed
4651 Xsed="$SED -e 1s/^X//"
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4664 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4665 if test "${ac_cv_path_GREP+set}" = set; then :
4666   $as_echo_n "(cached) " >&6
4667 else
4668   if test -z "$GREP"; then
4669   ac_path_GREP_found=false
4670   # Loop through the user's path and test for each of PROGNAME-LIST
4671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4673 do
4674   IFS=$as_save_IFS
4675   test -z "$as_dir" && as_dir=.
4676     for ac_prog in grep ggrep; do
4677     for ac_exec_ext in '' $ac_executable_extensions; do
4678       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4679       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4680 # Check for GNU ac_path_GREP and select it if it is found.
4681   # Check for GNU $ac_path_GREP
4682 case `"$ac_path_GREP" --version 2>&1` in
4683 *GNU*)
4684   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4685 *)
4686   ac_count=0
4687   $as_echo_n 0123456789 >"conftest.in"
4688   while :
4689   do
4690     cat "conftest.in" "conftest.in" >"conftest.tmp"
4691     mv "conftest.tmp" "conftest.in"
4692     cp "conftest.in" "conftest.nl"
4693     $as_echo 'GREP' >> "conftest.nl"
4694     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4696     as_fn_arith $ac_count + 1 && ac_count=$as_val
4697     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4698       # Best one so far, save it but keep looking for a better one
4699       ac_cv_path_GREP="$ac_path_GREP"
4700       ac_path_GREP_max=$ac_count
4701     fi
4702     # 10*(2^10) chars as input seems more than enough
4703     test $ac_count -gt 10 && break
4704   done
4705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4706 esac
4707
4708       $ac_path_GREP_found && break 3
4709     done
4710   done
4711   done
4712 IFS=$as_save_IFS
4713   if test -z "$ac_cv_path_GREP"; then
4714     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4715   fi
4716 else
4717   ac_cv_path_GREP=$GREP
4718 fi
4719
4720 fi
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4722 $as_echo "$ac_cv_path_GREP" >&6; }
4723  GREP="$ac_cv_path_GREP"
4724
4725
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4727 $as_echo_n "checking for egrep... " >&6; }
4728 if test "${ac_cv_path_EGREP+set}" = set; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4732    then ac_cv_path_EGREP="$GREP -E"
4733    else
4734      if test -z "$EGREP"; then
4735   ac_path_EGREP_found=false
4736   # Loop through the user's path and test for each of PROGNAME-LIST
4737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4739 do
4740   IFS=$as_save_IFS
4741   test -z "$as_dir" && as_dir=.
4742     for ac_prog in egrep; do
4743     for ac_exec_ext in '' $ac_executable_extensions; do
4744       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4745       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4746 # Check for GNU ac_path_EGREP and select it if it is found.
4747   # Check for GNU $ac_path_EGREP
4748 case `"$ac_path_EGREP" --version 2>&1` in
4749 *GNU*)
4750   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4751 *)
4752   ac_count=0
4753   $as_echo_n 0123456789 >"conftest.in"
4754   while :
4755   do
4756     cat "conftest.in" "conftest.in" >"conftest.tmp"
4757     mv "conftest.tmp" "conftest.in"
4758     cp "conftest.in" "conftest.nl"
4759     $as_echo 'EGREP' >> "conftest.nl"
4760     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4761     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4762     as_fn_arith $ac_count + 1 && ac_count=$as_val
4763     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4764       # Best one so far, save it but keep looking for a better one
4765       ac_cv_path_EGREP="$ac_path_EGREP"
4766       ac_path_EGREP_max=$ac_count
4767     fi
4768     # 10*(2^10) chars as input seems more than enough
4769     test $ac_count -gt 10 && break
4770   done
4771   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4772 esac
4773
4774       $ac_path_EGREP_found && break 3
4775     done
4776   done
4777   done
4778 IFS=$as_save_IFS
4779   if test -z "$ac_cv_path_EGREP"; then
4780     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4781   fi
4782 else
4783   ac_cv_path_EGREP=$EGREP
4784 fi
4785
4786    fi
4787 fi
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4789 $as_echo "$ac_cv_path_EGREP" >&6; }
4790  EGREP="$ac_cv_path_EGREP"
4791
4792
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4794 $as_echo_n "checking for fgrep... " >&6; }
4795 if test "${ac_cv_path_FGREP+set}" = set; then :
4796   $as_echo_n "(cached) " >&6
4797 else
4798   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4799    then ac_cv_path_FGREP="$GREP -F"
4800    else
4801      if test -z "$FGREP"; then
4802   ac_path_FGREP_found=false
4803   # Loop through the user's path and test for each of PROGNAME-LIST
4804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4806 do
4807   IFS=$as_save_IFS
4808   test -z "$as_dir" && as_dir=.
4809     for ac_prog in fgrep; do
4810     for ac_exec_ext in '' $ac_executable_extensions; do
4811       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4812       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4813 # Check for GNU ac_path_FGREP and select it if it is found.
4814   # Check for GNU $ac_path_FGREP
4815 case `"$ac_path_FGREP" --version 2>&1` in
4816 *GNU*)
4817   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4818 *)
4819   ac_count=0
4820   $as_echo_n 0123456789 >"conftest.in"
4821   while :
4822   do
4823     cat "conftest.in" "conftest.in" >"conftest.tmp"
4824     mv "conftest.tmp" "conftest.in"
4825     cp "conftest.in" "conftest.nl"
4826     $as_echo 'FGREP' >> "conftest.nl"
4827     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4828     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4829     as_fn_arith $ac_count + 1 && ac_count=$as_val
4830     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4831       # Best one so far, save it but keep looking for a better one
4832       ac_cv_path_FGREP="$ac_path_FGREP"
4833       ac_path_FGREP_max=$ac_count
4834     fi
4835     # 10*(2^10) chars as input seems more than enough
4836     test $ac_count -gt 10 && break
4837   done
4838   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4839 esac
4840
4841       $ac_path_FGREP_found && break 3
4842     done
4843   done
4844   done
4845 IFS=$as_save_IFS
4846   if test -z "$ac_cv_path_FGREP"; then
4847     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4848   fi
4849 else
4850   ac_cv_path_FGREP=$FGREP
4851 fi
4852
4853    fi
4854 fi
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4856 $as_echo "$ac_cv_path_FGREP" >&6; }
4857  FGREP="$ac_cv_path_FGREP"
4858
4859
4860 test -z "$GREP" && GREP=grep
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880 # Check whether --with-gnu-ld was given.
4881 if test "${with_gnu_ld+set}" = set; then :
4882   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4883 else
4884   with_gnu_ld=no
4885 fi
4886
4887 ac_prog=ld
4888 if test "$GCC" = yes; then
4889   # Check if gcc -print-prog-name=ld gives a path.
4890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4891 $as_echo_n "checking for ld used by $CC... " >&6; }
4892   case $host in
4893   *-*-mingw*)
4894     # gcc leaves a trailing carriage return which upsets mingw
4895     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4896   *)
4897     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4898   esac
4899   case $ac_prog in
4900     # Accept absolute paths.
4901     [\\/]* | ?:[\\/]*)
4902       re_direlt='/[^/][^/]*/\.\./'
4903       # Canonicalize the pathname of ld
4904       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4905       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4906         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4907       done
4908       test -z "$LD" && LD="$ac_prog"
4909       ;;
4910   "")
4911     # If it fails, then pretend we aren't using GCC.
4912     ac_prog=ld
4913     ;;
4914   *)
4915     # If it is relative, then search for the first ld in PATH.
4916     with_gnu_ld=unknown
4917     ;;
4918   esac
4919 elif test "$with_gnu_ld" = yes; then
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4921 $as_echo_n "checking for GNU ld... " >&6; }
4922 else
4923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4924 $as_echo_n "checking for non-GNU ld... " >&6; }
4925 fi
4926 if test "${lt_cv_path_LD+set}" = set; then :
4927   $as_echo_n "(cached) " >&6
4928 else
4929   if test -z "$LD"; then
4930   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4931   for ac_dir in $PATH; do
4932     IFS="$lt_save_ifs"
4933     test -z "$ac_dir" && ac_dir=.
4934     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4935       lt_cv_path_LD="$ac_dir/$ac_prog"
4936       # Check to see if the program is GNU ld.  I'd rather use --version,
4937       # but apparently some variants of GNU ld only accept -v.
4938       # Break only if it was the GNU/non-GNU ld that we prefer.
4939       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4940       *GNU* | *'with BFD'*)
4941         test "$with_gnu_ld" != no && break
4942         ;;
4943       *)
4944         test "$with_gnu_ld" != yes && break
4945         ;;
4946       esac
4947     fi
4948   done
4949   IFS="$lt_save_ifs"
4950 else
4951   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4952 fi
4953 fi
4954
4955 LD="$lt_cv_path_LD"
4956 if test -n "$LD"; then
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4958 $as_echo "$LD" >&6; }
4959 else
4960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4962 fi
4963 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4965 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4966 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4967   $as_echo_n "(cached) " >&6
4968 else
4969   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4970 case `$LD -v 2>&1 </dev/null` in
4971 *GNU* | *'with BFD'*)
4972   lt_cv_prog_gnu_ld=yes
4973   ;;
4974 *)
4975   lt_cv_prog_gnu_ld=no
4976   ;;
4977 esac
4978 fi
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4980 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4981 with_gnu_ld=$lt_cv_prog_gnu_ld
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4992 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4993 if test "${lt_cv_path_NM+set}" = set; then :
4994   $as_echo_n "(cached) " >&6
4995 else
4996   if test -n "$NM"; then
4997   # Let the user override the test.
4998   lt_cv_path_NM="$NM"
4999 else
5000   lt_nm_to_check="${ac_tool_prefix}nm"
5001   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5002     lt_nm_to_check="$lt_nm_to_check nm"
5003   fi
5004   for lt_tmp_nm in $lt_nm_to_check; do
5005     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5006     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5007       IFS="$lt_save_ifs"
5008       test -z "$ac_dir" && ac_dir=.
5009       tmp_nm="$ac_dir/$lt_tmp_nm"
5010       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5011         # Check to see if the nm accepts a BSD-compat flag.
5012         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5013         #   nm: unknown option "B" ignored
5014         # Tru64's nm complains that /dev/null is an invalid object file
5015         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5016         */dev/null* | *'Invalid file or object type'*)
5017           lt_cv_path_NM="$tmp_nm -B"
5018           break
5019           ;;
5020         *)
5021           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5022           */dev/null*)
5023             lt_cv_path_NM="$tmp_nm -p"
5024             break
5025             ;;
5026           *)
5027             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5028             continue # so that we can try to find one that supports BSD flags
5029             ;;
5030           esac
5031           ;;
5032         esac
5033       fi
5034     done
5035     IFS="$lt_save_ifs"
5036   done
5037   : ${lt_cv_path_NM=no}
5038 fi
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5041 $as_echo "$lt_cv_path_NM" >&6; }
5042 if test "$lt_cv_path_NM" != "no"; then
5043   NM="$lt_cv_path_NM"
5044 else
5045   # Didn't find any BSD compatible name lister, look for dumpbin.
5046   if test -n "$ac_tool_prefix"; then
5047   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5048   do
5049     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5054   $as_echo_n "(cached) " >&6
5055 else
5056   if test -n "$DUMPBIN"; then
5057   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064     for ac_exec_ext in '' $ac_executable_extensions; do
5065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071   done
5072 IFS=$as_save_IFS
5073
5074 fi
5075 fi
5076 DUMPBIN=$ac_cv_prog_DUMPBIN
5077 if test -n "$DUMPBIN"; then
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5079 $as_echo "$DUMPBIN" >&6; }
5080 else
5081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5083 fi
5084
5085
5086     test -n "$DUMPBIN" && break
5087   done
5088 fi
5089 if test -z "$DUMPBIN"; then
5090   ac_ct_DUMPBIN=$DUMPBIN
5091   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5092 do
5093   # Extract the first word of "$ac_prog", so it can be a program name with args.
5094 set dummy $ac_prog; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5098   $as_echo_n "(cached) " >&6
5099 else
5100   if test -n "$ac_ct_DUMPBIN"; then
5101   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106   IFS=$as_save_IFS
5107   test -z "$as_dir" && as_dir=.
5108     for ac_exec_ext in '' $ac_executable_extensions; do
5109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115   done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5121 if test -n "$ac_ct_DUMPBIN"; then
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5123 $as_echo "$ac_ct_DUMPBIN" >&6; }
5124 else
5125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129
5130   test -n "$ac_ct_DUMPBIN" && break
5131 done
5132
5133   if test "x$ac_ct_DUMPBIN" = x; then
5134     DUMPBIN=":"
5135   else
5136     case $cross_compiling:$ac_tool_warned in
5137 yes:)
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5140 ac_tool_warned=yes ;;
5141 esac
5142     DUMPBIN=$ac_ct_DUMPBIN
5143   fi
5144 fi
5145
5146
5147   if test "$DUMPBIN" != ":"; then
5148     NM="$DUMPBIN"
5149   fi
5150 fi
5151 test -z "$NM" && NM=nm
5152
5153
5154
5155
5156
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5159 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5160 if test "${lt_cv_nm_interface+set}" = set; then :
5161   $as_echo_n "(cached) " >&6
5162 else
5163   lt_cv_nm_interface="BSD nm"
5164   echo "int some_variable = 0;" > conftest.$ac_ext
5165   (eval echo "\"\$as_me:5165: $ac_compile\"" >&5)
5166   (eval "$ac_compile" 2>conftest.err)
5167   cat conftest.err >&5
5168   (eval echo "\"\$as_me:5168: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5169   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5170   cat conftest.err >&5
5171   (eval echo "\"\$as_me:5171: output\"" >&5)
5172   cat conftest.out >&5
5173   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5174     lt_cv_nm_interface="MS dumpbin"
5175   fi
5176   rm -f conftest*
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5179 $as_echo "$lt_cv_nm_interface" >&6; }
5180
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5182 $as_echo_n "checking whether ln -s works... " >&6; }
5183 LN_S=$as_ln_s
5184 if test "$LN_S" = "ln -s"; then
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5186 $as_echo "yes" >&6; }
5187 else
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5189 $as_echo "no, using $LN_S" >&6; }
5190 fi
5191
5192 # find the maximum length of command line arguments
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5194 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5195 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5196   $as_echo_n "(cached) " >&6
5197 else
5198     i=0
5199   teststring="ABCD"
5200
5201   case $build_os in
5202   msdosdjgpp*)
5203     # On DJGPP, this test can blow up pretty badly due to problems in libc
5204     # (any single argument exceeding 2000 bytes causes a buffer overrun
5205     # during glob expansion).  Even if it were fixed, the result of this
5206     # check would be larger than it should be.
5207     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5208     ;;
5209
5210   gnu*)
5211     # Under GNU Hurd, this test is not required because there is
5212     # no limit to the length of command line arguments.
5213     # Libtool will interpret -1 as no limit whatsoever
5214     lt_cv_sys_max_cmd_len=-1;
5215     ;;
5216
5217   cygwin* | mingw* | cegcc*)
5218     # On Win9x/ME, this test blows up -- it succeeds, but takes
5219     # about 5 minutes as the teststring grows exponentially.
5220     # Worse, since 9x/ME are not pre-emptively multitasking,
5221     # you end up with a "frozen" computer, even though with patience
5222     # the test eventually succeeds (with a max line length of 256k).
5223     # Instead, let's just punt: use the minimum linelength reported by
5224     # all of the supported platforms: 8192 (on NT/2K/XP).
5225     lt_cv_sys_max_cmd_len=8192;
5226     ;;
5227
5228   amigaos*)
5229     # On AmigaOS with pdksh, this test takes hours, literally.
5230     # So we just punt and use a minimum line length of 8192.
5231     lt_cv_sys_max_cmd_len=8192;
5232     ;;
5233
5234   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5235     # This has been around since 386BSD, at least.  Likely further.
5236     if test -x /sbin/sysctl; then
5237       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5238     elif test -x /usr/sbin/sysctl; then
5239       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5240     else
5241       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5242     fi
5243     # And add a safety zone
5244     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5245     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5246     ;;
5247
5248   interix*)
5249     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5250     lt_cv_sys_max_cmd_len=196608
5251     ;;
5252
5253   osf*)
5254     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5255     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5256     # nice to cause kernel panics so lets avoid the loop below.
5257     # First set a reasonable default.
5258     lt_cv_sys_max_cmd_len=16384
5259     #
5260     if test -x /sbin/sysconfig; then
5261       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5262         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5263       esac
5264     fi
5265     ;;
5266   sco3.2v5*)
5267     lt_cv_sys_max_cmd_len=102400
5268     ;;
5269   sysv5* | sco5v6* | sysv4.2uw2*)
5270     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5271     if test -n "$kargmax"; then
5272       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5273     else
5274       lt_cv_sys_max_cmd_len=32768
5275     fi
5276     ;;
5277   *)
5278     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5279     if test -n "$lt_cv_sys_max_cmd_len"; then
5280       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5281       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5282     else
5283       # Make teststring a little bigger before we do anything with it.
5284       # a 1K string should be a reasonable start.
5285       for i in 1 2 3 4 5 6 7 8 ; do
5286         teststring=$teststring$teststring
5287       done
5288       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5289       # If test is not a shell built-in, we'll probably end up computing a
5290       # maximum length that is only half of the actual maximum length, but
5291       # we can't tell.
5292       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5293                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5294               test $i != 17 # 1/2 MB should be enough
5295       do
5296         i=`expr $i + 1`
5297         teststring=$teststring$teststring
5298       done
5299       # Only check the string length outside the loop.
5300       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5301       teststring=
5302       # Add a significant safety factor because C++ compilers can tack on
5303       # massive amounts of additional arguments before passing them to the
5304       # linker.  It appears as though 1/2 is a usable value.
5305       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5306     fi
5307     ;;
5308   esac
5309
5310 fi
5311
5312 if test -n $lt_cv_sys_max_cmd_len ; then
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5314 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5315 else
5316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5317 $as_echo "none" >&6; }
5318 fi
5319 max_cmd_len=$lt_cv_sys_max_cmd_len
5320
5321
5322
5323
5324
5325
5326 : ${CP="cp -f"}
5327 : ${MV="mv -f"}
5328 : ${RM="rm -f"}
5329
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5331 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5332 # Try some XSI features
5333 xsi_shell=no
5334 ( _lt_dummy="a/b/c"
5335   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5336       = c,a/b,, \
5337     && eval 'test $(( 1 + 1 )) -eq 2 \
5338     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5339   && xsi_shell=yes
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5341 $as_echo "$xsi_shell" >&6; }
5342
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5345 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5346 lt_shell_append=no
5347 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5348     >/dev/null 2>&1 \
5349   && lt_shell_append=yes
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5351 $as_echo "$lt_shell_append" >&6; }
5352
5353
5354 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5355   lt_unset=unset
5356 else
5357   lt_unset=false
5358 fi
5359
5360
5361
5362
5363
5364 # test EBCDIC or ASCII
5365 case `echo X|tr X '\101'` in
5366  A) # ASCII based system
5367     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5368   lt_SP2NL='tr \040 \012'
5369   lt_NL2SP='tr \015\012 \040\040'
5370   ;;
5371  *) # EBCDIC based system
5372   lt_SP2NL='tr \100 \n'
5373   lt_NL2SP='tr \r\n \100\100'
5374   ;;
5375 esac
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5386 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5387 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   lt_cv_ld_reload_flag='-r'
5391 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5393 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5394 reload_flag=$lt_cv_ld_reload_flag
5395 case $reload_flag in
5396 "" | " "*) ;;
5397 *) reload_flag=" $reload_flag" ;;
5398 esac
5399 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5400 case $host_os in
5401   darwin*)
5402     if test "$GCC" = yes; then
5403       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5404     else
5405       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5406     fi
5407     ;;
5408 esac
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 if test -n "$ac_tool_prefix"; then
5419   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5420 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   if test -n "$OBJDUMP"; then
5427   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434     for ac_exec_ext in '' $ac_executable_extensions; do
5435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441   done
5442 IFS=$as_save_IFS
5443
5444 fi
5445 fi
5446 OBJDUMP=$ac_cv_prog_OBJDUMP
5447 if test -n "$OBJDUMP"; then
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5449 $as_echo "$OBJDUMP" >&6; }
5450 else
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455
5456 fi
5457 if test -z "$ac_cv_prog_OBJDUMP"; then
5458   ac_ct_OBJDUMP=$OBJDUMP
5459   # Extract the first word of "objdump", so it can be a program name with args.
5460 set dummy objdump; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5464   $as_echo_n "(cached) " >&6
5465 else
5466   if test -n "$ac_ct_OBJDUMP"; then
5467   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472   IFS=$as_save_IFS
5473   test -z "$as_dir" && as_dir=.
5474     for ac_exec_ext in '' $ac_executable_extensions; do
5475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478     break 2
5479   fi
5480 done
5481   done
5482 IFS=$as_save_IFS
5483
5484 fi
5485 fi
5486 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5487 if test -n "$ac_ct_OBJDUMP"; then
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5489 $as_echo "$ac_ct_OBJDUMP" >&6; }
5490 else
5491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494
5495   if test "x$ac_ct_OBJDUMP" = x; then
5496     OBJDUMP="false"
5497   else
5498     case $cross_compiling:$ac_tool_warned in
5499 yes:)
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5502 ac_tool_warned=yes ;;
5503 esac
5504     OBJDUMP=$ac_ct_OBJDUMP
5505   fi
5506 else
5507   OBJDUMP="$ac_cv_prog_OBJDUMP"
5508 fi
5509
5510 test -z "$OBJDUMP" && OBJDUMP=objdump
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5521 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5522 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525   lt_cv_file_magic_cmd='$MAGIC_CMD'
5526 lt_cv_file_magic_test_file=
5527 lt_cv_deplibs_check_method='unknown'
5528 # Need to set the preceding variable on all platforms that support
5529 # interlibrary dependencies.
5530 # 'none' -- dependencies not supported.
5531 # `unknown' -- same as none, but documents that we really don't know.
5532 # 'pass_all' -- all dependencies passed with no checks.
5533 # 'test_compile' -- check by making test program.
5534 # 'file_magic [[regex]]' -- check by looking for files in library path
5535 # which responds to the $file_magic_cmd with a given extended regex.
5536 # If you have `file' or equivalent on your system and you're not sure
5537 # whether `pass_all' will *always* work, you probably want this one.
5538
5539 case $host_os in
5540 aix[4-9]*)
5541   lt_cv_deplibs_check_method=pass_all
5542   ;;
5543
5544 beos*)
5545   lt_cv_deplibs_check_method=pass_all
5546   ;;
5547
5548 bsdi[45]*)
5549   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5550   lt_cv_file_magic_cmd='/usr/bin/file -L'
5551   lt_cv_file_magic_test_file=/shlib/libc.so
5552   ;;
5553
5554 cygwin*)
5555   # func_win32_libid is a shell function defined in ltmain.sh
5556   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5557   lt_cv_file_magic_cmd='func_win32_libid'
5558   ;;
5559
5560 mingw* | pw32*)
5561   # Base MSYS/MinGW do not provide the 'file' command needed by
5562   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5563   # unless we find 'file', for example because we are cross-compiling.
5564   if ( file / ) >/dev/null 2>&1; then
5565     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5566     lt_cv_file_magic_cmd='func_win32_libid'
5567   else
5568     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5569     lt_cv_file_magic_cmd='$OBJDUMP -f'
5570   fi
5571   ;;
5572
5573 cegcc)
5574   # use the weaker test based on 'objdump'. See mingw*.
5575   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5576   lt_cv_file_magic_cmd='$OBJDUMP -f'
5577   ;;
5578
5579 darwin* | rhapsody*)
5580   lt_cv_deplibs_check_method=pass_all
5581   ;;
5582
5583 freebsd* | dragonfly*)
5584   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5585     case $host_cpu in
5586     i*86 )
5587       # Not sure whether the presence of OpenBSD here was a mistake.
5588       # Let's accept both of them until this is cleared up.
5589       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5590       lt_cv_file_magic_cmd=/usr/bin/file
5591       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5592       ;;
5593     esac
5594   else
5595     lt_cv_deplibs_check_method=pass_all
5596   fi
5597   ;;
5598
5599 gnu*)
5600   lt_cv_deplibs_check_method=pass_all
5601   ;;
5602
5603 hpux10.20* | hpux11*)
5604   lt_cv_file_magic_cmd=/usr/bin/file
5605   case $host_cpu in
5606   ia64*)
5607     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5608     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5609     ;;
5610   hppa*64*)
5611     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5612     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5613     ;;
5614   *)
5615     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5616     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5617     ;;
5618   esac
5619   ;;
5620
5621 interix[3-9]*)
5622   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5623   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5624   ;;
5625
5626 irix5* | irix6* | nonstopux*)
5627   case $LD in
5628   *-32|*"-32 ") libmagic=32-bit;;
5629   *-n32|*"-n32 ") libmagic=N32;;
5630   *-64|*"-64 ") libmagic=64-bit;;
5631   *) libmagic=never-match;;
5632   esac
5633   lt_cv_deplibs_check_method=pass_all
5634   ;;
5635
5636 # This must be Linux ELF.
5637 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5638   lt_cv_deplibs_check_method=pass_all
5639   ;;
5640
5641 netbsd* | netbsdelf*-gnu)
5642   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5643     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5644   else
5645     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5646   fi
5647   ;;
5648
5649 newos6*)
5650   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5651   lt_cv_file_magic_cmd=/usr/bin/file
5652   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5653   ;;
5654
5655 *nto* | *qnx*)
5656   lt_cv_deplibs_check_method=pass_all
5657   ;;
5658
5659 openbsd*)
5660   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5661     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5662   else
5663     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5664   fi
5665   ;;
5666
5667 osf3* | osf4* | osf5*)
5668   lt_cv_deplibs_check_method=pass_all
5669   ;;
5670
5671 rdos*)
5672   lt_cv_deplibs_check_method=pass_all
5673   ;;
5674
5675 solaris*)
5676   lt_cv_deplibs_check_method=pass_all
5677   ;;
5678
5679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5680   lt_cv_deplibs_check_method=pass_all
5681   ;;
5682
5683 sysv4 | sysv4.3*)
5684   case $host_vendor in
5685   motorola)
5686     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]'
5687     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5688     ;;
5689   ncr)
5690     lt_cv_deplibs_check_method=pass_all
5691     ;;
5692   sequent)
5693     lt_cv_file_magic_cmd='/bin/file'
5694     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5695     ;;
5696   sni)
5697     lt_cv_file_magic_cmd='/bin/file'
5698     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5699     lt_cv_file_magic_test_file=/lib/libc.so
5700     ;;
5701   siemens)
5702     lt_cv_deplibs_check_method=pass_all
5703     ;;
5704   pc)
5705     lt_cv_deplibs_check_method=pass_all
5706     ;;
5707   esac
5708   ;;
5709
5710 tpf*)
5711   lt_cv_deplibs_check_method=pass_all
5712   ;;
5713 esac
5714
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5717 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5718 file_magic_cmd=$lt_cv_file_magic_cmd
5719 deplibs_check_method=$lt_cv_deplibs_check_method
5720 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733 if test -n "$ac_tool_prefix"; then
5734   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5735 set dummy ${ac_tool_prefix}ar; ac_word=$2
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 $as_echo_n "checking for $ac_word... " >&6; }
5738 if test "${ac_cv_prog_AR+set}" = set; then :
5739   $as_echo_n "(cached) " >&6
5740 else
5741   if test -n "$AR"; then
5742   ac_cv_prog_AR="$AR" # Let the user override the test.
5743 else
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5746 do
5747   IFS=$as_save_IFS
5748   test -z "$as_dir" && as_dir=.
5749     for ac_exec_ext in '' $ac_executable_extensions; do
5750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5751     ac_cv_prog_AR="${ac_tool_prefix}ar"
5752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753     break 2
5754   fi
5755 done
5756   done
5757 IFS=$as_save_IFS
5758
5759 fi
5760 fi
5761 AR=$ac_cv_prog_AR
5762 if test -n "$AR"; then
5763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5764 $as_echo "$AR" >&6; }
5765 else
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5768 fi
5769
5770
5771 fi
5772 if test -z "$ac_cv_prog_AR"; then
5773   ac_ct_AR=$AR
5774   # Extract the first word of "ar", so it can be a program name with args.
5775 set dummy ar; ac_word=$2
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777 $as_echo_n "checking for $ac_word... " >&6; }
5778 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5779   $as_echo_n "(cached) " >&6
5780 else
5781   if test -n "$ac_ct_AR"; then
5782   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787   IFS=$as_save_IFS
5788   test -z "$as_dir" && as_dir=.
5789     for ac_exec_ext in '' $ac_executable_extensions; do
5790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791     ac_cv_prog_ac_ct_AR="ar"
5792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793     break 2
5794   fi
5795 done
5796   done
5797 IFS=$as_save_IFS
5798
5799 fi
5800 fi
5801 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5802 if test -n "$ac_ct_AR"; then
5803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5804 $as_echo "$ac_ct_AR" >&6; }
5805 else
5806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5808 fi
5809
5810   if test "x$ac_ct_AR" = x; then
5811     AR="false"
5812   else
5813     case $cross_compiling:$ac_tool_warned in
5814 yes:)
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5817 ac_tool_warned=yes ;;
5818 esac
5819     AR=$ac_ct_AR
5820   fi
5821 else
5822   AR="$ac_cv_prog_AR"
5823 fi
5824
5825 test -z "$AR" && AR=ar
5826 test -z "$AR_FLAGS" && AR_FLAGS=cru
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838 if test -n "$ac_tool_prefix"; then
5839   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5840 set dummy ${ac_tool_prefix}strip; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if test "${ac_cv_prog_STRIP+set}" = set; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846   if test -n "$STRIP"; then
5847   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5848 else
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852   IFS=$as_save_IFS
5853   test -z "$as_dir" && as_dir=.
5854     for ac_exec_ext in '' $ac_executable_extensions; do
5855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5856     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858     break 2
5859   fi
5860 done
5861   done
5862 IFS=$as_save_IFS
5863
5864 fi
5865 fi
5866 STRIP=$ac_cv_prog_STRIP
5867 if test -n "$STRIP"; then
5868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5869 $as_echo "$STRIP" >&6; }
5870 else
5871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5873 fi
5874
5875
5876 fi
5877 if test -z "$ac_cv_prog_STRIP"; then
5878   ac_ct_STRIP=$STRIP
5879   # Extract the first word of "strip", so it can be a program name with args.
5880 set dummy strip; ac_word=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5884   $as_echo_n "(cached) " >&6
5885 else
5886   if test -n "$ac_ct_STRIP"; then
5887   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892   IFS=$as_save_IFS
5893   test -z "$as_dir" && as_dir=.
5894     for ac_exec_ext in '' $ac_executable_extensions; do
5895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896     ac_cv_prog_ac_ct_STRIP="strip"
5897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898     break 2
5899   fi
5900 done
5901   done
5902 IFS=$as_save_IFS
5903
5904 fi
5905 fi
5906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5907 if test -n "$ac_ct_STRIP"; then
5908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5909 $as_echo "$ac_ct_STRIP" >&6; }
5910 else
5911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
5913 fi
5914
5915   if test "x$ac_ct_STRIP" = x; then
5916     STRIP=":"
5917   else
5918     case $cross_compiling:$ac_tool_warned in
5919 yes:)
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5922 ac_tool_warned=yes ;;
5923 esac
5924     STRIP=$ac_ct_STRIP
5925   fi
5926 else
5927   STRIP="$ac_cv_prog_STRIP"
5928 fi
5929
5930 test -z "$STRIP" && STRIP=:
5931
5932
5933
5934
5935
5936
5937 if test -n "$ac_tool_prefix"; then
5938   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5939 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 $as_echo_n "checking for $ac_word... " >&6; }
5942 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5943   $as_echo_n "(cached) " >&6
5944 else
5945   if test -n "$RANLIB"; then
5946   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951   IFS=$as_save_IFS
5952   test -z "$as_dir" && as_dir=.
5953     for ac_exec_ext in '' $ac_executable_extensions; do
5954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5955     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957     break 2
5958   fi
5959 done
5960   done
5961 IFS=$as_save_IFS
5962
5963 fi
5964 fi
5965 RANLIB=$ac_cv_prog_RANLIB
5966 if test -n "$RANLIB"; then
5967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5968 $as_echo "$RANLIB" >&6; }
5969 else
5970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5972 fi
5973
5974
5975 fi
5976 if test -z "$ac_cv_prog_RANLIB"; then
5977   ac_ct_RANLIB=$RANLIB
5978   # Extract the first word of "ranlib", so it can be a program name with args.
5979 set dummy ranlib; ac_word=$2
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5981 $as_echo_n "checking for $ac_word... " >&6; }
5982 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5983   $as_echo_n "(cached) " >&6
5984 else
5985   if test -n "$ac_ct_RANLIB"; then
5986   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5987 else
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH
5990 do
5991   IFS=$as_save_IFS
5992   test -z "$as_dir" && as_dir=.
5993     for ac_exec_ext in '' $ac_executable_extensions; do
5994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995     ac_cv_prog_ac_ct_RANLIB="ranlib"
5996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997     break 2
5998   fi
5999 done
6000   done
6001 IFS=$as_save_IFS
6002
6003 fi
6004 fi
6005 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6006 if test -n "$ac_ct_RANLIB"; then
6007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6008 $as_echo "$ac_ct_RANLIB" >&6; }
6009 else
6010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011 $as_echo "no" >&6; }
6012 fi
6013
6014   if test "x$ac_ct_RANLIB" = x; then
6015     RANLIB=":"
6016   else
6017     case $cross_compiling:$ac_tool_warned in
6018 yes:)
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6021 ac_tool_warned=yes ;;
6022 esac
6023     RANLIB=$ac_ct_RANLIB
6024   fi
6025 else
6026   RANLIB="$ac_cv_prog_RANLIB"
6027 fi
6028
6029 test -z "$RANLIB" && RANLIB=:
6030
6031
6032
6033
6034
6035
6036 # Determine commands to create old-style static archives.
6037 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6038 old_postinstall_cmds='chmod 644 $oldlib'
6039 old_postuninstall_cmds=
6040
6041 if test -n "$RANLIB"; then
6042   case $host_os in
6043   openbsd*)
6044     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6045     ;;
6046   *)
6047     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6048     ;;
6049   esac
6050   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6051 fi
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086 # If no C compiler was specified, use CC.
6087 LTCC=${LTCC-"$CC"}
6088
6089 # If no C compiler flags were specified, use CFLAGS.
6090 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6091
6092 # Allow CC to be a program name with arguments.
6093 compiler=$CC
6094
6095
6096 # Check for command to grab the raw symbol name followed by C symbol from nm.
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6098 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6099 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6100   $as_echo_n "(cached) " >&6
6101 else
6102
6103 # These are sane defaults that work on at least a few old systems.
6104 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6105
6106 # Character class describing NM global symbol codes.
6107 symcode='[BCDEGRST]'
6108
6109 # Regexp to match symbols that can be accessed directly from C.
6110 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6111
6112 # Define system-specific variables.
6113 case $host_os in
6114 aix*)
6115   symcode='[BCDT]'
6116   ;;
6117 cygwin* | mingw* | pw32* | cegcc*)
6118   symcode='[ABCDGISTW]'
6119   ;;
6120 hpux*)
6121   if test "$host_cpu" = ia64; then
6122     symcode='[ABCDEGRST]'
6123   fi
6124   ;;
6125 irix* | nonstopux*)
6126   symcode='[BCDEGRST]'
6127   ;;
6128 osf*)
6129   symcode='[BCDEGQRST]'
6130   ;;
6131 solaris*)
6132   symcode='[BDRT]'
6133   ;;
6134 sco3.2v5*)
6135   symcode='[DT]'
6136   ;;
6137 sysv4.2uw2*)
6138   symcode='[DT]'
6139   ;;
6140 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6141   symcode='[ABDT]'
6142   ;;
6143 sysv4)
6144   symcode='[DFNSTU]'
6145   ;;
6146 esac
6147
6148 # If we're using GNU nm, then use its standard symbol codes.
6149 case `$NM -V 2>&1` in
6150 *GNU* | *'with BFD'*)
6151   symcode='[ABCDGIRSTW]' ;;
6152 esac
6153
6154 # Transform an extracted symbol line into a proper C declaration.
6155 # Some systems (esp. on ia64) link data and code symbols differently,
6156 # so use this general approach.
6157 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6158
6159 # Transform an extracted symbol line into symbol name and symbol address
6160 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6161 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'"
6162
6163 # Handle CRLF in mingw tool chain
6164 opt_cr=
6165 case $build_os in
6166 mingw*)
6167   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6168   ;;
6169 esac
6170
6171 # Try without a prefix underscore, then with it.
6172 for ac_symprfx in "" "_"; do
6173
6174   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6175   symxfrm="\\1 $ac_symprfx\\2 \\2"
6176
6177   # Write the raw and C identifiers.
6178   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6179     # Fake it for dumpbin and say T for any non-static function
6180     # and D for any global variable.
6181     # Also find C++ and __fastcall symbols from MSVC++,
6182     # which start with @ or ?.
6183     lt_cv_sys_global_symbol_pipe="$AWK '"\
6184 "     {last_section=section; section=\$ 3};"\
6185 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6186 "     \$ 0!~/External *\|/{next};"\
6187 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6188 "     {if(hide[section]) next};"\
6189 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6190 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6191 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6192 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6193 "     ' prfx=^$ac_symprfx"
6194   else
6195     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6196   fi
6197
6198   # Check to see that the pipe works correctly.
6199   pipe_works=no
6200
6201   rm -f conftest*
6202   cat > conftest.$ac_ext <<_LT_EOF
6203 #ifdef __cplusplus
6204 extern "C" {
6205 #endif
6206 char nm_test_var;
6207 void nm_test_func(void);
6208 void nm_test_func(void){}
6209 #ifdef __cplusplus
6210 }
6211 #endif
6212 int main(){nm_test_var='a';nm_test_func();return(0);}
6213 _LT_EOF
6214
6215   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6216   (eval $ac_compile) 2>&5
6217   ac_status=$?
6218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219   test $ac_status = 0; }; then
6220     # Now try to grab the symbols.
6221     nlist=conftest.nm
6222     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6223   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6224   ac_status=$?
6225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226   test $ac_status = 0; } && test -s "$nlist"; then
6227       # Try sorting and uniquifying the output.
6228       if sort "$nlist" | uniq > "$nlist"T; then
6229         mv -f "$nlist"T "$nlist"
6230       else
6231         rm -f "$nlist"T
6232       fi
6233
6234       # Make sure that we snagged all the symbols we need.
6235       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6236         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6237           cat <<_LT_EOF > conftest.$ac_ext
6238 #ifdef __cplusplus
6239 extern "C" {
6240 #endif
6241
6242 _LT_EOF
6243           # Now generate the symbol file.
6244           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6245
6246           cat <<_LT_EOF >> conftest.$ac_ext
6247
6248 /* The mapping between symbol names and symbols.  */
6249 const struct {
6250   const char *name;
6251   void       *address;
6252 }
6253 lt__PROGRAM__LTX_preloaded_symbols[] =
6254 {
6255   { "@PROGRAM@", (void *) 0 },
6256 _LT_EOF
6257           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6258           cat <<\_LT_EOF >> conftest.$ac_ext
6259   {0, (void *) 0}
6260 };
6261
6262 /* This works around a problem in FreeBSD linker */
6263 #ifdef FREEBSD_WORKAROUND
6264 static const void *lt_preloaded_setup() {
6265   return lt__PROGRAM__LTX_preloaded_symbols;
6266 }
6267 #endif
6268
6269 #ifdef __cplusplus
6270 }
6271 #endif
6272 _LT_EOF
6273           # Now try linking the two files.
6274           mv conftest.$ac_objext conftstm.$ac_objext
6275           lt_save_LIBS="$LIBS"
6276           lt_save_CFLAGS="$CFLAGS"
6277           LIBS="conftstm.$ac_objext"
6278           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6279           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6280   (eval $ac_link) 2>&5
6281   ac_status=$?
6282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6283   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6284             pipe_works=yes
6285           fi
6286           LIBS="$lt_save_LIBS"
6287           CFLAGS="$lt_save_CFLAGS"
6288         else
6289           echo "cannot find nm_test_func in $nlist" >&5
6290         fi
6291       else
6292         echo "cannot find nm_test_var in $nlist" >&5
6293       fi
6294     else
6295       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6296     fi
6297   else
6298     echo "$progname: failed program was:" >&5
6299     cat conftest.$ac_ext >&5
6300   fi
6301   rm -rf conftest* conftst*
6302
6303   # Do not use the global_symbol_pipe unless it works.
6304   if test "$pipe_works" = yes; then
6305     break
6306   else
6307     lt_cv_sys_global_symbol_pipe=
6308   fi
6309 done
6310
6311 fi
6312
6313 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6314   lt_cv_sys_global_symbol_to_cdecl=
6315 fi
6316 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6318 $as_echo "failed" >&6; }
6319 else
6320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6321 $as_echo "ok" >&6; }
6322 fi
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346 # Check whether --enable-libtool-lock was given.
6347 if test "${enable_libtool_lock+set}" = set; then :
6348   enableval=$enable_libtool_lock;
6349 fi
6350
6351 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6352
6353 # Some flags need to be propagated to the compiler or linker for good
6354 # libtool support.
6355 case $host in
6356 ia64-*-hpux*)
6357   # Find out which ABI we are using.
6358   echo 'int i;' > conftest.$ac_ext
6359   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6360   (eval $ac_compile) 2>&5
6361   ac_status=$?
6362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6363   test $ac_status = 0; }; then
6364     case `/usr/bin/file conftest.$ac_objext` in
6365       *ELF-32*)
6366         HPUX_IA64_MODE="32"
6367         ;;
6368       *ELF-64*)
6369         HPUX_IA64_MODE="64"
6370         ;;
6371     esac
6372   fi
6373   rm -rf conftest*
6374   ;;
6375 *-*-irix6*)
6376   # Find out which ABI we are using.
6377   echo '#line 6377 "configure"' > conftest.$ac_ext
6378   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6379   (eval $ac_compile) 2>&5
6380   ac_status=$?
6381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6382   test $ac_status = 0; }; then
6383     if test "$lt_cv_prog_gnu_ld" = yes; then
6384       case `/usr/bin/file conftest.$ac_objext` in
6385         *32-bit*)
6386           LD="${LD-ld} -melf32bsmip"
6387           ;;
6388         *N32*)
6389           LD="${LD-ld} -melf32bmipn32"
6390           ;;
6391         *64-bit*)
6392           LD="${LD-ld} -melf64bmip"
6393         ;;
6394       esac
6395     else
6396       case `/usr/bin/file conftest.$ac_objext` in
6397         *32-bit*)
6398           LD="${LD-ld} -32"
6399           ;;
6400         *N32*)
6401           LD="${LD-ld} -n32"
6402           ;;
6403         *64-bit*)
6404           LD="${LD-ld} -64"
6405           ;;
6406       esac
6407     fi
6408   fi
6409   rm -rf conftest*
6410   ;;
6411
6412 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6413 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6414   # Find out which ABI we are using.
6415   echo 'int i;' > conftest.$ac_ext
6416   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6417   (eval $ac_compile) 2>&5
6418   ac_status=$?
6419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420   test $ac_status = 0; }; then
6421     case `/usr/bin/file conftest.o` in
6422       *32-bit*)
6423         case $host in
6424           x86_64-*kfreebsd*-gnu)
6425             LD="${LD-ld} -m elf_i386_fbsd"
6426             ;;
6427           x86_64-*linux*)
6428             LD="${LD-ld} -m elf_i386"
6429             ;;
6430           ppc64-*linux*|powerpc64-*linux*)
6431             LD="${LD-ld} -m elf32ppclinux"
6432             ;;
6433           s390x-*linux*)
6434             LD="${LD-ld} -m elf_s390"
6435             ;;
6436           sparc64-*linux*)
6437             LD="${LD-ld} -m elf32_sparc"
6438             ;;
6439         esac
6440         ;;
6441       *64-bit*)
6442         case $host in
6443           x86_64-*kfreebsd*-gnu)
6444             LD="${LD-ld} -m elf_x86_64_fbsd"
6445             ;;
6446           x86_64-*linux*)
6447             LD="${LD-ld} -m elf_x86_64"
6448             ;;
6449           ppc*-*linux*|powerpc*-*linux*)
6450             LD="${LD-ld} -m elf64ppc"
6451             ;;
6452           s390*-*linux*|s390*-*tpf*)
6453             LD="${LD-ld} -m elf64_s390"
6454             ;;
6455           sparc*-*linux*)
6456             LD="${LD-ld} -m elf64_sparc"
6457             ;;
6458         esac
6459         ;;
6460     esac
6461   fi
6462   rm -rf conftest*
6463   ;;
6464
6465 *-*-sco3.2v5*)
6466   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6467   SAVE_CFLAGS="$CFLAGS"
6468   CFLAGS="$CFLAGS -belf"
6469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6470 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6471 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   ac_ext=c
6475 ac_cpp='$CPP $CPPFLAGS'
6476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6479
6480      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h.  */
6482
6483 int
6484 main ()
6485 {
6486
6487   ;
6488   return 0;
6489 }
6490 _ACEOF
6491 if ac_fn_c_try_link "$LINENO"; then :
6492   lt_cv_cc_needs_belf=yes
6493 else
6494   lt_cv_cc_needs_belf=no
6495 fi
6496 rm -f core conftest.err conftest.$ac_objext \
6497     conftest$ac_exeext conftest.$ac_ext
6498      ac_ext=c
6499 ac_cpp='$CPP $CPPFLAGS'
6500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6503
6504 fi
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6506 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6507   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6508     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6509     CFLAGS="$SAVE_CFLAGS"
6510   fi
6511   ;;
6512 sparc*-*solaris*)
6513   # Find out which ABI we are using.
6514   echo 'int i;' > conftest.$ac_ext
6515   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6516   (eval $ac_compile) 2>&5
6517   ac_status=$?
6518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6519   test $ac_status = 0; }; then
6520     case `/usr/bin/file conftest.o` in
6521     *64-bit*)
6522       case $lt_cv_prog_gnu_ld in
6523       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6524       *)
6525         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6526           LD="${LD-ld} -64"
6527         fi
6528         ;;
6529       esac
6530       ;;
6531     esac
6532   fi
6533   rm -rf conftest*
6534   ;;
6535 esac
6536
6537 need_locks="$enable_libtool_lock"
6538
6539
6540   case $host_os in
6541     rhapsody* | darwin*)
6542     if test -n "$ac_tool_prefix"; then
6543   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6544 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550   if test -n "$DSYMUTIL"; then
6551   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558     for ac_exec_ext in '' $ac_executable_extensions; do
6559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565   done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6571 if test -n "$DSYMUTIL"; then
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6573 $as_echo "$DSYMUTIL" >&6; }
6574 else
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6577 fi
6578
6579
6580 fi
6581 if test -z "$ac_cv_prog_DSYMUTIL"; then
6582   ac_ct_DSYMUTIL=$DSYMUTIL
6583   # Extract the first word of "dsymutil", so it can be a program name with args.
6584 set dummy dsymutil; ac_word=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6588   $as_echo_n "(cached) " >&6
6589 else
6590   if test -n "$ac_ct_DSYMUTIL"; then
6591   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598     for ac_exec_ext in '' $ac_executable_extensions; do
6599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605   done
6606 IFS=$as_save_IFS
6607
6608 fi
6609 fi
6610 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6611 if test -n "$ac_ct_DSYMUTIL"; then
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6613 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6614 else
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6617 fi
6618
6619   if test "x$ac_ct_DSYMUTIL" = x; then
6620     DSYMUTIL=":"
6621   else
6622     case $cross_compiling:$ac_tool_warned in
6623 yes:)
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6626 ac_tool_warned=yes ;;
6627 esac
6628     DSYMUTIL=$ac_ct_DSYMUTIL
6629   fi
6630 else
6631   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6632 fi
6633
6634     if test -n "$ac_tool_prefix"; then
6635   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6636 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6640   $as_echo_n "(cached) " >&6
6641 else
6642   if test -n "$NMEDIT"; then
6643   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6644 else
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6647 do
6648   IFS=$as_save_IFS
6649   test -z "$as_dir" && as_dir=.
6650     for ac_exec_ext in '' $ac_executable_extensions; do
6651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654     break 2
6655   fi
6656 done
6657   done
6658 IFS=$as_save_IFS
6659
6660 fi
6661 fi
6662 NMEDIT=$ac_cv_prog_NMEDIT
6663 if test -n "$NMEDIT"; then
6664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6665 $as_echo "$NMEDIT" >&6; }
6666 else
6667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 $as_echo "no" >&6; }
6669 fi
6670
6671
6672 fi
6673 if test -z "$ac_cv_prog_NMEDIT"; then
6674   ac_ct_NMEDIT=$NMEDIT
6675   # Extract the first word of "nmedit", so it can be a program name with args.
6676 set dummy nmedit; ac_word=$2
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 $as_echo_n "checking for $ac_word... " >&6; }
6679 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6680   $as_echo_n "(cached) " >&6
6681 else
6682   if test -n "$ac_ct_NMEDIT"; then
6683   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6684 else
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688   IFS=$as_save_IFS
6689   test -z "$as_dir" && as_dir=.
6690     for ac_exec_ext in '' $ac_executable_extensions; do
6691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694     break 2
6695   fi
6696 done
6697   done
6698 IFS=$as_save_IFS
6699
6700 fi
6701 fi
6702 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6703 if test -n "$ac_ct_NMEDIT"; then
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6705 $as_echo "$ac_ct_NMEDIT" >&6; }
6706 else
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6709 fi
6710
6711   if test "x$ac_ct_NMEDIT" = x; then
6712     NMEDIT=":"
6713   else
6714     case $cross_compiling:$ac_tool_warned in
6715 yes:)
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6718 ac_tool_warned=yes ;;
6719 esac
6720     NMEDIT=$ac_ct_NMEDIT
6721   fi
6722 else
6723   NMEDIT="$ac_cv_prog_NMEDIT"
6724 fi
6725
6726     if test -n "$ac_tool_prefix"; then
6727   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6728 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if test "${ac_cv_prog_LIPO+set}" = set; then :
6732   $as_echo_n "(cached) " >&6
6733 else
6734   if test -n "$LIPO"; then
6735   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740   IFS=$as_save_IFS
6741   test -z "$as_dir" && as_dir=.
6742     for ac_exec_ext in '' $ac_executable_extensions; do
6743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746     break 2
6747   fi
6748 done
6749   done
6750 IFS=$as_save_IFS
6751
6752 fi
6753 fi
6754 LIPO=$ac_cv_prog_LIPO
6755 if test -n "$LIPO"; then
6756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6757 $as_echo "$LIPO" >&6; }
6758 else
6759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6761 fi
6762
6763
6764 fi
6765 if test -z "$ac_cv_prog_LIPO"; then
6766   ac_ct_LIPO=$LIPO
6767   # Extract the first word of "lipo", so it can be a program name with args.
6768 set dummy lipo; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6772   $as_echo_n "(cached) " >&6
6773 else
6774   if test -n "$ac_ct_LIPO"; then
6775   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780   IFS=$as_save_IFS
6781   test -z "$as_dir" && as_dir=.
6782     for ac_exec_ext in '' $ac_executable_extensions; do
6783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784     ac_cv_prog_ac_ct_LIPO="lipo"
6785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786     break 2
6787   fi
6788 done
6789   done
6790 IFS=$as_save_IFS
6791
6792 fi
6793 fi
6794 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6795 if test -n "$ac_ct_LIPO"; then
6796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6797 $as_echo "$ac_ct_LIPO" >&6; }
6798 else
6799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6801 fi
6802
6803   if test "x$ac_ct_LIPO" = x; then
6804     LIPO=":"
6805   else
6806     case $cross_compiling:$ac_tool_warned in
6807 yes:)
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810 ac_tool_warned=yes ;;
6811 esac
6812     LIPO=$ac_ct_LIPO
6813   fi
6814 else
6815   LIPO="$ac_cv_prog_LIPO"
6816 fi
6817
6818     if test -n "$ac_tool_prefix"; then
6819   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6820 set dummy ${ac_tool_prefix}otool; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6824   $as_echo_n "(cached) " >&6
6825 else
6826   if test -n "$OTOOL"; then
6827   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834     for ac_exec_ext in '' $ac_executable_extensions; do
6835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841   done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 OTOOL=$ac_cv_prog_OTOOL
6847 if test -n "$OTOOL"; then
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6849 $as_echo "$OTOOL" >&6; }
6850 else
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855
6856 fi
6857 if test -z "$ac_cv_prog_OTOOL"; then
6858   ac_ct_OTOOL=$OTOOL
6859   # Extract the first word of "otool", so it can be a program name with args.
6860 set dummy otool; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6864   $as_echo_n "(cached) " >&6
6865 else
6866   if test -n "$ac_ct_OTOOL"; then
6867   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872   IFS=$as_save_IFS
6873   test -z "$as_dir" && as_dir=.
6874     for ac_exec_ext in '' $ac_executable_extensions; do
6875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876     ac_cv_prog_ac_ct_OTOOL="otool"
6877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878     break 2
6879   fi
6880 done
6881   done
6882 IFS=$as_save_IFS
6883
6884 fi
6885 fi
6886 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6887 if test -n "$ac_ct_OTOOL"; then
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6889 $as_echo "$ac_ct_OTOOL" >&6; }
6890 else
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893 fi
6894
6895   if test "x$ac_ct_OTOOL" = x; then
6896     OTOOL=":"
6897   else
6898     case $cross_compiling:$ac_tool_warned in
6899 yes:)
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902 ac_tool_warned=yes ;;
6903 esac
6904     OTOOL=$ac_ct_OTOOL
6905   fi
6906 else
6907   OTOOL="$ac_cv_prog_OTOOL"
6908 fi
6909
6910     if test -n "$ac_tool_prefix"; then
6911   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6912 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   if test -n "$OTOOL64"; then
6919   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926     for ac_exec_ext in '' $ac_executable_extensions; do
6927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933   done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 OTOOL64=$ac_cv_prog_OTOOL64
6939 if test -n "$OTOOL64"; then
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6941 $as_echo "$OTOOL64" >&6; }
6942 else
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946
6947
6948 fi
6949 if test -z "$ac_cv_prog_OTOOL64"; then
6950   ac_ct_OTOOL64=$OTOOL64
6951   # Extract the first word of "otool64", so it can be a program name with args.
6952 set dummy otool64; ac_word=$2
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954 $as_echo_n "checking for $ac_word... " >&6; }
6955 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6956   $as_echo_n "(cached) " >&6
6957 else
6958   if test -n "$ac_ct_OTOOL64"; then
6959   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6960 else
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966     for ac_exec_ext in '' $ac_executable_extensions; do
6967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968     ac_cv_prog_ac_ct_OTOOL64="otool64"
6969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973   done
6974 IFS=$as_save_IFS
6975
6976 fi
6977 fi
6978 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6979 if test -n "$ac_ct_OTOOL64"; then
6980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6981 $as_echo "$ac_ct_OTOOL64" >&6; }
6982 else
6983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6985 fi
6986
6987   if test "x$ac_ct_OTOOL64" = x; then
6988     OTOOL64=":"
6989   else
6990     case $cross_compiling:$ac_tool_warned in
6991 yes:)
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6994 ac_tool_warned=yes ;;
6995 esac
6996     OTOOL64=$ac_ct_OTOOL64
6997   fi
6998 else
6999   OTOOL64="$ac_cv_prog_OTOOL64"
7000 fi
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7029 $as_echo_n "checking for -single_module linker flag... " >&6; }
7030 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7031   $as_echo_n "(cached) " >&6
7032 else
7033   lt_cv_apple_cc_single_mod=no
7034       if test -z "${LT_MULTI_MODULE}"; then
7035         # By default we will add the -single_module flag. You can override
7036         # by either setting the environment variable LT_MULTI_MODULE
7037         # non-empty at configure time, or by adding -multi_module to the
7038         # link flags.
7039         rm -rf libconftest.dylib*
7040         echo "int foo(void){return 1;}" > conftest.c
7041         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7042 -dynamiclib -Wl,-single_module conftest.c" >&5
7043         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7044           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7045         _lt_result=$?
7046         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7047           lt_cv_apple_cc_single_mod=yes
7048         else
7049           cat conftest.err >&5
7050         fi
7051         rm -rf libconftest.dylib*
7052         rm -f conftest.*
7053       fi
7054 fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7056 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7058 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7059 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7060   $as_echo_n "(cached) " >&6
7061 else
7062   lt_cv_ld_exported_symbols_list=no
7063       save_LDFLAGS=$LDFLAGS
7064       echo "_main" > conftest.sym
7065       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h.  */
7068
7069 int
7070 main ()
7071 {
7072
7073   ;
7074   return 0;
7075 }
7076 _ACEOF
7077 if ac_fn_c_try_link "$LINENO"; then :
7078   lt_cv_ld_exported_symbols_list=yes
7079 else
7080   lt_cv_ld_exported_symbols_list=no
7081 fi
7082 rm -f core conftest.err conftest.$ac_objext \
7083     conftest$ac_exeext conftest.$ac_ext
7084         LDFLAGS="$save_LDFLAGS"
7085
7086 fi
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7088 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7089     case $host_os in
7090     rhapsody* | darwin1.[012])
7091       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7092     darwin1.*)
7093       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7094     darwin*) # darwin 5.x on
7095       # if running on 10.5 or later, the deployment target defaults
7096       # to the OS version, if on x86, and 10.4, the deployment
7097       # target defaults to 10.4. Don't you love it?
7098       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7099         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7100           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7101         10.[012]*)
7102           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7103         10.*)
7104           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7105       esac
7106     ;;
7107   esac
7108     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7109       _lt_dar_single_mod='$single_module'
7110     fi
7111     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7112       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7113     else
7114       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7115     fi
7116     if test "$DSYMUTIL" != ":"; then
7117       _lt_dsymutil='~$DSYMUTIL $lib || :'
7118     else
7119       _lt_dsymutil=
7120     fi
7121     ;;
7122   esac
7123
7124 ac_ext=c
7125 ac_cpp='$CPP $CPPFLAGS'
7126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7130 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7131 # On Suns, sometimes $CPP names a directory.
7132 if test -n "$CPP" && test -d "$CPP"; then
7133   CPP=
7134 fi
7135 if test -z "$CPP"; then
7136   if test "${ac_cv_prog_CPP+set}" = set; then :
7137   $as_echo_n "(cached) " >&6
7138 else
7139       # Double quotes because CPP needs to be expanded
7140     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7141     do
7142       ac_preproc_ok=false
7143 for ac_c_preproc_warn_flag in '' yes
7144 do
7145   # Use a header file that comes with gcc, so configuring glibc
7146   # with a fresh cross-compiler works.
7147   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7148   # <limits.h> exists even on freestanding compilers.
7149   # On the NeXT, cc -E runs the code through the compiler's parser,
7150   # not just through cpp. "Syntax error" is here to catch this case.
7151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h.  */
7153 #ifdef __STDC__
7154 # include <limits.h>
7155 #else
7156 # include <assert.h>
7157 #endif
7158                      Syntax error
7159 _ACEOF
7160 if ac_fn_c_try_cpp "$LINENO"; then :
7161
7162 else
7163   # Broken: fails on valid input.
7164 continue
7165 fi
7166 rm -f conftest.err conftest.i conftest.$ac_ext
7167
7168   # OK, works on sane cases.  Now check whether nonexistent headers
7169   # can be detected and how.
7170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h.  */
7172 #include <ac_nonexistent.h>
7173 _ACEOF
7174 if ac_fn_c_try_cpp "$LINENO"; then :
7175   # Broken: success on invalid input.
7176 continue
7177 else
7178   # Passes both tests.
7179 ac_preproc_ok=:
7180 break
7181 fi
7182 rm -f conftest.err conftest.i conftest.$ac_ext
7183
7184 done
7185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7186 rm -f conftest.i conftest.err conftest.$ac_ext
7187 if $ac_preproc_ok; then :
7188   break
7189 fi
7190
7191     done
7192     ac_cv_prog_CPP=$CPP
7193
7194 fi
7195   CPP=$ac_cv_prog_CPP
7196 else
7197   ac_cv_prog_CPP=$CPP
7198 fi
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7200 $as_echo "$CPP" >&6; }
7201 ac_preproc_ok=false
7202 for ac_c_preproc_warn_flag in '' yes
7203 do
7204   # Use a header file that comes with gcc, so configuring glibc
7205   # with a fresh cross-compiler works.
7206   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7207   # <limits.h> exists even on freestanding compilers.
7208   # On the NeXT, cc -E runs the code through the compiler's parser,
7209   # not just through cpp. "Syntax error" is here to catch this case.
7210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h.  */
7212 #ifdef __STDC__
7213 # include <limits.h>
7214 #else
7215 # include <assert.h>
7216 #endif
7217                      Syntax error
7218 _ACEOF
7219 if ac_fn_c_try_cpp "$LINENO"; then :
7220
7221 else
7222   # Broken: fails on valid input.
7223 continue
7224 fi
7225 rm -f conftest.err conftest.i conftest.$ac_ext
7226
7227   # OK, works on sane cases.  Now check whether nonexistent headers
7228   # can be detected and how.
7229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h.  */
7231 #include <ac_nonexistent.h>
7232 _ACEOF
7233 if ac_fn_c_try_cpp "$LINENO"; then :
7234   # Broken: success on invalid input.
7235 continue
7236 else
7237   # Passes both tests.
7238 ac_preproc_ok=:
7239 break
7240 fi
7241 rm -f conftest.err conftest.i conftest.$ac_ext
7242
7243 done
7244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7245 rm -f conftest.i conftest.err conftest.$ac_ext
7246 if $ac_preproc_ok; then :
7247
7248 else
7249   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7251 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7252 See \`config.log' for more details" "$LINENO" 5 ; }
7253 fi
7254
7255 ac_ext=c
7256 ac_cpp='$CPP $CPPFLAGS'
7257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7260
7261
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7263 $as_echo_n "checking for ANSI C header files... " >&6; }
7264 if test "${ac_cv_header_stdc+set}" = set; then :
7265   $as_echo_n "(cached) " >&6
7266 else
7267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h.  */
7269 #include <stdlib.h>
7270 #include <stdarg.h>
7271 #include <string.h>
7272 #include <float.h>
7273
7274 int
7275 main ()
7276 {
7277
7278   ;
7279   return 0;
7280 }
7281 _ACEOF
7282 if ac_fn_c_try_compile "$LINENO"; then :
7283   ac_cv_header_stdc=yes
7284 else
7285   ac_cv_header_stdc=no
7286 fi
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288
7289 if test $ac_cv_header_stdc = yes; then
7290   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h.  */
7293 #include <string.h>
7294
7295 _ACEOF
7296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7297   $EGREP "memchr" >/dev/null 2>&1; then :
7298
7299 else
7300   ac_cv_header_stdc=no
7301 fi
7302 rm -f conftest*
7303
7304 fi
7305
7306 if test $ac_cv_header_stdc = yes; then
7307   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h.  */
7310 #include <stdlib.h>
7311
7312 _ACEOF
7313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7314   $EGREP "free" >/dev/null 2>&1; then :
7315
7316 else
7317   ac_cv_header_stdc=no
7318 fi
7319 rm -f conftest*
7320
7321 fi
7322
7323 if test $ac_cv_header_stdc = yes; then
7324   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7325   if test "$cross_compiling" = yes; then :
7326   :
7327 else
7328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h.  */
7330 #include <ctype.h>
7331 #include <stdlib.h>
7332 #if ((' ' & 0x0FF) == 0x020)
7333 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7334 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7335 #else
7336 # define ISLOWER(c) \
7337                    (('a' <= (c) && (c) <= 'i') \
7338                      || ('j' <= (c) && (c) <= 'r') \
7339                      || ('s' <= (c) && (c) <= 'z'))
7340 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7341 #endif
7342
7343 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7344 int
7345 main ()
7346 {
7347   int i;
7348   for (i = 0; i < 256; i++)
7349     if (XOR (islower (i), ISLOWER (i))
7350         || toupper (i) != TOUPPER (i))
7351       return 2;
7352   return 0;
7353 }
7354 _ACEOF
7355 if ac_fn_c_try_run "$LINENO"; then :
7356
7357 else
7358   ac_cv_header_stdc=no
7359 fi
7360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7361   conftest.$ac_objext conftest.beam conftest.$ac_ext
7362 fi
7363
7364 fi
7365 fi
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7367 $as_echo "$ac_cv_header_stdc" >&6; }
7368 if test $ac_cv_header_stdc = yes; then
7369
7370 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7371
7372 fi
7373
7374 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7375 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7376                   inttypes.h stdint.h unistd.h
7377 do :
7378   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7379 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7380 "
7381 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7382   cat >>confdefs.h <<_ACEOF
7383 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7384 _ACEOF
7385
7386 fi
7387
7388 done
7389
7390
7391 for ac_header in dlfcn.h
7392 do :
7393   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7394 "
7395 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7396   cat >>confdefs.h <<_ACEOF
7397 #define HAVE_DLFCN_H 1
7398 _ACEOF
7399
7400 fi
7401
7402 done
7403
7404
7405
7406 # Set options
7407
7408
7409
7410         enable_dlopen=no
7411
7412
7413   enable_win32_dll=no
7414
7415
7416             # Check whether --enable-shared was given.
7417 if test "${enable_shared+set}" = set; then :
7418   enableval=$enable_shared; p=${PACKAGE-default}
7419     case $enableval in
7420     yes) enable_shared=yes ;;
7421     no) enable_shared=no ;;
7422     *)
7423       enable_shared=no
7424       # Look at the argument we got.  We use all the common list separators.
7425       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7426       for pkg in $enableval; do
7427         IFS="$lt_save_ifs"
7428         if test "X$pkg" = "X$p"; then
7429           enable_shared=yes
7430         fi
7431       done
7432       IFS="$lt_save_ifs"
7433       ;;
7434     esac
7435 else
7436   enable_shared=yes
7437 fi
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449 # Check whether --with-pic was given.
7450 if test "${with_pic+set}" = set; then :
7451   withval=$with_pic; pic_mode="$withval"
7452 else
7453   pic_mode=default
7454 fi
7455
7456
7457 test -z "$pic_mode" && pic_mode=default
7458
7459
7460
7461
7462
7463
7464
7465   # Check whether --enable-fast-install was given.
7466 if test "${enable_fast_install+set}" = set; then :
7467   enableval=$enable_fast_install; p=${PACKAGE-default}
7468     case $enableval in
7469     yes) enable_fast_install=yes ;;
7470     no) enable_fast_install=no ;;
7471     *)
7472       enable_fast_install=no
7473       # Look at the argument we got.  We use all the common list separators.
7474       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7475       for pkg in $enableval; do
7476         IFS="$lt_save_ifs"
7477         if test "X$pkg" = "X$p"; then
7478           enable_fast_install=yes
7479         fi
7480       done
7481       IFS="$lt_save_ifs"
7482       ;;
7483     esac
7484 else
7485   enable_fast_install=yes
7486 fi
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 # This can be used to rebuild libtool when needed
7499 LIBTOOL_DEPS="$ltmain"
7500
7501 # Always use our own libtool.
7502 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528 test -z "$LN_S" && LN_S="ln -s"
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543 if test -n "${ZSH_VERSION+set}" ; then
7544    setopt NO_GLOB_SUBST
7545 fi
7546
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7548 $as_echo_n "checking for objdir... " >&6; }
7549 if test "${lt_cv_objdir+set}" = set; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   rm -f .libs 2>/dev/null
7553 mkdir .libs 2>/dev/null
7554 if test -d .libs; then
7555   lt_cv_objdir=.libs
7556 else
7557   # MS-DOS does not allow filenames that begin with a dot.
7558   lt_cv_objdir=_libs
7559 fi
7560 rmdir .libs 2>/dev/null
7561 fi
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7563 $as_echo "$lt_cv_objdir" >&6; }
7564 objdir=$lt_cv_objdir
7565
7566
7567
7568
7569
7570 cat >>confdefs.h <<_ACEOF
7571 #define LT_OBJDIR "$lt_cv_objdir/"
7572 _ACEOF
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590 case $host_os in
7591 aix3*)
7592   # AIX sometimes has problems with the GCC collect2 program.  For some
7593   # reason, if we set the COLLECT_NAMES environment variable, the problems
7594   # vanish in a puff of smoke.
7595   if test "X${COLLECT_NAMES+set}" != Xset; then
7596     COLLECT_NAMES=
7597     export COLLECT_NAMES
7598   fi
7599   ;;
7600 esac
7601
7602 # Sed substitution that helps us do robust quoting.  It backslashifies
7603 # metacharacters that are still active within double-quoted strings.
7604 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7605
7606 # Same as above, but do not quote variable references.
7607 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7608
7609 # Sed substitution to delay expansion of an escaped shell variable in a
7610 # double_quote_subst'ed string.
7611 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7612
7613 # Sed substitution to delay expansion of an escaped single quote.
7614 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7615
7616 # Sed substitution to avoid accidental globbing in evaled expressions
7617 no_glob_subst='s/\*/\\\*/g'
7618
7619 # Global variables:
7620 ofile=libtool
7621 can_build_shared=yes
7622
7623 # All known linkers require a `.a' archive for static linking (except MSVC,
7624 # which needs '.lib').
7625 libext=a
7626
7627 with_gnu_ld="$lt_cv_prog_gnu_ld"
7628
7629 old_CC="$CC"
7630 old_CFLAGS="$CFLAGS"
7631
7632 # Set sane defaults for various variables
7633 test -z "$CC" && CC=cc
7634 test -z "$LTCC" && LTCC=$CC
7635 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7636 test -z "$LD" && LD=ld
7637 test -z "$ac_objext" && ac_objext=o
7638
7639 for cc_temp in $compiler""; do
7640   case $cc_temp in
7641     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7642     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7643     \-*) ;;
7644     *) break;;
7645   esac
7646 done
7647 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7648
7649
7650 # Only perform the check for file, if the check method requires it
7651 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7652 case $deplibs_check_method in
7653 file_magic*)
7654   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7656 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7657 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7658   $as_echo_n "(cached) " >&6
7659 else
7660   case $MAGIC_CMD in
7661 [\\/*] |  ?:[\\/]*)
7662   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7663   ;;
7664 *)
7665   lt_save_MAGIC_CMD="$MAGIC_CMD"
7666   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7667   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7668   for ac_dir in $ac_dummy; do
7669     IFS="$lt_save_ifs"
7670     test -z "$ac_dir" && ac_dir=.
7671     if test -f $ac_dir/${ac_tool_prefix}file; then
7672       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7673       if test -n "$file_magic_test_file"; then
7674         case $deplibs_check_method in
7675         "file_magic "*)
7676           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7677           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7678           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7679             $EGREP "$file_magic_regex" > /dev/null; then
7680             :
7681           else
7682             cat <<_LT_EOF 1>&2
7683
7684 *** Warning: the command libtool uses to detect shared libraries,
7685 *** $file_magic_cmd, produces output that libtool cannot recognize.
7686 *** The result is that libtool may fail to recognize shared libraries
7687 *** as such.  This will affect the creation of libtool libraries that
7688 *** depend on shared libraries, but programs linked with such libtool
7689 *** libraries will work regardless of this problem.  Nevertheless, you
7690 *** may want to report the problem to your system manager and/or to
7691 *** bug-libtool@gnu.org
7692
7693 _LT_EOF
7694           fi ;;
7695         esac
7696       fi
7697       break
7698     fi
7699   done
7700   IFS="$lt_save_ifs"
7701   MAGIC_CMD="$lt_save_MAGIC_CMD"
7702   ;;
7703 esac
7704 fi
7705
7706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7707 if test -n "$MAGIC_CMD"; then
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7709 $as_echo "$MAGIC_CMD" >&6; }
7710 else
7711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7713 fi
7714
7715
7716
7717
7718
7719 if test -z "$lt_cv_path_MAGIC_CMD"; then
7720   if test -n "$ac_tool_prefix"; then
7721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7722 $as_echo_n "checking for file... " >&6; }
7723 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7724   $as_echo_n "(cached) " >&6
7725 else
7726   case $MAGIC_CMD in
7727 [\\/*] |  ?:[\\/]*)
7728   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7729   ;;
7730 *)
7731   lt_save_MAGIC_CMD="$MAGIC_CMD"
7732   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7733   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7734   for ac_dir in $ac_dummy; do
7735     IFS="$lt_save_ifs"
7736     test -z "$ac_dir" && ac_dir=.
7737     if test -f $ac_dir/file; then
7738       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7739       if test -n "$file_magic_test_file"; then
7740         case $deplibs_check_method in
7741         "file_magic "*)
7742           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7743           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7744           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7745             $EGREP "$file_magic_regex" > /dev/null; then
7746             :
7747           else
7748             cat <<_LT_EOF 1>&2
7749
7750 *** Warning: the command libtool uses to detect shared libraries,
7751 *** $file_magic_cmd, produces output that libtool cannot recognize.
7752 *** The result is that libtool may fail to recognize shared libraries
7753 *** as such.  This will affect the creation of libtool libraries that
7754 *** depend on shared libraries, but programs linked with such libtool
7755 *** libraries will work regardless of this problem.  Nevertheless, you
7756 *** may want to report the problem to your system manager and/or to
7757 *** bug-libtool@gnu.org
7758
7759 _LT_EOF
7760           fi ;;
7761         esac
7762       fi
7763       break
7764     fi
7765   done
7766   IFS="$lt_save_ifs"
7767   MAGIC_CMD="$lt_save_MAGIC_CMD"
7768   ;;
7769 esac
7770 fi
7771
7772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7773 if test -n "$MAGIC_CMD"; then
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7775 $as_echo "$MAGIC_CMD" >&6; }
7776 else
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7779 fi
7780
7781
7782   else
7783     MAGIC_CMD=:
7784   fi
7785 fi
7786
7787   fi
7788   ;;
7789 esac
7790
7791 # Use C for the default configuration in the libtool script
7792
7793 lt_save_CC="$CC"
7794 ac_ext=c
7795 ac_cpp='$CPP $CPPFLAGS'
7796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7799
7800
7801 # Source file extension for C test sources.
7802 ac_ext=c
7803
7804 # Object file extension for compiled C test sources.
7805 objext=o
7806 objext=$objext
7807
7808 # Code to be used in simple compile tests
7809 lt_simple_compile_test_code="int some_variable = 0;"
7810
7811 # Code to be used in simple link tests
7812 lt_simple_link_test_code='int main(){return(0);}'
7813
7814
7815
7816
7817
7818
7819
7820 # If no C compiler was specified, use CC.
7821 LTCC=${LTCC-"$CC"}
7822
7823 # If no C compiler flags were specified, use CFLAGS.
7824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7825
7826 # Allow CC to be a program name with arguments.
7827 compiler=$CC
7828
7829 # Save the default compiler, since it gets overwritten when the other
7830 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7831 compiler_DEFAULT=$CC
7832
7833 # save warnings/boilerplate of simple test code
7834 ac_outfile=conftest.$ac_objext
7835 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7836 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7837 _lt_compiler_boilerplate=`cat conftest.err`
7838 $RM conftest*
7839
7840 ac_outfile=conftest.$ac_objext
7841 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7842 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7843 _lt_linker_boilerplate=`cat conftest.err`
7844 $RM -r conftest*
7845
7846
7847 ## CAVEAT EMPTOR:
7848 ## There is no encapsulation within the following macros, do not change
7849 ## the running order or otherwise move them around unless you know exactly
7850 ## what you are doing...
7851 if test -n "$compiler"; then
7852
7853 lt_prog_compiler_no_builtin_flag=
7854
7855 if test "$GCC" = yes; then
7856   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7857
7858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7859 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7860 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7861   $as_echo_n "(cached) " >&6
7862 else
7863   lt_cv_prog_compiler_rtti_exceptions=no
7864    ac_outfile=conftest.$ac_objext
7865    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7866    lt_compiler_flag="-fno-rtti -fno-exceptions"
7867    # Insert the option either (1) after the last *FLAGS variable, or
7868    # (2) before a word containing "conftest.", or (3) at the end.
7869    # Note that $ac_compile itself does not contain backslashes and begins
7870    # with a dollar sign (not a hyphen), so the echo should work correctly.
7871    # The option is referenced via a variable to avoid confusing sed.
7872    lt_compile=`echo "$ac_compile" | $SED \
7873    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7874    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7875    -e 's:$: $lt_compiler_flag:'`
7876    (eval echo "\"\$as_me:7876: $lt_compile\"" >&5)
7877    (eval "$lt_compile" 2>conftest.err)
7878    ac_status=$?
7879    cat conftest.err >&5
7880    echo "$as_me:7880: \$? = $ac_status" >&5
7881    if (exit $ac_status) && test -s "$ac_outfile"; then
7882      # The compiler can only warn and ignore the option if not recognized
7883      # So say no if there are warnings other than the usual output.
7884      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7885      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7886      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7887        lt_cv_prog_compiler_rtti_exceptions=yes
7888      fi
7889    fi
7890    $RM conftest*
7891
7892 fi
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7894 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7895
7896 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7897     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7898 else
7899     :
7900 fi
7901
7902 fi
7903
7904
7905
7906
7907
7908
7909   lt_prog_compiler_wl=
7910 lt_prog_compiler_pic=
7911 lt_prog_compiler_static=
7912
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7914 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7915
7916   if test "$GCC" = yes; then
7917     lt_prog_compiler_wl='-Wl,'
7918     lt_prog_compiler_static='-static'
7919
7920     case $host_os in
7921       aix*)
7922       # All AIX code is PIC.
7923       if test "$host_cpu" = ia64; then
7924         # AIX 5 now supports IA64 processor
7925         lt_prog_compiler_static='-Bstatic'
7926       fi
7927       ;;
7928
7929     amigaos*)
7930       case $host_cpu in
7931       powerpc)
7932             # see comment about AmigaOS4 .so support
7933             lt_prog_compiler_pic='-fPIC'
7934         ;;
7935       m68k)
7936             # FIXME: we need at least 68020 code to build shared libraries, but
7937             # adding the `-m68020' flag to GCC prevents building anything better,
7938             # like `-m68040'.
7939             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7940         ;;
7941       esac
7942       ;;
7943
7944     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7945       # PIC is the default for these OSes.
7946       ;;
7947
7948     mingw* | cygwin* | pw32* | os2* | cegcc*)
7949       # This hack is so that the source file can tell whether it is being
7950       # built for inclusion in a dll (and should export symbols for example).
7951       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7952       # (--disable-auto-import) libraries
7953       lt_prog_compiler_pic='-DDLL_EXPORT'
7954       ;;
7955
7956     darwin* | rhapsody*)
7957       # PIC is the default on this platform
7958       # Common symbols not allowed in MH_DYLIB files
7959       lt_prog_compiler_pic='-fno-common'
7960       ;;
7961
7962     hpux*)
7963       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7964       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7965       # sets the default TLS model and affects inlining.
7966       case $host_cpu in
7967       hppa*64*)
7968         # +Z the default
7969         ;;
7970       *)
7971         lt_prog_compiler_pic='-fPIC'
7972         ;;
7973       esac
7974       ;;
7975
7976     interix[3-9]*)
7977       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7978       # Instead, we relocate shared libraries at runtime.
7979       ;;
7980
7981     msdosdjgpp*)
7982       # Just because we use GCC doesn't mean we suddenly get shared libraries
7983       # on systems that don't support them.
7984       lt_prog_compiler_can_build_shared=no
7985       enable_shared=no
7986       ;;
7987
7988     *nto* | *qnx*)
7989       # QNX uses GNU C++, but need to define -shared option too, otherwise
7990       # it will coredump.
7991       lt_prog_compiler_pic='-fPIC -shared'
7992       ;;
7993
7994     sysv4*MP*)
7995       if test -d /usr/nec; then
7996         lt_prog_compiler_pic=-Kconform_pic
7997       fi
7998       ;;
7999
8000     *)
8001       lt_prog_compiler_pic='-fPIC'
8002       ;;
8003     esac
8004   else
8005     # PORTME Check for flag to pass linker flags through the system compiler.
8006     case $host_os in
8007     aix*)
8008       lt_prog_compiler_wl='-Wl,'
8009       if test "$host_cpu" = ia64; then
8010         # AIX 5 now supports IA64 processor
8011         lt_prog_compiler_static='-Bstatic'
8012       else
8013         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8014       fi
8015       ;;
8016
8017     mingw* | cygwin* | pw32* | os2* | cegcc*)
8018       # This hack is so that the source file can tell whether it is being
8019       # built for inclusion in a dll (and should export symbols for example).
8020       lt_prog_compiler_pic='-DDLL_EXPORT'
8021       ;;
8022
8023     hpux9* | hpux10* | hpux11*)
8024       lt_prog_compiler_wl='-Wl,'
8025       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8026       # not for PA HP-UX.
8027       case $host_cpu in
8028       hppa*64*|ia64*)
8029         # +Z the default
8030         ;;
8031       *)
8032         lt_prog_compiler_pic='+Z'
8033         ;;
8034       esac
8035       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8036       lt_prog_compiler_static='${wl}-a ${wl}archive'
8037       ;;
8038
8039     irix5* | irix6* | nonstopux*)
8040       lt_prog_compiler_wl='-Wl,'
8041       # PIC (with -KPIC) is the default.
8042       lt_prog_compiler_static='-non_shared'
8043       ;;
8044
8045     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8046       case $cc_basename in
8047       # old Intel for x86_64 which still supported -KPIC.
8048       ecc*)
8049         lt_prog_compiler_wl='-Wl,'
8050         lt_prog_compiler_pic='-KPIC'
8051         lt_prog_compiler_static='-static'
8052         ;;
8053       # icc used to be incompatible with GCC.
8054       # ICC 10 doesn't accept -KPIC any more.
8055       icc* | ifort*)
8056         lt_prog_compiler_wl='-Wl,'
8057         lt_prog_compiler_pic='-fPIC'
8058         lt_prog_compiler_static='-static'
8059         ;;
8060       # Lahey Fortran 8.1.
8061       lf95*)
8062         lt_prog_compiler_wl='-Wl,'
8063         lt_prog_compiler_pic='--shared'
8064         lt_prog_compiler_static='--static'
8065         ;;
8066       pgcc* | pgf77* | pgf90* | pgf95*)
8067         # Portland Group compilers (*not* the Pentium gcc compiler,
8068         # which looks to be a dead project)
8069         lt_prog_compiler_wl='-Wl,'
8070         lt_prog_compiler_pic='-fpic'
8071         lt_prog_compiler_static='-Bstatic'
8072         ;;
8073       ccc*)
8074         lt_prog_compiler_wl='-Wl,'
8075         # All Alpha code is PIC.
8076         lt_prog_compiler_static='-non_shared'
8077         ;;
8078       xl*)
8079         # IBM XL C 8.0/Fortran 10.1 on PPC
8080         lt_prog_compiler_wl='-Wl,'
8081         lt_prog_compiler_pic='-qpic'
8082         lt_prog_compiler_static='-qstaticlink'
8083         ;;
8084       *)
8085         case `$CC -V 2>&1 | sed 5q` in
8086         *Sun\ C*)
8087           # Sun C 5.9
8088           lt_prog_compiler_pic='-KPIC'
8089           lt_prog_compiler_static='-Bstatic'
8090           lt_prog_compiler_wl='-Wl,'
8091           ;;
8092         *Sun\ F*)
8093           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8094           lt_prog_compiler_pic='-KPIC'
8095           lt_prog_compiler_static='-Bstatic'
8096           lt_prog_compiler_wl=''
8097           ;;
8098         esac
8099         ;;
8100       esac
8101       ;;
8102
8103     newsos6)
8104       lt_prog_compiler_pic='-KPIC'
8105       lt_prog_compiler_static='-Bstatic'
8106       ;;
8107
8108     *nto* | *qnx*)
8109       # QNX uses GNU C++, but need to define -shared option too, otherwise
8110       # it will coredump.
8111       lt_prog_compiler_pic='-fPIC -shared'
8112       ;;
8113
8114     osf3* | osf4* | osf5*)
8115       lt_prog_compiler_wl='-Wl,'
8116       # All OSF/1 code is PIC.
8117       lt_prog_compiler_static='-non_shared'
8118       ;;
8119
8120     rdos*)
8121       lt_prog_compiler_static='-non_shared'
8122       ;;
8123
8124     solaris*)
8125       lt_prog_compiler_pic='-KPIC'
8126       lt_prog_compiler_static='-Bstatic'
8127       case $cc_basename in
8128       f77* | f90* | f95*)
8129         lt_prog_compiler_wl='-Qoption ld ';;
8130       *)
8131         lt_prog_compiler_wl='-Wl,';;
8132       esac
8133       ;;
8134
8135     sunos4*)
8136       lt_prog_compiler_wl='-Qoption ld '
8137       lt_prog_compiler_pic='-PIC'
8138       lt_prog_compiler_static='-Bstatic'
8139       ;;
8140
8141     sysv4 | sysv4.2uw2* | sysv4.3*)
8142       lt_prog_compiler_wl='-Wl,'
8143       lt_prog_compiler_pic='-KPIC'
8144       lt_prog_compiler_static='-Bstatic'
8145       ;;
8146
8147     sysv4*MP*)
8148       if test -d /usr/nec ;then
8149         lt_prog_compiler_pic='-Kconform_pic'
8150         lt_prog_compiler_static='-Bstatic'
8151       fi
8152       ;;
8153
8154     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8155       lt_prog_compiler_wl='-Wl,'
8156       lt_prog_compiler_pic='-KPIC'
8157       lt_prog_compiler_static='-Bstatic'
8158       ;;
8159
8160     unicos*)
8161       lt_prog_compiler_wl='-Wl,'
8162       lt_prog_compiler_can_build_shared=no
8163       ;;
8164
8165     uts4*)
8166       lt_prog_compiler_pic='-pic'
8167       lt_prog_compiler_static='-Bstatic'
8168       ;;
8169
8170     *)
8171       lt_prog_compiler_can_build_shared=no
8172       ;;
8173     esac
8174   fi
8175
8176 case $host_os in
8177   # For platforms which do not support PIC, -DPIC is meaningless:
8178   *djgpp*)
8179     lt_prog_compiler_pic=
8180     ;;
8181   *)
8182     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8183     ;;
8184 esac
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8186 $as_echo "$lt_prog_compiler_pic" >&6; }
8187
8188
8189
8190
8191
8192
8193 #
8194 # Check to make sure the PIC flag actually works.
8195 #
8196 if test -n "$lt_prog_compiler_pic"; then
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8198 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8199 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8200   $as_echo_n "(cached) " >&6
8201 else
8202   lt_cv_prog_compiler_pic_works=no
8203    ac_outfile=conftest.$ac_objext
8204    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8205    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8206    # Insert the option either (1) after the last *FLAGS variable, or
8207    # (2) before a word containing "conftest.", or (3) at the end.
8208    # Note that $ac_compile itself does not contain backslashes and begins
8209    # with a dollar sign (not a hyphen), so the echo should work correctly.
8210    # The option is referenced via a variable to avoid confusing sed.
8211    lt_compile=`echo "$ac_compile" | $SED \
8212    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8213    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8214    -e 's:$: $lt_compiler_flag:'`
8215    (eval echo "\"\$as_me:8215: $lt_compile\"" >&5)
8216    (eval "$lt_compile" 2>conftest.err)
8217    ac_status=$?
8218    cat conftest.err >&5
8219    echo "$as_me:8219: \$? = $ac_status" >&5
8220    if (exit $ac_status) && test -s "$ac_outfile"; then
8221      # The compiler can only warn and ignore the option if not recognized
8222      # So say no if there are warnings other than the usual output.
8223      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8224      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8225      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8226        lt_cv_prog_compiler_pic_works=yes
8227      fi
8228    fi
8229    $RM conftest*
8230
8231 fi
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8233 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8234
8235 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8236     case $lt_prog_compiler_pic in
8237      "" | " "*) ;;
8238      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8239      esac
8240 else
8241     lt_prog_compiler_pic=
8242      lt_prog_compiler_can_build_shared=no
8243 fi
8244
8245 fi
8246
8247
8248
8249
8250
8251
8252 #
8253 # Check to make sure the static flag actually works.
8254 #
8255 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8257 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8258 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8259   $as_echo_n "(cached) " >&6
8260 else
8261   lt_cv_prog_compiler_static_works=no
8262    save_LDFLAGS="$LDFLAGS"
8263    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8264    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8265    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8266      # The linker can only warn and ignore the option if not recognized
8267      # So say no if there are warnings
8268      if test -s conftest.err; then
8269        # Append any errors to the config.log.
8270        cat conftest.err 1>&5
8271        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8272        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8273        if diff conftest.exp conftest.er2 >/dev/null; then
8274          lt_cv_prog_compiler_static_works=yes
8275        fi
8276      else
8277        lt_cv_prog_compiler_static_works=yes
8278      fi
8279    fi
8280    $RM -r conftest*
8281    LDFLAGS="$save_LDFLAGS"
8282
8283 fi
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8285 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8286
8287 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8288     :
8289 else
8290     lt_prog_compiler_static=
8291 fi
8292
8293
8294
8295
8296
8297
8298
8299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8300 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8301 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8302   $as_echo_n "(cached) " >&6
8303 else
8304   lt_cv_prog_compiler_c_o=no
8305    $RM -r conftest 2>/dev/null
8306    mkdir conftest
8307    cd conftest
8308    mkdir out
8309    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8310
8311    lt_compiler_flag="-o out/conftest2.$ac_objext"
8312    # Insert the option either (1) after the last *FLAGS variable, or
8313    # (2) before a word containing "conftest.", or (3) at the end.
8314    # Note that $ac_compile itself does not contain backslashes and begins
8315    # with a dollar sign (not a hyphen), so the echo should work correctly.
8316    lt_compile=`echo "$ac_compile" | $SED \
8317    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8318    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8319    -e 's:$: $lt_compiler_flag:'`
8320    (eval echo "\"\$as_me:8320: $lt_compile\"" >&5)
8321    (eval "$lt_compile" 2>out/conftest.err)
8322    ac_status=$?
8323    cat out/conftest.err >&5
8324    echo "$as_me:8324: \$? = $ac_status" >&5
8325    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8326    then
8327      # The compiler can only warn and ignore the option if not recognized
8328      # So say no if there are warnings
8329      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8330      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8331      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8332        lt_cv_prog_compiler_c_o=yes
8333      fi
8334    fi
8335    chmod u+w . 2>&5
8336    $RM conftest*
8337    # SGI C++ compiler will create directory out/ii_files/ for
8338    # template instantiation
8339    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8340    $RM out/* && rmdir out
8341    cd ..
8342    $RM -r conftest
8343    $RM conftest*
8344
8345 fi
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8347 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8348
8349
8350
8351
8352
8353
8354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8355 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8356 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8357   $as_echo_n "(cached) " >&6
8358 else
8359   lt_cv_prog_compiler_c_o=no
8360    $RM -r conftest 2>/dev/null
8361    mkdir conftest
8362    cd conftest
8363    mkdir out
8364    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8365
8366    lt_compiler_flag="-o out/conftest2.$ac_objext"
8367    # Insert the option either (1) after the last *FLAGS variable, or
8368    # (2) before a word containing "conftest.", or (3) at the end.
8369    # Note that $ac_compile itself does not contain backslashes and begins
8370    # with a dollar sign (not a hyphen), so the echo should work correctly.
8371    lt_compile=`echo "$ac_compile" | $SED \
8372    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8373    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8374    -e 's:$: $lt_compiler_flag:'`
8375    (eval echo "\"\$as_me:8375: $lt_compile\"" >&5)
8376    (eval "$lt_compile" 2>out/conftest.err)
8377    ac_status=$?
8378    cat out/conftest.err >&5
8379    echo "$as_me:8379: \$? = $ac_status" >&5
8380    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8381    then
8382      # The compiler can only warn and ignore the option if not recognized
8383      # So say no if there are warnings
8384      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8385      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8386      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8387        lt_cv_prog_compiler_c_o=yes
8388      fi
8389    fi
8390    chmod u+w . 2>&5
8391    $RM conftest*
8392    # SGI C++ compiler will create directory out/ii_files/ for
8393    # template instantiation
8394    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8395    $RM out/* && rmdir out
8396    cd ..
8397    $RM -r conftest
8398    $RM conftest*
8399
8400 fi
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8402 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8403
8404
8405
8406
8407 hard_links="nottested"
8408 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8409   # do not overwrite the value of need_locks provided by the user
8410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8411 $as_echo_n "checking if we can lock with hard links... " >&6; }
8412   hard_links=yes
8413   $RM conftest*
8414   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8415   touch conftest.a
8416   ln conftest.a conftest.b 2>&5 || hard_links=no
8417   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8419 $as_echo "$hard_links" >&6; }
8420   if test "$hard_links" = no; then
8421     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8422 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8423     need_locks=warn
8424   fi
8425 else
8426   need_locks=no
8427 fi
8428
8429
8430
8431
8432
8433
8434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8435 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8436
8437   runpath_var=
8438   allow_undefined_flag=
8439   always_export_symbols=no
8440   archive_cmds=
8441   archive_expsym_cmds=
8442   compiler_needs_object=no
8443   enable_shared_with_static_runtimes=no
8444   export_dynamic_flag_spec=
8445   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8446   hardcode_automatic=no
8447   hardcode_direct=no
8448   hardcode_direct_absolute=no
8449   hardcode_libdir_flag_spec=
8450   hardcode_libdir_flag_spec_ld=
8451   hardcode_libdir_separator=
8452   hardcode_minus_L=no
8453   hardcode_shlibpath_var=unsupported
8454   inherit_rpath=no
8455   link_all_deplibs=unknown
8456   module_cmds=
8457   module_expsym_cmds=
8458   old_archive_from_new_cmds=
8459   old_archive_from_expsyms_cmds=
8460   thread_safe_flag_spec=
8461   whole_archive_flag_spec=
8462   # include_expsyms should be a list of space-separated symbols to be *always*
8463   # included in the symbol list
8464   include_expsyms=
8465   # exclude_expsyms can be an extended regexp of symbols to exclude
8466   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8467   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8468   # as well as any symbol that contains `d'.
8469   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8470   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8471   # platforms (ab)use it in PIC code, but their linkers get confused if
8472   # the symbol is explicitly referenced.  Since portable code cannot
8473   # rely on this symbol name, it's probably fine to never include it in
8474   # preloaded symbol tables.
8475   # Exclude shared library initialization/finalization symbols.
8476   extract_expsyms_cmds=
8477
8478   case $host_os in
8479   cygwin* | mingw* | pw32* | cegcc*)
8480     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8481     # When not using gcc, we currently assume that we are using
8482     # Microsoft Visual C++.
8483     if test "$GCC" != yes; then
8484       with_gnu_ld=no
8485     fi
8486     ;;
8487   interix*)
8488     # we just hope/assume this is gcc and not c89 (= MSVC++)
8489     with_gnu_ld=yes
8490     ;;
8491   openbsd*)
8492     with_gnu_ld=no
8493     ;;
8494   linux* | k*bsd*-gnu)
8495     link_all_deplibs=no
8496     ;;
8497   esac
8498
8499   ld_shlibs=yes
8500   if test "$with_gnu_ld" = yes; then
8501     # If archive_cmds runs LD, not CC, wlarc should be empty
8502     wlarc='${wl}'
8503
8504     # Set some defaults for GNU ld with shared library support. These
8505     # are reset later if shared libraries are not supported. Putting them
8506     # here allows them to be overridden if necessary.
8507     runpath_var=LD_RUN_PATH
8508     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8509     export_dynamic_flag_spec='${wl}--export-dynamic'
8510     # ancient GNU ld didn't support --whole-archive et. al.
8511     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8512       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8513     else
8514       whole_archive_flag_spec=
8515     fi
8516     supports_anon_versioning=no
8517     case `$LD -v 2>&1` in
8518       *GNU\ gold*) supports_anon_versioning=yes ;;
8519       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8520       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8521       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8522       *\ 2.11.*) ;; # other 2.11 versions
8523       *) supports_anon_versioning=yes ;;
8524     esac
8525
8526     # See if GNU ld supports shared libraries.
8527     case $host_os in
8528     aix[3-9]*)
8529       # On AIX/PPC, the GNU linker is very broken
8530       if test "$host_cpu" != ia64; then
8531         ld_shlibs=no
8532         cat <<_LT_EOF 1>&2
8533
8534 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8535 *** to be unable to reliably create shared libraries on AIX.
8536 *** Therefore, libtool is disabling shared libraries support.  If you
8537 *** really care for shared libraries, you may want to modify your PATH
8538 *** so that a non-GNU linker is found, and then restart.
8539
8540 _LT_EOF
8541       fi
8542       ;;
8543
8544     amigaos*)
8545       case $host_cpu in
8546       powerpc)
8547             # see comment about AmigaOS4 .so support
8548             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549             archive_expsym_cmds=''
8550         ;;
8551       m68k)
8552             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)'
8553             hardcode_libdir_flag_spec='-L$libdir'
8554             hardcode_minus_L=yes
8555         ;;
8556       esac
8557       ;;
8558
8559     beos*)
8560       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8561         allow_undefined_flag=unsupported
8562         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8563         # support --undefined.  This deserves some investigation.  FIXME
8564         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8565       else
8566         ld_shlibs=no
8567       fi
8568       ;;
8569
8570     cygwin* | mingw* | pw32* | cegcc*)
8571       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8572       # as there is no search path for DLLs.
8573       hardcode_libdir_flag_spec='-L$libdir'
8574       allow_undefined_flag=unsupported
8575       always_export_symbols=no
8576       enable_shared_with_static_runtimes=yes
8577       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8578
8579       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8580         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8581         # If the export-symbols file already is a .def file (1st line
8582         # is EXPORTS), use it as is; otherwise, prepend...
8583         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8584           cp $export_symbols $output_objdir/$soname.def;
8585         else
8586           echo EXPORTS > $output_objdir/$soname.def;
8587           cat $export_symbols >> $output_objdir/$soname.def;
8588         fi~
8589         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8590       else
8591         ld_shlibs=no
8592       fi
8593       ;;
8594
8595     interix[3-9]*)
8596       hardcode_direct=no
8597       hardcode_shlibpath_var=no
8598       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8599       export_dynamic_flag_spec='${wl}-E'
8600       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8601       # Instead, shared libraries are loaded at an image base (0x10000000 by
8602       # default) and relocated if they conflict, which is a slow very memory
8603       # consuming and fragmenting process.  To avoid this, we pick a random,
8604       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8605       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8606       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8607       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'
8608       ;;
8609
8610     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8611       tmp_diet=no
8612       if test "$host_os" = linux-dietlibc; then
8613         case $cc_basename in
8614           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8615         esac
8616       fi
8617       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8618          && test "$tmp_diet" = no
8619       then
8620         tmp_addflag=
8621         tmp_sharedflag='-shared'
8622         case $cc_basename,$host_cpu in
8623         pgcc*)                          # Portland Group C compiler
8624           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8625           tmp_addflag=' $pic_flag'
8626           ;;
8627         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8628           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8629           tmp_addflag=' $pic_flag -Mnomain' ;;
8630         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8631           tmp_addflag=' -i_dynamic' ;;
8632         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8633           tmp_addflag=' -i_dynamic -nofor_main' ;;
8634         ifc* | ifort*)                  # Intel Fortran compiler
8635           tmp_addflag=' -nofor_main' ;;
8636         lf95*)                          # Lahey Fortran 8.1
8637           whole_archive_flag_spec=
8638           tmp_sharedflag='--shared' ;;
8639         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8640           tmp_sharedflag='-qmkshrobj'
8641           tmp_addflag= ;;
8642         esac
8643         case `$CC -V 2>&1 | sed 5q` in
8644         *Sun\ C*)                       # Sun C 5.9
8645           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8646           compiler_needs_object=yes
8647           tmp_sharedflag='-G' ;;
8648         *Sun\ F*)                       # Sun Fortran 8.3
8649           tmp_sharedflag='-G' ;;
8650         esac
8651         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8652
8653         if test "x$supports_anon_versioning" = xyes; then
8654           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8655             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8656             echo "local: *; };" >> $output_objdir/$libname.ver~
8657             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8658         fi
8659
8660         case $cc_basename in
8661         xlf*)
8662           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8663           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8664           hardcode_libdir_flag_spec=
8665           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8666           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8667           if test "x$supports_anon_versioning" = xyes; then
8668             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8669               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8670               echo "local: *; };" >> $output_objdir/$libname.ver~
8671               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8672           fi
8673           ;;
8674         esac
8675       else
8676         ld_shlibs=no
8677       fi
8678       ;;
8679
8680     netbsd* | netbsdelf*-gnu)
8681       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8682         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8683         wlarc=
8684       else
8685         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8686         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8687       fi
8688       ;;
8689
8690     solaris*)
8691       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8692         ld_shlibs=no
8693         cat <<_LT_EOF 1>&2
8694
8695 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8696 *** create shared libraries on Solaris systems.  Therefore, libtool
8697 *** is disabling shared libraries support.  We urge you to upgrade GNU
8698 *** binutils to release 2.9.1 or newer.  Another option is to modify
8699 *** your PATH or compiler configuration so that the native linker is
8700 *** used, and then restart.
8701
8702 _LT_EOF
8703       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8704         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8705         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8706       else
8707         ld_shlibs=no
8708       fi
8709       ;;
8710
8711     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8712       case `$LD -v 2>&1` in
8713         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8714         ld_shlibs=no
8715         cat <<_LT_EOF 1>&2
8716
8717 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8718 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8719 *** is disabling shared libraries support.  We urge you to upgrade GNU
8720 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8721 *** your PATH or compiler configuration so that the native linker is
8722 *** used, and then restart.
8723
8724 _LT_EOF
8725         ;;
8726         *)
8727           # For security reasons, it is highly recommended that you always
8728           # use absolute paths for naming shared libraries, and exclude the
8729           # DT_RUNPATH tag from executables and libraries.  But doing so
8730           # requires that you compile everything twice, which is a pain.
8731           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8732             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8733             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8735           else
8736             ld_shlibs=no
8737           fi
8738         ;;
8739       esac
8740       ;;
8741
8742     sunos4*)
8743       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8744       wlarc=
8745       hardcode_direct=yes
8746       hardcode_shlibpath_var=no
8747       ;;
8748
8749     *)
8750       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8751         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8752         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8753       else
8754         ld_shlibs=no
8755       fi
8756       ;;
8757     esac
8758
8759     if test "$ld_shlibs" = no; then
8760       runpath_var=
8761       hardcode_libdir_flag_spec=
8762       export_dynamic_flag_spec=
8763       whole_archive_flag_spec=
8764     fi
8765   else
8766     # PORTME fill in a description of your system's linker (not GNU ld)
8767     case $host_os in
8768     aix3*)
8769       allow_undefined_flag=unsupported
8770       always_export_symbols=yes
8771       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'
8772       # Note: this linker hardcodes the directories in LIBPATH if there
8773       # are no directories specified by -L.
8774       hardcode_minus_L=yes
8775       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8776         # Neither direct hardcoding nor static linking is supported with a
8777         # broken collect2.
8778         hardcode_direct=unsupported
8779       fi
8780       ;;
8781
8782     aix[4-9]*)
8783       if test "$host_cpu" = ia64; then
8784         # On IA64, the linker does run time linking by default, so we don't
8785         # have to do anything special.
8786         aix_use_runtimelinking=no
8787         exp_sym_flag='-Bexport'
8788         no_entry_flag=""
8789       else
8790         # If we're using GNU nm, then we don't want the "-C" option.
8791         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8792         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8793           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8794         else
8795           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'
8796         fi
8797         aix_use_runtimelinking=no
8798
8799         # Test if we are trying to use run time linking or normal
8800         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8801         # need to do runtime linking.
8802         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8803           for ld_flag in $LDFLAGS; do
8804           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8805             aix_use_runtimelinking=yes
8806             break
8807           fi
8808           done
8809           ;;
8810         esac
8811
8812         exp_sym_flag='-bexport'
8813         no_entry_flag='-bnoentry'
8814       fi
8815
8816       # When large executables or shared objects are built, AIX ld can
8817       # have problems creating the table of contents.  If linking a library
8818       # or program results in "error TOC overflow" add -mminimal-toc to
8819       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8820       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8821
8822       archive_cmds=''
8823       hardcode_direct=yes
8824       hardcode_direct_absolute=yes
8825       hardcode_libdir_separator=':'
8826       link_all_deplibs=yes
8827       file_list_spec='${wl}-f,'
8828
8829       if test "$GCC" = yes; then
8830         case $host_os in aix4.[012]|aix4.[012].*)
8831         # We only want to do this on AIX 4.2 and lower, the check
8832         # below for broken collect2 doesn't work under 4.3+
8833           collect2name=`${CC} -print-prog-name=collect2`
8834           if test -f "$collect2name" &&
8835            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8836           then
8837           # We have reworked collect2
8838           :
8839           else
8840           # We have old collect2
8841           hardcode_direct=unsupported
8842           # It fails to find uninstalled libraries when the uninstalled
8843           # path is not listed in the libpath.  Setting hardcode_minus_L
8844           # to unsupported forces relinking
8845           hardcode_minus_L=yes
8846           hardcode_libdir_flag_spec='-L$libdir'
8847           hardcode_libdir_separator=
8848           fi
8849           ;;
8850         esac
8851         shared_flag='-shared'
8852         if test "$aix_use_runtimelinking" = yes; then
8853           shared_flag="$shared_flag "'${wl}-G'
8854         fi
8855         link_all_deplibs=no
8856       else
8857         # not using gcc
8858         if test "$host_cpu" = ia64; then
8859         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8860         # chokes on -Wl,-G. The following line is correct:
8861           shared_flag='-G'
8862         else
8863           if test "$aix_use_runtimelinking" = yes; then
8864             shared_flag='${wl}-G'
8865           else
8866             shared_flag='${wl}-bM:SRE'
8867           fi
8868         fi
8869       fi
8870
8871       export_dynamic_flag_spec='${wl}-bexpall'
8872       # It seems that -bexpall does not export symbols beginning with
8873       # underscore (_), so it is better to generate a list of symbols to export.
8874       always_export_symbols=yes
8875       if test "$aix_use_runtimelinking" = yes; then
8876         # Warning - without using the other runtime loading flags (-brtl),
8877         # -berok will link without error, but may produce a broken library.
8878         allow_undefined_flag='-berok'
8879         # Determine the default libpath from the value encoded in an
8880         # empty executable.
8881         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h.  */
8883
8884 int
8885 main ()
8886 {
8887
8888   ;
8889   return 0;
8890 }
8891 _ACEOF
8892 if ac_fn_c_try_link "$LINENO"; then :
8893
8894 lt_aix_libpath_sed='
8895     /Import File Strings/,/^$/ {
8896         /^0/ {
8897             s/^0  *\(.*\)$/\1/
8898             p
8899         }
8900     }'
8901 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8902 # Check for a 64-bit object if we didn't find anything.
8903 if test -z "$aix_libpath"; then
8904   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8905 fi
8906 fi
8907 rm -f core conftest.err conftest.$ac_objext \
8908     conftest$ac_exeext conftest.$ac_ext
8909 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8910
8911         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8912         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8913       else
8914         if test "$host_cpu" = ia64; then
8915           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8916           allow_undefined_flag="-z nodefs"
8917           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"
8918         else
8919          # Determine the default libpath from the value encoded in an
8920          # empty executable.
8921          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h.  */
8923
8924 int
8925 main ()
8926 {
8927
8928   ;
8929   return 0;
8930 }
8931 _ACEOF
8932 if ac_fn_c_try_link "$LINENO"; then :
8933
8934 lt_aix_libpath_sed='
8935     /Import File Strings/,/^$/ {
8936         /^0/ {
8937             s/^0  *\(.*\)$/\1/
8938             p
8939         }
8940     }'
8941 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8942 # Check for a 64-bit object if we didn't find anything.
8943 if test -z "$aix_libpath"; then
8944   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8945 fi
8946 fi
8947 rm -f core conftest.err conftest.$ac_objext \
8948     conftest$ac_exeext conftest.$ac_ext
8949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8950
8951          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8952           # Warning - without using the other run time loading flags,
8953           # -berok will link without error, but may produce a broken library.
8954           no_undefined_flag=' ${wl}-bernotok'
8955           allow_undefined_flag=' ${wl}-berok'
8956           # Exported symbols can be pulled into shared objects from archives
8957           whole_archive_flag_spec='$convenience'
8958           archive_cmds_need_lc=yes
8959           # This is similar to how AIX traditionally builds its shared libraries.
8960           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'
8961         fi
8962       fi
8963       ;;
8964
8965     amigaos*)
8966       case $host_cpu in
8967       powerpc)
8968             # see comment about AmigaOS4 .so support
8969             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970             archive_expsym_cmds=''
8971         ;;
8972       m68k)
8973             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)'
8974             hardcode_libdir_flag_spec='-L$libdir'
8975             hardcode_minus_L=yes
8976         ;;
8977       esac
8978       ;;
8979
8980     bsdi[45]*)
8981       export_dynamic_flag_spec=-rdynamic
8982       ;;
8983
8984     cygwin* | mingw* | pw32* | cegcc*)
8985       # When not using gcc, we currently assume that we are using
8986       # Microsoft Visual C++.
8987       # hardcode_libdir_flag_spec is actually meaningless, as there is
8988       # no search path for DLLs.
8989       hardcode_libdir_flag_spec=' '
8990       allow_undefined_flag=unsupported
8991       # Tell ltmain to make .lib files, not .a files.
8992       libext=lib
8993       # Tell ltmain to make .dll files, not .so files.
8994       shrext_cmds=".dll"
8995       # FIXME: Setting linknames here is a bad hack.
8996       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8997       # The linker will automatically build a .lib file if we build a DLL.
8998       old_archive_from_new_cmds='true'
8999       # FIXME: Should let the user specify the lib program.
9000       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9001       fix_srcfile_path='`cygpath -w "$srcfile"`'
9002       enable_shared_with_static_runtimes=yes
9003       ;;
9004
9005     darwin* | rhapsody*)
9006
9007
9008   archive_cmds_need_lc=no
9009   hardcode_direct=no
9010   hardcode_automatic=yes
9011   hardcode_shlibpath_var=unsupported
9012   whole_archive_flag_spec=''
9013   link_all_deplibs=yes
9014   allow_undefined_flag="$_lt_dar_allow_undefined"
9015   case $cc_basename in
9016      ifort*) _lt_dar_can_shared=yes ;;
9017      *) _lt_dar_can_shared=$GCC ;;
9018   esac
9019   if test "$_lt_dar_can_shared" = "yes"; then
9020     output_verbose_link_cmd=echo
9021     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9022     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9023     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}"
9024     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}"
9025
9026   else
9027   ld_shlibs=no
9028   fi
9029
9030       ;;
9031
9032     dgux*)
9033       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9034       hardcode_libdir_flag_spec='-L$libdir'
9035       hardcode_shlibpath_var=no
9036       ;;
9037
9038     freebsd1*)
9039       ld_shlibs=no
9040       ;;
9041
9042     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9043     # support.  Future versions do this automatically, but an explicit c++rt0.o
9044     # does not break anything, and helps significantly (at the cost of a little
9045     # extra space).
9046     freebsd2.2*)
9047       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9048       hardcode_libdir_flag_spec='-R$libdir'
9049       hardcode_direct=yes
9050       hardcode_shlibpath_var=no
9051       ;;
9052
9053     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9054     freebsd2*)
9055       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9056       hardcode_direct=yes
9057       hardcode_minus_L=yes
9058       hardcode_shlibpath_var=no
9059       ;;
9060
9061     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9062     freebsd* | dragonfly*)
9063       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9064       hardcode_libdir_flag_spec='-R$libdir'
9065       hardcode_direct=yes
9066       hardcode_shlibpath_var=no
9067       ;;
9068
9069     hpux9*)
9070       if test "$GCC" = yes; then
9071         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9072       else
9073         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'
9074       fi
9075       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9076       hardcode_libdir_separator=:
9077       hardcode_direct=yes
9078
9079       # hardcode_minus_L: Not really in the search PATH,
9080       # but as the default location of the library.
9081       hardcode_minus_L=yes
9082       export_dynamic_flag_spec='${wl}-E'
9083       ;;
9084
9085     hpux10*)
9086       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9087         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9088       else
9089         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9090       fi
9091       if test "$with_gnu_ld" = no; then
9092         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9093         hardcode_libdir_flag_spec_ld='+b $libdir'
9094         hardcode_libdir_separator=:
9095         hardcode_direct=yes
9096         hardcode_direct_absolute=yes
9097         export_dynamic_flag_spec='${wl}-E'
9098         # hardcode_minus_L: Not really in the search PATH,
9099         # but as the default location of the library.
9100         hardcode_minus_L=yes
9101       fi
9102       ;;
9103
9104     hpux11*)
9105       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9106         case $host_cpu in
9107         hppa*64*)
9108           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109           ;;
9110         ia64*)
9111           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9112           ;;
9113         *)
9114           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9115           ;;
9116         esac
9117       else
9118         case $host_cpu in
9119         hppa*64*)
9120           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9121           ;;
9122         ia64*)
9123           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9124           ;;
9125         *)
9126           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9127           ;;
9128         esac
9129       fi
9130       if test "$with_gnu_ld" = no; then
9131         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9132         hardcode_libdir_separator=:
9133
9134         case $host_cpu in
9135         hppa*64*|ia64*)
9136           hardcode_direct=no
9137           hardcode_shlibpath_var=no
9138           ;;
9139         *)
9140           hardcode_direct=yes
9141           hardcode_direct_absolute=yes
9142           export_dynamic_flag_spec='${wl}-E'
9143
9144           # hardcode_minus_L: Not really in the search PATH,
9145           # but as the default location of the library.
9146           hardcode_minus_L=yes
9147           ;;
9148         esac
9149       fi
9150       ;;
9151
9152     irix5* | irix6* | nonstopux*)
9153       if test "$GCC" = yes; then
9154         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9155         # Try to use the -exported_symbol ld option, if it does not
9156         # work, assume that -exports_file does not work either and
9157         # implicitly export all symbols.
9158         save_LDFLAGS="$LDFLAGS"
9159         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9160         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h.  */
9162 int foo(void) {}
9163 _ACEOF
9164 if ac_fn_c_try_link "$LINENO"; then :
9165   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9166
9167 fi
9168 rm -f core conftest.err conftest.$ac_objext \
9169     conftest$ac_exeext conftest.$ac_ext
9170         LDFLAGS="$save_LDFLAGS"
9171       else
9172         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9173         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9174       fi
9175       archive_cmds_need_lc='no'
9176       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9177       hardcode_libdir_separator=:
9178       inherit_rpath=yes
9179       link_all_deplibs=yes
9180       ;;
9181
9182     netbsd* | netbsdelf*-gnu)
9183       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9184         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9185       else
9186         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9187       fi
9188       hardcode_libdir_flag_spec='-R$libdir'
9189       hardcode_direct=yes
9190       hardcode_shlibpath_var=no
9191       ;;
9192
9193     newsos6)
9194       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9195       hardcode_direct=yes
9196       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9197       hardcode_libdir_separator=:
9198       hardcode_shlibpath_var=no
9199       ;;
9200
9201     *nto* | *qnx*)
9202       ;;
9203
9204     openbsd*)
9205       if test -f /usr/libexec/ld.so; then
9206         hardcode_direct=yes
9207         hardcode_shlibpath_var=no
9208         hardcode_direct_absolute=yes
9209         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9210           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9211           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9212           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9213           export_dynamic_flag_spec='${wl}-E'
9214         else
9215           case $host_os in
9216            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9217              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9218              hardcode_libdir_flag_spec='-R$libdir'
9219              ;;
9220            *)
9221              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9222              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9223              ;;
9224           esac
9225         fi
9226       else
9227         ld_shlibs=no
9228       fi
9229       ;;
9230
9231     os2*)
9232       hardcode_libdir_flag_spec='-L$libdir'
9233       hardcode_minus_L=yes
9234       allow_undefined_flag=unsupported
9235       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'
9236       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9237       ;;
9238
9239     osf3*)
9240       if test "$GCC" = yes; then
9241         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9242         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9243       else
9244         allow_undefined_flag=' -expect_unresolved \*'
9245         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9246       fi
9247       archive_cmds_need_lc='no'
9248       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249       hardcode_libdir_separator=:
9250       ;;
9251
9252     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9253       if test "$GCC" = yes; then
9254         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9255         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9256         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9257       else
9258         allow_undefined_flag=' -expect_unresolved \*'
9259         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9260         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~
9261         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9262
9263         # Both c and cxx compiler support -rpath directly
9264         hardcode_libdir_flag_spec='-rpath $libdir'
9265       fi
9266       archive_cmds_need_lc='no'
9267       hardcode_libdir_separator=:
9268       ;;
9269
9270     solaris*)
9271       no_undefined_flag=' -z defs'
9272       if test "$GCC" = yes; then
9273         wlarc='${wl}'
9274         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9275         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9276           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9277       else
9278         case `$CC -V 2>&1` in
9279         *"Compilers 5.0"*)
9280           wlarc=''
9281           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9282           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9283           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9284           ;;
9285         *)
9286           wlarc='${wl}'
9287           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9288           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9289           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9290           ;;
9291         esac
9292       fi
9293       hardcode_libdir_flag_spec='-R$libdir'
9294       hardcode_shlibpath_var=no
9295       case $host_os in
9296       solaris2.[0-5] | solaris2.[0-5].*) ;;
9297       *)
9298         # The compiler driver will combine and reorder linker options,
9299         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9300         # but is careful enough not to reorder.
9301         # Supported since Solaris 2.6 (maybe 2.5.1?)
9302         if test "$GCC" = yes; then
9303           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9304         else
9305           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9306         fi
9307         ;;
9308       esac
9309       link_all_deplibs=yes
9310       ;;
9311
9312     sunos4*)
9313       if test "x$host_vendor" = xsequent; then
9314         # Use $CC to link under sequent, because it throws in some extra .o
9315         # files that make .init and .fini sections work.
9316         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9317       else
9318         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9319       fi
9320       hardcode_libdir_flag_spec='-L$libdir'
9321       hardcode_direct=yes
9322       hardcode_minus_L=yes
9323       hardcode_shlibpath_var=no
9324       ;;
9325
9326     sysv4)
9327       case $host_vendor in
9328         sni)
9329           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330           hardcode_direct=yes # is this really true???
9331         ;;
9332         siemens)
9333           ## LD is ld it makes a PLAMLIB
9334           ## CC just makes a GrossModule.
9335           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9336           reload_cmds='$CC -r -o $output$reload_objs'
9337           hardcode_direct=no
9338         ;;
9339         motorola)
9340           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9342         ;;
9343       esac
9344       runpath_var='LD_RUN_PATH'
9345       hardcode_shlibpath_var=no
9346       ;;
9347
9348     sysv4.3*)
9349       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350       hardcode_shlibpath_var=no
9351       export_dynamic_flag_spec='-Bexport'
9352       ;;
9353
9354     sysv4*MP*)
9355       if test -d /usr/nec; then
9356         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357         hardcode_shlibpath_var=no
9358         runpath_var=LD_RUN_PATH
9359         hardcode_runpath_var=yes
9360         ld_shlibs=yes
9361       fi
9362       ;;
9363
9364     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9365       no_undefined_flag='${wl}-z,text'
9366       archive_cmds_need_lc=no
9367       hardcode_shlibpath_var=no
9368       runpath_var='LD_RUN_PATH'
9369
9370       if test "$GCC" = yes; then
9371         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9372         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9373       else
9374         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9375         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9376       fi
9377       ;;
9378
9379     sysv5* | sco3.2v5* | sco5v6*)
9380       # Note: We can NOT use -z defs as we might desire, because we do not
9381       # link with -lc, and that would cause any symbols used from libc to
9382       # always be unresolved, which means just about no library would
9383       # ever link correctly.  If we're not using GNU ld we use -z text
9384       # though, which does catch some bad symbols but isn't as heavy-handed
9385       # as -z defs.
9386       no_undefined_flag='${wl}-z,text'
9387       allow_undefined_flag='${wl}-z,nodefs'
9388       archive_cmds_need_lc=no
9389       hardcode_shlibpath_var=no
9390       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9391       hardcode_libdir_separator=':'
9392       link_all_deplibs=yes
9393       export_dynamic_flag_spec='${wl}-Bexport'
9394       runpath_var='LD_RUN_PATH'
9395
9396       if test "$GCC" = yes; then
9397         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9398         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9399       else
9400         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9401         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9402       fi
9403       ;;
9404
9405     uts4*)
9406       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407       hardcode_libdir_flag_spec='-L$libdir'
9408       hardcode_shlibpath_var=no
9409       ;;
9410
9411     *)
9412       ld_shlibs=no
9413       ;;
9414     esac
9415
9416     if test x$host_vendor = xsni; then
9417       case $host in
9418       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9419         export_dynamic_flag_spec='${wl}-Blargedynsym'
9420         ;;
9421       esac
9422     fi
9423   fi
9424
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9426 $as_echo "$ld_shlibs" >&6; }
9427 test "$ld_shlibs" = no && can_build_shared=no
9428
9429 with_gnu_ld=$with_gnu_ld
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445 #
9446 # Do we need to explicitly link libc?
9447 #
9448 case "x$archive_cmds_need_lc" in
9449 x|xyes)
9450   # Assume -lc should be added
9451   archive_cmds_need_lc=yes
9452
9453   if test "$enable_shared" = yes && test "$GCC" = yes; then
9454     case $archive_cmds in
9455     *'~'*)
9456       # FIXME: we may have to deal with multi-command sequences.
9457       ;;
9458     '$CC '*)
9459       # Test whether the compiler implicitly links with -lc since on some
9460       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9461       # to ld, don't add -lc before -lgcc.
9462       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9463 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9464       $RM conftest*
9465       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9466
9467       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9468   (eval $ac_compile) 2>&5
9469   ac_status=$?
9470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9471   test $ac_status = 0; } 2>conftest.err; then
9472         soname=conftest
9473         lib=conftest
9474         libobjs=conftest.$ac_objext
9475         deplibs=
9476         wl=$lt_prog_compiler_wl
9477         pic_flag=$lt_prog_compiler_pic
9478         compiler_flags=-v
9479         linker_flags=-v
9480         verstring=
9481         output_objdir=.
9482         libname=conftest
9483         lt_save_allow_undefined_flag=$allow_undefined_flag
9484         allow_undefined_flag=
9485         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9486   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9487   ac_status=$?
9488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9489   test $ac_status = 0; }
9490         then
9491           archive_cmds_need_lc=no
9492         else
9493           archive_cmds_need_lc=yes
9494         fi
9495         allow_undefined_flag=$lt_save_allow_undefined_flag
9496       else
9497         cat conftest.err 1>&5
9498       fi
9499       $RM conftest*
9500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9501 $as_echo "$archive_cmds_need_lc" >&6; }
9502       ;;
9503     esac
9504   fi
9505   ;;
9506 esac
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9665 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9666
9667 if test "$GCC" = yes; then
9668   case $host_os in
9669     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9670     *) lt_awk_arg="/^libraries:/" ;;
9671   esac
9672   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9673   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9674     # if the path contains ";" then we assume it to be the separator
9675     # otherwise default to the standard path separator (i.e. ":") - it is
9676     # assumed that no part of a normal pathname contains ";" but that should
9677     # okay in the real world where ";" in dirpaths is itself problematic.
9678     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9679   else
9680     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9681   fi
9682   # Ok, now we have the path, separated by spaces, we can step through it
9683   # and add multilib dir if necessary.
9684   lt_tmp_lt_search_path_spec=
9685   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9686   for lt_sys_path in $lt_search_path_spec; do
9687     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9688       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9689     else
9690       test -d "$lt_sys_path" && \
9691         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9692     fi
9693   done
9694   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9695 BEGIN {RS=" "; FS="/|\n";} {
9696   lt_foo="";
9697   lt_count=0;
9698   for (lt_i = NF; lt_i > 0; lt_i--) {
9699     if ($lt_i != "" && $lt_i != ".") {
9700       if ($lt_i == "..") {
9701         lt_count++;
9702       } else {
9703         if (lt_count == 0) {
9704           lt_foo="/" $lt_i lt_foo;
9705         } else {
9706           lt_count--;
9707         }
9708       }
9709     }
9710   }
9711   if (lt_foo != "") { lt_freq[lt_foo]++; }
9712   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9713 }'`
9714   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9715 else
9716   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9717 fi
9718 library_names_spec=
9719 libname_spec='lib$name'
9720 soname_spec=
9721 shrext_cmds=".so"
9722 postinstall_cmds=
9723 postuninstall_cmds=
9724 finish_cmds=
9725 finish_eval=
9726 shlibpath_var=
9727 shlibpath_overrides_runpath=unknown
9728 version_type=none
9729 dynamic_linker="$host_os ld.so"
9730 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9731 need_lib_prefix=unknown
9732 hardcode_into_libs=no
9733
9734 # when you set need_version to no, make sure it does not cause -set_version
9735 # flags to be left without arguments
9736 need_version=unknown
9737
9738 case $host_os in
9739 aix3*)
9740   version_type=linux
9741   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9742   shlibpath_var=LIBPATH
9743
9744   # AIX 3 has no versioning support, so we append a major version to the name.
9745   soname_spec='${libname}${release}${shared_ext}$major'
9746   ;;
9747
9748 aix[4-9]*)
9749   version_type=linux
9750   need_lib_prefix=no
9751   need_version=no
9752   hardcode_into_libs=yes
9753   if test "$host_cpu" = ia64; then
9754     # AIX 5 supports IA64
9755     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9756     shlibpath_var=LD_LIBRARY_PATH
9757   else
9758     # With GCC up to 2.95.x, collect2 would create an import file
9759     # for dependence libraries.  The import file would start with
9760     # the line `#! .'.  This would cause the generated library to
9761     # depend on `.', always an invalid library.  This was fixed in
9762     # development snapshots of GCC prior to 3.0.
9763     case $host_os in
9764       aix4 | aix4.[01] | aix4.[01].*)
9765       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9766            echo ' yes '
9767            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9768         :
9769       else
9770         can_build_shared=no
9771       fi
9772       ;;
9773     esac
9774     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9775     # soname into executable. Probably we can add versioning support to
9776     # collect2, so additional links can be useful in future.
9777     if test "$aix_use_runtimelinking" = yes; then
9778       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9779       # instead of lib<name>.a to let people know that these are not
9780       # typical AIX shared libraries.
9781       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782     else
9783       # We preserve .a as extension for shared libraries through AIX4.2
9784       # and later when we are not doing run time linking.
9785       library_names_spec='${libname}${release}.a $libname.a'
9786       soname_spec='${libname}${release}${shared_ext}$major'
9787     fi
9788     shlibpath_var=LIBPATH
9789   fi
9790   ;;
9791
9792 amigaos*)
9793   case $host_cpu in
9794   powerpc)
9795     # Since July 2007 AmigaOS4 officially supports .so libraries.
9796     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9797     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798     ;;
9799   m68k)
9800     library_names_spec='$libname.ixlibrary $libname.a'
9801     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9802     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9803     ;;
9804   esac
9805   ;;
9806
9807 beos*)
9808   library_names_spec='${libname}${shared_ext}'
9809   dynamic_linker="$host_os ld.so"
9810   shlibpath_var=LIBRARY_PATH
9811   ;;
9812
9813 bsdi[45]*)
9814   version_type=linux
9815   need_version=no
9816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817   soname_spec='${libname}${release}${shared_ext}$major'
9818   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9819   shlibpath_var=LD_LIBRARY_PATH
9820   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9821   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9822   # the default ld.so.conf also contains /usr/contrib/lib and
9823   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9824   # libtool to hard-code these into programs
9825   ;;
9826
9827 cygwin* | mingw* | pw32* | cegcc*)
9828   version_type=windows
9829   shrext_cmds=".dll"
9830   need_version=no
9831   need_lib_prefix=no
9832
9833   case $GCC,$host_os in
9834   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9835     library_names_spec='$libname.dll.a'
9836     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9837     postinstall_cmds='base_file=`basename \${file}`~
9838       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9839       dldir=$destdir/`dirname \$dlpath`~
9840       test -d \$dldir || mkdir -p \$dldir~
9841       $install_prog $dir/$dlname \$dldir/$dlname~
9842       chmod a+x \$dldir/$dlname~
9843       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9844         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9845       fi'
9846     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9847       dlpath=$dir/\$dldll~
9848        $RM \$dlpath'
9849     shlibpath_overrides_runpath=yes
9850
9851     case $host_os in
9852     cygwin*)
9853       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9854       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9855       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9856       ;;
9857     mingw* | cegcc*)
9858       # MinGW DLLs use traditional 'lib' prefix
9859       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9860       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9861       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9862         # It is most probably a Windows format PATH printed by
9863         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9864         # path with ; separators, and with drive letters. We can handle the
9865         # drive letters (cygwin fileutils understands them), so leave them,
9866         # especially as we might pass files found there to a mingw objdump,
9867         # which wouldn't understand a cygwinified path. Ahh.
9868         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9869       else
9870         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9871       fi
9872       ;;
9873     pw32*)
9874       # pw32 DLLs use 'pw' prefix rather than 'lib'
9875       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9876       ;;
9877     esac
9878     ;;
9879
9880   *)
9881     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9882     ;;
9883   esac
9884   dynamic_linker='Win32 ld.exe'
9885   # FIXME: first we should search . and the directory the executable is in
9886   shlibpath_var=PATH
9887   ;;
9888
9889 darwin* | rhapsody*)
9890   dynamic_linker="$host_os dyld"
9891   version_type=darwin
9892   need_lib_prefix=no
9893   need_version=no
9894   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9895   soname_spec='${libname}${release}${major}$shared_ext'
9896   shlibpath_overrides_runpath=yes
9897   shlibpath_var=DYLD_LIBRARY_PATH
9898   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9899
9900   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9901   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9902   ;;
9903
9904 dgux*)
9905   version_type=linux
9906   need_lib_prefix=no
9907   need_version=no
9908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9909   soname_spec='${libname}${release}${shared_ext}$major'
9910   shlibpath_var=LD_LIBRARY_PATH
9911   ;;
9912
9913 freebsd1*)
9914   dynamic_linker=no
9915   ;;
9916
9917 freebsd* | dragonfly*)
9918   # DragonFly does not have aout.  When/if they implement a new
9919   # versioning mechanism, adjust this.
9920   if test -x /usr/bin/objformat; then
9921     objformat=`/usr/bin/objformat`
9922   else
9923     case $host_os in
9924     freebsd[123]*) objformat=aout ;;
9925     *) objformat=elf ;;
9926     esac
9927   fi
9928   version_type=freebsd-$objformat
9929   case $version_type in
9930     freebsd-elf*)
9931       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9932       need_version=no
9933       need_lib_prefix=no
9934       ;;
9935     freebsd-*)
9936       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9937       need_version=yes
9938       ;;
9939   esac
9940   shlibpath_var=LD_LIBRARY_PATH
9941   case $host_os in
9942   freebsd2*)
9943     shlibpath_overrides_runpath=yes
9944     ;;
9945   freebsd3.[01]* | freebsdelf3.[01]*)
9946     shlibpath_overrides_runpath=yes
9947     hardcode_into_libs=yes
9948     ;;
9949   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9950   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9951     shlibpath_overrides_runpath=no
9952     hardcode_into_libs=yes
9953     ;;
9954   *) # from 4.6 on, and DragonFly
9955     shlibpath_overrides_runpath=yes
9956     hardcode_into_libs=yes
9957     ;;
9958   esac
9959   ;;
9960
9961 gnu*)
9962   version_type=linux
9963   need_lib_prefix=no
9964   need_version=no
9965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9966   soname_spec='${libname}${release}${shared_ext}$major'
9967   shlibpath_var=LD_LIBRARY_PATH
9968   hardcode_into_libs=yes
9969   ;;
9970
9971 hpux9* | hpux10* | hpux11*)
9972   # Give a soname corresponding to the major version so that dld.sl refuses to
9973   # link against other versions.
9974   version_type=sunos
9975   need_lib_prefix=no
9976   need_version=no
9977   case $host_cpu in
9978   ia64*)
9979     shrext_cmds='.so'
9980     hardcode_into_libs=yes
9981     dynamic_linker="$host_os dld.so"
9982     shlibpath_var=LD_LIBRARY_PATH
9983     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985     soname_spec='${libname}${release}${shared_ext}$major'
9986     if test "X$HPUX_IA64_MODE" = X32; then
9987       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9988     else
9989       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9990     fi
9991     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9992     ;;
9993   hppa*64*)
9994     shrext_cmds='.sl'
9995     hardcode_into_libs=yes
9996     dynamic_linker="$host_os dld.sl"
9997     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9998     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9999     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10000     soname_spec='${libname}${release}${shared_ext}$major'
10001     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10002     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10003     ;;
10004   *)
10005     shrext_cmds='.sl'
10006     dynamic_linker="$host_os dld.sl"
10007     shlibpath_var=SHLIB_PATH
10008     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010     soname_spec='${libname}${release}${shared_ext}$major'
10011     ;;
10012   esac
10013   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10014   postinstall_cmds='chmod 555 $lib'
10015   ;;
10016
10017 interix[3-9]*)
10018   version_type=linux
10019   need_lib_prefix=no
10020   need_version=no
10021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10022   soname_spec='${libname}${release}${shared_ext}$major'
10023   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10024   shlibpath_var=LD_LIBRARY_PATH
10025   shlibpath_overrides_runpath=no
10026   hardcode_into_libs=yes
10027   ;;
10028
10029 irix5* | irix6* | nonstopux*)
10030   case $host_os in
10031     nonstopux*) version_type=nonstopux ;;
10032     *)
10033         if test "$lt_cv_prog_gnu_ld" = yes; then
10034                 version_type=linux
10035         else
10036                 version_type=irix
10037         fi ;;
10038   esac
10039   need_lib_prefix=no
10040   need_version=no
10041   soname_spec='${libname}${release}${shared_ext}$major'
10042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10043   case $host_os in
10044   irix5* | nonstopux*)
10045     libsuff= shlibsuff=
10046     ;;
10047   *)
10048     case $LD in # libtool.m4 will add one of these switches to LD
10049     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10050       libsuff= shlibsuff= libmagic=32-bit;;
10051     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10052       libsuff=32 shlibsuff=N32 libmagic=N32;;
10053     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10054       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10055     *) libsuff= shlibsuff= libmagic=never-match;;
10056     esac
10057     ;;
10058   esac
10059   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10060   shlibpath_overrides_runpath=no
10061   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10062   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10063   hardcode_into_libs=yes
10064   ;;
10065
10066 # No shared lib support for Linux oldld, aout, or coff.
10067 linux*oldld* | linux*aout* | linux*coff*)
10068   dynamic_linker=no
10069   ;;
10070
10071 # This must be Linux ELF.
10072 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10073   version_type=linux
10074   need_lib_prefix=no
10075   need_version=no
10076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077   soname_spec='${libname}${release}${shared_ext}$major'
10078   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10079   shlibpath_var=LD_LIBRARY_PATH
10080   shlibpath_overrides_runpath=no
10081   # Some binutils ld are patched to set DT_RUNPATH
10082   save_LDFLAGS=$LDFLAGS
10083   save_libdir=$libdir
10084   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10085        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h.  */
10088
10089 int
10090 main ()
10091 {
10092
10093   ;
10094   return 0;
10095 }
10096 _ACEOF
10097 if ac_fn_c_try_link "$LINENO"; then :
10098   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10099   shlibpath_overrides_runpath=yes
10100 fi
10101 fi
10102 rm -f core conftest.err conftest.$ac_objext \
10103     conftest$ac_exeext conftest.$ac_ext
10104   LDFLAGS=$save_LDFLAGS
10105   libdir=$save_libdir
10106
10107   # This implies no fast_install, which is unacceptable.
10108   # Some rework will be needed to allow for fast_install
10109   # before this can be enabled.
10110   hardcode_into_libs=yes
10111
10112   # Append ld.so.conf contents to the search path
10113   if test -f /etc/ld.so.conf; then
10114     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;/^$/d' | tr '\n' ' '`
10115     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10116   fi
10117
10118   # We used to test for /lib/ld.so.1 and disable shared libraries on
10119   # powerpc, because MkLinux only supported shared libraries with the
10120   # GNU dynamic linker.  Since this was broken with cross compilers,
10121   # most powerpc-linux boxes support dynamic linking these days and
10122   # people can always --disable-shared, the test was removed, and we
10123   # assume the GNU/Linux dynamic linker is in use.
10124   dynamic_linker='GNU/Linux ld.so'
10125   ;;
10126
10127 netbsdelf*-gnu)
10128   version_type=linux
10129   need_lib_prefix=no
10130   need_version=no
10131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10132   soname_spec='${libname}${release}${shared_ext}$major'
10133   shlibpath_var=LD_LIBRARY_PATH
10134   shlibpath_overrides_runpath=no
10135   hardcode_into_libs=yes
10136   dynamic_linker='NetBSD ld.elf_so'
10137   ;;
10138
10139 netbsd*)
10140   version_type=sunos
10141   need_lib_prefix=no
10142   need_version=no
10143   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10144     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10145     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10146     dynamic_linker='NetBSD (a.out) ld.so'
10147   else
10148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10149     soname_spec='${libname}${release}${shared_ext}$major'
10150     dynamic_linker='NetBSD ld.elf_so'
10151   fi
10152   shlibpath_var=LD_LIBRARY_PATH
10153   shlibpath_overrides_runpath=yes
10154   hardcode_into_libs=yes
10155   ;;
10156
10157 newsos6)
10158   version_type=linux
10159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160   shlibpath_var=LD_LIBRARY_PATH
10161   shlibpath_overrides_runpath=yes
10162   ;;
10163
10164 *nto* | *qnx*)
10165   version_type=qnx
10166   need_lib_prefix=no
10167   need_version=no
10168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169   soname_spec='${libname}${release}${shared_ext}$major'
10170   shlibpath_var=LD_LIBRARY_PATH
10171   shlibpath_overrides_runpath=no
10172   hardcode_into_libs=yes
10173   dynamic_linker='ldqnx.so'
10174   ;;
10175
10176 openbsd*)
10177   version_type=sunos
10178   sys_lib_dlsearch_path_spec="/usr/lib"
10179   need_lib_prefix=no
10180   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10181   case $host_os in
10182     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10183     *)                          need_version=no  ;;
10184   esac
10185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10186   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10187   shlibpath_var=LD_LIBRARY_PATH
10188   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10189     case $host_os in
10190       openbsd2.[89] | openbsd2.[89].*)
10191         shlibpath_overrides_runpath=no
10192         ;;
10193       *)
10194         shlibpath_overrides_runpath=yes
10195         ;;
10196       esac
10197   else
10198     shlibpath_overrides_runpath=yes
10199   fi
10200   ;;
10201
10202 os2*)
10203   libname_spec='$name'
10204   shrext_cmds=".dll"
10205   need_lib_prefix=no
10206   library_names_spec='$libname${shared_ext} $libname.a'
10207   dynamic_linker='OS/2 ld.exe'
10208   shlibpath_var=LIBPATH
10209   ;;
10210
10211 osf3* | osf4* | osf5*)
10212   version_type=osf
10213   need_lib_prefix=no
10214   need_version=no
10215   soname_spec='${libname}${release}${shared_ext}$major'
10216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217   shlibpath_var=LD_LIBRARY_PATH
10218   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10219   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10220   ;;
10221
10222 rdos*)
10223   dynamic_linker=no
10224   ;;
10225
10226 solaris*)
10227   version_type=linux
10228   need_lib_prefix=no
10229   need_version=no
10230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231   soname_spec='${libname}${release}${shared_ext}$major'
10232   shlibpath_var=LD_LIBRARY_PATH
10233   shlibpath_overrides_runpath=yes
10234   hardcode_into_libs=yes
10235   # ldd complains unless libraries are executable
10236   postinstall_cmds='chmod +x $lib'
10237   ;;
10238
10239 sunos4*)
10240   version_type=sunos
10241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10242   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10243   shlibpath_var=LD_LIBRARY_PATH
10244   shlibpath_overrides_runpath=yes
10245   if test "$with_gnu_ld" = yes; then
10246     need_lib_prefix=no
10247   fi
10248   need_version=yes
10249   ;;
10250
10251 sysv4 | sysv4.3*)
10252   version_type=linux
10253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254   soname_spec='${libname}${release}${shared_ext}$major'
10255   shlibpath_var=LD_LIBRARY_PATH
10256   case $host_vendor in
10257     sni)
10258       shlibpath_overrides_runpath=no
10259       need_lib_prefix=no
10260       runpath_var=LD_RUN_PATH
10261       ;;
10262     siemens)
10263       need_lib_prefix=no
10264       ;;
10265     motorola)
10266       need_lib_prefix=no
10267       need_version=no
10268       shlibpath_overrides_runpath=no
10269       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10270       ;;
10271   esac
10272   ;;
10273
10274 sysv4*MP*)
10275   if test -d /usr/nec ;then
10276     version_type=linux
10277     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10278     soname_spec='$libname${shared_ext}.$major'
10279     shlibpath_var=LD_LIBRARY_PATH
10280   fi
10281   ;;
10282
10283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10284   version_type=freebsd-elf
10285   need_lib_prefix=no
10286   need_version=no
10287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10288   soname_spec='${libname}${release}${shared_ext}$major'
10289   shlibpath_var=LD_LIBRARY_PATH
10290   shlibpath_overrides_runpath=yes
10291   hardcode_into_libs=yes
10292   if test "$with_gnu_ld" = yes; then
10293     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10294   else
10295     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10296     case $host_os in
10297       sco3.2v5*)
10298         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10299         ;;
10300     esac
10301   fi
10302   sys_lib_dlsearch_path_spec='/usr/lib'
10303   ;;
10304
10305 tpf*)
10306   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10307   version_type=linux
10308   need_lib_prefix=no
10309   need_version=no
10310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311   shlibpath_var=LD_LIBRARY_PATH
10312   shlibpath_overrides_runpath=no
10313   hardcode_into_libs=yes
10314   ;;
10315
10316 uts4*)
10317   version_type=linux
10318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319   soname_spec='${libname}${release}${shared_ext}$major'
10320   shlibpath_var=LD_LIBRARY_PATH
10321   ;;
10322
10323 *)
10324   dynamic_linker=no
10325   ;;
10326 esac
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10328 $as_echo "$dynamic_linker" >&6; }
10329 test "$dynamic_linker" = no && can_build_shared=no
10330
10331 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10332 if test "$GCC" = yes; then
10333   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10334 fi
10335
10336 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10337   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10338 fi
10339 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10340   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10341 fi
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10430 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10431 hardcode_action=
10432 if test -n "$hardcode_libdir_flag_spec" ||
10433    test -n "$runpath_var" ||
10434    test "X$hardcode_automatic" = "Xyes" ; then
10435
10436   # We can hardcode non-existent directories.
10437   if test "$hardcode_direct" != no &&
10438      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10439      # have to relink, otherwise we might link with an installed library
10440      # when we should be linking with a yet-to-be-installed one
10441      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10442      test "$hardcode_minus_L" != no; then
10443     # Linking always hardcodes the temporary library directory.
10444     hardcode_action=relink
10445   else
10446     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10447     hardcode_action=immediate
10448   fi
10449 else
10450   # We cannot hardcode anything, or else we can only hardcode existing
10451   # directories.
10452   hardcode_action=unsupported
10453 fi
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10455 $as_echo "$hardcode_action" >&6; }
10456
10457 if test "$hardcode_action" = relink ||
10458    test "$inherit_rpath" = yes; then
10459   # Fast installation is not supported
10460   enable_fast_install=no
10461 elif test "$shlibpath_overrides_runpath" = yes ||
10462      test "$enable_shared" = no; then
10463   # Fast installation is not necessary
10464   enable_fast_install=needless
10465 fi
10466
10467
10468
10469
10470
10471
10472   if test "x$enable_dlopen" != xyes; then
10473   enable_dlopen=unknown
10474   enable_dlopen_self=unknown
10475   enable_dlopen_self_static=unknown
10476 else
10477   lt_cv_dlopen=no
10478   lt_cv_dlopen_libs=
10479
10480   case $host_os in
10481   beos*)
10482     lt_cv_dlopen="load_add_on"
10483     lt_cv_dlopen_libs=
10484     lt_cv_dlopen_self=yes
10485     ;;
10486
10487   mingw* | pw32* | cegcc*)
10488     lt_cv_dlopen="LoadLibrary"
10489     lt_cv_dlopen_libs=
10490     ;;
10491
10492   cygwin*)
10493     lt_cv_dlopen="dlopen"
10494     lt_cv_dlopen_libs=
10495     ;;
10496
10497   darwin*)
10498   # if libdl is installed we need to link against it
10499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10500 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10501 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10502   $as_echo_n "(cached) " >&6
10503 else
10504   ac_check_lib_save_LIBS=$LIBS
10505 LIBS="-ldl  $LIBS"
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h.  */
10508
10509 /* Override any GCC internal prototype to avoid an error.
10510    Use char because int might match the return type of a GCC
10511    builtin and then its argument prototype would still apply.  */
10512 #ifdef __cplusplus
10513 extern "C"
10514 #endif
10515 char dlopen ();
10516 int
10517 main ()
10518 {
10519 return dlopen ();
10520   ;
10521   return 0;
10522 }
10523 _ACEOF
10524 if ac_fn_c_try_link "$LINENO"; then :
10525   ac_cv_lib_dl_dlopen=yes
10526 else
10527   ac_cv_lib_dl_dlopen=no
10528 fi
10529 rm -f core conftest.err conftest.$ac_objext \
10530     conftest$ac_exeext conftest.$ac_ext
10531 LIBS=$ac_check_lib_save_LIBS
10532 fi
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10534 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10535 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10536   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10537 else
10538
10539     lt_cv_dlopen="dyld"
10540     lt_cv_dlopen_libs=
10541     lt_cv_dlopen_self=yes
10542
10543 fi
10544
10545     ;;
10546
10547   *)
10548     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10549 if test "x$ac_cv_func_shl_load" = x""yes; then :
10550   lt_cv_dlopen="shl_load"
10551 else
10552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10553 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10554 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10555   $as_echo_n "(cached) " >&6
10556 else
10557   ac_check_lib_save_LIBS=$LIBS
10558 LIBS="-ldld  $LIBS"
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h.  */
10561
10562 /* Override any GCC internal prototype to avoid an error.
10563    Use char because int might match the return type of a GCC
10564    builtin and then its argument prototype would still apply.  */
10565 #ifdef __cplusplus
10566 extern "C"
10567 #endif
10568 char shl_load ();
10569 int
10570 main ()
10571 {
10572 return shl_load ();
10573   ;
10574   return 0;
10575 }
10576 _ACEOF
10577 if ac_fn_c_try_link "$LINENO"; then :
10578   ac_cv_lib_dld_shl_load=yes
10579 else
10580   ac_cv_lib_dld_shl_load=no
10581 fi
10582 rm -f core conftest.err conftest.$ac_objext \
10583     conftest$ac_exeext conftest.$ac_ext
10584 LIBS=$ac_check_lib_save_LIBS
10585 fi
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10587 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10588 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10589   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10590 else
10591   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10592 if test "x$ac_cv_func_dlopen" = x""yes; then :
10593   lt_cv_dlopen="dlopen"
10594 else
10595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10596 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10597 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10598   $as_echo_n "(cached) " >&6
10599 else
10600   ac_check_lib_save_LIBS=$LIBS
10601 LIBS="-ldl  $LIBS"
10602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h.  */
10604
10605 /* Override any GCC internal prototype to avoid an error.
10606    Use char because int might match the return type of a GCC
10607    builtin and then its argument prototype would still apply.  */
10608 #ifdef __cplusplus
10609 extern "C"
10610 #endif
10611 char dlopen ();
10612 int
10613 main ()
10614 {
10615 return dlopen ();
10616   ;
10617   return 0;
10618 }
10619 _ACEOF
10620 if ac_fn_c_try_link "$LINENO"; then :
10621   ac_cv_lib_dl_dlopen=yes
10622 else
10623   ac_cv_lib_dl_dlopen=no
10624 fi
10625 rm -f core conftest.err conftest.$ac_objext \
10626     conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10628 fi
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10630 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10631 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10632   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10633 else
10634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10635 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10636 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10637   $as_echo_n "(cached) " >&6
10638 else
10639   ac_check_lib_save_LIBS=$LIBS
10640 LIBS="-lsvld  $LIBS"
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h.  */
10643
10644 /* Override any GCC internal prototype to avoid an error.
10645    Use char because int might match the return type of a GCC
10646    builtin and then its argument prototype would still apply.  */
10647 #ifdef __cplusplus
10648 extern "C"
10649 #endif
10650 char dlopen ();
10651 int
10652 main ()
10653 {
10654 return dlopen ();
10655   ;
10656   return 0;
10657 }
10658 _ACEOF
10659 if ac_fn_c_try_link "$LINENO"; then :
10660   ac_cv_lib_svld_dlopen=yes
10661 else
10662   ac_cv_lib_svld_dlopen=no
10663 fi
10664 rm -f core conftest.err conftest.$ac_objext \
10665     conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10667 fi
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10669 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10670 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10671   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10672 else
10673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10674 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10675 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10676   $as_echo_n "(cached) " >&6
10677 else
10678   ac_check_lib_save_LIBS=$LIBS
10679 LIBS="-ldld  $LIBS"
10680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h.  */
10682
10683 /* Override any GCC internal prototype to avoid an error.
10684    Use char because int might match the return type of a GCC
10685    builtin and then its argument prototype would still apply.  */
10686 #ifdef __cplusplus
10687 extern "C"
10688 #endif
10689 char dld_link ();
10690 int
10691 main ()
10692 {
10693 return dld_link ();
10694   ;
10695   return 0;
10696 }
10697 _ACEOF
10698 if ac_fn_c_try_link "$LINENO"; then :
10699   ac_cv_lib_dld_dld_link=yes
10700 else
10701   ac_cv_lib_dld_dld_link=no
10702 fi
10703 rm -f core conftest.err conftest.$ac_objext \
10704     conftest$ac_exeext conftest.$ac_ext
10705 LIBS=$ac_check_lib_save_LIBS
10706 fi
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10708 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10709 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10710   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10711 fi
10712
10713
10714 fi
10715
10716
10717 fi
10718
10719
10720 fi
10721
10722
10723 fi
10724
10725
10726 fi
10727
10728     ;;
10729   esac
10730
10731   if test "x$lt_cv_dlopen" != xno; then
10732     enable_dlopen=yes
10733   else
10734     enable_dlopen=no
10735   fi
10736
10737   case $lt_cv_dlopen in
10738   dlopen)
10739     save_CPPFLAGS="$CPPFLAGS"
10740     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10741
10742     save_LDFLAGS="$LDFLAGS"
10743     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10744
10745     save_LIBS="$LIBS"
10746     LIBS="$lt_cv_dlopen_libs $LIBS"
10747
10748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10749 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10750 if test "${lt_cv_dlopen_self+set}" = set; then :
10751   $as_echo_n "(cached) " >&6
10752 else
10753           if test "$cross_compiling" = yes; then :
10754   lt_cv_dlopen_self=cross
10755 else
10756   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10757   lt_status=$lt_dlunknown
10758   cat > conftest.$ac_ext <<_LT_EOF
10759 #line 10759 "configure"
10760 #include "confdefs.h"
10761
10762 #if HAVE_DLFCN_H
10763 #include <dlfcn.h>
10764 #endif
10765
10766 #include <stdio.h>
10767
10768 #ifdef RTLD_GLOBAL
10769 #  define LT_DLGLOBAL           RTLD_GLOBAL
10770 #else
10771 #  ifdef DL_GLOBAL
10772 #    define LT_DLGLOBAL         DL_GLOBAL
10773 #  else
10774 #    define LT_DLGLOBAL         0
10775 #  endif
10776 #endif
10777
10778 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10779    find out it does not work in some platform. */
10780 #ifndef LT_DLLAZY_OR_NOW
10781 #  ifdef RTLD_LAZY
10782 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10783 #  else
10784 #    ifdef DL_LAZY
10785 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10786 #    else
10787 #      ifdef RTLD_NOW
10788 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10789 #      else
10790 #        ifdef DL_NOW
10791 #          define LT_DLLAZY_OR_NOW      DL_NOW
10792 #        else
10793 #          define LT_DLLAZY_OR_NOW      0
10794 #        endif
10795 #      endif
10796 #    endif
10797 #  endif
10798 #endif
10799
10800 void fnord() { int i=42;}
10801 int main ()
10802 {
10803   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10804   int status = $lt_dlunknown;
10805
10806   if (self)
10807     {
10808       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10809       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10810       /* dlclose (self); */
10811     }
10812   else
10813     puts (dlerror ());
10814
10815   return status;
10816 }
10817 _LT_EOF
10818   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10819   (eval $ac_link) 2>&5
10820   ac_status=$?
10821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10822   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10823     (./conftest; exit; ) >&5 2>/dev/null
10824     lt_status=$?
10825     case x$lt_status in
10826       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10827       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10828       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10829     esac
10830   else :
10831     # compilation failed
10832     lt_cv_dlopen_self=no
10833   fi
10834 fi
10835 rm -fr conftest*
10836
10837
10838 fi
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10840 $as_echo "$lt_cv_dlopen_self" >&6; }
10841
10842     if test "x$lt_cv_dlopen_self" = xyes; then
10843       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10844       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10845 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10846 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10847   $as_echo_n "(cached) " >&6
10848 else
10849           if test "$cross_compiling" = yes; then :
10850   lt_cv_dlopen_self_static=cross
10851 else
10852   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10853   lt_status=$lt_dlunknown
10854   cat > conftest.$ac_ext <<_LT_EOF
10855 #line 10855 "configure"
10856 #include "confdefs.h"
10857
10858 #if HAVE_DLFCN_H
10859 #include <dlfcn.h>
10860 #endif
10861
10862 #include <stdio.h>
10863
10864 #ifdef RTLD_GLOBAL
10865 #  define LT_DLGLOBAL           RTLD_GLOBAL
10866 #else
10867 #  ifdef DL_GLOBAL
10868 #    define LT_DLGLOBAL         DL_GLOBAL
10869 #  else
10870 #    define LT_DLGLOBAL         0
10871 #  endif
10872 #endif
10873
10874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10875    find out it does not work in some platform. */
10876 #ifndef LT_DLLAZY_OR_NOW
10877 #  ifdef RTLD_LAZY
10878 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10879 #  else
10880 #    ifdef DL_LAZY
10881 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10882 #    else
10883 #      ifdef RTLD_NOW
10884 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10885 #      else
10886 #        ifdef DL_NOW
10887 #          define LT_DLLAZY_OR_NOW      DL_NOW
10888 #        else
10889 #          define LT_DLLAZY_OR_NOW      0
10890 #        endif
10891 #      endif
10892 #    endif
10893 #  endif
10894 #endif
10895
10896 void fnord() { int i=42;}
10897 int main ()
10898 {
10899   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10900   int status = $lt_dlunknown;
10901
10902   if (self)
10903     {
10904       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10905       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10906       /* dlclose (self); */
10907     }
10908   else
10909     puts (dlerror ());
10910
10911   return status;
10912 }
10913 _LT_EOF
10914   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10915   (eval $ac_link) 2>&5
10916   ac_status=$?
10917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10918   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10919     (./conftest; exit; ) >&5 2>/dev/null
10920     lt_status=$?
10921     case x$lt_status in
10922       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10923       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10924       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10925     esac
10926   else :
10927     # compilation failed
10928     lt_cv_dlopen_self_static=no
10929   fi
10930 fi
10931 rm -fr conftest*
10932
10933
10934 fi
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10936 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10937     fi
10938
10939     CPPFLAGS="$save_CPPFLAGS"
10940     LDFLAGS="$save_LDFLAGS"
10941     LIBS="$save_LIBS"
10942     ;;
10943   esac
10944
10945   case $lt_cv_dlopen_self in
10946   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10947   *) enable_dlopen_self=unknown ;;
10948   esac
10949
10950   case $lt_cv_dlopen_self_static in
10951   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10952   *) enable_dlopen_self_static=unknown ;;
10953   esac
10954 fi
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972 striplib=
10973 old_striplib=
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10975 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10976 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10977   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10978   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10980 $as_echo "yes" >&6; }
10981 else
10982 # FIXME - insert some real tests, host_os isn't really good enough
10983   case $host_os in
10984   darwin*)
10985     if test -n "$STRIP" ; then
10986       striplib="$STRIP -x"
10987       old_striplib="$STRIP -S"
10988       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10989 $as_echo "yes" >&6; }
10990     else
10991       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10993     fi
10994     ;;
10995   *)
10996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997 $as_echo "no" >&6; }
10998     ;;
10999   esac
11000 fi
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013   # Report which library types will actually be built
11014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11015 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11017 $as_echo "$can_build_shared" >&6; }
11018
11019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11020 $as_echo_n "checking whether to build shared libraries... " >&6; }
11021   test "$can_build_shared" = "no" && enable_shared=no
11022
11023   # On AIX, shared libraries and static libraries use the same namespace, and
11024   # are all built from PIC.
11025   case $host_os in
11026   aix3*)
11027     test "$enable_shared" = yes && enable_static=no
11028     if test -n "$RANLIB"; then
11029       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11030       postinstall_cmds='$RANLIB $lib'
11031     fi
11032     ;;
11033
11034   aix[4-9]*)
11035     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11036       test "$enable_shared" = yes && enable_static=no
11037     fi
11038     ;;
11039   esac
11040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11041 $as_echo "$enable_shared" >&6; }
11042
11043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11044 $as_echo_n "checking whether to build static libraries... " >&6; }
11045   # Make sure either enable_shared or enable_static is yes.
11046   test "$enable_shared" = yes || enable_static=yes
11047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11048 $as_echo "$enable_static" >&6; }
11049
11050
11051
11052
11053 fi
11054 ac_ext=c
11055 ac_cpp='$CPP $CPPFLAGS'
11056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11059
11060 CC="$lt_save_CC"
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074         ac_config_commands="$ac_config_commands libtool"
11075
11076
11077
11078
11079 # Only expand once:
11080
11081
11082
11083 # Docygen features
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094 # Files:
11095 DX_PROJECT=xmltooling
11096
11097 DX_CONFIG=doxygen.cfg
11098
11099 DX_DOCDIR=doc/api
11100
11101
11102 # Environment variables used inside doxygen.cfg:
11103 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
11104
11105 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
11106
11107 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
11108
11109 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
11110
11111
11112 # Doxygen itself:
11113
11114
11115
11116     # Check whether --enable-doxygen-doc was given.
11117 if test "${enable_doxygen_doc+set}" = set; then :
11118   enableval=$enable_doxygen_doc;
11119 case "$enableval" in
11120 #(
11121 y|Y|yes|Yes|YES)
11122     DX_FLAG_doc=1
11123
11124
11125 ;; #(
11126 n|N|no|No|NO)
11127     DX_FLAG_doc=0
11128
11129 ;; #(
11130 *)
11131     as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
11132 ;;
11133 esac
11134
11135 else
11136
11137 DX_FLAG_doc=1
11138
11139
11140
11141 fi
11142
11143 if test "$DX_FLAG_doc" = 1; then
11144
11145 if test -n "$ac_tool_prefix"; then
11146   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
11147 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 $as_echo_n "checking for $ac_word... " >&6; }
11150 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
11151   $as_echo_n "(cached) " >&6
11152 else
11153   case $DX_DOXYGEN in
11154   [\\/]* | ?:[\\/]*)
11155   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
11156   ;;
11157   *)
11158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11160 do
11161   IFS=$as_save_IFS
11162   test -z "$as_dir" && as_dir=.
11163     for ac_exec_ext in '' $ac_executable_extensions; do
11164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11165     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11167     break 2
11168   fi
11169 done
11170   done
11171 IFS=$as_save_IFS
11172
11173   ;;
11174 esac
11175 fi
11176 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
11177 if test -n "$DX_DOXYGEN"; then
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
11179 $as_echo "$DX_DOXYGEN" >&6; }
11180 else
11181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11183 fi
11184
11185
11186 fi
11187 if test -z "$ac_cv_path_DX_DOXYGEN"; then
11188   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
11189   # Extract the first word of "doxygen", so it can be a program name with args.
11190 set dummy doxygen; ac_word=$2
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192 $as_echo_n "checking for $ac_word... " >&6; }
11193 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
11194   $as_echo_n "(cached) " >&6
11195 else
11196   case $ac_pt_DX_DOXYGEN in
11197   [\\/]* | ?:[\\/]*)
11198   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
11199   ;;
11200   *)
11201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11203 do
11204   IFS=$as_save_IFS
11205   test -z "$as_dir" && as_dir=.
11206     for ac_exec_ext in '' $ac_executable_extensions; do
11207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11210     break 2
11211   fi
11212 done
11213   done
11214 IFS=$as_save_IFS
11215
11216   ;;
11217 esac
11218 fi
11219 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
11220 if test -n "$ac_pt_DX_DOXYGEN"; then
11221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
11222 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
11223 else
11224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11226 fi
11227
11228   if test "x$ac_pt_DX_DOXYGEN" = x; then
11229     DX_DOXYGEN=""
11230   else
11231     case $cross_compiling:$ac_tool_warned in
11232 yes:)
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11235 ac_tool_warned=yes ;;
11236 esac
11237     DX_DOXYGEN=$ac_pt_DX_DOXYGEN
11238   fi
11239 else
11240   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
11241 fi
11242
11243 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
11244     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
11245 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
11246     DX_FLAG_doc=0
11247
11248 fi
11249
11250
11251 if test -n "$ac_tool_prefix"; then
11252   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
11253 set dummy ${ac_tool_prefix}perl; ac_word=$2
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255 $as_echo_n "checking for $ac_word... " >&6; }
11256 if test "${ac_cv_path_DX_PERL+set}" = set; then :
11257   $as_echo_n "(cached) " >&6
11258 else
11259   case $DX_PERL in
11260   [\\/]* | ?:[\\/]*)
11261   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
11262   ;;
11263   *)
11264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11265 for as_dir in $PATH
11266 do
11267   IFS=$as_save_IFS
11268   test -z "$as_dir" && as_dir=.
11269     for ac_exec_ext in '' $ac_executable_extensions; do
11270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11271     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
11272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11273     break 2
11274   fi
11275 done
11276   done
11277 IFS=$as_save_IFS
11278
11279   ;;
11280 esac
11281 fi
11282 DX_PERL=$ac_cv_path_DX_PERL
11283 if test -n "$DX_PERL"; then
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
11285 $as_echo "$DX_PERL" >&6; }
11286 else
11287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; }
11289 fi
11290
11291
11292 fi
11293 if test -z "$ac_cv_path_DX_PERL"; then
11294   ac_pt_DX_PERL=$DX_PERL
11295   # Extract the first word of "perl", so it can be a program name with args.
11296 set dummy perl; ac_word=$2
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11298 $as_echo_n "checking for $ac_word... " >&6; }
11299 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
11300   $as_echo_n "(cached) " >&6
11301 else
11302   case $ac_pt_DX_PERL in
11303   [\\/]* | ?:[\\/]*)
11304   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
11305   ;;
11306   *)
11307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11308 for as_dir in $PATH
11309 do
11310   IFS=$as_save_IFS
11311   test -z "$as_dir" && as_dir=.
11312     for ac_exec_ext in '' $ac_executable_extensions; do
11313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11314     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
11315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11316     break 2
11317   fi
11318 done
11319   done
11320 IFS=$as_save_IFS
11321
11322   ;;
11323 esac
11324 fi
11325 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
11326 if test -n "$ac_pt_DX_PERL"; then
11327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
11328 $as_echo "$ac_pt_DX_PERL" >&6; }
11329 else
11330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11332 fi
11333
11334   if test "x$ac_pt_DX_PERL" = x; then
11335     DX_PERL=""
11336   else
11337     case $cross_compiling:$ac_tool_warned in
11338 yes:)
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11341 ac_tool_warned=yes ;;
11342 esac
11343     DX_PERL=$ac_pt_DX_PERL
11344   fi
11345 else
11346   DX_PERL="$ac_cv_path_DX_PERL"
11347 fi
11348
11349 if test "$DX_FLAG_doc$DX_PERL" = 1; then
11350     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
11351 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
11352     DX_FLAG_doc=0
11353
11354 fi
11355
11356     :
11357 fi
11358 if test "$DX_FLAG_doc" = 1; then
11359      if :; then
11360   DX_COND_doc_TRUE=
11361   DX_COND_doc_FALSE='#'
11362 else
11363   DX_COND_doc_TRUE='#'
11364   DX_COND_doc_FALSE=
11365 fi
11366
11367     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
11368
11369     :
11370 else
11371      if false; then
11372   DX_COND_doc_TRUE=
11373   DX_COND_doc_FALSE='#'
11374 else
11375   DX_COND_doc_TRUE='#'
11376   DX_COND_doc_FALSE=
11377 fi
11378
11379
11380     :
11381 fi
11382
11383
11384 # Dot for graphics:
11385
11386
11387
11388     # Check whether --enable-doxygen-dot was given.
11389 if test "${enable_doxygen_dot+set}" = set; then :
11390   enableval=$enable_doxygen_dot;
11391 case "$enableval" in
11392 #(
11393 y|Y|yes|Yes|YES)
11394     DX_FLAG_dot=1
11395
11396
11397 test "$DX_FLAG_doc" = "1" \
11398 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
11399
11400 ;; #(
11401 n|N|no|No|NO)
11402     DX_FLAG_dot=0
11403
11404 ;; #(
11405 *)
11406     as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
11407 ;;
11408 esac
11409
11410 else
11411
11412 DX_FLAG_dot=1
11413
11414
11415 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
11416
11417
11418
11419 fi
11420
11421 if test "$DX_FLAG_dot" = 1; then
11422
11423 if test -n "$ac_tool_prefix"; then
11424   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
11425 set dummy ${ac_tool_prefix}dot; ac_word=$2
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11427 $as_echo_n "checking for $ac_word... " >&6; }
11428 if test "${ac_cv_path_DX_DOT+set}" = set; then :
11429   $as_echo_n "(cached) " >&6
11430 else
11431   case $DX_DOT in
11432   [\\/]* | ?:[\\/]*)
11433   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
11434   ;;
11435   *)
11436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437 for as_dir in $PATH
11438 do
11439   IFS=$as_save_IFS
11440   test -z "$as_dir" && as_dir=.
11441     for ac_exec_ext in '' $ac_executable_extensions; do
11442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11443     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
11444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11445     break 2
11446   fi
11447 done
11448   done
11449 IFS=$as_save_IFS
11450
11451   ;;
11452 esac
11453 fi
11454 DX_DOT=$ac_cv_path_DX_DOT
11455 if test -n "$DX_DOT"; then
11456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
11457 $as_echo "$DX_DOT" >&6; }
11458 else
11459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 $as_echo "no" >&6; }
11461 fi
11462
11463
11464 fi
11465 if test -z "$ac_cv_path_DX_DOT"; then
11466   ac_pt_DX_DOT=$DX_DOT
11467   # Extract the first word of "dot", so it can be a program name with args.
11468 set dummy dot; ac_word=$2
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11470 $as_echo_n "checking for $ac_word... " >&6; }
11471 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
11472   $as_echo_n "(cached) " >&6
11473 else
11474   case $ac_pt_DX_DOT in
11475   [\\/]* | ?:[\\/]*)
11476   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
11477   ;;
11478   *)
11479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480 for as_dir in $PATH
11481 do
11482   IFS=$as_save_IFS
11483   test -z "$as_dir" && as_dir=.
11484     for ac_exec_ext in '' $ac_executable_extensions; do
11485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11486     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
11487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11488     break 2
11489   fi
11490 done
11491   done
11492 IFS=$as_save_IFS
11493
11494   ;;
11495 esac
11496 fi
11497 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
11498 if test -n "$ac_pt_DX_DOT"; then
11499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
11500 $as_echo "$ac_pt_DX_DOT" >&6; }
11501 else
11502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503 $as_echo "no" >&6; }
11504 fi
11505
11506   if test "x$ac_pt_DX_DOT" = x; then
11507     DX_DOT=""
11508   else
11509     case $cross_compiling:$ac_tool_warned in
11510 yes:)
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11513 ac_tool_warned=yes ;;
11514 esac
11515     DX_DOT=$ac_pt_DX_DOT
11516   fi
11517 else
11518   DX_DOT="$ac_cv_path_DX_DOT"
11519 fi
11520
11521 if test "$DX_FLAG_dot$DX_DOT" = 1; then
11522     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
11523 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
11524     DX_FLAG_dot=0
11525
11526 fi
11527
11528     :
11529 fi
11530 if test "$DX_FLAG_dot" = 1; then
11531      if :; then
11532   DX_COND_dot_TRUE=
11533   DX_COND_dot_FALSE='#'
11534 else
11535   DX_COND_dot_TRUE='#'
11536   DX_COND_dot_FALSE=
11537 fi
11538
11539     DX_ENV="$DX_ENV HAVE_DOT='YES'"
11540
11541              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
11542
11543     :
11544 else
11545      if false; then
11546   DX_COND_dot_TRUE=
11547   DX_COND_dot_FALSE='#'
11548 else
11549   DX_COND_dot_TRUE='#'
11550   DX_COND_dot_FALSE=
11551 fi
11552
11553     DX_ENV="$DX_ENV HAVE_DOT='NO'"
11554
11555     :
11556 fi
11557
11558
11559 # Man pages generation:
11560
11561
11562
11563     # Check whether --enable-doxygen-man was given.
11564 if test "${enable_doxygen_man+set}" = set; then :
11565   enableval=$enable_doxygen_man;
11566 case "$enableval" in
11567 #(
11568 y|Y|yes|Yes|YES)
11569     DX_FLAG_man=1
11570
11571
11572 test "$DX_FLAG_doc" = "1" \
11573 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
11574
11575 ;; #(
11576 n|N|no|No|NO)
11577     DX_FLAG_man=0
11578
11579 ;; #(
11580 *)
11581     as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
11582 ;;
11583 esac
11584
11585 else
11586
11587 DX_FLAG_man=0
11588
11589
11590 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
11591
11592
11593
11594 fi
11595
11596 if test "$DX_FLAG_man" = 1; then
11597
11598     :
11599 fi
11600 if test "$DX_FLAG_man" = 1; then
11601      if :; then
11602   DX_COND_man_TRUE=
11603   DX_COND_man_FALSE='#'
11604 else
11605   DX_COND_man_TRUE='#'
11606   DX_COND_man_FALSE=
11607 fi
11608
11609     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
11610
11611     :
11612 else
11613      if false; then
11614   DX_COND_man_TRUE=
11615   DX_COND_man_FALSE='#'
11616 else
11617   DX_COND_man_TRUE='#'
11618   DX_COND_man_FALSE=
11619 fi
11620
11621     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
11622
11623     :
11624 fi
11625
11626
11627 # RTF file generation:
11628
11629
11630
11631     # Check whether --enable-doxygen-rtf was given.
11632 if test "${enable_doxygen_rtf+set}" = set; then :
11633   enableval=$enable_doxygen_rtf;
11634 case "$enableval" in
11635 #(
11636 y|Y|yes|Yes|YES)
11637     DX_FLAG_rtf=1
11638
11639
11640 test "$DX_FLAG_doc" = "1" \
11641 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
11642
11643 ;; #(
11644 n|N|no|No|NO)
11645     DX_FLAG_rtf=0
11646
11647 ;; #(
11648 *)
11649     as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
11650 ;;
11651 esac
11652
11653 else
11654
11655 DX_FLAG_rtf=0
11656
11657
11658 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
11659
11660
11661
11662 fi
11663
11664 if test "$DX_FLAG_rtf" = 1; then
11665
11666     :
11667 fi
11668 if test "$DX_FLAG_rtf" = 1; then
11669      if :; then
11670   DX_COND_rtf_TRUE=
11671   DX_COND_rtf_FALSE='#'
11672 else
11673   DX_COND_rtf_TRUE='#'
11674   DX_COND_rtf_FALSE=
11675 fi
11676
11677     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
11678
11679     :
11680 else
11681      if false; then
11682   DX_COND_rtf_TRUE=
11683   DX_COND_rtf_FALSE='#'
11684 else
11685   DX_COND_rtf_TRUE='#'
11686   DX_COND_rtf_FALSE=
11687 fi
11688
11689     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
11690
11691     :
11692 fi
11693
11694
11695 # XML file generation:
11696
11697
11698
11699     # Check whether --enable-doxygen-xml was given.
11700 if test "${enable_doxygen_xml+set}" = set; then :
11701   enableval=$enable_doxygen_xml;
11702 case "$enableval" in
11703 #(
11704 y|Y|yes|Yes|YES)
11705     DX_FLAG_xml=1
11706
11707
11708 test "$DX_FLAG_doc" = "1" \
11709 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
11710
11711 ;; #(
11712 n|N|no|No|NO)
11713     DX_FLAG_xml=0
11714
11715 ;; #(
11716 *)
11717     as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
11718 ;;
11719 esac
11720
11721 else
11722
11723 DX_FLAG_xml=0
11724
11725
11726 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
11727
11728
11729
11730 fi
11731
11732 if test "$DX_FLAG_xml" = 1; then
11733
11734     :
11735 fi
11736 if test "$DX_FLAG_xml" = 1; then
11737      if :; then
11738   DX_COND_xml_TRUE=
11739   DX_COND_xml_FALSE='#'
11740 else
11741   DX_COND_xml_TRUE='#'
11742   DX_COND_xml_FALSE=
11743 fi
11744
11745     DX_ENV="$DX_ENV GENERATE_XML='YES'"
11746
11747     :
11748 else
11749      if false; then
11750   DX_COND_xml_TRUE=
11751   DX_COND_xml_FALSE='#'
11752 else
11753   DX_COND_xml_TRUE='#'
11754   DX_COND_xml_FALSE=
11755 fi
11756
11757     DX_ENV="$DX_ENV GENERATE_XML='NO'"
11758
11759     :
11760 fi
11761
11762
11763 # (Compressed) HTML help generation:
11764
11765
11766
11767     # Check whether --enable-doxygen-chm was given.
11768 if test "${enable_doxygen_chm+set}" = set; then :
11769   enableval=$enable_doxygen_chm;
11770 case "$enableval" in
11771 #(
11772 y|Y|yes|Yes|YES)
11773     DX_FLAG_chm=1
11774
11775
11776 test "$DX_FLAG_doc" = "1" \
11777 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
11778
11779 ;; #(
11780 n|N|no|No|NO)
11781     DX_FLAG_chm=0
11782
11783 ;; #(
11784 *)
11785     as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
11786 ;;
11787 esac
11788
11789 else
11790
11791 DX_FLAG_chm=0
11792
11793
11794 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
11795
11796
11797
11798 fi
11799
11800 if test "$DX_FLAG_chm" = 1; then
11801
11802 if test -n "$ac_tool_prefix"; then
11803   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
11804 set dummy ${ac_tool_prefix}hhc; ac_word=$2
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806 $as_echo_n "checking for $ac_word... " >&6; }
11807 if test "${ac_cv_path_DX_HHC+set}" = set; then :
11808   $as_echo_n "(cached) " >&6
11809 else
11810   case $DX_HHC in
11811   [\\/]* | ?:[\\/]*)
11812   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
11813   ;;
11814   *)
11815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $PATH
11817 do
11818   IFS=$as_save_IFS
11819   test -z "$as_dir" && as_dir=.
11820     for ac_exec_ext in '' $ac_executable_extensions; do
11821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11822     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
11823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824     break 2
11825   fi
11826 done
11827   done
11828 IFS=$as_save_IFS
11829
11830   ;;
11831 esac
11832 fi
11833 DX_HHC=$ac_cv_path_DX_HHC
11834 if test -n "$DX_HHC"; then
11835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
11836 $as_echo "$DX_HHC" >&6; }
11837 else
11838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839 $as_echo "no" >&6; }
11840 fi
11841
11842
11843 fi
11844 if test -z "$ac_cv_path_DX_HHC"; then
11845   ac_pt_DX_HHC=$DX_HHC
11846   # Extract the first word of "hhc", so it can be a program name with args.
11847 set dummy hhc; ac_word=$2
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11849 $as_echo_n "checking for $ac_word... " >&6; }
11850 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
11851   $as_echo_n "(cached) " >&6
11852 else
11853   case $ac_pt_DX_HHC in
11854   [\\/]* | ?:[\\/]*)
11855   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
11856   ;;
11857   *)
11858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11860 do
11861   IFS=$as_save_IFS
11862   test -z "$as_dir" && as_dir=.
11863     for ac_exec_ext in '' $ac_executable_extensions; do
11864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
11866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867     break 2
11868   fi
11869 done
11870   done
11871 IFS=$as_save_IFS
11872
11873   ;;
11874 esac
11875 fi
11876 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
11877 if test -n "$ac_pt_DX_HHC"; then
11878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
11879 $as_echo "$ac_pt_DX_HHC" >&6; }
11880 else
11881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11883 fi
11884
11885   if test "x$ac_pt_DX_HHC" = x; then
11886     DX_HHC=""
11887   else
11888     case $cross_compiling:$ac_tool_warned in
11889 yes:)
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11892 ac_tool_warned=yes ;;
11893 esac
11894     DX_HHC=$ac_pt_DX_HHC
11895   fi
11896 else
11897   DX_HHC="$ac_cv_path_DX_HHC"
11898 fi
11899
11900 if test "$DX_FLAG_chm$DX_HHC" = 1; then
11901     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
11902 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
11903     DX_FLAG_chm=0
11904
11905 fi
11906
11907     :
11908 fi
11909 if test "$DX_FLAG_chm" = 1; then
11910      if :; then
11911   DX_COND_chm_TRUE=
11912   DX_COND_chm_FALSE='#'
11913 else
11914   DX_COND_chm_TRUE='#'
11915   DX_COND_chm_FALSE=
11916 fi
11917
11918     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
11919
11920              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
11921
11922              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
11923
11924     :
11925 else
11926      if false; then
11927   DX_COND_chm_TRUE=
11928   DX_COND_chm_FALSE='#'
11929 else
11930   DX_COND_chm_TRUE='#'
11931   DX_COND_chm_FALSE=
11932 fi
11933
11934     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
11935
11936     :
11937 fi
11938
11939
11940 # Seperate CHI file generation.
11941
11942
11943
11944     # Check whether --enable-doxygen-chi was given.
11945 if test "${enable_doxygen_chi+set}" = set; then :
11946   enableval=$enable_doxygen_chi;
11947 case "$enableval" in
11948 #(
11949 y|Y|yes|Yes|YES)
11950     DX_FLAG_chi=1
11951
11952
11953 test "$DX_FLAG_chm" = "1" \
11954 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
11955
11956 ;; #(
11957 n|N|no|No|NO)
11958     DX_FLAG_chi=0
11959
11960 ;; #(
11961 *)
11962     as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
11963 ;;
11964 esac
11965
11966 else
11967
11968 DX_FLAG_chi=0
11969
11970
11971 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
11972
11973
11974
11975 fi
11976
11977 if test "$DX_FLAG_chi" = 1; then
11978
11979     :
11980 fi
11981 if test "$DX_FLAG_chi" = 1; then
11982      if :; then
11983   DX_COND_chi_TRUE=
11984   DX_COND_chi_FALSE='#'
11985 else
11986   DX_COND_chi_TRUE='#'
11987   DX_COND_chi_FALSE=
11988 fi
11989
11990     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
11991
11992     :
11993 else
11994      if false; then
11995   DX_COND_chi_TRUE=
11996   DX_COND_chi_FALSE='#'
11997 else
11998   DX_COND_chi_TRUE='#'
11999   DX_COND_chi_FALSE=
12000 fi
12001
12002     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
12003
12004     :
12005 fi
12006
12007
12008 # Plain HTML pages generation:
12009
12010
12011
12012     # Check whether --enable-doxygen-html was given.
12013 if test "${enable_doxygen_html+set}" = set; then :
12014   enableval=$enable_doxygen_html;
12015 case "$enableval" in
12016 #(
12017 y|Y|yes|Yes|YES)
12018     DX_FLAG_html=1
12019
12020
12021 test "$DX_FLAG_doc" = "1" \
12022 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
12023
12024 test "$DX_FLAG_chm" = "0" \
12025 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
12026
12027 ;; #(
12028 n|N|no|No|NO)
12029     DX_FLAG_html=0
12030
12031 ;; #(
12032 *)
12033     as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
12034 ;;
12035 esac
12036
12037 else
12038
12039 DX_FLAG_html=1
12040
12041
12042 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
12043
12044
12045 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
12046
12047
12048
12049 fi
12050
12051 if test "$DX_FLAG_html" = 1; then
12052
12053     :
12054 fi
12055 if test "$DX_FLAG_html" = 1; then
12056      if :; then
12057   DX_COND_html_TRUE=
12058   DX_COND_html_FALSE='#'
12059 else
12060   DX_COND_html_TRUE='#'
12061   DX_COND_html_FALSE=
12062 fi
12063
12064     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
12065
12066     :
12067 else
12068      if false; then
12069   DX_COND_html_TRUE=
12070   DX_COND_html_FALSE='#'
12071 else
12072   DX_COND_html_TRUE='#'
12073   DX_COND_html_FALSE=
12074 fi
12075
12076     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
12077
12078     :
12079 fi
12080
12081
12082 # PostScript file generation:
12083
12084
12085
12086     # Check whether --enable-doxygen-ps was given.
12087 if test "${enable_doxygen_ps+set}" = set; then :
12088   enableval=$enable_doxygen_ps;
12089 case "$enableval" in
12090 #(
12091 y|Y|yes|Yes|YES)
12092     DX_FLAG_ps=1
12093
12094
12095 test "$DX_FLAG_doc" = "1" \
12096 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
12097
12098 ;; #(
12099 n|N|no|No|NO)
12100     DX_FLAG_ps=0
12101
12102 ;; #(
12103 *)
12104     as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
12105 ;;
12106 esac
12107
12108 else
12109
12110 DX_FLAG_ps=0
12111
12112
12113 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
12114
12115
12116
12117 fi
12118
12119 if test "$DX_FLAG_ps" = 1; then
12120
12121 if test -n "$ac_tool_prefix"; then
12122   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
12123 set dummy ${ac_tool_prefix}latex; ac_word=$2
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125 $as_echo_n "checking for $ac_word... " >&6; }
12126 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
12127   $as_echo_n "(cached) " >&6
12128 else
12129   case $DX_LATEX in
12130   [\\/]* | ?:[\\/]*)
12131   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
12132   ;;
12133   *)
12134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12136 do
12137   IFS=$as_save_IFS
12138   test -z "$as_dir" && as_dir=.
12139     for ac_exec_ext in '' $ac_executable_extensions; do
12140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12141     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143     break 2
12144   fi
12145 done
12146   done
12147 IFS=$as_save_IFS
12148
12149   ;;
12150 esac
12151 fi
12152 DX_LATEX=$ac_cv_path_DX_LATEX
12153 if test -n "$DX_LATEX"; then
12154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
12155 $as_echo "$DX_LATEX" >&6; }
12156 else
12157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12159 fi
12160
12161
12162 fi
12163 if test -z "$ac_cv_path_DX_LATEX"; then
12164   ac_pt_DX_LATEX=$DX_LATEX
12165   # Extract the first word of "latex", so it can be a program name with args.
12166 set dummy latex; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
12170   $as_echo_n "(cached) " >&6
12171 else
12172   case $ac_pt_DX_LATEX in
12173   [\\/]* | ?:[\\/]*)
12174   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
12175   ;;
12176   *)
12177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12179 do
12180   IFS=$as_save_IFS
12181   test -z "$as_dir" && as_dir=.
12182     for ac_exec_ext in '' $ac_executable_extensions; do
12183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12184     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12186     break 2
12187   fi
12188 done
12189   done
12190 IFS=$as_save_IFS
12191
12192   ;;
12193 esac
12194 fi
12195 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
12196 if test -n "$ac_pt_DX_LATEX"; then
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
12198 $as_echo "$ac_pt_DX_LATEX" >&6; }
12199 else
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12202 fi
12203
12204   if test "x$ac_pt_DX_LATEX" = x; then
12205     DX_LATEX=""
12206   else
12207     case $cross_compiling:$ac_tool_warned in
12208 yes:)
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12211 ac_tool_warned=yes ;;
12212 esac
12213     DX_LATEX=$ac_pt_DX_LATEX
12214   fi
12215 else
12216   DX_LATEX="$ac_cv_path_DX_LATEX"
12217 fi
12218
12219 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
12220     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
12221 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
12222     DX_FLAG_ps=0
12223
12224 fi
12225
12226
12227 if test -n "$ac_tool_prefix"; then
12228   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12229 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231 $as_echo_n "checking for $ac_word... " >&6; }
12232 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
12233   $as_echo_n "(cached) " >&6
12234 else
12235   case $DX_MAKEINDEX in
12236   [\\/]* | ?:[\\/]*)
12237   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
12238   ;;
12239   *)
12240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12242 do
12243   IFS=$as_save_IFS
12244   test -z "$as_dir" && as_dir=.
12245     for ac_exec_ext in '' $ac_executable_extensions; do
12246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12247     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12249     break 2
12250   fi
12251 done
12252   done
12253 IFS=$as_save_IFS
12254
12255   ;;
12256 esac
12257 fi
12258 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
12259 if test -n "$DX_MAKEINDEX"; then
12260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
12261 $as_echo "$DX_MAKEINDEX" >&6; }
12262 else
12263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264 $as_echo "no" >&6; }
12265 fi
12266
12267
12268 fi
12269 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
12270   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
12271   # Extract the first word of "makeindex", so it can be a program name with args.
12272 set dummy makeindex; ac_word=$2
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274 $as_echo_n "checking for $ac_word... " >&6; }
12275 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
12276   $as_echo_n "(cached) " >&6
12277 else
12278   case $ac_pt_DX_MAKEINDEX in
12279   [\\/]* | ?:[\\/]*)
12280   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
12281   ;;
12282   *)
12283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284 for as_dir in $PATH
12285 do
12286   IFS=$as_save_IFS
12287   test -z "$as_dir" && as_dir=.
12288     for ac_exec_ext in '' $ac_executable_extensions; do
12289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12290     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292     break 2
12293   fi
12294 done
12295   done
12296 IFS=$as_save_IFS
12297
12298   ;;
12299 esac
12300 fi
12301 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
12302 if test -n "$ac_pt_DX_MAKEINDEX"; then
12303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
12304 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
12305 else
12306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12308 fi
12309
12310   if test "x$ac_pt_DX_MAKEINDEX" = x; then
12311     DX_MAKEINDEX=""
12312   else
12313     case $cross_compiling:$ac_tool_warned in
12314 yes:)
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12317 ac_tool_warned=yes ;;
12318 esac
12319     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
12320   fi
12321 else
12322   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
12323 fi
12324
12325 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
12326     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
12327 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
12328     DX_FLAG_ps=0
12329
12330 fi
12331
12332
12333 if test -n "$ac_tool_prefix"; then
12334   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
12335 set dummy ${ac_tool_prefix}dvips; ac_word=$2
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12337 $as_echo_n "checking for $ac_word... " >&6; }
12338 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
12339   $as_echo_n "(cached) " >&6
12340 else
12341   case $DX_DVIPS in
12342   [\\/]* | ?:[\\/]*)
12343   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
12344   ;;
12345   *)
12346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12347 for as_dir in $PATH
12348 do
12349   IFS=$as_save_IFS
12350   test -z "$as_dir" && as_dir=.
12351     for ac_exec_ext in '' $ac_executable_extensions; do
12352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12353     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
12354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12355     break 2
12356   fi
12357 done
12358   done
12359 IFS=$as_save_IFS
12360
12361   ;;
12362 esac
12363 fi
12364 DX_DVIPS=$ac_cv_path_DX_DVIPS
12365 if test -n "$DX_DVIPS"; then
12366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
12367 $as_echo "$DX_DVIPS" >&6; }
12368 else
12369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12371 fi
12372
12373
12374 fi
12375 if test -z "$ac_cv_path_DX_DVIPS"; then
12376   ac_pt_DX_DVIPS=$DX_DVIPS
12377   # Extract the first word of "dvips", so it can be a program name with args.
12378 set dummy dvips; ac_word=$2
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12380 $as_echo_n "checking for $ac_word... " >&6; }
12381 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
12382   $as_echo_n "(cached) " >&6
12383 else
12384   case $ac_pt_DX_DVIPS in
12385   [\\/]* | ?:[\\/]*)
12386   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
12387   ;;
12388   *)
12389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12390 for as_dir in $PATH
12391 do
12392   IFS=$as_save_IFS
12393   test -z "$as_dir" && as_dir=.
12394     for ac_exec_ext in '' $ac_executable_extensions; do
12395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12396     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
12397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12398     break 2
12399   fi
12400 done
12401   done
12402 IFS=$as_save_IFS
12403
12404   ;;
12405 esac
12406 fi
12407 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
12408 if test -n "$ac_pt_DX_DVIPS"; then
12409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
12410 $as_echo "$ac_pt_DX_DVIPS" >&6; }
12411 else
12412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 $as_echo "no" >&6; }
12414 fi
12415
12416   if test "x$ac_pt_DX_DVIPS" = x; then
12417     DX_DVIPS=""
12418   else
12419     case $cross_compiling:$ac_tool_warned in
12420 yes:)
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12423 ac_tool_warned=yes ;;
12424 esac
12425     DX_DVIPS=$ac_pt_DX_DVIPS
12426   fi
12427 else
12428   DX_DVIPS="$ac_cv_path_DX_DVIPS"
12429 fi
12430
12431 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
12432     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
12433 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
12434     DX_FLAG_ps=0
12435
12436 fi
12437
12438
12439 if test -n "$ac_tool_prefix"; then
12440   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
12441 set dummy ${ac_tool_prefix}egrep; ac_word=$2
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12443 $as_echo_n "checking for $ac_word... " >&6; }
12444 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
12445   $as_echo_n "(cached) " >&6
12446 else
12447   case $DX_EGREP in
12448   [\\/]* | ?:[\\/]*)
12449   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
12450   ;;
12451   *)
12452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12453 for as_dir in $PATH
12454 do
12455   IFS=$as_save_IFS
12456   test -z "$as_dir" && as_dir=.
12457     for ac_exec_ext in '' $ac_executable_extensions; do
12458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12459     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12461     break 2
12462   fi
12463 done
12464   done
12465 IFS=$as_save_IFS
12466
12467   ;;
12468 esac
12469 fi
12470 DX_EGREP=$ac_cv_path_DX_EGREP
12471 if test -n "$DX_EGREP"; then
12472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
12473 $as_echo "$DX_EGREP" >&6; }
12474 else
12475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476 $as_echo "no" >&6; }
12477 fi
12478
12479
12480 fi
12481 if test -z "$ac_cv_path_DX_EGREP"; then
12482   ac_pt_DX_EGREP=$DX_EGREP
12483   # Extract the first word of "egrep", so it can be a program name with args.
12484 set dummy egrep; ac_word=$2
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12486 $as_echo_n "checking for $ac_word... " >&6; }
12487 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
12488   $as_echo_n "(cached) " >&6
12489 else
12490   case $ac_pt_DX_EGREP in
12491   [\\/]* | ?:[\\/]*)
12492   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
12493   ;;
12494   *)
12495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12497 do
12498   IFS=$as_save_IFS
12499   test -z "$as_dir" && as_dir=.
12500     for ac_exec_ext in '' $ac_executable_extensions; do
12501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12502     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504     break 2
12505   fi
12506 done
12507   done
12508 IFS=$as_save_IFS
12509
12510   ;;
12511 esac
12512 fi
12513 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
12514 if test -n "$ac_pt_DX_EGREP"; then
12515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
12516 $as_echo "$ac_pt_DX_EGREP" >&6; }
12517 else
12518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519 $as_echo "no" >&6; }
12520 fi
12521
12522   if test "x$ac_pt_DX_EGREP" = x; then
12523     DX_EGREP=""
12524   else
12525     case $cross_compiling:$ac_tool_warned in
12526 yes:)
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12529 ac_tool_warned=yes ;;
12530 esac
12531     DX_EGREP=$ac_pt_DX_EGREP
12532   fi
12533 else
12534   DX_EGREP="$ac_cv_path_DX_EGREP"
12535 fi
12536
12537 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
12538     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
12539 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
12540     DX_FLAG_ps=0
12541
12542 fi
12543
12544     :
12545 fi
12546 if test "$DX_FLAG_ps" = 1; then
12547      if :; then
12548   DX_COND_ps_TRUE=
12549   DX_COND_ps_FALSE='#'
12550 else
12551   DX_COND_ps_TRUE='#'
12552   DX_COND_ps_FALSE=
12553 fi
12554
12555
12556     :
12557 else
12558      if false; then
12559   DX_COND_ps_TRUE=
12560   DX_COND_ps_FALSE='#'
12561 else
12562   DX_COND_ps_TRUE='#'
12563   DX_COND_ps_FALSE=
12564 fi
12565
12566
12567     :
12568 fi
12569
12570
12571 # PDF file generation:
12572
12573
12574
12575     # Check whether --enable-doxygen-pdf was given.
12576 if test "${enable_doxygen_pdf+set}" = set; then :
12577   enableval=$enable_doxygen_pdf;
12578 case "$enableval" in
12579 #(
12580 y|Y|yes|Yes|YES)
12581     DX_FLAG_pdf=1
12582
12583
12584 test "$DX_FLAG_doc" = "1" \
12585 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
12586
12587 ;; #(
12588 n|N|no|No|NO)
12589     DX_FLAG_pdf=0
12590
12591 ;; #(
12592 *)
12593     as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
12594 ;;
12595 esac
12596
12597 else
12598
12599 DX_FLAG_pdf=0
12600
12601
12602 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
12603
12604
12605
12606 fi
12607
12608 if test "$DX_FLAG_pdf" = 1; then
12609
12610 if test -n "$ac_tool_prefix"; then
12611   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
12612 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12614 $as_echo_n "checking for $ac_word... " >&6; }
12615 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
12616   $as_echo_n "(cached) " >&6
12617 else
12618   case $DX_PDFLATEX in
12619   [\\/]* | ?:[\\/]*)
12620   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
12621   ;;
12622   *)
12623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12624 for as_dir in $PATH
12625 do
12626   IFS=$as_save_IFS
12627   test -z "$as_dir" && as_dir=.
12628     for ac_exec_ext in '' $ac_executable_extensions; do
12629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12630     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
12631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12632     break 2
12633   fi
12634 done
12635   done
12636 IFS=$as_save_IFS
12637
12638   ;;
12639 esac
12640 fi
12641 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
12642 if test -n "$DX_PDFLATEX"; then
12643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
12644 $as_echo "$DX_PDFLATEX" >&6; }
12645 else
12646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12648 fi
12649
12650
12651 fi
12652 if test -z "$ac_cv_path_DX_PDFLATEX"; then
12653   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
12654   # Extract the first word of "pdflatex", so it can be a program name with args.
12655 set dummy pdflatex; ac_word=$2
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12657 $as_echo_n "checking for $ac_word... " >&6; }
12658 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
12659   $as_echo_n "(cached) " >&6
12660 else
12661   case $ac_pt_DX_PDFLATEX in
12662   [\\/]* | ?:[\\/]*)
12663   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
12664   ;;
12665   *)
12666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667 for as_dir in $PATH
12668 do
12669   IFS=$as_save_IFS
12670   test -z "$as_dir" && as_dir=.
12671     for ac_exec_ext in '' $ac_executable_extensions; do
12672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12673     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
12674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12675     break 2
12676   fi
12677 done
12678   done
12679 IFS=$as_save_IFS
12680
12681   ;;
12682 esac
12683 fi
12684 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
12685 if test -n "$ac_pt_DX_PDFLATEX"; then
12686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
12687 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
12688 else
12689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690 $as_echo "no" >&6; }
12691 fi
12692
12693   if test "x$ac_pt_DX_PDFLATEX" = x; then
12694     DX_PDFLATEX=""
12695   else
12696     case $cross_compiling:$ac_tool_warned in
12697 yes:)
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12700 ac_tool_warned=yes ;;
12701 esac
12702     DX_PDFLATEX=$ac_pt_DX_PDFLATEX
12703   fi
12704 else
12705   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
12706 fi
12707
12708 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
12709     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
12710 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
12711     DX_FLAG_pdf=0
12712
12713 fi
12714
12715
12716 if test -n "$ac_tool_prefix"; then
12717   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12718 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720 $as_echo_n "checking for $ac_word... " >&6; }
12721 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
12722   $as_echo_n "(cached) " >&6
12723 else
12724   case $DX_MAKEINDEX in
12725   [\\/]* | ?:[\\/]*)
12726   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
12727   ;;
12728   *)
12729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730 for as_dir in $PATH
12731 do
12732   IFS=$as_save_IFS
12733   test -z "$as_dir" && as_dir=.
12734     for ac_exec_ext in '' $ac_executable_extensions; do
12735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12736     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738     break 2
12739   fi
12740 done
12741   done
12742 IFS=$as_save_IFS
12743
12744   ;;
12745 esac
12746 fi
12747 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
12748 if test -n "$DX_MAKEINDEX"; then
12749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
12750 $as_echo "$DX_MAKEINDEX" >&6; }
12751 else
12752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12754 fi
12755
12756
12757 fi
12758 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
12759   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
12760   # Extract the first word of "makeindex", so it can be a program name with args.
12761 set dummy makeindex; ac_word=$2
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12763 $as_echo_n "checking for $ac_word... " >&6; }
12764 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
12765   $as_echo_n "(cached) " >&6
12766 else
12767   case $ac_pt_DX_MAKEINDEX in
12768   [\\/]* | ?:[\\/]*)
12769   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
12770   ;;
12771   *)
12772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH
12774 do
12775   IFS=$as_save_IFS
12776   test -z "$as_dir" && as_dir=.
12777     for ac_exec_ext in '' $ac_executable_extensions; do
12778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12779     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12781     break 2
12782   fi
12783 done
12784   done
12785 IFS=$as_save_IFS
12786
12787   ;;
12788 esac
12789 fi
12790 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
12791 if test -n "$ac_pt_DX_MAKEINDEX"; then
12792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
12793 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
12794 else
12795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 $as_echo "no" >&6; }
12797 fi
12798
12799   if test "x$ac_pt_DX_MAKEINDEX" = x; then
12800     DX_MAKEINDEX=""
12801   else
12802     case $cross_compiling:$ac_tool_warned in
12803 yes:)
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12806 ac_tool_warned=yes ;;
12807 esac
12808     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
12809   fi
12810 else
12811   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
12812 fi
12813
12814 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
12815     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
12816 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
12817     DX_FLAG_pdf=0
12818
12819 fi
12820
12821
12822 if test -n "$ac_tool_prefix"; then
12823   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
12824 set dummy ${ac_tool_prefix}egrep; ac_word=$2
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826 $as_echo_n "checking for $ac_word... " >&6; }
12827 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
12828   $as_echo_n "(cached) " >&6
12829 else
12830   case $DX_EGREP in
12831   [\\/]* | ?:[\\/]*)
12832   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
12833   ;;
12834   *)
12835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH
12837 do
12838   IFS=$as_save_IFS
12839   test -z "$as_dir" && as_dir=.
12840     for ac_exec_ext in '' $ac_executable_extensions; do
12841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12842     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844     break 2
12845   fi
12846 done
12847   done
12848 IFS=$as_save_IFS
12849
12850   ;;
12851 esac
12852 fi
12853 DX_EGREP=$ac_cv_path_DX_EGREP
12854 if test -n "$DX_EGREP"; then
12855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
12856 $as_echo "$DX_EGREP" >&6; }
12857 else
12858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859 $as_echo "no" >&6; }
12860 fi
12861
12862
12863 fi
12864 if test -z "$ac_cv_path_DX_EGREP"; then
12865   ac_pt_DX_EGREP=$DX_EGREP
12866   # Extract the first word of "egrep", so it can be a program name with args.
12867 set dummy egrep; ac_word=$2
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869 $as_echo_n "checking for $ac_word... " >&6; }
12870 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
12871   $as_echo_n "(cached) " >&6
12872 else
12873   case $ac_pt_DX_EGREP in
12874   [\\/]* | ?:[\\/]*)
12875   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
12876   ;;
12877   *)
12878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879 for as_dir in $PATH
12880 do
12881   IFS=$as_save_IFS
12882   test -z "$as_dir" && as_dir=.
12883     for ac_exec_ext in '' $ac_executable_extensions; do
12884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12885     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887     break 2
12888   fi
12889 done
12890   done
12891 IFS=$as_save_IFS
12892
12893   ;;
12894 esac
12895 fi
12896 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
12897 if test -n "$ac_pt_DX_EGREP"; then
12898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
12899 $as_echo "$ac_pt_DX_EGREP" >&6; }
12900 else
12901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12903 fi
12904
12905   if test "x$ac_pt_DX_EGREP" = x; then
12906     DX_EGREP=""
12907   else
12908     case $cross_compiling:$ac_tool_warned in
12909 yes:)
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12912 ac_tool_warned=yes ;;
12913 esac
12914     DX_EGREP=$ac_pt_DX_EGREP
12915   fi
12916 else
12917   DX_EGREP="$ac_cv_path_DX_EGREP"
12918 fi
12919
12920 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
12921     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
12922 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
12923     DX_FLAG_pdf=0
12924
12925 fi
12926
12927     :
12928 fi
12929 if test "$DX_FLAG_pdf" = 1; then
12930      if :; then
12931   DX_COND_pdf_TRUE=
12932   DX_COND_pdf_FALSE='#'
12933 else
12934   DX_COND_pdf_TRUE='#'
12935   DX_COND_pdf_FALSE=
12936 fi
12937
12938
12939     :
12940 else
12941      if false; then
12942   DX_COND_pdf_TRUE=
12943   DX_COND_pdf_FALSE='#'
12944 else
12945   DX_COND_pdf_TRUE='#'
12946   DX_COND_pdf_FALSE=
12947 fi
12948
12949
12950     :
12951 fi
12952
12953
12954 # LaTeX generation for PS and/or PDF:
12955 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
12956      if :; then
12957   DX_COND_latex_TRUE=
12958   DX_COND_latex_FALSE='#'
12959 else
12960   DX_COND_latex_TRUE='#'
12961   DX_COND_latex_FALSE=
12962 fi
12963
12964     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
12965
12966 else
12967      if false; then
12968   DX_COND_latex_TRUE=
12969   DX_COND_latex_FALSE='#'
12970 else
12971   DX_COND_latex_TRUE='#'
12972   DX_COND_latex_FALSE=
12973 fi
12974
12975     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
12976
12977 fi
12978
12979 # Paper size for PS and/or PDF:
12980
12981 case "$DOXYGEN_PAPER_SIZE" in
12982 #(
12983 "")
12984     DOXYGEN_PAPER_SIZE=""
12985
12986 ;; #(
12987 a4wide|a4|letter|legal|executive)
12988     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
12989
12990 ;; #(
12991 *)
12992     as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
12993 ;;
12994 esac
12995
12996 #For debugging:
12997 #echo DX_FLAG_doc=$DX_FLAG_doc
12998 #echo DX_FLAG_dot=$DX_FLAG_dot
12999 #echo DX_FLAG_man=$DX_FLAG_man
13000 #echo DX_FLAG_html=$DX_FLAG_html
13001 #echo DX_FLAG_chm=$DX_FLAG_chm
13002 #echo DX_FLAG_chi=$DX_FLAG_chi
13003 #echo DX_FLAG_rtf=$DX_FLAG_rtf
13004 #echo DX_FLAG_xml=$DX_FLAG_xml
13005 #echo DX_FLAG_pdf=$DX_FLAG_pdf
13006 #echo DX_FLAG_ps=$DX_FLAG_ps
13007 #echo DX_ENV=$DX_ENV
13008
13009
13010 # Check whether --enable-debug was given.
13011 if test "${enable_debug+set}" = set; then :
13012   enableval=$enable_debug; enable_debug=$enableval
13013 else
13014   enable_debug=no
13015 fi
13016
13017
13018 if test "$enable_debug" = "yes" ; then
13019     GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
13020     GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
13021 else
13022     GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
13023     GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
13024 fi
13025
13026 ac_config_headers="$ac_config_headers config.h xmltooling/config_pub.h"
13027
13028 ac_config_files="$ac_config_files xmltooling.spec pkginfo Portfile"
13029
13030 ac_config_files="$ac_config_files Makefile xmltooling/Makefile xmltoolingtest/Makefile schemas/Makefile doc/Makefile"
13031
13032
13033 ac_ext=c
13034 ac_cpp='$CPP $CPPFLAGS'
13035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13038 if test -n "$ac_tool_prefix"; then
13039   for ac_prog in gcc gcc3 cc
13040   do
13041     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044 $as_echo_n "checking for $ac_word... " >&6; }
13045 if test "${ac_cv_prog_CC+set}" = set; then :
13046   $as_echo_n "(cached) " >&6
13047 else
13048   if test -n "$CC"; then
13049   ac_cv_prog_CC="$CC" # Let the user override the test.
13050 else
13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in $PATH
13053 do
13054   IFS=$as_save_IFS
13055   test -z "$as_dir" && as_dir=.
13056     for ac_exec_ext in '' $ac_executable_extensions; do
13057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13058     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060     break 2
13061   fi
13062 done
13063   done
13064 IFS=$as_save_IFS
13065
13066 fi
13067 fi
13068 CC=$ac_cv_prog_CC
13069 if test -n "$CC"; then
13070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13071 $as_echo "$CC" >&6; }
13072 else
13073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13075 fi
13076
13077
13078     test -n "$CC" && break
13079   done
13080 fi
13081 if test -z "$CC"; then
13082   ac_ct_CC=$CC
13083   for ac_prog in gcc gcc3 cc
13084 do
13085   # Extract the first word of "$ac_prog", so it can be a program name with args.
13086 set dummy $ac_prog; ac_word=$2
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088 $as_echo_n "checking for $ac_word... " >&6; }
13089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
13090   $as_echo_n "(cached) " >&6
13091 else
13092   if test -n "$ac_ct_CC"; then
13093   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13094 else
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $PATH
13097 do
13098   IFS=$as_save_IFS
13099   test -z "$as_dir" && as_dir=.
13100     for ac_exec_ext in '' $ac_executable_extensions; do
13101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13102     ac_cv_prog_ac_ct_CC="$ac_prog"
13103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104     break 2
13105   fi
13106 done
13107   done
13108 IFS=$as_save_IFS
13109
13110 fi
13111 fi
13112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13113 if test -n "$ac_ct_CC"; then
13114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13115 $as_echo "$ac_ct_CC" >&6; }
13116 else
13117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13119 fi
13120
13121
13122   test -n "$ac_ct_CC" && break
13123 done
13124
13125   if test "x$ac_ct_CC" = x; then
13126     CC=""
13127   else
13128     case $cross_compiling:$ac_tool_warned in
13129 yes:)
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13132 ac_tool_warned=yes ;;
13133 esac
13134     CC=$ac_ct_CC
13135   fi
13136 fi
13137
13138
13139 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13141 as_fn_error $? "no acceptable C compiler found in \$PATH
13142 See \`config.log' for more details" "$LINENO" 5 ; }
13143
13144 # Provide some information about the compiler.
13145 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13146 set X $ac_compile
13147 ac_compiler=$2
13148 for ac_option in --version -v -V -qversion; do
13149   { { ac_try="$ac_compiler $ac_option >&5"
13150 case "(($ac_try" in
13151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152   *) ac_try_echo=$ac_try;;
13153 esac
13154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13155 $as_echo "$ac_try_echo"; } >&5
13156   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13157   ac_status=$?
13158   if test -s conftest.err; then
13159     sed '10a\
13160 ... rest of stderr output deleted ...
13161          10q' conftest.err >conftest.er1
13162     cat conftest.er1 >&5
13163   fi
13164   rm -f conftest.er1 conftest.err
13165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13166   test $ac_status = 0; }
13167 done
13168
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13170 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13171 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
13172   $as_echo_n "(cached) " >&6
13173 else
13174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h.  */
13176
13177 int
13178 main ()
13179 {
13180 #ifndef __GNUC__
13181        choke me
13182 #endif
13183
13184   ;
13185   return 0;
13186 }
13187 _ACEOF
13188 if ac_fn_c_try_compile "$LINENO"; then :
13189   ac_compiler_gnu=yes
13190 else
13191   ac_compiler_gnu=no
13192 fi
13193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13195
13196 fi
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13198 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13199 if test $ac_compiler_gnu = yes; then
13200   GCC=yes
13201 else
13202   GCC=
13203 fi
13204 ac_test_CFLAGS=${CFLAGS+set}
13205 ac_save_CFLAGS=$CFLAGS
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13207 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13208 if test "${ac_cv_prog_cc_g+set}" = set; then :
13209   $as_echo_n "(cached) " >&6
13210 else
13211   ac_save_c_werror_flag=$ac_c_werror_flag
13212    ac_c_werror_flag=yes
13213    ac_cv_prog_cc_g=no
13214    CFLAGS="-g"
13215    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h.  */
13217
13218 int
13219 main ()
13220 {
13221
13222   ;
13223   return 0;
13224 }
13225 _ACEOF
13226 if ac_fn_c_try_compile "$LINENO"; then :
13227   ac_cv_prog_cc_g=yes
13228 else
13229   CFLAGS=""
13230       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h.  */
13232
13233 int
13234 main ()
13235 {
13236
13237   ;
13238   return 0;
13239 }
13240 _ACEOF
13241 if ac_fn_c_try_compile "$LINENO"; then :
13242
13243 else
13244   ac_c_werror_flag=$ac_save_c_werror_flag
13245          CFLAGS="-g"
13246          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h.  */
13248
13249 int
13250 main ()
13251 {
13252
13253   ;
13254   return 0;
13255 }
13256 _ACEOF
13257 if ac_fn_c_try_compile "$LINENO"; then :
13258   ac_cv_prog_cc_g=yes
13259 fi
13260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13261 fi
13262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13263 fi
13264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13265    ac_c_werror_flag=$ac_save_c_werror_flag
13266 fi
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13268 $as_echo "$ac_cv_prog_cc_g" >&6; }
13269 if test "$ac_test_CFLAGS" = set; then
13270   CFLAGS=$ac_save_CFLAGS
13271 elif test $ac_cv_prog_cc_g = yes; then
13272   if test "$GCC" = yes; then
13273     CFLAGS="-g -O2"
13274   else
13275     CFLAGS="-g"
13276   fi
13277 else
13278   if test "$GCC" = yes; then
13279     CFLAGS="-O2"
13280   else
13281     CFLAGS=
13282   fi
13283 fi
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13285 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13286 if test "${ac_cv_prog_cc_c89+set}" = set; then :
13287   $as_echo_n "(cached) " >&6
13288 else
13289   ac_cv_prog_cc_c89=no
13290 ac_save_CC=$CC
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h.  */
13293 #include <stdarg.h>
13294 #include <stdio.h>
13295 #include <sys/types.h>
13296 #include <sys/stat.h>
13297 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13298 struct buf { int x; };
13299 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13300 static char *e (p, i)
13301      char **p;
13302      int i;
13303 {
13304   return p[i];
13305 }
13306 static char *f (char * (*g) (char **, int), char **p, ...)
13307 {
13308   char *s;
13309   va_list v;
13310   va_start (v,p);
13311   s = g (p, va_arg (v,int));
13312   va_end (v);
13313   return s;
13314 }
13315
13316 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13317    function prototypes and stuff, but not '\xHH' hex character constants.
13318    These don't provoke an error unfortunately, instead are silently treated
13319    as 'x'.  The following induces an error, until -std is added to get
13320    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13321    array size at least.  It's necessary to write '\x00'==0 to get something
13322    that's true only with -std.  */
13323 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13324
13325 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13326    inside strings and character constants.  */
13327 #define FOO(x) 'x'
13328 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13329
13330 int test (int i, double x);
13331 struct s1 {int (*f) (int a);};
13332 struct s2 {int (*f) (double a);};
13333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13334 int argc;
13335 char **argv;
13336 int
13337 main ()
13338 {
13339 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13340   ;
13341   return 0;
13342 }
13343 _ACEOF
13344 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13345         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13346 do
13347   CC="$ac_save_CC $ac_arg"
13348   if ac_fn_c_try_compile "$LINENO"; then :
13349   ac_cv_prog_cc_c89=$ac_arg
13350 fi
13351 rm -f core conftest.err conftest.$ac_objext
13352   test "x$ac_cv_prog_cc_c89" != "xno" && break
13353 done
13354 rm -f conftest.$ac_ext
13355 CC=$ac_save_CC
13356
13357 fi
13358 # AC_CACHE_VAL
13359 case "x$ac_cv_prog_cc_c89" in
13360   x)
13361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13362 $as_echo "none needed" >&6; } ;;
13363   xno)
13364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13365 $as_echo "unsupported" >&6; } ;;
13366   *)
13367     CC="$CC $ac_cv_prog_cc_c89"
13368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13369 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13370 esac
13371 if test "x$ac_cv_prog_cc_c89" != xno; then :
13372
13373 fi
13374
13375 ac_ext=c
13376 ac_cpp='$CPP $CPPFLAGS'
13377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13380
13381 depcc="$CC"   am_compiler_list=
13382
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13384 $as_echo_n "checking dependency style of $depcc... " >&6; }
13385 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
13386   $as_echo_n "(cached) " >&6
13387 else
13388   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13389   # We make a subdir and do the tests there.  Otherwise we can end up
13390   # making bogus files that we don't know about and never remove.  For
13391   # instance it was reported that on HP-UX the gcc test will end up
13392   # making a dummy file named `D' -- because `-MD' means `put the output
13393   # in D'.
13394   mkdir conftest.dir
13395   # Copy depcomp to subdir because otherwise we won't find it if we're
13396   # using a relative directory.
13397   cp "$am_depcomp" conftest.dir
13398   cd conftest.dir
13399   # We will build objects and dependencies in a subdirectory because
13400   # it helps to detect inapplicable dependency modes.  For instance
13401   # both Tru64's cc and ICC support -MD to output dependencies as a
13402   # side effect of compilation, but ICC will put the dependencies in
13403   # the current directory while Tru64 will put them in the object
13404   # directory.
13405   mkdir sub
13406
13407   am_cv_CC_dependencies_compiler_type=none
13408   if test "$am_compiler_list" = ""; then
13409      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13410   fi
13411   am__universal=false
13412   case " $depcc " in #(
13413      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13414      esac
13415
13416   for depmode in $am_compiler_list; do
13417     # Setup a source with many dependencies, because some compilers
13418     # like to wrap large dependency lists on column 80 (with \), and
13419     # we should not choose a depcomp mode which is confused by this.
13420     #
13421     # We need to recreate these files for each test, as the compiler may
13422     # overwrite some of them when testing with obscure command lines.
13423     # This happens at least with the AIX C compiler.
13424     : > sub/conftest.c
13425     for i in 1 2 3 4 5 6; do
13426       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13427       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13428       # Solaris 8's {/usr,}/bin/sh.
13429       touch sub/conftst$i.h
13430     done
13431     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13432
13433     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13434     # mode.  It turns out that the SunPro C++ compiler does not properly
13435     # handle `-M -o', and we need to detect this.  Also, some Intel
13436     # versions had trouble with output in subdirs
13437     am__obj=sub/conftest.${OBJEXT-o}
13438     am__minus_obj="-o $am__obj"
13439     case $depmode in
13440     gcc)
13441       # This depmode causes a compiler race in universal mode.
13442       test "$am__universal" = false || continue
13443       ;;
13444     nosideeffect)
13445       # after this tag, mechanisms are not by side-effect, so they'll
13446       # only be used when explicitly requested
13447       if test "x$enable_dependency_tracking" = xyes; then
13448         continue
13449       else
13450         break
13451       fi
13452       ;;
13453     msvisualcpp | msvcmsys)
13454       # This compiler won't grok `-c -o', but also, the minuso test has
13455       # not run yet.  These depmodes are late enough in the game, and
13456       # so weak that their functioning should not be impacted.
13457       am__obj=conftest.${OBJEXT-o}
13458       am__minus_obj=
13459       ;;
13460     none) break ;;
13461     esac
13462     if depmode=$depmode \
13463        source=sub/conftest.c object=$am__obj \
13464        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13465        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13466          >/dev/null 2>conftest.err &&
13467        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13468        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13469        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13470        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13471       # icc doesn't choke on unknown options, it will just issue warnings
13472       # or remarks (even with -Werror).  So we grep stderr for any message
13473       # that says an option was ignored or not supported.
13474       # When given -MP, icc 7.0 and 7.1 complain thusly:
13475       #   icc: Command line warning: ignoring option '-M'; no argument required
13476       # The diagnosis changed in icc 8.0:
13477       #   icc: Command line remark: option '-MP' not supported
13478       if (grep 'ignoring option' conftest.err ||
13479           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13480         am_cv_CC_dependencies_compiler_type=$depmode
13481         break
13482       fi
13483     fi
13484   done
13485
13486   cd ..
13487   rm -rf conftest.dir
13488 else
13489   am_cv_CC_dependencies_compiler_type=none
13490 fi
13491
13492 fi
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13494 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13495 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13496
13497  if
13498   test "x$enable_dependency_tracking" != xno \
13499   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13500   am__fastdepCC_TRUE=
13501   am__fastdepCC_FALSE='#'
13502 else
13503   am__fastdepCC_TRUE='#'
13504   am__fastdepCC_FALSE=
13505 fi
13506
13507
13508 ac_ext=cpp
13509 ac_cpp='$CXXCPP $CPPFLAGS'
13510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13513 if test -z "$CXX"; then
13514   if test -n "$CCC"; then
13515     CXX=$CCC
13516   else
13517     if test -n "$ac_tool_prefix"; then
13518   for ac_prog in g++ g++3 c++ CC
13519   do
13520     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523 $as_echo_n "checking for $ac_word... " >&6; }
13524 if test "${ac_cv_prog_CXX+set}" = set; then :
13525   $as_echo_n "(cached) " >&6
13526 else
13527   if test -n "$CXX"; then
13528   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13529 else
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531 for as_dir in $PATH
13532 do
13533   IFS=$as_save_IFS
13534   test -z "$as_dir" && as_dir=.
13535     for ac_exec_ext in '' $ac_executable_extensions; do
13536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13537     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539     break 2
13540   fi
13541 done
13542   done
13543 IFS=$as_save_IFS
13544
13545 fi
13546 fi
13547 CXX=$ac_cv_prog_CXX
13548 if test -n "$CXX"; then
13549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13550 $as_echo "$CXX" >&6; }
13551 else
13552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13554 fi
13555
13556
13557     test -n "$CXX" && break
13558   done
13559 fi
13560 if test -z "$CXX"; then
13561   ac_ct_CXX=$CXX
13562   for ac_prog in g++ g++3 c++ CC
13563 do
13564   # Extract the first word of "$ac_prog", so it can be a program name with args.
13565 set dummy $ac_prog; ac_word=$2
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13567 $as_echo_n "checking for $ac_word... " >&6; }
13568 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13569   $as_echo_n "(cached) " >&6
13570 else
13571   if test -n "$ac_ct_CXX"; then
13572   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13573 else
13574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in $PATH
13576 do
13577   IFS=$as_save_IFS
13578   test -z "$as_dir" && as_dir=.
13579     for ac_exec_ext in '' $ac_executable_extensions; do
13580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13581     ac_cv_prog_ac_ct_CXX="$ac_prog"
13582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13583     break 2
13584   fi
13585 done
13586   done
13587 IFS=$as_save_IFS
13588
13589 fi
13590 fi
13591 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13592 if test -n "$ac_ct_CXX"; then
13593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13594 $as_echo "$ac_ct_CXX" >&6; }
13595 else
13596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597 $as_echo "no" >&6; }
13598 fi
13599
13600
13601   test -n "$ac_ct_CXX" && break
13602 done
13603
13604   if test "x$ac_ct_CXX" = x; then
13605     CXX="g++"
13606   else
13607     case $cross_compiling:$ac_tool_warned in
13608 yes:)
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13611 ac_tool_warned=yes ;;
13612 esac
13613     CXX=$ac_ct_CXX
13614   fi
13615 fi
13616
13617   fi
13618 fi
13619 # Provide some information about the compiler.
13620 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13621 set X $ac_compile
13622 ac_compiler=$2
13623 for ac_option in --version -v -V -qversion; do
13624   { { ac_try="$ac_compiler $ac_option >&5"
13625 case "(($ac_try" in
13626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627   *) ac_try_echo=$ac_try;;
13628 esac
13629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13630 $as_echo "$ac_try_echo"; } >&5
13631   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13632   ac_status=$?
13633   if test -s conftest.err; then
13634     sed '10a\
13635 ... rest of stderr output deleted ...
13636          10q' conftest.err >conftest.er1
13637     cat conftest.er1 >&5
13638   fi
13639   rm -f conftest.er1 conftest.err
13640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13641   test $ac_status = 0; }
13642 done
13643
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13645 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13646 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13647   $as_echo_n "(cached) " >&6
13648 else
13649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h.  */
13651
13652 int
13653 main ()
13654 {
13655 #ifndef __GNUC__
13656        choke me
13657 #endif
13658
13659   ;
13660   return 0;
13661 }
13662 _ACEOF
13663 if ac_fn_cxx_try_compile "$LINENO"; then :
13664   ac_compiler_gnu=yes
13665 else
13666   ac_compiler_gnu=no
13667 fi
13668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13669 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13670
13671 fi
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13673 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13674 if test $ac_compiler_gnu = yes; then
13675   GXX=yes
13676 else
13677   GXX=
13678 fi
13679 ac_test_CXXFLAGS=${CXXFLAGS+set}
13680 ac_save_CXXFLAGS=$CXXFLAGS
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13682 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13683 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13684   $as_echo_n "(cached) " >&6
13685 else
13686   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13687    ac_cxx_werror_flag=yes
13688    ac_cv_prog_cxx_g=no
13689    CXXFLAGS="-g"
13690    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h.  */
13692
13693 int
13694 main ()
13695 {
13696
13697   ;
13698   return 0;
13699 }
13700 _ACEOF
13701 if ac_fn_cxx_try_compile "$LINENO"; then :
13702   ac_cv_prog_cxx_g=yes
13703 else
13704   CXXFLAGS=""
13705       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h.  */
13707
13708 int
13709 main ()
13710 {
13711
13712   ;
13713   return 0;
13714 }
13715 _ACEOF
13716 if ac_fn_cxx_try_compile "$LINENO"; then :
13717
13718 else
13719   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13720          CXXFLAGS="-g"
13721          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h.  */
13723
13724 int
13725 main ()
13726 {
13727
13728   ;
13729   return 0;
13730 }
13731 _ACEOF
13732 if ac_fn_cxx_try_compile "$LINENO"; then :
13733   ac_cv_prog_cxx_g=yes
13734 fi
13735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13736 fi
13737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13738 fi
13739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13740    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13741 fi
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13743 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13744 if test "$ac_test_CXXFLAGS" = set; then
13745   CXXFLAGS=$ac_save_CXXFLAGS
13746 elif test $ac_cv_prog_cxx_g = yes; then
13747   if test "$GXX" = yes; then
13748     CXXFLAGS="-g -O2"
13749   else
13750     CXXFLAGS="-g"
13751   fi
13752 else
13753   if test "$GXX" = yes; then
13754     CXXFLAGS="-O2"
13755   else
13756     CXXFLAGS=
13757   fi
13758 fi
13759 ac_ext=c
13760 ac_cpp='$CPP $CPPFLAGS'
13761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13764
13765 depcc="$CXX"  am_compiler_list=
13766
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13768 $as_echo_n "checking dependency style of $depcc... " >&6; }
13769 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13770   $as_echo_n "(cached) " >&6
13771 else
13772   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13773   # We make a subdir and do the tests there.  Otherwise we can end up
13774   # making bogus files that we don't know about and never remove.  For
13775   # instance it was reported that on HP-UX the gcc test will end up
13776   # making a dummy file named `D' -- because `-MD' means `put the output
13777   # in D'.
13778   mkdir conftest.dir
13779   # Copy depcomp to subdir because otherwise we won't find it if we're
13780   # using a relative directory.
13781   cp "$am_depcomp" conftest.dir
13782   cd conftest.dir
13783   # We will build objects and dependencies in a subdirectory because
13784   # it helps to detect inapplicable dependency modes.  For instance
13785   # both Tru64's cc and ICC support -MD to output dependencies as a
13786   # side effect of compilation, but ICC will put the dependencies in
13787   # the current directory while Tru64 will put them in the object
13788   # directory.
13789   mkdir sub
13790
13791   am_cv_CXX_dependencies_compiler_type=none
13792   if test "$am_compiler_list" = ""; then
13793      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13794   fi
13795   am__universal=false
13796   case " $depcc " in #(
13797      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13798      esac
13799
13800   for depmode in $am_compiler_list; do
13801     # Setup a source with many dependencies, because some compilers
13802     # like to wrap large dependency lists on column 80 (with \), and
13803     # we should not choose a depcomp mode which is confused by this.
13804     #
13805     # We need to recreate these files for each test, as the compiler may
13806     # overwrite some of them when testing with obscure command lines.
13807     # This happens at least with the AIX C compiler.
13808     : > sub/conftest.c
13809     for i in 1 2 3 4 5 6; do
13810       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13811       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13812       # Solaris 8's {/usr,}/bin/sh.
13813       touch sub/conftst$i.h
13814     done
13815     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13816
13817     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13818     # mode.  It turns out that the SunPro C++ compiler does not properly
13819     # handle `-M -o', and we need to detect this.  Also, some Intel
13820     # versions had trouble with output in subdirs
13821     am__obj=sub/conftest.${OBJEXT-o}
13822     am__minus_obj="-o $am__obj"
13823     case $depmode in
13824     gcc)
13825       # This depmode causes a compiler race in universal mode.
13826       test "$am__universal" = false || continue
13827       ;;
13828     nosideeffect)
13829       # after this tag, mechanisms are not by side-effect, so they'll
13830       # only be used when explicitly requested
13831       if test "x$enable_dependency_tracking" = xyes; then
13832         continue
13833       else
13834         break
13835       fi
13836       ;;
13837     msvisualcpp | msvcmsys)
13838       # This compiler won't grok `-c -o', but also, the minuso test has
13839       # not run yet.  These depmodes are late enough in the game, and
13840       # so weak that their functioning should not be impacted.
13841       am__obj=conftest.${OBJEXT-o}
13842       am__minus_obj=
13843       ;;
13844     none) break ;;
13845     esac
13846     if depmode=$depmode \
13847        source=sub/conftest.c object=$am__obj \
13848        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13849        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13850          >/dev/null 2>conftest.err &&
13851        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13852        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13853        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13854        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13855       # icc doesn't choke on unknown options, it will just issue warnings
13856       # or remarks (even with -Werror).  So we grep stderr for any message
13857       # that says an option was ignored or not supported.
13858       # When given -MP, icc 7.0 and 7.1 complain thusly:
13859       #   icc: Command line warning: ignoring option '-M'; no argument required
13860       # The diagnosis changed in icc 8.0:
13861       #   icc: Command line remark: option '-MP' not supported
13862       if (grep 'ignoring option' conftest.err ||
13863           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13864         am_cv_CXX_dependencies_compiler_type=$depmode
13865         break
13866       fi
13867     fi
13868   done
13869
13870   cd ..
13871   rm -rf conftest.dir
13872 else
13873   am_cv_CXX_dependencies_compiler_type=none
13874 fi
13875
13876 fi
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13878 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13879 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13880
13881  if
13882   test "x$enable_dependency_tracking" != xno \
13883   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13884   am__fastdepCXX_TRUE=
13885   am__fastdepCXX_FALSE='#'
13886 else
13887   am__fastdepCXX_TRUE='#'
13888   am__fastdepCXX_FALSE=
13889 fi
13890
13891
13892
13893 ac_ext=cpp
13894 ac_cpp='$CXXCPP $CPPFLAGS'
13895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13898 if test -z "$CXX"; then
13899   if test -n "$CCC"; then
13900     CXX=$CCC
13901   else
13902     if test -n "$ac_tool_prefix"; then
13903   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13904   do
13905     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13908 $as_echo_n "checking for $ac_word... " >&6; }
13909 if test "${ac_cv_prog_CXX+set}" = set; then :
13910   $as_echo_n "(cached) " >&6
13911 else
13912   if test -n "$CXX"; then
13913   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13914 else
13915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13916 for as_dir in $PATH
13917 do
13918   IFS=$as_save_IFS
13919   test -z "$as_dir" && as_dir=.
13920     for ac_exec_ext in '' $ac_executable_extensions; do
13921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13922     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13924     break 2
13925   fi
13926 done
13927   done
13928 IFS=$as_save_IFS
13929
13930 fi
13931 fi
13932 CXX=$ac_cv_prog_CXX
13933 if test -n "$CXX"; then
13934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13935 $as_echo "$CXX" >&6; }
13936 else
13937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13938 $as_echo "no" >&6; }
13939 fi
13940
13941
13942     test -n "$CXX" && break
13943   done
13944 fi
13945 if test -z "$CXX"; then
13946   ac_ct_CXX=$CXX
13947   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13948 do
13949   # Extract the first word of "$ac_prog", so it can be a program name with args.
13950 set dummy $ac_prog; ac_word=$2
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13952 $as_echo_n "checking for $ac_word... " >&6; }
13953 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13954   $as_echo_n "(cached) " >&6
13955 else
13956   if test -n "$ac_ct_CXX"; then
13957   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13958 else
13959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13961 do
13962   IFS=$as_save_IFS
13963   test -z "$as_dir" && as_dir=.
13964     for ac_exec_ext in '' $ac_executable_extensions; do
13965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13966     ac_cv_prog_ac_ct_CXX="$ac_prog"
13967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13968     break 2
13969   fi
13970 done
13971   done
13972 IFS=$as_save_IFS
13973
13974 fi
13975 fi
13976 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13977 if test -n "$ac_ct_CXX"; then
13978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13979 $as_echo "$ac_ct_CXX" >&6; }
13980 else
13981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 $as_echo "no" >&6; }
13983 fi
13984
13985
13986   test -n "$ac_ct_CXX" && break
13987 done
13988
13989   if test "x$ac_ct_CXX" = x; then
13990     CXX="g++"
13991   else
13992     case $cross_compiling:$ac_tool_warned in
13993 yes:)
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13996 ac_tool_warned=yes ;;
13997 esac
13998     CXX=$ac_ct_CXX
13999   fi
14000 fi
14001
14002   fi
14003 fi
14004 # Provide some information about the compiler.
14005 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14006 set X $ac_compile
14007 ac_compiler=$2
14008 for ac_option in --version -v -V -qversion; do
14009   { { ac_try="$ac_compiler $ac_option >&5"
14010 case "(($ac_try" in
14011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14012   *) ac_try_echo=$ac_try;;
14013 esac
14014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14015 $as_echo "$ac_try_echo"; } >&5
14016   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14017   ac_status=$?
14018   if test -s conftest.err; then
14019     sed '10a\
14020 ... rest of stderr output deleted ...
14021          10q' conftest.err >conftest.er1
14022     cat conftest.er1 >&5
14023   fi
14024   rm -f conftest.er1 conftest.err
14025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14026   test $ac_status = 0; }
14027 done
14028
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14030 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14031 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
14032   $as_echo_n "(cached) " >&6
14033 else
14034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h.  */
14036
14037 int
14038 main ()
14039 {
14040 #ifndef __GNUC__
14041        choke me
14042 #endif
14043
14044   ;
14045   return 0;
14046 }
14047 _ACEOF
14048 if ac_fn_cxx_try_compile "$LINENO"; then :
14049   ac_compiler_gnu=yes
14050 else
14051   ac_compiler_gnu=no
14052 fi
14053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14054 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14055
14056 fi
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14058 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14059 if test $ac_compiler_gnu = yes; then
14060   GXX=yes
14061 else
14062   GXX=
14063 fi
14064 ac_test_CXXFLAGS=${CXXFLAGS+set}
14065 ac_save_CXXFLAGS=$CXXFLAGS
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14067 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14068 if test "${ac_cv_prog_cxx_g+set}" = set; then :
14069   $as_echo_n "(cached) " >&6
14070 else
14071   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14072    ac_cxx_werror_flag=yes
14073    ac_cv_prog_cxx_g=no
14074    CXXFLAGS="-g"
14075    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h.  */
14077
14078 int
14079 main ()
14080 {
14081
14082   ;
14083   return 0;
14084 }
14085 _ACEOF
14086 if ac_fn_cxx_try_compile "$LINENO"; then :
14087   ac_cv_prog_cxx_g=yes
14088 else
14089   CXXFLAGS=""
14090       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h.  */
14092
14093 int
14094 main ()
14095 {
14096
14097   ;
14098   return 0;
14099 }
14100 _ACEOF
14101 if ac_fn_cxx_try_compile "$LINENO"; then :
14102
14103 else
14104   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14105          CXXFLAGS="-g"
14106          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h.  */
14108
14109 int
14110 main ()
14111 {
14112
14113   ;
14114   return 0;
14115 }
14116 _ACEOF
14117 if ac_fn_cxx_try_compile "$LINENO"; then :
14118   ac_cv_prog_cxx_g=yes
14119 fi
14120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14121 fi
14122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14123 fi
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14126 fi
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14128 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14129 if test "$ac_test_CXXFLAGS" = set; then
14130   CXXFLAGS=$ac_save_CXXFLAGS
14131 elif test $ac_cv_prog_cxx_g = yes; then
14132   if test "$GXX" = yes; then
14133     CXXFLAGS="-g -O2"
14134   else
14135     CXXFLAGS="-g"
14136   fi
14137 else
14138   if test "$GXX" = yes; then
14139     CXXFLAGS="-O2"
14140   else
14141     CXXFLAGS=
14142   fi
14143 fi
14144 ac_ext=c
14145 ac_cpp='$CPP $CPPFLAGS'
14146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14149
14150 depcc="$CXX"  am_compiler_list=
14151
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14153 $as_echo_n "checking dependency style of $depcc... " >&6; }
14154 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
14155   $as_echo_n "(cached) " >&6
14156 else
14157   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14158   # We make a subdir and do the tests there.  Otherwise we can end up
14159   # making bogus files that we don't know about and never remove.  For
14160   # instance it was reported that on HP-UX the gcc test will end up
14161   # making a dummy file named `D' -- because `-MD' means `put the output
14162   # in D'.
14163   mkdir conftest.dir
14164   # Copy depcomp to subdir because otherwise we won't find it if we're
14165   # using a relative directory.
14166   cp "$am_depcomp" conftest.dir
14167   cd conftest.dir
14168   # We will build objects and dependencies in a subdirectory because
14169   # it helps to detect inapplicable dependency modes.  For instance
14170   # both Tru64's cc and ICC support -MD to output dependencies as a
14171   # side effect of compilation, but ICC will put the dependencies in
14172   # the current directory while Tru64 will put them in the object
14173   # directory.
14174   mkdir sub
14175
14176   am_cv_CXX_dependencies_compiler_type=none
14177   if test "$am_compiler_list" = ""; then
14178      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14179   fi
14180   am__universal=false
14181   case " $depcc " in #(
14182      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14183      esac
14184
14185   for depmode in $am_compiler_list; do
14186     # Setup a source with many dependencies, because some compilers
14187     # like to wrap large dependency lists on column 80 (with \), and
14188     # we should not choose a depcomp mode which is confused by this.
14189     #
14190     # We need to recreate these files for each test, as the compiler may
14191     # overwrite some of them when testing with obscure command lines.
14192     # This happens at least with the AIX C compiler.
14193     : > sub/conftest.c
14194     for i in 1 2 3 4 5 6; do
14195       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14196       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14197       # Solaris 8's {/usr,}/bin/sh.
14198       touch sub/conftst$i.h
14199     done
14200     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14201
14202     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14203     # mode.  It turns out that the SunPro C++ compiler does not properly
14204     # handle `-M -o', and we need to detect this.  Also, some Intel
14205     # versions had trouble with output in subdirs
14206     am__obj=sub/conftest.${OBJEXT-o}
14207     am__minus_obj="-o $am__obj"
14208     case $depmode in
14209     gcc)
14210       # This depmode causes a compiler race in universal mode.
14211       test "$am__universal" = false || continue
14212       ;;
14213     nosideeffect)
14214       # after this tag, mechanisms are not by side-effect, so they'll
14215       # only be used when explicitly requested
14216       if test "x$enable_dependency_tracking" = xyes; then
14217         continue
14218       else
14219         break
14220       fi
14221       ;;
14222     msvisualcpp | msvcmsys)
14223       # This compiler won't grok `-c -o', but also, the minuso test has
14224       # not run yet.  These depmodes are late enough in the game, and
14225       # so weak that their functioning should not be impacted.
14226       am__obj=conftest.${OBJEXT-o}
14227       am__minus_obj=
14228       ;;
14229     none) break ;;
14230     esac
14231     if depmode=$depmode \
14232        source=sub/conftest.c object=$am__obj \
14233        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14234        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14235          >/dev/null 2>conftest.err &&
14236        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14237        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14238        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14239        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14240       # icc doesn't choke on unknown options, it will just issue warnings
14241       # or remarks (even with -Werror).  So we grep stderr for any message
14242       # that says an option was ignored or not supported.
14243       # When given -MP, icc 7.0 and 7.1 complain thusly:
14244       #   icc: Command line warning: ignoring option '-M'; no argument required
14245       # The diagnosis changed in icc 8.0:
14246       #   icc: Command line remark: option '-MP' not supported
14247       if (grep 'ignoring option' conftest.err ||
14248           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14249         am_cv_CXX_dependencies_compiler_type=$depmode
14250         break
14251       fi
14252     fi
14253   done
14254
14255   cd ..
14256   rm -rf conftest.dir
14257 else
14258   am_cv_CXX_dependencies_compiler_type=none
14259 fi
14260
14261 fi
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14263 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14264 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14265
14266  if
14267   test "x$enable_dependency_tracking" != xno \
14268   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14269   am__fastdepCXX_TRUE=
14270   am__fastdepCXX_FALSE='#'
14271 else
14272   am__fastdepCXX_TRUE='#'
14273   am__fastdepCXX_FALSE=
14274 fi
14275
14276
14277 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14278     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14279     (test "X$CXX" != "Xg++"))) ; then
14280   ac_ext=cpp
14281 ac_cpp='$CXXCPP $CPPFLAGS'
14282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14286 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14287 if test -z "$CXXCPP"; then
14288   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
14289   $as_echo_n "(cached) " >&6
14290 else
14291       # Double quotes because CXXCPP needs to be expanded
14292     for CXXCPP in "$CXX -E" "/lib/cpp"
14293     do
14294       ac_preproc_ok=false
14295 for ac_cxx_preproc_warn_flag in '' yes
14296 do
14297   # Use a header file that comes with gcc, so configuring glibc
14298   # with a fresh cross-compiler works.
14299   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14300   # <limits.h> exists even on freestanding compilers.
14301   # On the NeXT, cc -E runs the code through the compiler's parser,
14302   # not just through cpp. "Syntax error" is here to catch this case.
14303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304 /* end confdefs.h.  */
14305 #ifdef __STDC__
14306 # include <limits.h>
14307 #else
14308 # include <assert.h>
14309 #endif
14310                      Syntax error
14311 _ACEOF
14312 if ac_fn_cxx_try_cpp "$LINENO"; then :
14313
14314 else
14315   # Broken: fails on valid input.
14316 continue
14317 fi
14318 rm -f conftest.err conftest.i conftest.$ac_ext
14319
14320   # OK, works on sane cases.  Now check whether nonexistent headers
14321   # can be detected and how.
14322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h.  */
14324 #include <ac_nonexistent.h>
14325 _ACEOF
14326 if ac_fn_cxx_try_cpp "$LINENO"; then :
14327   # Broken: success on invalid input.
14328 continue
14329 else
14330   # Passes both tests.
14331 ac_preproc_ok=:
14332 break
14333 fi
14334 rm -f conftest.err conftest.i conftest.$ac_ext
14335
14336 done
14337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14338 rm -f conftest.i conftest.err conftest.$ac_ext
14339 if $ac_preproc_ok; then :
14340   break
14341 fi
14342
14343     done
14344     ac_cv_prog_CXXCPP=$CXXCPP
14345
14346 fi
14347   CXXCPP=$ac_cv_prog_CXXCPP
14348 else
14349   ac_cv_prog_CXXCPP=$CXXCPP
14350 fi
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14352 $as_echo "$CXXCPP" >&6; }
14353 ac_preproc_ok=false
14354 for ac_cxx_preproc_warn_flag in '' yes
14355 do
14356   # Use a header file that comes with gcc, so configuring glibc
14357   # with a fresh cross-compiler works.
14358   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14359   # <limits.h> exists even on freestanding compilers.
14360   # On the NeXT, cc -E runs the code through the compiler's parser,
14361   # not just through cpp. "Syntax error" is here to catch this case.
14362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363 /* end confdefs.h.  */
14364 #ifdef __STDC__
14365 # include <limits.h>
14366 #else
14367 # include <assert.h>
14368 #endif
14369                      Syntax error
14370 _ACEOF
14371 if ac_fn_cxx_try_cpp "$LINENO"; then :
14372
14373 else
14374   # Broken: fails on valid input.
14375 continue
14376 fi
14377 rm -f conftest.err conftest.i conftest.$ac_ext
14378
14379   # OK, works on sane cases.  Now check whether nonexistent headers
14380   # can be detected and how.
14381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h.  */
14383 #include <ac_nonexistent.h>
14384 _ACEOF
14385 if ac_fn_cxx_try_cpp "$LINENO"; then :
14386   # Broken: success on invalid input.
14387 continue
14388 else
14389   # Passes both tests.
14390 ac_preproc_ok=:
14391 break
14392 fi
14393 rm -f conftest.err conftest.i conftest.$ac_ext
14394
14395 done
14396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14397 rm -f conftest.i conftest.err conftest.$ac_ext
14398 if $ac_preproc_ok; then :
14399
14400 else
14401   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14403 _lt_caught_CXX_error=yes; }
14404 fi
14405
14406 ac_ext=c
14407 ac_cpp='$CPP $CPPFLAGS'
14408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14411
14412 else
14413   _lt_caught_CXX_error=yes
14414 fi
14415
14416
14417
14418
14419 ac_ext=cpp
14420 ac_cpp='$CXXCPP $CPPFLAGS'
14421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14424
14425 archive_cmds_need_lc_CXX=no
14426 allow_undefined_flag_CXX=
14427 always_export_symbols_CXX=no
14428 archive_expsym_cmds_CXX=
14429 compiler_needs_object_CXX=no
14430 export_dynamic_flag_spec_CXX=
14431 hardcode_direct_CXX=no
14432 hardcode_direct_absolute_CXX=no
14433 hardcode_libdir_flag_spec_CXX=
14434 hardcode_libdir_flag_spec_ld_CXX=
14435 hardcode_libdir_separator_CXX=
14436 hardcode_minus_L_CXX=no
14437 hardcode_shlibpath_var_CXX=unsupported
14438 hardcode_automatic_CXX=no
14439 inherit_rpath_CXX=no
14440 module_cmds_CXX=
14441 module_expsym_cmds_CXX=
14442 link_all_deplibs_CXX=unknown
14443 old_archive_cmds_CXX=$old_archive_cmds
14444 no_undefined_flag_CXX=
14445 whole_archive_flag_spec_CXX=
14446 enable_shared_with_static_runtimes_CXX=no
14447
14448 # Source file extension for C++ test sources.
14449 ac_ext=cpp
14450
14451 # Object file extension for compiled C++ test sources.
14452 objext=o
14453 objext_CXX=$objext
14454
14455 # No sense in running all these tests if we already determined that
14456 # the CXX compiler isn't working.  Some variables (like enable_shared)
14457 # are currently assumed to apply to all compilers on this platform,
14458 # and will be corrupted by setting them based on a non-working compiler.
14459 if test "$_lt_caught_CXX_error" != yes; then
14460   # Code to be used in simple compile tests
14461   lt_simple_compile_test_code="int some_variable = 0;"
14462
14463   # Code to be used in simple link tests
14464   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14465
14466   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14467
14468
14469
14470
14471
14472
14473 # If no C compiler was specified, use CC.
14474 LTCC=${LTCC-"$CC"}
14475
14476 # If no C compiler flags were specified, use CFLAGS.
14477 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14478
14479 # Allow CC to be a program name with arguments.
14480 compiler=$CC
14481
14482
14483   # save warnings/boilerplate of simple test code
14484   ac_outfile=conftest.$ac_objext
14485 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14486 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14487 _lt_compiler_boilerplate=`cat conftest.err`
14488 $RM conftest*
14489
14490   ac_outfile=conftest.$ac_objext
14491 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14492 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14493 _lt_linker_boilerplate=`cat conftest.err`
14494 $RM -r conftest*
14495
14496
14497   # Allow CC to be a program name with arguments.
14498   lt_save_CC=$CC
14499   lt_save_LD=$LD
14500   lt_save_GCC=$GCC
14501   GCC=$GXX
14502   lt_save_with_gnu_ld=$with_gnu_ld
14503   lt_save_path_LD=$lt_cv_path_LD
14504   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14505     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14506   else
14507     $as_unset lt_cv_prog_gnu_ld
14508   fi
14509   if test -n "${lt_cv_path_LDCXX+set}"; then
14510     lt_cv_path_LD=$lt_cv_path_LDCXX
14511   else
14512     $as_unset lt_cv_path_LD
14513   fi
14514   test -z "${LDCXX+set}" || LD=$LDCXX
14515   CC=${CXX-"c++"}
14516   compiler=$CC
14517   compiler_CXX=$CC
14518   for cc_temp in $compiler""; do
14519   case $cc_temp in
14520     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14521     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14522     \-*) ;;
14523     *) break;;
14524   esac
14525 done
14526 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14527
14528
14529   if test -n "$compiler"; then
14530     # We don't want -fno-exception when compiling C++ code, so set the
14531     # no_builtin_flag separately
14532     if test "$GXX" = yes; then
14533       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14534     else
14535       lt_prog_compiler_no_builtin_flag_CXX=
14536     fi
14537
14538     if test "$GXX" = yes; then
14539       # Set up default GNU C++ configuration
14540
14541
14542
14543 # Check whether --with-gnu-ld was given.
14544 if test "${with_gnu_ld+set}" = set; then :
14545   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14546 else
14547   with_gnu_ld=no
14548 fi
14549
14550 ac_prog=ld
14551 if test "$GCC" = yes; then
14552   # Check if gcc -print-prog-name=ld gives a path.
14553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14554 $as_echo_n "checking for ld used by $CC... " >&6; }
14555   case $host in
14556   *-*-mingw*)
14557     # gcc leaves a trailing carriage return which upsets mingw
14558     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14559   *)
14560     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14561   esac
14562   case $ac_prog in
14563     # Accept absolute paths.
14564     [\\/]* | ?:[\\/]*)
14565       re_direlt='/[^/][^/]*/\.\./'
14566       # Canonicalize the pathname of ld
14567       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14568       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14569         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14570       done
14571       test -z "$LD" && LD="$ac_prog"
14572       ;;
14573   "")
14574     # If it fails, then pretend we aren't using GCC.
14575     ac_prog=ld
14576     ;;
14577   *)
14578     # If it is relative, then search for the first ld in PATH.
14579     with_gnu_ld=unknown
14580     ;;
14581   esac
14582 elif test "$with_gnu_ld" = yes; then
14583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14584 $as_echo_n "checking for GNU ld... " >&6; }
14585 else
14586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14587 $as_echo_n "checking for non-GNU ld... " >&6; }
14588 fi
14589 if test "${lt_cv_path_LD+set}" = set; then :
14590   $as_echo_n "(cached) " >&6
14591 else
14592   if test -z "$LD"; then
14593   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14594   for ac_dir in $PATH; do
14595     IFS="$lt_save_ifs"
14596     test -z "$ac_dir" && ac_dir=.
14597     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14598       lt_cv_path_LD="$ac_dir/$ac_prog"
14599       # Check to see if the program is GNU ld.  I'd rather use --version,
14600       # but apparently some variants of GNU ld only accept -v.
14601       # Break only if it was the GNU/non-GNU ld that we prefer.
14602       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14603       *GNU* | *'with BFD'*)
14604         test "$with_gnu_ld" != no && break
14605         ;;
14606       *)
14607         test "$with_gnu_ld" != yes && break
14608         ;;
14609       esac
14610     fi
14611   done
14612   IFS="$lt_save_ifs"
14613 else
14614   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14615 fi
14616 fi
14617
14618 LD="$lt_cv_path_LD"
14619 if test -n "$LD"; then
14620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14621 $as_echo "$LD" >&6; }
14622 else
14623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14624 $as_echo "no" >&6; }
14625 fi
14626 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14628 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14629 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14630   $as_echo_n "(cached) " >&6
14631 else
14632   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14633 case `$LD -v 2>&1 </dev/null` in
14634 *GNU* | *'with BFD'*)
14635   lt_cv_prog_gnu_ld=yes
14636   ;;
14637 *)
14638   lt_cv_prog_gnu_ld=no
14639   ;;
14640 esac
14641 fi
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14643 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14644 with_gnu_ld=$lt_cv_prog_gnu_ld
14645
14646
14647
14648
14649
14650
14651
14652       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14653       # archiving commands below assume that GNU ld is being used.
14654       if test "$with_gnu_ld" = yes; then
14655         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14656         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14657
14658         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14659         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14660
14661         # If archive_cmds runs LD, not CC, wlarc should be empty
14662         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14663         #     investigate it a little bit more. (MM)
14664         wlarc='${wl}'
14665
14666         # ancient GNU ld didn't support --whole-archive et. al.
14667         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14668           $GREP 'no-whole-archive' > /dev/null; then
14669           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14670         else
14671           whole_archive_flag_spec_CXX=
14672         fi
14673       else
14674         with_gnu_ld=no
14675         wlarc=
14676
14677         # A generic and very simple default shared library creation
14678         # command for GNU C++ for the case where it uses the native
14679         # linker, instead of GNU ld.  If possible, this setting should
14680         # overridden to take advantage of the native linker features on
14681         # the platform it is being used on.
14682         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14683       fi
14684
14685       # Commands to make compiler produce verbose output that lists
14686       # what "hidden" libraries, object files and flags are used when
14687       # linking a shared library.
14688       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14689
14690     else
14691       GXX=no
14692       with_gnu_ld=no
14693       wlarc=
14694     fi
14695
14696     # PORTME: fill in a description of your system's C++ link characteristics
14697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14698 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14699     ld_shlibs_CXX=yes
14700     case $host_os in
14701       aix3*)
14702         # FIXME: insert proper C++ library support
14703         ld_shlibs_CXX=no
14704         ;;
14705       aix[4-9]*)
14706         if test "$host_cpu" = ia64; then
14707           # On IA64, the linker does run time linking by default, so we don't
14708           # have to do anything special.
14709           aix_use_runtimelinking=no
14710           exp_sym_flag='-Bexport'
14711           no_entry_flag=""
14712         else
14713           aix_use_runtimelinking=no
14714
14715           # Test if we are trying to use run time linking or normal
14716           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14717           # need to do runtime linking.
14718           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14719             for ld_flag in $LDFLAGS; do
14720               case $ld_flag in
14721               *-brtl*)
14722                 aix_use_runtimelinking=yes
14723                 break
14724                 ;;
14725               esac
14726             done
14727             ;;
14728           esac
14729
14730           exp_sym_flag='-bexport'
14731           no_entry_flag='-bnoentry'
14732         fi
14733
14734         # When large executables or shared objects are built, AIX ld can
14735         # have problems creating the table of contents.  If linking a library
14736         # or program results in "error TOC overflow" add -mminimal-toc to
14737         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14738         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14739
14740         archive_cmds_CXX=''
14741         hardcode_direct_CXX=yes
14742         hardcode_direct_absolute_CXX=yes
14743         hardcode_libdir_separator_CXX=':'
14744         link_all_deplibs_CXX=yes
14745         file_list_spec_CXX='${wl}-f,'
14746
14747         if test "$GXX" = yes; then
14748           case $host_os in aix4.[012]|aix4.[012].*)
14749           # We only want to do this on AIX 4.2 and lower, the check
14750           # below for broken collect2 doesn't work under 4.3+
14751           collect2name=`${CC} -print-prog-name=collect2`
14752           if test -f "$collect2name" &&
14753              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14754           then
14755             # We have reworked collect2
14756             :
14757           else
14758             # We have old collect2
14759             hardcode_direct_CXX=unsupported
14760             # It fails to find uninstalled libraries when the uninstalled
14761             # path is not listed in the libpath.  Setting hardcode_minus_L
14762             # to unsupported forces relinking
14763             hardcode_minus_L_CXX=yes
14764             hardcode_libdir_flag_spec_CXX='-L$libdir'
14765             hardcode_libdir_separator_CXX=
14766           fi
14767           esac
14768           shared_flag='-shared'
14769           if test "$aix_use_runtimelinking" = yes; then
14770             shared_flag="$shared_flag "'${wl}-G'
14771           fi
14772         else
14773           # not using gcc
14774           if test "$host_cpu" = ia64; then
14775           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14776           # chokes on -Wl,-G. The following line is correct:
14777           shared_flag='-G'
14778           else
14779             if test "$aix_use_runtimelinking" = yes; then
14780               shared_flag='${wl}-G'
14781             else
14782               shared_flag='${wl}-bM:SRE'
14783             fi
14784           fi
14785         fi
14786
14787         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14788         # It seems that -bexpall does not export symbols beginning with
14789         # underscore (_), so it is better to generate a list of symbols to
14790         # export.
14791         always_export_symbols_CXX=yes
14792         if test "$aix_use_runtimelinking" = yes; then
14793           # Warning - without using the other runtime loading flags (-brtl),
14794           # -berok will link without error, but may produce a broken library.
14795           allow_undefined_flag_CXX='-berok'
14796           # Determine the default libpath from the value encoded in an empty
14797           # executable.
14798           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h.  */
14800
14801 int
14802 main ()
14803 {
14804
14805   ;
14806   return 0;
14807 }
14808 _ACEOF
14809 if ac_fn_cxx_try_link "$LINENO"; then :
14810
14811 lt_aix_libpath_sed='
14812     /Import File Strings/,/^$/ {
14813         /^0/ {
14814             s/^0  *\(.*\)$/\1/
14815             p
14816         }
14817     }'
14818 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14819 # Check for a 64-bit object if we didn't find anything.
14820 if test -z "$aix_libpath"; then
14821   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14822 fi
14823 fi
14824 rm -f core conftest.err conftest.$ac_objext \
14825     conftest$ac_exeext conftest.$ac_ext
14826 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14827
14828           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14829
14830           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14831         else
14832           if test "$host_cpu" = ia64; then
14833             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14834             allow_undefined_flag_CXX="-z nodefs"
14835             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"
14836           else
14837             # Determine the default libpath from the value encoded in an
14838             # empty executable.
14839             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h.  */
14841
14842 int
14843 main ()
14844 {
14845
14846   ;
14847   return 0;
14848 }
14849 _ACEOF
14850 if ac_fn_cxx_try_link "$LINENO"; then :
14851
14852 lt_aix_libpath_sed='
14853     /Import File Strings/,/^$/ {
14854         /^0/ {
14855             s/^0  *\(.*\)$/\1/
14856             p
14857         }
14858     }'
14859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14860 # Check for a 64-bit object if we didn't find anything.
14861 if test -z "$aix_libpath"; then
14862   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14863 fi
14864 fi
14865 rm -f core conftest.err conftest.$ac_objext \
14866     conftest$ac_exeext conftest.$ac_ext
14867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14868
14869             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14870             # Warning - without using the other run time loading flags,
14871             # -berok will link without error, but may produce a broken library.
14872             no_undefined_flag_CXX=' ${wl}-bernotok'
14873             allow_undefined_flag_CXX=' ${wl}-berok'
14874             # Exported symbols can be pulled into shared objects from archives
14875             whole_archive_flag_spec_CXX='$convenience'
14876             archive_cmds_need_lc_CXX=yes
14877             # This is similar to how AIX traditionally builds its shared
14878             # libraries.
14879             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'
14880           fi
14881         fi
14882         ;;
14883
14884       beos*)
14885         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14886           allow_undefined_flag_CXX=unsupported
14887           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14888           # support --undefined.  This deserves some investigation.  FIXME
14889           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14890         else
14891           ld_shlibs_CXX=no
14892         fi
14893         ;;
14894
14895       chorus*)
14896         case $cc_basename in
14897           *)
14898           # FIXME: insert proper C++ library support
14899           ld_shlibs_CXX=no
14900           ;;
14901         esac
14902         ;;
14903
14904       cygwin* | mingw* | pw32* | cegcc*)
14905         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14906         # as there is no search path for DLLs.
14907         hardcode_libdir_flag_spec_CXX='-L$libdir'
14908         allow_undefined_flag_CXX=unsupported
14909         always_export_symbols_CXX=no
14910         enable_shared_with_static_runtimes_CXX=yes
14911
14912         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14913           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'
14914           # If the export-symbols file already is a .def file (1st line
14915           # is EXPORTS), use it as is; otherwise, prepend...
14916           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14917             cp $export_symbols $output_objdir/$soname.def;
14918           else
14919             echo EXPORTS > $output_objdir/$soname.def;
14920             cat $export_symbols >> $output_objdir/$soname.def;
14921           fi~
14922           $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'
14923         else
14924           ld_shlibs_CXX=no
14925         fi
14926         ;;
14927       darwin* | rhapsody*)
14928
14929
14930   archive_cmds_need_lc_CXX=no
14931   hardcode_direct_CXX=no
14932   hardcode_automatic_CXX=yes
14933   hardcode_shlibpath_var_CXX=unsupported
14934   whole_archive_flag_spec_CXX=''
14935   link_all_deplibs_CXX=yes
14936   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14937   case $cc_basename in
14938      ifort*) _lt_dar_can_shared=yes ;;
14939      *) _lt_dar_can_shared=$GCC ;;
14940   esac
14941   if test "$_lt_dar_can_shared" = "yes"; then
14942     output_verbose_link_cmd=echo
14943     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}"
14944     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14945     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}"
14946     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}"
14947        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14948       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}"
14949       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}"
14950     fi
14951
14952   else
14953   ld_shlibs_CXX=no
14954   fi
14955
14956         ;;
14957
14958       dgux*)
14959         case $cc_basename in
14960           ec++*)
14961             # FIXME: insert proper C++ library support
14962             ld_shlibs_CXX=no
14963             ;;
14964           ghcx*)
14965             # Green Hills C++ Compiler
14966             # FIXME: insert proper C++ library support
14967             ld_shlibs_CXX=no
14968             ;;
14969           *)
14970             # FIXME: insert proper C++ library support
14971             ld_shlibs_CXX=no
14972             ;;
14973         esac
14974         ;;
14975
14976       freebsd[12]*)
14977         # C++ shared libraries reported to be fairly broken before
14978         # switch to ELF
14979         ld_shlibs_CXX=no
14980         ;;
14981
14982       freebsd-elf*)
14983         archive_cmds_need_lc_CXX=no
14984         ;;
14985
14986       freebsd* | dragonfly*)
14987         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14988         # conventions
14989         ld_shlibs_CXX=yes
14990         ;;
14991
14992       gnu*)
14993         ;;
14994
14995       hpux9*)
14996         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14997         hardcode_libdir_separator_CXX=:
14998         export_dynamic_flag_spec_CXX='${wl}-E'
14999         hardcode_direct_CXX=yes
15000         hardcode_minus_L_CXX=yes # Not in the search PATH,
15001                                              # but as the default
15002                                              # location of the library.
15003
15004         case $cc_basename in
15005           CC*)
15006             # FIXME: insert proper C++ library support
15007             ld_shlibs_CXX=no
15008             ;;
15009           aCC*)
15010             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'
15011             # Commands to make compiler produce verbose output that lists
15012             # what "hidden" libraries, object files and flags are used when
15013             # linking a shared library.
15014             #
15015             # There doesn't appear to be a way to prevent this compiler from
15016             # explicitly linking system object files so we need to strip them
15017             # from the output so that they don't get included in the library
15018             # dependencies.
15019             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; $ECHO "X$list" | $Xsed'
15020             ;;
15021           *)
15022             if test "$GXX" = yes; then
15023               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15024             else
15025               # FIXME: insert proper C++ library support
15026               ld_shlibs_CXX=no
15027             fi
15028             ;;
15029         esac
15030         ;;
15031
15032       hpux10*|hpux11*)
15033         if test $with_gnu_ld = no; then
15034           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15035           hardcode_libdir_separator_CXX=:
15036
15037           case $host_cpu in
15038             hppa*64*|ia64*)
15039               ;;
15040             *)
15041               export_dynamic_flag_spec_CXX='${wl}-E'
15042               ;;
15043           esac
15044         fi
15045         case $host_cpu in
15046           hppa*64*|ia64*)
15047             hardcode_direct_CXX=no
15048             hardcode_shlibpath_var_CXX=no
15049             ;;
15050           *)
15051             hardcode_direct_CXX=yes
15052             hardcode_direct_absolute_CXX=yes
15053             hardcode_minus_L_CXX=yes # Not in the search PATH,
15054                                                  # but as the default
15055                                                  # location of the library.
15056             ;;
15057         esac
15058
15059         case $cc_basename in
15060           CC*)
15061             # FIXME: insert proper C++ library support
15062             ld_shlibs_CXX=no
15063             ;;
15064           aCC*)
15065             case $host_cpu in
15066               hppa*64*)
15067                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15068                 ;;
15069               ia64*)
15070                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15071                 ;;
15072               *)
15073                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15074                 ;;
15075             esac
15076             # Commands to make compiler produce verbose output that lists
15077             # what "hidden" libraries, object files and flags are used when
15078             # linking a shared library.
15079             #
15080             # There doesn't appear to be a way to prevent this compiler from
15081             # explicitly linking system object files so we need to strip them
15082             # from the output so that they don't get included in the library
15083             # dependencies.
15084             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15085             ;;
15086           *)
15087             if test "$GXX" = yes; then
15088               if test $with_gnu_ld = no; then
15089                 case $host_cpu in
15090                   hppa*64*)
15091                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15092                     ;;
15093                   ia64*)
15094                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15095                     ;;
15096                   *)
15097                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15098                     ;;
15099                 esac
15100               fi
15101             else
15102               # FIXME: insert proper C++ library support
15103               ld_shlibs_CXX=no
15104             fi
15105             ;;
15106         esac
15107         ;;
15108
15109       interix[3-9]*)
15110         hardcode_direct_CXX=no
15111         hardcode_shlibpath_var_CXX=no
15112         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15113         export_dynamic_flag_spec_CXX='${wl}-E'
15114         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15115         # Instead, shared libraries are loaded at an image base (0x10000000 by
15116         # default) and relocated if they conflict, which is a slow very memory
15117         # consuming and fragmenting process.  To avoid this, we pick a random,
15118         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15119         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15120         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'
15121         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'
15122         ;;
15123       irix5* | irix6*)
15124         case $cc_basename in
15125           CC*)
15126             # SGI C++
15127             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15128
15129             # Archives containing C++ object files must be created using
15130             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15131             # necessary to make sure instantiated templates are included
15132             # in the archive.
15133             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15134             ;;
15135           *)
15136             if test "$GXX" = yes; then
15137               if test "$with_gnu_ld" = no; then
15138                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15139               else
15140                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15141               fi
15142             fi
15143             link_all_deplibs_CXX=yes
15144             ;;
15145         esac
15146         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15147         hardcode_libdir_separator_CXX=:
15148         inherit_rpath_CXX=yes
15149         ;;
15150
15151       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15152         case $cc_basename in
15153           KCC*)
15154             # Kuck and Associates, Inc. (KAI) C++ Compiler
15155
15156             # KCC will only create a shared library if the output file
15157             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15158             # to its proper name (with version) after linking.
15159             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'
15160             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'
15161             # Commands to make compiler produce verbose output that lists
15162             # what "hidden" libraries, object files and flags are used when
15163             # linking a shared library.
15164             #
15165             # There doesn't appear to be a way to prevent this compiler from
15166             # explicitly linking system object files so we need to strip them
15167             # from the output so that they don't get included in the library
15168             # dependencies.
15169             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15170
15171             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15172             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15173
15174             # Archives containing C++ object files must be created using
15175             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15176             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15177             ;;
15178           icpc* | ecpc* )
15179             # Intel C++
15180             with_gnu_ld=yes
15181             # version 8.0 and above of icpc choke on multiply defined symbols
15182             # if we add $predep_objects and $postdep_objects, however 7.1 and
15183             # earlier do not add the objects themselves.
15184             case `$CC -V 2>&1` in
15185               *"Version 7."*)
15186                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15187                 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'
15188                 ;;
15189               *)  # Version 8.0 or newer
15190                 tmp_idyn=
15191                 case $host_cpu in
15192                   ia64*) tmp_idyn=' -i_dynamic';;
15193                 esac
15194                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195                 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'
15196                 ;;
15197             esac
15198             archive_cmds_need_lc_CXX=no
15199             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15200             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15201             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15202             ;;
15203           pgCC* | pgcpp*)
15204             # Portland Group C++ compiler
15205             case `$CC -V` in
15206             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15207               prelink_cmds_CXX='tpldir=Template.dir~
15208                 rm -rf $tpldir~
15209                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15210                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15211               old_archive_cmds_CXX='tpldir=Template.dir~
15212                 rm -rf $tpldir~
15213                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15214                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15215                 $RANLIB $oldlib'
15216               archive_cmds_CXX='tpldir=Template.dir~
15217                 rm -rf $tpldir~
15218                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15219                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15220               archive_expsym_cmds_CXX='tpldir=Template.dir~
15221                 rm -rf $tpldir~
15222                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15223                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15224               ;;
15225             *) # Version 6 will use weak symbols
15226               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15227               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'
15228               ;;
15229             esac
15230
15231             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15232             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15233             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15234             ;;
15235           cxx*)
15236             # Compaq C++
15237             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15238             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'
15239
15240             runpath_var=LD_RUN_PATH
15241             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15242             hardcode_libdir_separator_CXX=:
15243
15244             # Commands to make compiler produce verbose output that lists
15245             # what "hidden" libraries, object files and flags are used when
15246             # linking a shared library.
15247             #
15248             # There doesn't appear to be a way to prevent this compiler from
15249             # explicitly linking system object files so we need to strip them
15250             # from the output so that they don't get included in the library
15251             # dependencies.
15252             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15253             ;;
15254           xl*)
15255             # IBM XL 8.0 on PPC, with GNU ld
15256             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15257             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15258             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15259             if test "x$supports_anon_versioning" = xyes; then
15260               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15261                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15262                 echo "local: *; };" >> $output_objdir/$libname.ver~
15263                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15264             fi
15265             ;;
15266           *)
15267             case `$CC -V 2>&1 | sed 5q` in
15268             *Sun\ C*)
15269               # Sun C++ 5.9
15270               no_undefined_flag_CXX=' -zdefs'
15271               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15272               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'
15273               hardcode_libdir_flag_spec_CXX='-R$libdir'
15274               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15275               compiler_needs_object_CXX=yes
15276
15277               # Not sure whether something based on
15278               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15279               # would be better.
15280               output_verbose_link_cmd='echo'
15281
15282               # Archives containing C++ object files must be created using
15283               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15284               # necessary to make sure instantiated templates are included
15285               # in the archive.
15286               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15287               ;;
15288             esac
15289             ;;
15290         esac
15291         ;;
15292
15293       lynxos*)
15294         # FIXME: insert proper C++ library support
15295         ld_shlibs_CXX=no
15296         ;;
15297
15298       m88k*)
15299         # FIXME: insert proper C++ library support
15300         ld_shlibs_CXX=no
15301         ;;
15302
15303       mvs*)
15304         case $cc_basename in
15305           cxx*)
15306             # FIXME: insert proper C++ library support
15307             ld_shlibs_CXX=no
15308             ;;
15309           *)
15310             # FIXME: insert proper C++ library support
15311             ld_shlibs_CXX=no
15312             ;;
15313         esac
15314         ;;
15315
15316       netbsd*)
15317         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15318           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15319           wlarc=
15320           hardcode_libdir_flag_spec_CXX='-R$libdir'
15321           hardcode_direct_CXX=yes
15322           hardcode_shlibpath_var_CXX=no
15323         fi
15324         # Workaround some broken pre-1.5 toolchains
15325         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15326         ;;
15327
15328       *nto* | *qnx*)
15329         ld_shlibs_CXX=yes
15330         ;;
15331
15332       openbsd2*)
15333         # C++ shared libraries are fairly broken
15334         ld_shlibs_CXX=no
15335         ;;
15336
15337       openbsd*)
15338         if test -f /usr/libexec/ld.so; then
15339           hardcode_direct_CXX=yes
15340           hardcode_shlibpath_var_CXX=no
15341           hardcode_direct_absolute_CXX=yes
15342           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15343           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15344           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15345             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15346             export_dynamic_flag_spec_CXX='${wl}-E'
15347             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15348           fi
15349           output_verbose_link_cmd=echo
15350         else
15351           ld_shlibs_CXX=no
15352         fi
15353         ;;
15354
15355       osf3* | osf4* | osf5*)
15356         case $cc_basename in
15357           KCC*)
15358             # Kuck and Associates, Inc. (KAI) C++ Compiler
15359
15360             # KCC will only create a shared library if the output file
15361             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15362             # to its proper name (with version) after linking.
15363             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'
15364
15365             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15366             hardcode_libdir_separator_CXX=:
15367
15368             # Archives containing C++ object files must be created using
15369             # the KAI C++ compiler.
15370             case $host in
15371               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15372               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15373             esac
15374             ;;
15375           RCC*)
15376             # Rational C++ 2.4.1
15377             # FIXME: insert proper C++ library support
15378             ld_shlibs_CXX=no
15379             ;;
15380           cxx*)
15381             case $host in
15382               osf3*)
15383                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15384                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15385                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15386                 ;;
15387               *)
15388                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15389                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15390                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15391                   echo "-hidden">> $lib.exp~
15392                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
15393                   $RM $lib.exp'
15394                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15395                 ;;
15396             esac
15397
15398             hardcode_libdir_separator_CXX=:
15399
15400             # Commands to make compiler produce verbose output that lists
15401             # what "hidden" libraries, object files and flags are used when
15402             # linking a shared library.
15403             #
15404             # There doesn't appear to be a way to prevent this compiler from
15405             # explicitly linking system object files so we need to strip them
15406             # from the output so that they don't get included in the library
15407             # dependencies.
15408             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15409             ;;
15410           *)
15411             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15412               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15413               case $host in
15414                 osf3*)
15415                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15416                   ;;
15417                 *)
15418                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15419                   ;;
15420               esac
15421
15422               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15423               hardcode_libdir_separator_CXX=:
15424
15425               # Commands to make compiler produce verbose output that lists
15426               # what "hidden" libraries, object files and flags are used when
15427               # linking a shared library.
15428               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15429
15430             else
15431               # FIXME: insert proper C++ library support
15432               ld_shlibs_CXX=no
15433             fi
15434             ;;
15435         esac
15436         ;;
15437
15438       psos*)
15439         # FIXME: insert proper C++ library support
15440         ld_shlibs_CXX=no
15441         ;;
15442
15443       sunos4*)
15444         case $cc_basename in
15445           CC*)
15446             # Sun C++ 4.x
15447             # FIXME: insert proper C++ library support
15448             ld_shlibs_CXX=no
15449             ;;
15450           lcc*)
15451             # Lucid
15452             # FIXME: insert proper C++ library support
15453             ld_shlibs_CXX=no
15454             ;;
15455           *)
15456             # FIXME: insert proper C++ library support
15457             ld_shlibs_CXX=no
15458             ;;
15459         esac
15460         ;;
15461
15462       solaris*)
15463         case $cc_basename in
15464           CC*)
15465             # Sun C++ 4.2, 5.x and Centerline C++
15466             archive_cmds_need_lc_CXX=yes
15467             no_undefined_flag_CXX=' -zdefs'
15468             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15469             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15470               $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'
15471
15472             hardcode_libdir_flag_spec_CXX='-R$libdir'
15473             hardcode_shlibpath_var_CXX=no
15474             case $host_os in
15475               solaris2.[0-5] | solaris2.[0-5].*) ;;
15476               *)
15477                 # The compiler driver will combine and reorder linker options,
15478                 # but understands `-z linker_flag'.
15479                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15480                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15481                 ;;
15482             esac
15483             link_all_deplibs_CXX=yes
15484
15485             output_verbose_link_cmd='echo'
15486
15487             # Archives containing C++ object files must be created using
15488             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15489             # necessary to make sure instantiated templates are included
15490             # in the archive.
15491             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15492             ;;
15493           gcx*)
15494             # Green Hills C++ Compiler
15495             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15496
15497             # The C++ compiler must be used to create the archive.
15498             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15499             ;;
15500           *)
15501             # GNU C++ compiler with Solaris linker
15502             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15503               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15504               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15505                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15506                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15507                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15508
15509                 # Commands to make compiler produce verbose output that lists
15510                 # what "hidden" libraries, object files and flags are used when
15511                 # linking a shared library.
15512                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15513               else
15514                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15515                 # platform.
15516                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15517                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15518                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15519
15520                 # Commands to make compiler produce verbose output that lists
15521                 # what "hidden" libraries, object files and flags are used when
15522                 # linking a shared library.
15523                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15524               fi
15525
15526               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15527               case $host_os in
15528                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15529                 *)
15530                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15531                   ;;
15532               esac
15533             fi
15534             ;;
15535         esac
15536         ;;
15537
15538     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15539       no_undefined_flag_CXX='${wl}-z,text'
15540       archive_cmds_need_lc_CXX=no
15541       hardcode_shlibpath_var_CXX=no
15542       runpath_var='LD_RUN_PATH'
15543
15544       case $cc_basename in
15545         CC*)
15546           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15547           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15548           ;;
15549         *)
15550           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15551           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15552           ;;
15553       esac
15554       ;;
15555
15556       sysv5* | sco3.2v5* | sco5v6*)
15557         # Note: We can NOT use -z defs as we might desire, because we do not
15558         # link with -lc, and that would cause any symbols used from libc to
15559         # always be unresolved, which means just about no library would
15560         # ever link correctly.  If we're not using GNU ld we use -z text
15561         # though, which does catch some bad symbols but isn't as heavy-handed
15562         # as -z defs.
15563         no_undefined_flag_CXX='${wl}-z,text'
15564         allow_undefined_flag_CXX='${wl}-z,nodefs'
15565         archive_cmds_need_lc_CXX=no
15566         hardcode_shlibpath_var_CXX=no
15567         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15568         hardcode_libdir_separator_CXX=':'
15569         link_all_deplibs_CXX=yes
15570         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15571         runpath_var='LD_RUN_PATH'
15572
15573         case $cc_basename in
15574           CC*)
15575             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15576             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15577             ;;
15578           *)
15579             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15580             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15581             ;;
15582         esac
15583       ;;
15584
15585       tandem*)
15586         case $cc_basename in
15587           NCC*)
15588             # NonStop-UX NCC 3.20
15589             # FIXME: insert proper C++ library support
15590             ld_shlibs_CXX=no
15591             ;;
15592           *)
15593             # FIXME: insert proper C++ library support
15594             ld_shlibs_CXX=no
15595             ;;
15596         esac
15597         ;;
15598
15599       vxworks*)
15600         # FIXME: insert proper C++ library support
15601         ld_shlibs_CXX=no
15602         ;;
15603
15604       *)
15605         # FIXME: insert proper C++ library support
15606         ld_shlibs_CXX=no
15607         ;;
15608     esac
15609
15610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15611 $as_echo "$ld_shlibs_CXX" >&6; }
15612     test "$ld_shlibs_CXX" = no && can_build_shared=no
15613
15614     GCC_CXX="$GXX"
15615     LD_CXX="$LD"
15616
15617     ## CAVEAT EMPTOR:
15618     ## There is no encapsulation within the following macros, do not change
15619     ## the running order or otherwise move them around unless you know exactly
15620     ## what you are doing...
15621     # Dependencies to place before and after the object being linked:
15622 predep_objects_CXX=
15623 postdep_objects_CXX=
15624 predeps_CXX=
15625 postdeps_CXX=
15626 compiler_lib_search_path_CXX=
15627
15628 cat > conftest.$ac_ext <<_LT_EOF
15629 class Foo
15630 {
15631 public:
15632   Foo (void) { a = 0; }
15633 private:
15634   int a;
15635 };
15636 _LT_EOF
15637
15638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15639   (eval $ac_compile) 2>&5
15640   ac_status=$?
15641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15642   test $ac_status = 0; }; then
15643   # Parse the compiler output and extract the necessary
15644   # objects, libraries and library flags.
15645
15646   # Sentinel used to keep track of whether or not we are before
15647   # the conftest object file.
15648   pre_test_object_deps_done=no
15649
15650   for p in `eval "$output_verbose_link_cmd"`; do
15651     case $p in
15652
15653     -L* | -R* | -l*)
15654        # Some compilers place space between "-{L,R}" and the path.
15655        # Remove the space.
15656        if test $p = "-L" ||
15657           test $p = "-R"; then
15658          prev=$p
15659          continue
15660        else
15661          prev=
15662        fi
15663
15664        if test "$pre_test_object_deps_done" = no; then
15665          case $p in
15666          -L* | -R*)
15667            # Internal compiler library paths should come after those
15668            # provided the user.  The postdeps already come after the
15669            # user supplied libs so there is no need to process them.
15670            if test -z "$compiler_lib_search_path_CXX"; then
15671              compiler_lib_search_path_CXX="${prev}${p}"
15672            else
15673              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15674            fi
15675            ;;
15676          # The "-l" case would never come before the object being
15677          # linked, so don't bother handling this case.
15678          esac
15679        else
15680          if test -z "$postdeps_CXX"; then
15681            postdeps_CXX="${prev}${p}"
15682          else
15683            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15684          fi
15685        fi
15686        ;;
15687
15688     *.$objext)
15689        # This assumes that the test object file only shows up
15690        # once in the compiler output.
15691        if test "$p" = "conftest.$objext"; then
15692          pre_test_object_deps_done=yes
15693          continue
15694        fi
15695
15696        if test "$pre_test_object_deps_done" = no; then
15697          if test -z "$predep_objects_CXX"; then
15698            predep_objects_CXX="$p"
15699          else
15700            predep_objects_CXX="$predep_objects_CXX $p"
15701          fi
15702        else
15703          if test -z "$postdep_objects_CXX"; then
15704            postdep_objects_CXX="$p"
15705          else
15706            postdep_objects_CXX="$postdep_objects_CXX $p"
15707          fi
15708        fi
15709        ;;
15710
15711     *) ;; # Ignore the rest.
15712
15713     esac
15714   done
15715
15716   # Clean up.
15717   rm -f a.out a.exe
15718 else
15719   echo "libtool.m4: error: problem compiling CXX test program"
15720 fi
15721
15722 $RM -f confest.$objext
15723
15724 # PORTME: override above test on systems where it is broken
15725 case $host_os in
15726 interix[3-9]*)
15727   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15728   # hack all around it, let's just trust "g++" to DTRT.
15729   predep_objects_CXX=
15730   postdep_objects_CXX=
15731   postdeps_CXX=
15732   ;;
15733
15734 linux*)
15735   case `$CC -V 2>&1 | sed 5q` in
15736   *Sun\ C*)
15737     # Sun C++ 5.9
15738
15739     # The more standards-conforming stlport4 library is
15740     # incompatible with the Cstd library. Avoid specifying
15741     # it if it's in CXXFLAGS. Ignore libCrun as
15742     # -library=stlport4 depends on it.
15743     case " $CXX $CXXFLAGS " in
15744     *" -library=stlport4 "*)
15745       solaris_use_stlport4=yes
15746       ;;
15747     esac
15748
15749     if test "$solaris_use_stlport4" != yes; then
15750       postdeps_CXX='-library=Cstd -library=Crun'
15751     fi
15752     ;;
15753   esac
15754   ;;
15755
15756 solaris*)
15757   case $cc_basename in
15758   CC*)
15759     # The more standards-conforming stlport4 library is
15760     # incompatible with the Cstd library. Avoid specifying
15761     # it if it's in CXXFLAGS. Ignore libCrun as
15762     # -library=stlport4 depends on it.
15763     case " $CXX $CXXFLAGS " in
15764     *" -library=stlport4 "*)
15765       solaris_use_stlport4=yes
15766       ;;
15767     esac
15768
15769     # Adding this requires a known-good setup of shared libraries for
15770     # Sun compiler versions before 5.6, else PIC objects from an old
15771     # archive will be linked into the output, leading to subtle bugs.
15772     if test "$solaris_use_stlport4" != yes; then
15773       postdeps_CXX='-library=Cstd -library=Crun'
15774     fi
15775     ;;
15776   esac
15777   ;;
15778 esac
15779
15780
15781 case " $postdeps_CXX " in
15782 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15783 esac
15784  compiler_lib_search_dirs_CXX=
15785 if test -n "${compiler_lib_search_path_CXX}"; then
15786  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15787 fi
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819     lt_prog_compiler_wl_CXX=
15820 lt_prog_compiler_pic_CXX=
15821 lt_prog_compiler_static_CXX=
15822
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15824 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15825
15826   # C++ specific cases for pic, static, wl, etc.
15827   if test "$GXX" = yes; then
15828     lt_prog_compiler_wl_CXX='-Wl,'
15829     lt_prog_compiler_static_CXX='-static'
15830
15831     case $host_os in
15832     aix*)
15833       # All AIX code is PIC.
15834       if test "$host_cpu" = ia64; then
15835         # AIX 5 now supports IA64 processor
15836         lt_prog_compiler_static_CXX='-Bstatic'
15837       fi
15838       ;;
15839
15840     amigaos*)
15841       case $host_cpu in
15842       powerpc)
15843             # see comment about AmigaOS4 .so support
15844             lt_prog_compiler_pic_CXX='-fPIC'
15845         ;;
15846       m68k)
15847             # FIXME: we need at least 68020 code to build shared libraries, but
15848             # adding the `-m68020' flag to GCC prevents building anything better,
15849             # like `-m68040'.
15850             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15851         ;;
15852       esac
15853       ;;
15854
15855     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15856       # PIC is the default for these OSes.
15857       ;;
15858     mingw* | cygwin* | os2* | pw32* | cegcc*)
15859       # This hack is so that the source file can tell whether it is being
15860       # built for inclusion in a dll (and should export symbols for example).
15861       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15862       # (--disable-auto-import) libraries
15863       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15864       ;;
15865     darwin* | rhapsody*)
15866       # PIC is the default on this platform
15867       # Common symbols not allowed in MH_DYLIB files
15868       lt_prog_compiler_pic_CXX='-fno-common'
15869       ;;
15870     *djgpp*)
15871       # DJGPP does not support shared libraries at all
15872       lt_prog_compiler_pic_CXX=
15873       ;;
15874     interix[3-9]*)
15875       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15876       # Instead, we relocate shared libraries at runtime.
15877       ;;
15878     sysv4*MP*)
15879       if test -d /usr/nec; then
15880         lt_prog_compiler_pic_CXX=-Kconform_pic
15881       fi
15882       ;;
15883     hpux*)
15884       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15885       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15886       # sets the default TLS model and affects inlining.
15887       case $host_cpu in
15888       hppa*64*)
15889         ;;
15890       *)
15891         lt_prog_compiler_pic_CXX='-fPIC'
15892         ;;
15893       esac
15894       ;;
15895     *qnx* | *nto*)
15896       # QNX uses GNU C++, but need to define -shared option too, otherwise
15897       # it will coredump.
15898       lt_prog_compiler_pic_CXX='-fPIC -shared'
15899       ;;
15900     *)
15901       lt_prog_compiler_pic_CXX='-fPIC'
15902       ;;
15903     esac
15904   else
15905     case $host_os in
15906       aix[4-9]*)
15907         # All AIX code is PIC.
15908         if test "$host_cpu" = ia64; then
15909           # AIX 5 now supports IA64 processor
15910           lt_prog_compiler_static_CXX='-Bstatic'
15911         else
15912           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15913         fi
15914         ;;
15915       chorus*)
15916         case $cc_basename in
15917         cxch68*)
15918           # Green Hills C++ Compiler
15919           # _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"
15920           ;;
15921         esac
15922         ;;
15923       dgux*)
15924         case $cc_basename in
15925           ec++*)
15926             lt_prog_compiler_pic_CXX='-KPIC'
15927             ;;
15928           ghcx*)
15929             # Green Hills C++ Compiler
15930             lt_prog_compiler_pic_CXX='-pic'
15931             ;;
15932           *)
15933             ;;
15934         esac
15935         ;;
15936       freebsd* | dragonfly*)
15937         # FreeBSD uses GNU C++
15938         ;;
15939       hpux9* | hpux10* | hpux11*)
15940         case $cc_basename in
15941           CC*)
15942             lt_prog_compiler_wl_CXX='-Wl,'
15943             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15944             if test "$host_cpu" != ia64; then
15945               lt_prog_compiler_pic_CXX='+Z'
15946             fi
15947             ;;
15948           aCC*)
15949             lt_prog_compiler_wl_CXX='-Wl,'
15950             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15951             case $host_cpu in
15952             hppa*64*|ia64*)
15953               # +Z the default
15954               ;;
15955             *)
15956               lt_prog_compiler_pic_CXX='+Z'
15957               ;;
15958             esac
15959             ;;
15960           *)
15961             ;;
15962         esac
15963         ;;
15964       interix*)
15965         # This is c89, which is MS Visual C++ (no shared libs)
15966         # Anyone wants to do a port?
15967         ;;
15968       irix5* | irix6* | nonstopux*)
15969         case $cc_basename in
15970           CC*)
15971             lt_prog_compiler_wl_CXX='-Wl,'
15972             lt_prog_compiler_static_CXX='-non_shared'
15973             # CC pic flag -KPIC is the default.
15974             ;;
15975           *)
15976             ;;
15977         esac
15978         ;;
15979       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15980         case $cc_basename in
15981           KCC*)
15982             # KAI C++ Compiler
15983             lt_prog_compiler_wl_CXX='--backend -Wl,'
15984             lt_prog_compiler_pic_CXX='-fPIC'
15985             ;;
15986           ecpc* )
15987             # old Intel C++ for x86_64 which still supported -KPIC.
15988             lt_prog_compiler_wl_CXX='-Wl,'
15989             lt_prog_compiler_pic_CXX='-KPIC'
15990             lt_prog_compiler_static_CXX='-static'
15991             ;;
15992           icpc* )
15993             # Intel C++, used to be incompatible with GCC.
15994             # ICC 10 doesn't accept -KPIC any more.
15995             lt_prog_compiler_wl_CXX='-Wl,'
15996             lt_prog_compiler_pic_CXX='-fPIC'
15997             lt_prog_compiler_static_CXX='-static'
15998             ;;
15999           pgCC* | pgcpp*)
16000             # Portland Group C++ compiler
16001             lt_prog_compiler_wl_CXX='-Wl,'
16002             lt_prog_compiler_pic_CXX='-fpic'
16003             lt_prog_compiler_static_CXX='-Bstatic'
16004             ;;
16005           cxx*)
16006             # Compaq C++
16007             # Make sure the PIC flag is empty.  It appears that all Alpha
16008             # Linux and Compaq Tru64 Unix objects are PIC.
16009             lt_prog_compiler_pic_CXX=
16010             lt_prog_compiler_static_CXX='-non_shared'
16011             ;;
16012           xlc* | xlC*)
16013             # IBM XL 8.0 on PPC
16014             lt_prog_compiler_wl_CXX='-Wl,'
16015             lt_prog_compiler_pic_CXX='-qpic'
16016             lt_prog_compiler_static_CXX='-qstaticlink'
16017             ;;
16018           *)
16019             case `$CC -V 2>&1 | sed 5q` in
16020             *Sun\ C*)
16021               # Sun C++ 5.9
16022               lt_prog_compiler_pic_CXX='-KPIC'
16023               lt_prog_compiler_static_CXX='-Bstatic'
16024               lt_prog_compiler_wl_CXX='-Qoption ld '
16025               ;;
16026             esac
16027             ;;
16028         esac
16029         ;;
16030       lynxos*)
16031         ;;
16032       m88k*)
16033         ;;
16034       mvs*)
16035         case $cc_basename in
16036           cxx*)
16037             lt_prog_compiler_pic_CXX='-W c,exportall'
16038             ;;
16039           *)
16040             ;;
16041         esac
16042         ;;
16043       netbsd* | netbsdelf*-gnu)
16044         ;;
16045       *qnx* | *nto*)
16046         # QNX uses GNU C++, but need to define -shared option too, otherwise
16047         # it will coredump.
16048         lt_prog_compiler_pic_CXX='-fPIC -shared'
16049         ;;
16050       osf3* | osf4* | osf5*)
16051         case $cc_basename in
16052           KCC*)
16053             lt_prog_compiler_wl_CXX='--backend -Wl,'
16054             ;;
16055           RCC*)
16056             # Rational C++ 2.4.1
16057             lt_prog_compiler_pic_CXX='-pic'
16058             ;;
16059           cxx*)
16060             # Digital/Compaq C++
16061             lt_prog_compiler_wl_CXX='-Wl,'
16062             # Make sure the PIC flag is empty.  It appears that all Alpha
16063             # Linux and Compaq Tru64 Unix objects are PIC.
16064             lt_prog_compiler_pic_CXX=
16065             lt_prog_compiler_static_CXX='-non_shared'
16066             ;;
16067           *)
16068             ;;
16069         esac
16070         ;;
16071       psos*)
16072         ;;
16073       solaris*)
16074         case $cc_basename in
16075           CC*)
16076             # Sun C++ 4.2, 5.x and Centerline C++
16077             lt_prog_compiler_pic_CXX='-KPIC'
16078             lt_prog_compiler_static_CXX='-Bstatic'
16079             lt_prog_compiler_wl_CXX='-Qoption ld '
16080             ;;
16081           gcx*)
16082             # Green Hills C++ Compiler
16083             lt_prog_compiler_pic_CXX='-PIC'
16084             ;;
16085           *)
16086             ;;
16087         esac
16088         ;;
16089       sunos4*)
16090         case $cc_basename in
16091           CC*)
16092             # Sun C++ 4.x
16093             lt_prog_compiler_pic_CXX='-pic'
16094             lt_prog_compiler_static_CXX='-Bstatic'
16095             ;;
16096           lcc*)
16097             # Lucid
16098             lt_prog_compiler_pic_CXX='-pic'
16099             ;;
16100           *)
16101             ;;
16102         esac
16103         ;;
16104       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16105         case $cc_basename in
16106           CC*)
16107             lt_prog_compiler_wl_CXX='-Wl,'
16108             lt_prog_compiler_pic_CXX='-KPIC'
16109             lt_prog_compiler_static_CXX='-Bstatic'
16110             ;;
16111         esac
16112         ;;
16113       tandem*)
16114         case $cc_basename in
16115           NCC*)
16116             # NonStop-UX NCC 3.20
16117             lt_prog_compiler_pic_CXX='-KPIC'
16118             ;;
16119           *)
16120             ;;
16121         esac
16122         ;;
16123       vxworks*)
16124         ;;
16125       *)
16126         lt_prog_compiler_can_build_shared_CXX=no
16127         ;;
16128     esac
16129   fi
16130
16131 case $host_os in
16132   # For platforms which do not support PIC, -DPIC is meaningless:
16133   *djgpp*)
16134     lt_prog_compiler_pic_CXX=
16135     ;;
16136   *)
16137     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16138     ;;
16139 esac
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16141 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16142
16143
16144
16145 #
16146 # Check to make sure the PIC flag actually works.
16147 #
16148 if test -n "$lt_prog_compiler_pic_CXX"; then
16149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16150 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16151 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16152   $as_echo_n "(cached) " >&6
16153 else
16154   lt_cv_prog_compiler_pic_works_CXX=no
16155    ac_outfile=conftest.$ac_objext
16156    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16157    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16158    # Insert the option either (1) after the last *FLAGS variable, or
16159    # (2) before a word containing "conftest.", or (3) at the end.
16160    # Note that $ac_compile itself does not contain backslashes and begins
16161    # with a dollar sign (not a hyphen), so the echo should work correctly.
16162    # The option is referenced via a variable to avoid confusing sed.
16163    lt_compile=`echo "$ac_compile" | $SED \
16164    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16165    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16166    -e 's:$: $lt_compiler_flag:'`
16167    (eval echo "\"\$as_me:16167: $lt_compile\"" >&5)
16168    (eval "$lt_compile" 2>conftest.err)
16169    ac_status=$?
16170    cat conftest.err >&5
16171    echo "$as_me:16171: \$? = $ac_status" >&5
16172    if (exit $ac_status) && test -s "$ac_outfile"; then
16173      # The compiler can only warn and ignore the option if not recognized
16174      # So say no if there are warnings other than the usual output.
16175      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16176      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16177      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16178        lt_cv_prog_compiler_pic_works_CXX=yes
16179      fi
16180    fi
16181    $RM conftest*
16182
16183 fi
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16185 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16186
16187 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16188     case $lt_prog_compiler_pic_CXX in
16189      "" | " "*) ;;
16190      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16191      esac
16192 else
16193     lt_prog_compiler_pic_CXX=
16194      lt_prog_compiler_can_build_shared_CXX=no
16195 fi
16196
16197 fi
16198
16199
16200
16201 #
16202 # Check to make sure the static flag actually works.
16203 #
16204 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16206 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16207 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16208   $as_echo_n "(cached) " >&6
16209 else
16210   lt_cv_prog_compiler_static_works_CXX=no
16211    save_LDFLAGS="$LDFLAGS"
16212    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16213    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16214    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16215      # The linker can only warn and ignore the option if not recognized
16216      # So say no if there are warnings
16217      if test -s conftest.err; then
16218        # Append any errors to the config.log.
16219        cat conftest.err 1>&5
16220        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16221        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16222        if diff conftest.exp conftest.er2 >/dev/null; then
16223          lt_cv_prog_compiler_static_works_CXX=yes
16224        fi
16225      else
16226        lt_cv_prog_compiler_static_works_CXX=yes
16227      fi
16228    fi
16229    $RM -r conftest*
16230    LDFLAGS="$save_LDFLAGS"
16231
16232 fi
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16234 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16235
16236 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16237     :
16238 else
16239     lt_prog_compiler_static_CXX=
16240 fi
16241
16242
16243
16244
16245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16246 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16247 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16248   $as_echo_n "(cached) " >&6
16249 else
16250   lt_cv_prog_compiler_c_o_CXX=no
16251    $RM -r conftest 2>/dev/null
16252    mkdir conftest
16253    cd conftest
16254    mkdir out
16255    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16256
16257    lt_compiler_flag="-o out/conftest2.$ac_objext"
16258    # Insert the option either (1) after the last *FLAGS variable, or
16259    # (2) before a word containing "conftest.", or (3) at the end.
16260    # Note that $ac_compile itself does not contain backslashes and begins
16261    # with a dollar sign (not a hyphen), so the echo should work correctly.
16262    lt_compile=`echo "$ac_compile" | $SED \
16263    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16264    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16265    -e 's:$: $lt_compiler_flag:'`
16266    (eval echo "\"\$as_me:16266: $lt_compile\"" >&5)
16267    (eval "$lt_compile" 2>out/conftest.err)
16268    ac_status=$?
16269    cat out/conftest.err >&5
16270    echo "$as_me:16270: \$? = $ac_status" >&5
16271    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16272    then
16273      # The compiler can only warn and ignore the option if not recognized
16274      # So say no if there are warnings
16275      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16276      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16277      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16278        lt_cv_prog_compiler_c_o_CXX=yes
16279      fi
16280    fi
16281    chmod u+w . 2>&5
16282    $RM conftest*
16283    # SGI C++ compiler will create directory out/ii_files/ for
16284    # template instantiation
16285    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16286    $RM out/* && rmdir out
16287    cd ..
16288    $RM -r conftest
16289    $RM conftest*
16290
16291 fi
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16293 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16294
16295
16296
16297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16298 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16299 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16300   $as_echo_n "(cached) " >&6
16301 else
16302   lt_cv_prog_compiler_c_o_CXX=no
16303    $RM -r conftest 2>/dev/null
16304    mkdir conftest
16305    cd conftest
16306    mkdir out
16307    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16308
16309    lt_compiler_flag="-o out/conftest2.$ac_objext"
16310    # Insert the option either (1) after the last *FLAGS variable, or
16311    # (2) before a word containing "conftest.", or (3) at the end.
16312    # Note that $ac_compile itself does not contain backslashes and begins
16313    # with a dollar sign (not a hyphen), so the echo should work correctly.
16314    lt_compile=`echo "$ac_compile" | $SED \
16315    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16316    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16317    -e 's:$: $lt_compiler_flag:'`
16318    (eval echo "\"\$as_me:16318: $lt_compile\"" >&5)
16319    (eval "$lt_compile" 2>out/conftest.err)
16320    ac_status=$?
16321    cat out/conftest.err >&5
16322    echo "$as_me:16322: \$? = $ac_status" >&5
16323    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16324    then
16325      # The compiler can only warn and ignore the option if not recognized
16326      # So say no if there are warnings
16327      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16328      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16329      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16330        lt_cv_prog_compiler_c_o_CXX=yes
16331      fi
16332    fi
16333    chmod u+w . 2>&5
16334    $RM conftest*
16335    # SGI C++ compiler will create directory out/ii_files/ for
16336    # template instantiation
16337    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16338    $RM out/* && rmdir out
16339    cd ..
16340    $RM -r conftest
16341    $RM conftest*
16342
16343 fi
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16345 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16346
16347
16348
16349
16350 hard_links="nottested"
16351 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16352   # do not overwrite the value of need_locks provided by the user
16353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16354 $as_echo_n "checking if we can lock with hard links... " >&6; }
16355   hard_links=yes
16356   $RM conftest*
16357   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16358   touch conftest.a
16359   ln conftest.a conftest.b 2>&5 || hard_links=no
16360   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16362 $as_echo "$hard_links" >&6; }
16363   if test "$hard_links" = no; then
16364     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16365 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16366     need_locks=warn
16367   fi
16368 else
16369   need_locks=no
16370 fi
16371
16372
16373
16374     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16375 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16376
16377   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16378   case $host_os in
16379   aix[4-9]*)
16380     # If we're using GNU nm, then we don't want the "-C" option.
16381     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16382     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16383       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16384     else
16385       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'
16386     fi
16387     ;;
16388   pw32*)
16389     export_symbols_cmds_CXX="$ltdll_cmds"
16390   ;;
16391   cygwin* | mingw* | cegcc*)
16392     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16393   ;;
16394   linux* | k*bsd*-gnu)
16395     link_all_deplibs_CXX=no
16396   ;;
16397   *)
16398     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16399   ;;
16400   esac
16401   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16402
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16404 $as_echo "$ld_shlibs_CXX" >&6; }
16405 test "$ld_shlibs_CXX" = no && can_build_shared=no
16406
16407 with_gnu_ld_CXX=$with_gnu_ld
16408
16409
16410
16411
16412
16413
16414 #
16415 # Do we need to explicitly link libc?
16416 #
16417 case "x$archive_cmds_need_lc_CXX" in
16418 x|xyes)
16419   # Assume -lc should be added
16420   archive_cmds_need_lc_CXX=yes
16421
16422   if test "$enable_shared" = yes && test "$GCC" = yes; then
16423     case $archive_cmds_CXX in
16424     *'~'*)
16425       # FIXME: we may have to deal with multi-command sequences.
16426       ;;
16427     '$CC '*)
16428       # Test whether the compiler implicitly links with -lc since on some
16429       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16430       # to ld, don't add -lc before -lgcc.
16431       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16432 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16433       $RM conftest*
16434       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16435
16436       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16437   (eval $ac_compile) 2>&5
16438   ac_status=$?
16439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16440   test $ac_status = 0; } 2>conftest.err; then
16441         soname=conftest
16442         lib=conftest
16443         libobjs=conftest.$ac_objext
16444         deplibs=
16445         wl=$lt_prog_compiler_wl_CXX
16446         pic_flag=$lt_prog_compiler_pic_CXX
16447         compiler_flags=-v
16448         linker_flags=-v
16449         verstring=
16450         output_objdir=.
16451         libname=conftest
16452         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16453         allow_undefined_flag_CXX=
16454         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16455   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16456   ac_status=$?
16457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16458   test $ac_status = 0; }
16459         then
16460           archive_cmds_need_lc_CXX=no
16461         else
16462           archive_cmds_need_lc_CXX=yes
16463         fi
16464         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16465       else
16466         cat conftest.err 1>&5
16467       fi
16468       $RM conftest*
16469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16470 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16471       ;;
16472     esac
16473   fi
16474   ;;
16475 esac
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16541 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16542
16543 library_names_spec=
16544 libname_spec='lib$name'
16545 soname_spec=
16546 shrext_cmds=".so"
16547 postinstall_cmds=
16548 postuninstall_cmds=
16549 finish_cmds=
16550 finish_eval=
16551 shlibpath_var=
16552 shlibpath_overrides_runpath=unknown
16553 version_type=none
16554 dynamic_linker="$host_os ld.so"
16555 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16556 need_lib_prefix=unknown
16557 hardcode_into_libs=no
16558
16559 # when you set need_version to no, make sure it does not cause -set_version
16560 # flags to be left without arguments
16561 need_version=unknown
16562
16563 case $host_os in
16564 aix3*)
16565   version_type=linux
16566   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16567   shlibpath_var=LIBPATH
16568
16569   # AIX 3 has no versioning support, so we append a major version to the name.
16570   soname_spec='${libname}${release}${shared_ext}$major'
16571   ;;
16572
16573 aix[4-9]*)
16574   version_type=linux
16575   need_lib_prefix=no
16576   need_version=no
16577   hardcode_into_libs=yes
16578   if test "$host_cpu" = ia64; then
16579     # AIX 5 supports IA64
16580     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16581     shlibpath_var=LD_LIBRARY_PATH
16582   else
16583     # With GCC up to 2.95.x, collect2 would create an import file
16584     # for dependence libraries.  The import file would start with
16585     # the line `#! .'.  This would cause the generated library to
16586     # depend on `.', always an invalid library.  This was fixed in
16587     # development snapshots of GCC prior to 3.0.
16588     case $host_os in
16589       aix4 | aix4.[01] | aix4.[01].*)
16590       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16591            echo ' yes '
16592            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16593         :
16594       else
16595         can_build_shared=no
16596       fi
16597       ;;
16598     esac
16599     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16600     # soname into executable. Probably we can add versioning support to
16601     # collect2, so additional links can be useful in future.
16602     if test "$aix_use_runtimelinking" = yes; then
16603       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16604       # instead of lib<name>.a to let people know that these are not
16605       # typical AIX shared libraries.
16606       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16607     else
16608       # We preserve .a as extension for shared libraries through AIX4.2
16609       # and later when we are not doing run time linking.
16610       library_names_spec='${libname}${release}.a $libname.a'
16611       soname_spec='${libname}${release}${shared_ext}$major'
16612     fi
16613     shlibpath_var=LIBPATH
16614   fi
16615   ;;
16616
16617 amigaos*)
16618   case $host_cpu in
16619   powerpc)
16620     # Since July 2007 AmigaOS4 officially supports .so libraries.
16621     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623     ;;
16624   m68k)
16625     library_names_spec='$libname.ixlibrary $libname.a'
16626     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16627     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16628     ;;
16629   esac
16630   ;;
16631
16632 beos*)
16633   library_names_spec='${libname}${shared_ext}'
16634   dynamic_linker="$host_os ld.so"
16635   shlibpath_var=LIBRARY_PATH
16636   ;;
16637
16638 bsdi[45]*)
16639   version_type=linux
16640   need_version=no
16641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16642   soname_spec='${libname}${release}${shared_ext}$major'
16643   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16644   shlibpath_var=LD_LIBRARY_PATH
16645   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16646   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16647   # the default ld.so.conf also contains /usr/contrib/lib and
16648   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16649   # libtool to hard-code these into programs
16650   ;;
16651
16652 cygwin* | mingw* | pw32* | cegcc*)
16653   version_type=windows
16654   shrext_cmds=".dll"
16655   need_version=no
16656   need_lib_prefix=no
16657
16658   case $GCC,$host_os in
16659   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16660     library_names_spec='$libname.dll.a'
16661     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16662     postinstall_cmds='base_file=`basename \${file}`~
16663       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16664       dldir=$destdir/`dirname \$dlpath`~
16665       test -d \$dldir || mkdir -p \$dldir~
16666       $install_prog $dir/$dlname \$dldir/$dlname~
16667       chmod a+x \$dldir/$dlname~
16668       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16669         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16670       fi'
16671     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16672       dlpath=$dir/\$dldll~
16673        $RM \$dlpath'
16674     shlibpath_overrides_runpath=yes
16675
16676     case $host_os in
16677     cygwin*)
16678       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16679       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16680       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16681       ;;
16682     mingw* | cegcc*)
16683       # MinGW DLLs use traditional 'lib' prefix
16684       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16685       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16686       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16687         # It is most probably a Windows format PATH printed by
16688         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16689         # path with ; separators, and with drive letters. We can handle the
16690         # drive letters (cygwin fileutils understands them), so leave them,
16691         # especially as we might pass files found there to a mingw objdump,
16692         # which wouldn't understand a cygwinified path. Ahh.
16693         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16694       else
16695         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16696       fi
16697       ;;
16698     pw32*)
16699       # pw32 DLLs use 'pw' prefix rather than 'lib'
16700       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16701       ;;
16702     esac
16703     ;;
16704
16705   *)
16706     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16707     ;;
16708   esac
16709   dynamic_linker='Win32 ld.exe'
16710   # FIXME: first we should search . and the directory the executable is in
16711   shlibpath_var=PATH
16712   ;;
16713
16714 darwin* | rhapsody*)
16715   dynamic_linker="$host_os dyld"
16716   version_type=darwin
16717   need_lib_prefix=no
16718   need_version=no
16719   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16720   soname_spec='${libname}${release}${major}$shared_ext'
16721   shlibpath_overrides_runpath=yes
16722   shlibpath_var=DYLD_LIBRARY_PATH
16723   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16724
16725   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16726   ;;
16727
16728 dgux*)
16729   version_type=linux
16730   need_lib_prefix=no
16731   need_version=no
16732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16733   soname_spec='${libname}${release}${shared_ext}$major'
16734   shlibpath_var=LD_LIBRARY_PATH
16735   ;;
16736
16737 freebsd1*)
16738   dynamic_linker=no
16739   ;;
16740
16741 freebsd* | dragonfly*)
16742   # DragonFly does not have aout.  When/if they implement a new
16743   # versioning mechanism, adjust this.
16744   if test -x /usr/bin/objformat; then
16745     objformat=`/usr/bin/objformat`
16746   else
16747     case $host_os in
16748     freebsd[123]*) objformat=aout ;;
16749     *) objformat=elf ;;
16750     esac
16751   fi
16752   version_type=freebsd-$objformat
16753   case $version_type in
16754     freebsd-elf*)
16755       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16756       need_version=no
16757       need_lib_prefix=no
16758       ;;
16759     freebsd-*)
16760       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16761       need_version=yes
16762       ;;
16763   esac
16764   shlibpath_var=LD_LIBRARY_PATH
16765   case $host_os in
16766   freebsd2*)
16767     shlibpath_overrides_runpath=yes
16768     ;;
16769   freebsd3.[01]* | freebsdelf3.[01]*)
16770     shlibpath_overrides_runpath=yes
16771     hardcode_into_libs=yes
16772     ;;
16773   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16774   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16775     shlibpath_overrides_runpath=no
16776     hardcode_into_libs=yes
16777     ;;
16778   *) # from 4.6 on, and DragonFly
16779     shlibpath_overrides_runpath=yes
16780     hardcode_into_libs=yes
16781     ;;
16782   esac
16783   ;;
16784
16785 gnu*)
16786   version_type=linux
16787   need_lib_prefix=no
16788   need_version=no
16789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16790   soname_spec='${libname}${release}${shared_ext}$major'
16791   shlibpath_var=LD_LIBRARY_PATH
16792   hardcode_into_libs=yes
16793   ;;
16794
16795 hpux9* | hpux10* | hpux11*)
16796   # Give a soname corresponding to the major version so that dld.sl refuses to
16797   # link against other versions.
16798   version_type=sunos
16799   need_lib_prefix=no
16800   need_version=no
16801   case $host_cpu in
16802   ia64*)
16803     shrext_cmds='.so'
16804     hardcode_into_libs=yes
16805     dynamic_linker="$host_os dld.so"
16806     shlibpath_var=LD_LIBRARY_PATH
16807     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16808     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16809     soname_spec='${libname}${release}${shared_ext}$major'
16810     if test "X$HPUX_IA64_MODE" = X32; then
16811       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16812     else
16813       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16814     fi
16815     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16816     ;;
16817   hppa*64*)
16818     shrext_cmds='.sl'
16819     hardcode_into_libs=yes
16820     dynamic_linker="$host_os dld.sl"
16821     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16822     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824     soname_spec='${libname}${release}${shared_ext}$major'
16825     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16826     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16827     ;;
16828   *)
16829     shrext_cmds='.sl'
16830     dynamic_linker="$host_os dld.sl"
16831     shlibpath_var=SHLIB_PATH
16832     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16833     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16834     soname_spec='${libname}${release}${shared_ext}$major'
16835     ;;
16836   esac
16837   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16838   postinstall_cmds='chmod 555 $lib'
16839   ;;
16840
16841 interix[3-9]*)
16842   version_type=linux
16843   need_lib_prefix=no
16844   need_version=no
16845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16846   soname_spec='${libname}${release}${shared_ext}$major'
16847   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16848   shlibpath_var=LD_LIBRARY_PATH
16849   shlibpath_overrides_runpath=no
16850   hardcode_into_libs=yes
16851   ;;
16852
16853 irix5* | irix6* | nonstopux*)
16854   case $host_os in
16855     nonstopux*) version_type=nonstopux ;;
16856     *)
16857         if test "$lt_cv_prog_gnu_ld" = yes; then
16858                 version_type=linux
16859         else
16860                 version_type=irix
16861         fi ;;
16862   esac
16863   need_lib_prefix=no
16864   need_version=no
16865   soname_spec='${libname}${release}${shared_ext}$major'
16866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16867   case $host_os in
16868   irix5* | nonstopux*)
16869     libsuff= shlibsuff=
16870     ;;
16871   *)
16872     case $LD in # libtool.m4 will add one of these switches to LD
16873     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16874       libsuff= shlibsuff= libmagic=32-bit;;
16875     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16876       libsuff=32 shlibsuff=N32 libmagic=N32;;
16877     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16878       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16879     *) libsuff= shlibsuff= libmagic=never-match;;
16880     esac
16881     ;;
16882   esac
16883   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16884   shlibpath_overrides_runpath=no
16885   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16886   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16887   hardcode_into_libs=yes
16888   ;;
16889
16890 # No shared lib support for Linux oldld, aout, or coff.
16891 linux*oldld* | linux*aout* | linux*coff*)
16892   dynamic_linker=no
16893   ;;
16894
16895 # This must be Linux ELF.
16896 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16897   version_type=linux
16898   need_lib_prefix=no
16899   need_version=no
16900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16901   soname_spec='${libname}${release}${shared_ext}$major'
16902   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16903   shlibpath_var=LD_LIBRARY_PATH
16904   shlibpath_overrides_runpath=no
16905   # Some binutils ld are patched to set DT_RUNPATH
16906   save_LDFLAGS=$LDFLAGS
16907   save_libdir=$libdir
16908   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16909        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911 /* end confdefs.h.  */
16912
16913 int
16914 main ()
16915 {
16916
16917   ;
16918   return 0;
16919 }
16920 _ACEOF
16921 if ac_fn_cxx_try_link "$LINENO"; then :
16922   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16923   shlibpath_overrides_runpath=yes
16924 fi
16925 fi
16926 rm -f core conftest.err conftest.$ac_objext \
16927     conftest$ac_exeext conftest.$ac_ext
16928   LDFLAGS=$save_LDFLAGS
16929   libdir=$save_libdir
16930
16931   # This implies no fast_install, which is unacceptable.
16932   # Some rework will be needed to allow for fast_install
16933   # before this can be enabled.
16934   hardcode_into_libs=yes
16935
16936   # Append ld.so.conf contents to the search path
16937   if test -f /etc/ld.so.conf; then
16938     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;/^$/d' | tr '\n' ' '`
16939     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16940   fi
16941
16942   # We used to test for /lib/ld.so.1 and disable shared libraries on
16943   # powerpc, because MkLinux only supported shared libraries with the
16944   # GNU dynamic linker.  Since this was broken with cross compilers,
16945   # most powerpc-linux boxes support dynamic linking these days and
16946   # people can always --disable-shared, the test was removed, and we
16947   # assume the GNU/Linux dynamic linker is in use.
16948   dynamic_linker='GNU/Linux ld.so'
16949   ;;
16950
16951 netbsdelf*-gnu)
16952   version_type=linux
16953   need_lib_prefix=no
16954   need_version=no
16955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16956   soname_spec='${libname}${release}${shared_ext}$major'
16957   shlibpath_var=LD_LIBRARY_PATH
16958   shlibpath_overrides_runpath=no
16959   hardcode_into_libs=yes
16960   dynamic_linker='NetBSD ld.elf_so'
16961   ;;
16962
16963 netbsd*)
16964   version_type=sunos
16965   need_lib_prefix=no
16966   need_version=no
16967   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16969     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16970     dynamic_linker='NetBSD (a.out) ld.so'
16971   else
16972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16973     soname_spec='${libname}${release}${shared_ext}$major'
16974     dynamic_linker='NetBSD ld.elf_so'
16975   fi
16976   shlibpath_var=LD_LIBRARY_PATH
16977   shlibpath_overrides_runpath=yes
16978   hardcode_into_libs=yes
16979   ;;
16980
16981 newsos6)
16982   version_type=linux
16983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16984   shlibpath_var=LD_LIBRARY_PATH
16985   shlibpath_overrides_runpath=yes
16986   ;;
16987
16988 *nto* | *qnx*)
16989   version_type=qnx
16990   need_lib_prefix=no
16991   need_version=no
16992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16993   soname_spec='${libname}${release}${shared_ext}$major'
16994   shlibpath_var=LD_LIBRARY_PATH
16995   shlibpath_overrides_runpath=no
16996   hardcode_into_libs=yes
16997   dynamic_linker='ldqnx.so'
16998   ;;
16999
17000 openbsd*)
17001   version_type=sunos
17002   sys_lib_dlsearch_path_spec="/usr/lib"
17003   need_lib_prefix=no
17004   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17005   case $host_os in
17006     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17007     *)                          need_version=no  ;;
17008   esac
17009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17010   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17011   shlibpath_var=LD_LIBRARY_PATH
17012   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17013     case $host_os in
17014       openbsd2.[89] | openbsd2.[89].*)
17015         shlibpath_overrides_runpath=no
17016         ;;
17017       *)
17018         shlibpath_overrides_runpath=yes
17019         ;;
17020       esac
17021   else
17022     shlibpath_overrides_runpath=yes
17023   fi
17024   ;;
17025
17026 os2*)
17027   libname_spec='$name'
17028   shrext_cmds=".dll"
17029   need_lib_prefix=no
17030   library_names_spec='$libname${shared_ext} $libname.a'
17031   dynamic_linker='OS/2 ld.exe'
17032   shlibpath_var=LIBPATH
17033   ;;
17034
17035 osf3* | osf4* | osf5*)
17036   version_type=osf
17037   need_lib_prefix=no
17038   need_version=no
17039   soname_spec='${libname}${release}${shared_ext}$major'
17040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17041   shlibpath_var=LD_LIBRARY_PATH
17042   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17043   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17044   ;;
17045
17046 rdos*)
17047   dynamic_linker=no
17048   ;;
17049
17050 solaris*)
17051   version_type=linux
17052   need_lib_prefix=no
17053   need_version=no
17054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055   soname_spec='${libname}${release}${shared_ext}$major'
17056   shlibpath_var=LD_LIBRARY_PATH
17057   shlibpath_overrides_runpath=yes
17058   hardcode_into_libs=yes
17059   # ldd complains unless libraries are executable
17060   postinstall_cmds='chmod +x $lib'
17061   ;;
17062
17063 sunos4*)
17064   version_type=sunos
17065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17066   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17067   shlibpath_var=LD_LIBRARY_PATH
17068   shlibpath_overrides_runpath=yes
17069   if test "$with_gnu_ld" = yes; then
17070     need_lib_prefix=no
17071   fi
17072   need_version=yes
17073   ;;
17074
17075 sysv4 | sysv4.3*)
17076   version_type=linux
17077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17078   soname_spec='${libname}${release}${shared_ext}$major'
17079   shlibpath_var=LD_LIBRARY_PATH
17080   case $host_vendor in
17081     sni)
17082       shlibpath_overrides_runpath=no
17083       need_lib_prefix=no
17084       runpath_var=LD_RUN_PATH
17085       ;;
17086     siemens)
17087       need_lib_prefix=no
17088       ;;
17089     motorola)
17090       need_lib_prefix=no
17091       need_version=no
17092       shlibpath_overrides_runpath=no
17093       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17094       ;;
17095   esac
17096   ;;
17097
17098 sysv4*MP*)
17099   if test -d /usr/nec ;then
17100     version_type=linux
17101     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17102     soname_spec='$libname${shared_ext}.$major'
17103     shlibpath_var=LD_LIBRARY_PATH
17104   fi
17105   ;;
17106
17107 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17108   version_type=freebsd-elf
17109   need_lib_prefix=no
17110   need_version=no
17111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17112   soname_spec='${libname}${release}${shared_ext}$major'
17113   shlibpath_var=LD_LIBRARY_PATH
17114   shlibpath_overrides_runpath=yes
17115   hardcode_into_libs=yes
17116   if test "$with_gnu_ld" = yes; then
17117     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17118   else
17119     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17120     case $host_os in
17121       sco3.2v5*)
17122         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17123         ;;
17124     esac
17125   fi
17126   sys_lib_dlsearch_path_spec='/usr/lib'
17127   ;;
17128
17129 tpf*)
17130   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17131   version_type=linux
17132   need_lib_prefix=no
17133   need_version=no
17134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135   shlibpath_var=LD_LIBRARY_PATH
17136   shlibpath_overrides_runpath=no
17137   hardcode_into_libs=yes
17138   ;;
17139
17140 uts4*)
17141   version_type=linux
17142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143   soname_spec='${libname}${release}${shared_ext}$major'
17144   shlibpath_var=LD_LIBRARY_PATH
17145   ;;
17146
17147 *)
17148   dynamic_linker=no
17149   ;;
17150 esac
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17152 $as_echo "$dynamic_linker" >&6; }
17153 test "$dynamic_linker" = no && can_build_shared=no
17154
17155 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17156 if test "$GCC" = yes; then
17157   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17158 fi
17159
17160 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17161   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17162 fi
17163 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17164   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17165 fi
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17203 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17204 hardcode_action_CXX=
17205 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17206    test -n "$runpath_var_CXX" ||
17207    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17208
17209   # We can hardcode non-existent directories.
17210   if test "$hardcode_direct_CXX" != no &&
17211      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17212      # have to relink, otherwise we might link with an installed library
17213      # when we should be linking with a yet-to-be-installed one
17214      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17215      test "$hardcode_minus_L_CXX" != no; then
17216     # Linking always hardcodes the temporary library directory.
17217     hardcode_action_CXX=relink
17218   else
17219     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17220     hardcode_action_CXX=immediate
17221   fi
17222 else
17223   # We cannot hardcode anything, or else we can only hardcode existing
17224   # directories.
17225   hardcode_action_CXX=unsupported
17226 fi
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17228 $as_echo "$hardcode_action_CXX" >&6; }
17229
17230 if test "$hardcode_action_CXX" = relink ||
17231    test "$inherit_rpath_CXX" = yes; then
17232   # Fast installation is not supported
17233   enable_fast_install=no
17234 elif test "$shlibpath_overrides_runpath" = yes ||
17235      test "$enable_shared" = no; then
17236   # Fast installation is not necessary
17237   enable_fast_install=needless
17238 fi
17239
17240
17241
17242
17243
17244
17245
17246   fi # test -n "$compiler"
17247
17248   CC=$lt_save_CC
17249   LDCXX=$LD
17250   LD=$lt_save_LD
17251   GCC=$lt_save_GCC
17252   with_gnu_ld=$lt_save_with_gnu_ld
17253   lt_cv_path_LDCXX=$lt_cv_path_LD
17254   lt_cv_path_LD=$lt_save_path_LD
17255   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17256   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17257 fi # test "$_lt_caught_CXX_error" != yes
17258
17259 ac_ext=c
17260 ac_cpp='$CPP $CPPFLAGS'
17261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17264
17265
17266
17267
17268 if test "$GCC" = "yes" ; then
17269 #    AC_HAVE_GCC_VERSION(4,0,0,0,
17270 #        [
17271 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
17272 #            [Define to enable class visibility control in gcc.])
17273 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17274 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17275 #        ])
17276     CFLAGS="-Wall $GCC_CFLAGS"
17277     CXXFLAGS="-Wall $GCC_CXXFLAGS"
17278 else
17279 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
17280         case "${host_cpu}-${host_os}" in
17281                 *solaris*)
17282                         if test "$CXX" = "CC" ; then
17283                                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
17284                         fi
17285                 ;;
17286         esac
17287 fi
17288
17289 # Checks for typedefs, structures, and compiler characteristics.
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17291 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17292 if test "${ac_cv_c_const+set}" = set; then :
17293   $as_echo_n "(cached) " >&6
17294 else
17295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h.  */
17297
17298 int
17299 main ()
17300 {
17301 /* FIXME: Include the comments suggested by Paul. */
17302 #ifndef __cplusplus
17303   /* Ultrix mips cc rejects this.  */
17304   typedef int charset[2];
17305   const charset cs;
17306   /* SunOS 4.1.1 cc rejects this.  */
17307   char const *const *pcpcc;
17308   char **ppc;
17309   /* NEC SVR4.0.2 mips cc rejects this.  */
17310   struct point {int x, y;};
17311   static struct point const zero = {0,0};
17312   /* AIX XL C 1.02.0.0 rejects this.
17313      It does not let you subtract one const X* pointer from another in
17314      an arm of an if-expression whose if-part is not a constant
17315      expression */
17316   const char *g = "string";
17317   pcpcc = &g + (g ? g-g : 0);
17318   /* HPUX 7.0 cc rejects these. */
17319   ++pcpcc;
17320   ppc = (char**) pcpcc;
17321   pcpcc = (char const *const *) ppc;
17322   { /* SCO 3.2v4 cc rejects this.  */
17323     char *t;
17324     char const *s = 0 ? (char *) 0 : (char const *) 0;
17325
17326     *t++ = 0;
17327     if (s) return 0;
17328   }
17329   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17330     int x[] = {25, 17};
17331     const int *foo = &x[0];
17332     ++foo;
17333   }
17334   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17335     typedef const int *iptr;
17336     iptr p = 0;
17337     ++p;
17338   }
17339   { /* AIX XL C 1.02.0.0 rejects this saying
17340        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17341     struct s { int j; const int *ap[3]; };
17342     struct s *b; b->j = 5;
17343   }
17344   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17345     const int foo = 10;
17346     if (!foo) return 0;
17347   }
17348   return !cs[0] && !zero.x;
17349 #endif
17350
17351   ;
17352   return 0;
17353 }
17354 _ACEOF
17355 if ac_fn_c_try_compile "$LINENO"; then :
17356   ac_cv_c_const=yes
17357 else
17358   ac_cv_c_const=no
17359 fi
17360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17361 fi
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17363 $as_echo "$ac_cv_c_const" >&6; }
17364 if test $ac_cv_c_const = no; then
17365
17366 $as_echo "#define const /**/" >>confdefs.h
17367
17368 fi
17369
17370 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17371 if test "x$ac_cv_type_size_t" = x""yes; then :
17372
17373 else
17374
17375 cat >>confdefs.h <<_ACEOF
17376 #define size_t unsigned int
17377 _ACEOF
17378
17379 fi
17380
17381 # The cast to long int works around a bug in the HP C Compiler
17382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17384 # This bug is HP SR number 8606223364.
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17386 $as_echo_n "checking size of long... " >&6; }
17387 if test "${ac_cv_sizeof_long+set}" = set; then :
17388   $as_echo_n "(cached) " >&6
17389 else
17390   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
17391
17392 else
17393   if test "$ac_cv_type_long" = yes; then
17394      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17396 as_fn_error 77 "cannot compute sizeof (long)
17397 See \`config.log' for more details" "$LINENO" 5 ; }
17398    else
17399      ac_cv_sizeof_long=0
17400    fi
17401 fi
17402
17403 fi
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17405 $as_echo "$ac_cv_sizeof_long" >&6; }
17406
17407
17408
17409 cat >>confdefs.h <<_ACEOF
17410 #define SIZEOF_LONG $ac_cv_sizeof_long
17411 _ACEOF
17412
17413
17414
17415 # Checks for library functions.
17416 for ac_func in strchr strdup strstr timegm strcasecmp
17417 do :
17418   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17419 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17420 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17421   cat >>confdefs.h <<_ACEOF
17422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17423 _ACEOF
17424
17425 fi
17426 done
17427
17428 for ac_header in dlfcn.h
17429 do :
17430   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
17431 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
17432   cat >>confdefs.h <<_ACEOF
17433 #define HAVE_DLFCN_H 1
17434 _ACEOF
17435
17436 fi
17437
17438 done
17439
17440 ac_fn_c_check_func "$LINENO" "dlclose" "ac_cv_func_dlclose"
17441 if test "x$ac_cv_func_dlclose" = x""yes; then :
17442
17443 else
17444    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17445 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17446 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17447   $as_echo_n "(cached) " >&6
17448 else
17449   ac_check_lib_save_LIBS=$LIBS
17450 LIBS="-ldl  $LIBS"
17451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17452 /* end confdefs.h.  */
17453
17454 /* Override any GCC internal prototype to avoid an error.
17455    Use char because int might match the return type of a GCC
17456    builtin and then its argument prototype would still apply.  */
17457 #ifdef __cplusplus
17458 extern "C"
17459 #endif
17460 char dlopen ();
17461 int
17462 main ()
17463 {
17464 return dlopen ();
17465   ;
17466   return 0;
17467 }
17468 _ACEOF
17469 if ac_fn_c_try_link "$LINENO"; then :
17470   ac_cv_lib_dl_dlopen=yes
17471 else
17472   ac_cv_lib_dl_dlopen=no
17473 fi
17474 rm -f core conftest.err conftest.$ac_objext \
17475     conftest$ac_exeext conftest.$ac_ext
17476 LIBS=$ac_check_lib_save_LIBS
17477 fi
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17479 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17480 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17481   cat >>confdefs.h <<_ACEOF
17482 #define HAVE_LIBDL 1
17483 _ACEOF
17484
17485   LIBS="-ldl $LIBS"
17486
17487 fi
17488
17489 fi
17490
17491
17492 # checks for pthreads
17493
17494
17495 ac_ext=c
17496 ac_cpp='$CPP $CPPFLAGS'
17497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17500
17501 acx_pthread_ok=no
17502
17503 # We used to check for pthread.h first, but this fails if pthread.h
17504 # requires special compiler flags (e.g. on True64 or Sequent).
17505 # It gets checked for in the link test anyway.
17506
17507 # First of all, check if the user has set any of the PTHREAD_LIBS,
17508 # etcetera environment variables, and if threads linking works using
17509 # them:
17510 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17511         save_CFLAGS="$CFLAGS"
17512         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17513         save_LIBS="$LIBS"
17514         LIBS="$PTHREAD_LIBS $LIBS"
17515         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17516 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17517         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518 /* end confdefs.h.  */
17519
17520 /* Override any GCC internal prototype to avoid an error.
17521    Use char because int might match the return type of a GCC
17522    builtin and then its argument prototype would still apply.  */
17523 #ifdef __cplusplus
17524 extern "C"
17525 #endif
17526 char pthread_join ();
17527 int
17528 main ()
17529 {
17530 return pthread_join ();
17531   ;
17532   return 0;
17533 }
17534 _ACEOF
17535 if ac_fn_c_try_link "$LINENO"; then :
17536   acx_pthread_ok=yes
17537 fi
17538 rm -f core conftest.err conftest.$ac_objext \
17539     conftest$ac_exeext conftest.$ac_ext
17540         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17541 $as_echo "$acx_pthread_ok" >&6; }
17542         if test x"$acx_pthread_ok" = xno; then
17543                 PTHREAD_LIBS=""
17544                 PTHREAD_CFLAGS=""
17545         fi
17546         LIBS="$save_LIBS"
17547         CFLAGS="$save_CFLAGS"
17548 fi
17549
17550 # We must check for the threads library under a number of different
17551 # names; the ordering is very important because some systems
17552 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17553 # libraries is broken (non-POSIX).
17554
17555 # Create a list of thread flags to try.  Items starting with a "-" are
17556 # C compiler flags, and other items are library names, except for "none"
17557 # which indicates that we try without any flags at all, and "pthread-config"
17558 # which is a program returning the flags for the Pth emulation library.
17559
17560 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17561
17562 # The ordering *is* (sometimes) important.  Some notes on the
17563 # individual items follow:
17564
17565 # pthreads: AIX (must check this before -lpthread)
17566 # none: in case threads are in libc; should be tried before -Kthread and
17567 #       other compiler flags to prevent continual compiler warnings
17568 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17569 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17570 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17571 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17572 # -pthreads: Solaris/gcc
17573 # -mthreads: Mingw32/gcc, Lynx/gcc
17574 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17575 #      doesn't hurt to check since this sometimes defines pthreads too;
17576 #      also defines -D_REENTRANT)
17577 #      ... -mt is also the pthreads flag for HP/aCC
17578 # pthread: Linux, etcetera
17579 # --thread-safe: KAI C++
17580 # pthread-config: use pthread-config program (for GNU Pth library)
17581
17582 case "${host_cpu}-${host_os}" in
17583         *solaris*)
17584
17585         # On Solaris (at least, for some versions), libc contains stubbed
17586         # (non-functional) versions of the pthreads routines, so link-based
17587         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
17588         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17589         # a function called by this macro, so we could check for that, but
17590         # who knows whether they'll stub that too in a future libc.)  So,
17591         # we'll just look for -pthreads and -lpthread first:
17592
17593         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17594         ;;
17595 esac
17596
17597 if test x"$acx_pthread_ok" = xno; then
17598 for flag in $acx_pthread_flags; do
17599
17600         case $flag in
17601                 none)
17602                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17603 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17604                 ;;
17605
17606                 -*)
17607                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17608 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17609                 PTHREAD_CFLAGS="$flag"
17610                 ;;
17611
17612                 pthread-config)
17613                 # Extract the first word of "pthread-config", so it can be a program name with args.
17614 set dummy pthread-config; ac_word=$2
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17616 $as_echo_n "checking for $ac_word... " >&6; }
17617 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
17618   $as_echo_n "(cached) " >&6
17619 else
17620   if test -n "$acx_pthread_config"; then
17621   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17622 else
17623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17624 for as_dir in $PATH
17625 do
17626   IFS=$as_save_IFS
17627   test -z "$as_dir" && as_dir=.
17628     for ac_exec_ext in '' $ac_executable_extensions; do
17629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17630     ac_cv_prog_acx_pthread_config="yes"
17631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17632     break 2
17633   fi
17634 done
17635   done
17636 IFS=$as_save_IFS
17637
17638   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17639 fi
17640 fi
17641 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17642 if test -n "$acx_pthread_config"; then
17643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17644 $as_echo "$acx_pthread_config" >&6; }
17645 else
17646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17647 $as_echo "no" >&6; }
17648 fi
17649
17650
17651                 if test x"$acx_pthread_config" = xno; then continue; fi
17652                 PTHREAD_CFLAGS="`pthread-config --cflags`"
17653                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17654                 ;;
17655
17656                 *)
17657                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17658 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17659                 PTHREAD_LIBS="-l$flag"
17660                 ;;
17661         esac
17662
17663         save_LIBS="$LIBS"
17664         save_CFLAGS="$CFLAGS"
17665         LIBS="$PTHREAD_LIBS $LIBS"
17666         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17667
17668         # Check for various functions.  We must include pthread.h,
17669         # since some functions may be macros.  (On the Sequent, we
17670         # need a special flag -Kthread to make this header compile.)
17671         # We check for pthread_join because it is in -lpthread on IRIX
17672         # while pthread_create is in libc.  We check for pthread_attr_init
17673         # due to DEC craziness with -lpthreads.  We check for
17674         # pthread_cleanup_push because it is one of the few pthread
17675         # functions on Solaris that doesn't have a non-functional libc stub.
17676         # We try pthread_create on general principles.
17677         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h.  */
17679 #include <pthread.h>
17680 int
17681 main ()
17682 {
17683 pthread_t th; pthread_join(th, 0);
17684                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
17685                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17686   ;
17687   return 0;
17688 }
17689 _ACEOF
17690 if ac_fn_c_try_link "$LINENO"; then :
17691   acx_pthread_ok=yes
17692 fi
17693 rm -f core conftest.err conftest.$ac_objext \
17694     conftest$ac_exeext conftest.$ac_ext
17695
17696         LIBS="$save_LIBS"
17697         CFLAGS="$save_CFLAGS"
17698
17699         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17700 $as_echo "$acx_pthread_ok" >&6; }
17701         if test "x$acx_pthread_ok" = xyes; then
17702                 break;
17703         fi
17704
17705         PTHREAD_LIBS=""
17706         PTHREAD_CFLAGS=""
17707 done
17708 fi
17709
17710 # Various other checks:
17711 if test "x$acx_pthread_ok" = xyes; then
17712         save_LIBS="$LIBS"
17713         LIBS="$PTHREAD_LIBS $LIBS"
17714         save_CFLAGS="$CFLAGS"
17715         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17716
17717         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17718         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17719 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17720         attr_name=unknown
17721         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17722             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h.  */
17724 #include <pthread.h>
17725 int
17726 main ()
17727 {
17728 int attr=$attr; return attr;
17729   ;
17730   return 0;
17731 }
17732 _ACEOF
17733 if ac_fn_c_try_link "$LINENO"; then :
17734   attr_name=$attr; break
17735 fi
17736 rm -f core conftest.err conftest.$ac_objext \
17737     conftest$ac_exeext conftest.$ac_ext
17738         done
17739         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17740 $as_echo "$attr_name" >&6; }
17741         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17742
17743 cat >>confdefs.h <<_ACEOF
17744 #define PTHREAD_CREATE_JOINABLE $attr_name
17745 _ACEOF
17746
17747         fi
17748
17749         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17750 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17751         flag=no
17752         case "${host_cpu}-${host_os}" in
17753                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
17754                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
17755                 *solaris*)
17756                 if test "$GCC" = "yes"; then
17757                     flag="-D_REENTRANT"
17758                 else
17759                     flag="-mt -D_REENTRANT"
17760                 fi
17761                 ;;
17762         esac
17763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17764 $as_echo "${flag}" >&6; }
17765         if test "x$flag" != xno; then
17766             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17767         fi
17768
17769         LIBS="$save_LIBS"
17770         CFLAGS="$save_CFLAGS"
17771
17772         # More AIX lossage: must compile with xlc_r or cc_r
17773         if test x"$GCC" != xyes; then
17774           for ac_prog in xlc_r cc_r
17775 do
17776   # Extract the first word of "$ac_prog", so it can be a program name with args.
17777 set dummy $ac_prog; ac_word=$2
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17779 $as_echo_n "checking for $ac_word... " >&6; }
17780 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
17781   $as_echo_n "(cached) " >&6
17782 else
17783   if test -n "$PTHREAD_CC"; then
17784   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17785 else
17786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17787 for as_dir in $PATH
17788 do
17789   IFS=$as_save_IFS
17790   test -z "$as_dir" && as_dir=.
17791     for ac_exec_ext in '' $ac_executable_extensions; do
17792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17793     ac_cv_prog_PTHREAD_CC="$ac_prog"
17794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17795     break 2
17796   fi
17797 done
17798   done
17799 IFS=$as_save_IFS
17800
17801 fi
17802 fi
17803 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17804 if test -n "$PTHREAD_CC"; then
17805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17806 $as_echo "$PTHREAD_CC" >&6; }
17807 else
17808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17809 $as_echo "no" >&6; }
17810 fi
17811
17812
17813   test -n "$PTHREAD_CC" && break
17814 done
17815 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17816
17817         else
17818           PTHREAD_CC=$CC
17819         fi
17820 else
17821         PTHREAD_CC="$CC"
17822 fi
17823
17824
17825
17826
17827
17828 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17829 if test x"$acx_pthread_ok" = xyes; then
17830         enable_threads="pthread"
17831         :
17832 else
17833         acx_pthread_ok=no
17834         enable_threads="no"
17835 fi
17836 ac_ext=c
17837 ac_cpp='$CPP $CPPFLAGS'
17838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17841
17842
17843 if test $enable_threads != "pthread"; then
17844     as_fn_error $? "unable to find pthreads, currently this is required" "$LINENO" 5
17845 else
17846
17847 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17848
17849          if test "$enable_threads" = "pthread"; then
17850   BUILD_PTHREAD_TRUE=
17851   BUILD_PTHREAD_FALSE='#'
17852 else
17853   BUILD_PTHREAD_TRUE='#'
17854   BUILD_PTHREAD_FALSE=
17855 fi
17856
17857     LIBS="$PTHREAD_LIBS $LIBS"
17858     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
17859     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
17860 fi
17861
17862 for ac_func in pthread_rwlock_init
17863 do :
17864   ac_fn_c_check_func "$LINENO" "pthread_rwlock_init" "ac_cv_func_pthread_rwlock_init"
17865 if test "x$ac_cv_func_pthread_rwlock_init" = x""yes; then :
17866   cat >>confdefs.h <<_ACEOF
17867 #define HAVE_PTHREAD_RWLOCK_INIT 1
17868 _ACEOF
17869
17870 fi
17871 done
17872
17873
17874 ac_ext=cpp
17875 ac_cpp='$CXXCPP $CPPFLAGS'
17876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17879
17880
17881 # C++ requirements
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
17883 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
17884 if test "${ac_cv_cxx_namespaces+set}" = set; then :
17885   $as_echo_n "(cached) " >&6
17886 else
17887
17888  ac_ext=cpp
17889 ac_cpp='$CXXCPP $CPPFLAGS'
17890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17893
17894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17895 /* end confdefs.h.  */
17896 namespace Outer { namespace Inner { int i = 0; }}
17897 int
17898 main ()
17899 {
17900 using namespace Outer::Inner; return i;
17901   ;
17902   return 0;
17903 }
17904 _ACEOF
17905 if ac_fn_cxx_try_compile "$LINENO"; then :
17906   ac_cv_cxx_namespaces=yes
17907 else
17908   ac_cv_cxx_namespaces=no
17909 fi
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911  ac_ext=cpp
17912 ac_cpp='$CXXCPP $CPPFLAGS'
17913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17916
17917
17918 fi
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
17920 $as_echo "$ac_cv_cxx_namespaces" >&6; }
17921 if test "$ac_cv_cxx_namespaces" = yes; then
17922
17923 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
17924
17925 fi
17926
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5
17928 $as_echo_n "checking whether the compiler supports Standard Template Library... " >&6; }
17929 if test "${ac_cv_cxx_have_stl+set}" = set; then :
17930   $as_echo_n "(cached) " >&6
17931 else
17932
17933  ac_ext=cpp
17934 ac_cpp='$CXXCPP $CPPFLAGS'
17935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17938
17939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h.  */
17941 #include <list>
17942 #include <deque>
17943 #ifdef HAVE_NAMESPACES
17944 using namespace std;
17945 #endif
17946 int
17947 main ()
17948 {
17949 list<int> x; x.push_back(5);
17950 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
17951   ;
17952   return 0;
17953 }
17954 _ACEOF
17955 if ac_fn_cxx_try_compile "$LINENO"; then :
17956   ac_cv_cxx_have_stl=yes
17957 else
17958   ac_cv_cxx_have_stl=no
17959 fi
17960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17961  ac_ext=cpp
17962 ac_cpp='$CXXCPP $CPPFLAGS'
17963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17966
17967
17968 fi
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5
17970 $as_echo "$ac_cv_cxx_have_stl" >&6; }
17971 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
17972   as_fn_error $? "C++ Standard Template Libary unsupported" "$LINENO" 5
17973 fi
17974
17975
17976 # are covariant methods allowed?
17977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978 /* end confdefs.h.  */
17979
17980 int
17981 main ()
17982 {
17983
17984         class base { public: virtual base *GetPtr( void ) { return this; } };
17985         class derived: virtual public base { public: virtual derived *GetPtr( void ) { return this; } };
17986
17987   ;
17988   return 0;
17989 }
17990 _ACEOF
17991 if ac_fn_cxx_try_link "$LINENO"; then :
17992
17993 $as_echo "#define HAVE_COVARIANT_RETURNS 1" >>confdefs.h
17994
17995 fi
17996 rm -f core conftest.err conftest.$ac_objext \
17997     conftest$ac_exeext conftest.$ac_ext
17998
17999 # is nullptr supported?
18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h.  */
18002
18003 int
18004 main ()
18005 {
18006 const char* ptr = nullptr;
18007   ;
18008   return 0;
18009 }
18010 _ACEOF
18011 if ac_fn_cxx_try_compile "$LINENO"; then :
18012
18013 $as_echo "#define HAVE_NULLPTR 1" >>confdefs.h
18014
18015 fi
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017
18018 # log4shib settings (favor this version over the log4cpp code)
18019 # Extract the first word of "log4shib-config", so it can be a program name with args.
18020 set dummy log4shib-config; ac_word=$2
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18022 $as_echo_n "checking for $ac_word... " >&6; }
18023 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then :
18024   $as_echo_n "(cached) " >&6
18025 else
18026   case $LOG4SHIB_CONFIG in
18027   [\\/]* | ?:[\\/]*)
18028   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
18029   ;;
18030   *)
18031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18032 for as_dir in $PATH
18033 do
18034   IFS=$as_save_IFS
18035   test -z "$as_dir" && as_dir=.
18036     for ac_exec_ext in '' $ac_executable_extensions; do
18037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18038     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18040     break 2
18041   fi
18042 done
18043   done
18044 IFS=$as_save_IFS
18045
18046   ;;
18047 esac
18048 fi
18049 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
18050 if test -n "$LOG4SHIB_CONFIG"; then
18051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4SHIB_CONFIG" >&5
18052 $as_echo "$LOG4SHIB_CONFIG" >&6; }
18053 else
18054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18055 $as_echo "no" >&6; }
18056 fi
18057
18058
18059
18060 # Check whether --with-log4shib was given.
18061 if test "${with_log4shib+set}" = set; then :
18062   withval=$with_log4shib;
18063     LOG4SHIB_CONFIG="${with_log4shib}"
18064     if ! test -f "${LOG4SHIB_CONFIG}" ; then
18065         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
18066     fi
18067
18068 fi
18069
18070 if test -f "${LOG4SHIB_CONFIG}" ; then
18071     LIBS="`${LOG4SHIB_CONFIG} --libs` $LIBS"
18072     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
18073
18074 ac_fn_cxx_check_header_mongrel "$LINENO" "log4shib/CategoryStream.hh" "ac_cv_header_log4shib_CategoryStream_hh" "$ac_includes_default"
18075 if test "x$ac_cv_header_log4shib_CategoryStream_hh" = x""yes; then :
18076
18077 else
18078   as_fn_error $? "unable to find log4shib header files" "$LINENO" 5
18079 fi
18080
18081
18082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h.  */
18084 #include <log4shib/Category.hh>
18085 #include <log4shib/CategoryStream.hh>
18086 int
18087 main ()
18088 {
18089 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
18090   ;
18091   return 0;
18092 }
18093 _ACEOF
18094 if ac_fn_cxx_try_link "$LINENO"; then :
18095
18096 $as_echo "#define XMLTOOLING_LOG4SHIB 1" >>confdefs.h
18097
18098 else
18099   as_fn_error $? "unable to link with log4shib" "$LINENO" 5
18100 fi
18101 rm -f core conftest.err conftest.$ac_objext \
18102     conftest$ac_exeext conftest.$ac_ext
18103 else
18104     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
18105 $as_echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
18106     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will look for original log4cpp library" >&5
18107 $as_echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
18108
18109     # log4cpp settings
18110     # Extract the first word of "log4cpp-config", so it can be a program name with args.
18111 set dummy log4cpp-config; ac_word=$2
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18113 $as_echo_n "checking for $ac_word... " >&6; }
18114 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then :
18115   $as_echo_n "(cached) " >&6
18116 else
18117   case $LOG4CPP_CONFIG in
18118   [\\/]* | ?:[\\/]*)
18119   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
18120   ;;
18121   *)
18122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18123 for as_dir in $PATH
18124 do
18125   IFS=$as_save_IFS
18126   test -z "$as_dir" && as_dir=.
18127     for ac_exec_ext in '' $ac_executable_extensions; do
18128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18129     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18131     break 2
18132   fi
18133 done
18134   done
18135 IFS=$as_save_IFS
18136
18137   ;;
18138 esac
18139 fi
18140 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
18141 if test -n "$LOG4CPP_CONFIG"; then
18142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4CPP_CONFIG" >&5
18143 $as_echo "$LOG4CPP_CONFIG" >&6; }
18144 else
18145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18146 $as_echo "no" >&6; }
18147 fi
18148
18149
18150
18151 # Check whether --with-log4cpp was given.
18152 if test "${with_log4cpp+set}" = set; then :
18153   withval=$with_log4cpp;
18154         LOG4CPP_CONFIG="${with_log4cpp}"
18155         if ! test -f "${LOG4CPP_CONFIG}" ; then
18156                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
18157         fi
18158
18159 fi
18160
18161     if test -f "${LOG4CPP_CONFIG}"; then
18162         { $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
18163 $as_echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
18164         LIBS="`${LOG4CPP_CONFIG} --libs` $LIBS"
18165         CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
18166         ac_fn_cxx_check_header_mongrel "$LINENO" "log4cpp/CategoryStream.hh" "ac_cv_header_log4cpp_CategoryStream_hh" "$ac_includes_default"
18167 if test "x$ac_cv_header_log4cpp_CategoryStream_hh" = x""yes; then :
18168
18169 else
18170   as_fn_error $? "unable to find log4cpp header files" "$LINENO" 5
18171 fi
18172
18173
18174         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h.  */
18176 #include <log4cpp/Category.hh>
18177 #include <log4cpp/CategoryStream.hh>
18178 int
18179 main ()
18180 {
18181 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
18182   ;
18183   return 0;
18184 }
18185 _ACEOF
18186 if ac_fn_cxx_try_link "$LINENO"; then :
18187
18188 $as_echo "#define XMLTOOLING_LOG4CPP 1" >>confdefs.h
18189
18190 else
18191   as_fn_error $? "unable to link with log4cpp, need version 1.0 or later" "$LINENO" 5
18192 fi
18193 rm -f core conftest.err conftest.$ac_objext \
18194     conftest$ac_exeext conftest.$ac_ext
18195         else
18196             as_fn_error $? "log4cpp-config not found, may need to use --with-log4cpp option" "$LINENO" 5
18197         fi
18198 fi
18199
18200 # Xerces settings
18201
18202 # Check whether --with-xerces was given.
18203 if test "${with_xerces+set}" = set; then :
18204   withval=$with_xerces; if test x_$with_xerces != x_/usr; then
18205         LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
18206         CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
18207     fi
18208 fi
18209
18210 LIBS="-lxerces-c $LIBS"
18211 ac_fn_cxx_check_header_mongrel "$LINENO" "xercesc/dom/DOM.hpp" "ac_cv_header_xercesc_dom_DOM_hpp" "$ac_includes_default"
18212 if test "x$ac_cv_header_xercesc_dom_DOM_hpp" = x""yes; then :
18213
18214 else
18215   as_fn_error $? "unable to find xerces header files" "$LINENO" 5
18216 fi
18217
18218
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Xerces version" >&5
18220 $as_echo_n "checking Xerces version... " >&6; }
18221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18222 /* end confdefs.h.  */
18223 #include <xercesc/util/XercesVersion.hpp>
18224 int
18225 main ()
18226 {
18227 #if  _XERCES_VERSION != 20600
18228 int i = 0;
18229 #else
18230 #error cannot use version 2.6.0
18231 #endif
18232   ;
18233   return 0;
18234 }
18235 _ACEOF
18236 if ac_fn_cxx_try_cpp "$LINENO"; then :
18237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
18238 $as_echo "OK" >&6; }
18239 else
18240   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18242 as_fn_error $? "Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
18243 See \`config.log' for more details" "$LINENO" 5 ; }
18244 fi
18245 rm -f conftest.err conftest.i conftest.$ac_ext
18246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h.  */
18248 #include <xercesc/util/PlatformUtils.hpp>
18249 int
18250 main ()
18251 {
18252 xercesc::XMLPlatformUtils::Initialize()
18253   ;
18254   return 0;
18255 }
18256 _ACEOF
18257 if ac_fn_cxx_try_link "$LINENO"; then :
18258
18259 else
18260   as_fn_error $? "unable to link with Xerces" "$LINENO" 5
18261 fi
18262 rm -f core conftest.err conftest.$ac_objext \
18263     conftest$ac_exeext conftest.$ac_ext
18264
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces is 64-bit clean" >&5
18266 $as_echo_n "checking whether Xerces is 64-bit clean... " >&6; }
18267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268 /* end confdefs.h.  */
18269 #include <xercesc/framework/MemBufInputSource.hpp>
18270 int
18271 main ()
18272 {
18273 using namespace XERCES_CPP_NAMESPACE; XMLFilePos testvar;
18274   ;
18275   return 0;
18276 }
18277 _ACEOF
18278 if ac_fn_cxx_try_compile "$LINENO"; then :
18279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18280 $as_echo "yes" >&6; }
18281 $as_echo "#define XMLTOOLING_XERCESC_64BITSAFE 1" >>confdefs.h
18282
18283 else
18284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18285 $as_echo "no" >&6; }
18286 fi
18287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18288
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces BinInputStream requires getContentType" >&5
18290 $as_echo_n "checking whether Xerces BinInputStream requires getContentType... " >&6; }
18291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18292 /* end confdefs.h.  */
18293 #include <xercesc/util/BinMemInputStream.hpp>
18294 int
18295 main ()
18296 {
18297 using namespace XERCES_CPP_NAMESPACE; XMLByte buf[1024]; BinMemInputStream in(buf,1024); in.getContentType();
18298   ;
18299   return 0;
18300 }
18301 _ACEOF
18302 if ac_fn_cxx_try_compile "$LINENO"; then :
18303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18304 $as_echo "yes" >&6; }
18305 $as_echo "#define XMLTOOLING_XERCESC_INPUTSTREAM_HAS_CONTENTTYPE 1" >>confdefs.h
18306
18307 else
18308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18309 $as_echo "no" >&6; }
18310 fi
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18312
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces DOMLS API is compliant" >&5
18314 $as_echo_n "checking whether Xerces DOMLS API is compliant... " >&6; }
18315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18316 /* end confdefs.h.  */
18317 #include <xercesc/dom/DOM.hpp>
18318 int
18319 main ()
18320 {
18321 using namespace XERCES_CPP_NAMESPACE;
18322         DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(NULL);
18323         DOMLSSerializer *ls = ((DOMImplementationLS*)impl)->createLSSerializer();
18324   ;
18325   return 0;
18326 }
18327 _ACEOF
18328 if ac_fn_cxx_try_compile "$LINENO"; then :
18329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18330 $as_echo "yes" >&6; }
18331 $as_echo "#define XMLTOOLING_XERCESC_COMPLIANT_DOMLS 1" >>confdefs.h
18332
18333 else
18334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18335 $as_echo "no" >&6; }
18336 fi
18337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18338
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces has setIdAttribute(XMLCh*, bool)" >&5
18340 $as_echo_n "checking whether Xerces has setIdAttribute(XMLCh*, bool)... " >&6; }
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h.  */
18343 #include <xercesc/dom/DOM.hpp>
18344 int
18345 main ()
18346 {
18347 using namespace XERCES_CPP_NAMESPACE; DOMElement * elt; elt->setIdAttribute(NULL, false);
18348   ;
18349   return 0;
18350 }
18351 _ACEOF
18352 if ac_fn_cxx_try_compile "$LINENO"; then :
18353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18354 $as_echo "yes" >&6; }
18355 $as_echo "#define XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE 1" >>confdefs.h
18356
18357 else
18358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18359 $as_echo "no" >&6; }
18360 fi
18361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18362
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
18364 $as_echo_n "checking whether Xerces XMLString::release(XMLByte**) exists... " >&6; }
18365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* end confdefs.h.  */
18367 #include <xercesc/util/XMLString.hpp>
18368 int
18369 main ()
18370 {
18371 using namespace XERCES_CPP_NAMESPACE; XMLByte* buf=NULL; XMLString::release(&buf);
18372   ;
18373   return 0;
18374 }
18375 _ACEOF
18376 if ac_fn_cxx_try_compile "$LINENO"; then :
18377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18378 $as_echo "yes" >&6; }
18379 $as_echo "#define XMLTOOLING_XERCESC_HAS_XMLBYTE_RELEASE 1" >>confdefs.h
18380
18381 else
18382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18383 $as_echo "no" >&6; }
18384 fi
18385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18386
18387 # XML-Security settings
18388
18389 # Check whether --with-xmlsec was given.
18390 if test "${with_xmlsec+set}" = set; then :
18391   withval=$with_xmlsec;
18392 else
18393   with_xmlsec=/usr
18394 fi
18395
18396
18397 if test x_$with_xmlsec != x_no; then
18398
18399     # OpenSSL settings (need to do this first in case it's in a different spot from xmlsec)
18400
18401 # Check whether --with-openssl was given.
18402 if test "${with_openssl+set}" = set; then :
18403   withval=$with_openssl; if test x_$with_openssl != x_/usr; then
18404             SSLFLAGS="-I${with_openssl}/include"
18405             SSLLIBS="-L${with_openssl}/lib -lcrypto -lssl"
18406         else
18407             SSLLIBS="-lcrypto -lssl"
18408         fi
18409 fi
18410
18411
18412     if test "x$SSLLIBS" = "x" ; then
18413         # Extract the first word of "pkg-config", so it can be a program name with args.
18414 set dummy pkg-config; ac_word=$2
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18416 $as_echo_n "checking for $ac_word... " >&6; }
18417 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18418   $as_echo_n "(cached) " >&6
18419 else
18420   case $PKG_CONFIG in
18421   [\\/]* | ?:[\\/]*)
18422   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18423   ;;
18424   *)
18425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18426 for as_dir in $PATH
18427 do
18428   IFS=$as_save_IFS
18429   test -z "$as_dir" && as_dir=.
18430     for ac_exec_ext in '' $ac_executable_extensions; do
18431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18432     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18434     break 2
18435   fi
18436 done
18437   done
18438 IFS=$as_save_IFS
18439
18440   ;;
18441 esac
18442 fi
18443 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18444 if test -n "$PKG_CONFIG"; then
18445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18446 $as_echo "$PKG_CONFIG" >&6; }
18447 else
18448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18449 $as_echo "no" >&6; }
18450 fi
18451
18452
18453         if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
18454             if pkg-config openssl ; then
18455                 SSLLIBS="`$PKG_CONFIG --libs openssl`"
18456                 SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
18457             else
18458                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
18459 $as_echo "$as_me: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
18460             fi
18461         fi
18462     fi
18463
18464     if test "x$SSLLIBS" = "x" ; then
18465         SSLLIBS="-lcrypto -lssl"
18466     fi
18467
18468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL cflags" >&5
18469 $as_echo_n "checking for OpenSSL cflags... " >&6; }
18470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLFLAGS" >&5
18471 $as_echo "$SSLFLAGS" >&6; }
18472     CPPFLAGS="$CPPFLAGS $SSLFLAGS"
18473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL libraries" >&5
18474 $as_echo_n "checking for OpenSSL libraries... " >&6; }
18475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLLIBS" >&5
18476 $as_echo "$SSLLIBS" >&6; }
18477     XMLSEC_LIBS="$XMLSEC_LIBS $SSLLIBS"
18478
18479     # save and append master libs
18480     save_LIBS="$LIBS"
18481     LIBS="$XMLSEC_LIBS $LIBS"
18482
18483     ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
18484 if test "x$ac_cv_header_openssl_pem_h" = x""yes; then :
18485
18486 else
18487   as_fn_error $? "unable to find openssl header files" "$LINENO" 5
18488 fi
18489
18490
18491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_CRYPTO_string" >&5
18492 $as_echo_n "checking for ERR_load_CRYPTO_string... " >&6; }
18493     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18494 /* end confdefs.h.  */
18495
18496 /* Override any GCC internal prototype to avoid an error.
18497    Use char because int might match the return type of a GCC
18498    builtin and then its argument prototype would still apply.  */
18499 #ifdef __cplusplus
18500 extern "C"
18501 #endif
18502 char ERR_load_CRYPTO_strings ();
18503 int
18504 main ()
18505 {
18506 return ERR_load_CRYPTO_strings ();
18507   ;
18508   return 0;
18509 }
18510 _ACEOF
18511 if ac_fn_cxx_try_link "$LINENO"; then :
18512
18513 else
18514   as_fn_error $? "unable to link with openssl libraries" "$LINENO" 5
18515 fi
18516 rm -f core conftest.err conftest.$ac_objext \
18517     conftest$ac_exeext conftest.$ac_ext
18518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18519 $as_echo "yes" >&6; }
18520
18521     ac_fn_cxx_check_decl "$LINENO" "EVP_sha512" "ac_cv_have_decl_EVP_sha512" "#include <openssl/evp.h>
18522 "
18523 if test "x$ac_cv_have_decl_EVP_sha512" = x""yes; then :
18524
18525 $as_echo "#define XMLTOOLING_OPENSSL_HAVE_SHA2 1" >>confdefs.h
18526
18527 fi
18528
18529     ac_fn_cxx_check_decl "$LINENO" "EVP_PKEY_set1_EC_KEY" "ac_cv_have_decl_EVP_PKEY_set1_EC_KEY" "#include <openssl/evp.h>
18530 "
18531 if test "x$ac_cv_have_decl_EVP_PKEY_set1_EC_KEY" = x""yes; then :
18532
18533 $as_echo "#define XMLTOOLING_OPENSSL_HAVE_EC 1" >>confdefs.h
18534
18535 fi
18536
18537
18538     # restore master libs
18539     LIBS="$save_LIBS"
18540
18541     if test x_$with_xmlsec != x_/usr; then
18542         CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
18543         LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
18544     fi
18545     XMLSEC_LIBS="$XMLSEC_LIBS -lxml-security-c"
18546
18547     # save and append master libs
18548     save_LIBS="$LIBS"
18549     LIBS="$XMLSEC_LIBS $LIBS"
18550
18551     ac_fn_cxx_check_header_mongrel "$LINENO" "xsec/utils/XSECPlatformUtils.hpp" "ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" "$ac_includes_default"
18552 if test "x$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" = x""yes; then :
18553
18554 else
18555   as_fn_error $? "unable to find XML-Security header files" "$LINENO" 5
18556 fi
18557
18558
18559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML-Security version" >&5
18560 $as_echo_n "checking XML-Security version... " >&6; }
18561     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h.  */
18563 #include <xsec/utils/XSECPlatformUtils.hpp>
18564 int
18565 main ()
18566 {
18567 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
18568 int i = 0;
18569 #else
18570 #error need version 1.4.0 or later
18571 #endif
18572   ;
18573   return 0;
18574 }
18575 _ACEOF
18576 if ac_fn_cxx_try_cpp "$LINENO"; then :
18577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
18578 $as_echo "OK" >&6; }
18579 else
18580   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18582 as_fn_error $? "XML-Security version 1.4.0 or greater is required.
18583 See \`config.log' for more details" "$LINENO" 5 ; }
18584 fi
18585 rm -f conftest.err conftest.i conftest.$ac_ext
18586
18587     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h.  */
18589 #include <xsec/utils/XSECPlatformUtils.hpp>
18590 int
18591 main ()
18592 {
18593 XSECPlatformUtils::Initialise()
18594   ;
18595   return 0;
18596 }
18597 _ACEOF
18598 if ac_fn_cxx_try_link "$LINENO"; then :
18599
18600 else
18601   as_fn_error $? "unable to link with XML-Security" "$LINENO" 5
18602 fi
18603 rm -f core conftest.err conftest.$ac_objext \
18604     conftest$ac_exeext conftest.$ac_ext
18605     ac_fn_cxx_check_type "$LINENO" "xsecsize_t" "ac_cv_type_xsecsize_t" "$ac_includes_default"
18606 if test "x$ac_cv_type_xsecsize_t" = x""yes; then :
18607
18608 $as_echo "#define HAVE_XSECSIZE_T 1" >>confdefs.h
18609
18610 fi
18611
18612
18613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C has multiple CRL support" >&5
18614 $as_echo_n "checking whether XML-Security-C has multiple CRL support... " >&6; }
18615     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18616 /* end confdefs.h.  */
18617 #include <xsec/dsig/DSIGKeyInfoList.hpp>
18618 int
18619 main ()
18620 {
18621 DSIGKeyInfoList* klist; klist->getX509CRLListSize();
18622   ;
18623   return 0;
18624 }
18625 _ACEOF
18626 if ac_fn_cxx_try_compile "$LINENO"; then :
18627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18628 $as_echo "yes" >&6; }
18629 $as_echo "#define XMLTOOLING_XMLSEC_MULTIPLECRL 1" >>confdefs.h
18630
18631 else
18632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18633 $as_echo "no" >&6; }
18634 fi
18635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18636
18637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C exposes the signature algorithm URI" >&5
18638 $as_echo_n "checking whether XML-Security-C exposes the signature algorithm URI... " >&6; }
18639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18640 /* end confdefs.h.  */
18641 #include <xsec/dsig/DSIGSignature.hpp>
18642 int
18643 main ()
18644 {
18645 DSIGSignature* sig; sig->getAlgorithmURI();
18646   ;
18647   return 0;
18648 }
18649 _ACEOF
18650 if ac_fn_cxx_try_compile "$LINENO"; then :
18651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18652 $as_echo "yes" >&6; }
18653 $as_echo "#define XMLTOOLING_XMLSEC_SIGALGORITHM 1" >>confdefs.h
18654
18655 else
18656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18657 $as_echo "no" >&6; }
18658 fi
18659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18660
18661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes ECC support" >&5
18662 $as_echo_n "checking whether XML-Security-C includes ECC support... " >&6; }
18663     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664 /* end confdefs.h.  */
18665 #include <xsec/dsig/DSIGKeyInfoValue.hpp>
18666 int
18667 main ()
18668 {
18669 DSIGKeyInfoValue* info; info->getECNamedCurve();
18670   ;
18671   return 0;
18672 }
18673 _ACEOF
18674 if ac_fn_cxx_try_compile "$LINENO"; then :
18675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18676 $as_echo "yes" >&6; }
18677 $as_echo "#define XMLTOOLING_XMLSEC_ECC 1" >>confdefs.h
18678
18679 else
18680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18681 $as_echo "no" >&6; }
18682 fi
18683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18684
18685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XML-Security-C includes debug logging support" >&5
18686 $as_echo_n "checking whether XML-Security-C includes debug logging support... " >&6; }
18687     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h.  */
18689 #include <xsec/utils/XSECPlatformUtils.hpp>
18690 int
18691 main ()
18692 {
18693 XSECPlatformUtils::SetReferenceLoggingSink(NULL)
18694   ;
18695   return 0;
18696 }
18697 _ACEOF
18698 if ac_fn_cxx_try_compile "$LINENO"; then :
18699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18700 $as_echo "yes" >&6; }
18701 $as_echo "#define XMLTOOLING_XMLSEC_DEBUGLOGGING 1" >>confdefs.h
18702
18703 else
18704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18705 $as_echo "no" >&6; }
18706 fi
18707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18708
18709     # restore master libs
18710     LIBS="$save_LIBS"
18711
18712     # libcurl settings
18713     # Extract the first word of "curl-config", so it can be a program name with args.
18714 set dummy curl-config; ac_word=$2
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18716 $as_echo_n "checking for $ac_word... " >&6; }
18717 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then :
18718   $as_echo_n "(cached) " >&6
18719 else
18720   case $CURL_CONFIG in
18721   [\\/]* | ?:[\\/]*)
18722   ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
18723   ;;
18724   *)
18725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18726 for as_dir in $PATH
18727 do
18728   IFS=$as_save_IFS
18729   test -z "$as_dir" && as_dir=.
18730     for ac_exec_ext in '' $ac_executable_extensions; do
18731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18732     ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18734     break 2
18735   fi
18736 done
18737   done
18738 IFS=$as_save_IFS
18739
18740   ;;
18741 esac
18742 fi
18743 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
18744 if test -n "$CURL_CONFIG"; then
18745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5
18746 $as_echo "$CURL_CONFIG" >&6; }
18747 else
18748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18749 $as_echo "no" >&6; }
18750 fi
18751
18752
18753
18754 # Check whether --with-curl was given.
18755 if test "${with_curl+set}" = set; then :
18756   withval=$with_curl;
18757         CURL_CONFIG="${with_curl}"
18758         if ! test -f "${CURL_CONFIG}" ; then
18759             CURL_CONFIG="${with_curl}/bin/curl-config"
18760         fi
18761
18762 fi
18763
18764     if test -f "${CURL_CONFIG}" ; then
18765         CPPFLAGS="`${CURL_CONFIG} --cflags` $CPPFLAGS"
18766         XMLSEC_LIBS="`${CURL_CONFIG} --libs` $XMLSEC_LIBS"
18767     else
18768         as_fn_error $? "curl-config not found, may need to use --with-curl option" "$LINENO" 5
18769     fi
18770
18771     # save and append master libs
18772     save_LIBS="$LIBS"
18773     LIBS="$XMLSEC_LIBS $LIBS"
18774
18775     ac_fn_cxx_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
18776 if test "x$ac_cv_header_curl_curl_h" = x""yes; then :
18777
18778 else
18779   as_fn_error $? "unable to find libcurl header files" "$LINENO" 5
18780 fi
18781
18782
18783     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
18784 $as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
18785 if test "${ac_cv_lib_curl_curl_global_init+set}" = set; then :
18786   $as_echo_n "(cached) " >&6
18787 else
18788   ac_check_lib_save_LIBS=$LIBS
18789 LIBS="-lcurl  $LIBS"
18790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18791 /* end confdefs.h.  */
18792
18793 /* Override any GCC internal prototype to avoid an error.
18794    Use char because int might match the return type of a GCC
18795    builtin and then its argument prototype would still apply.  */
18796 #ifdef __cplusplus
18797 extern "C"
18798 #endif
18799 char curl_global_init ();
18800 int
18801 main ()
18802 {
18803 return curl_global_init ();
18804   ;
18805   return 0;
18806 }
18807 _ACEOF
18808 if ac_fn_cxx_try_link "$LINENO"; then :
18809   ac_cv_lib_curl_curl_global_init=yes
18810 else
18811   ac_cv_lib_curl_curl_global_init=no
18812 fi
18813 rm -f core conftest.err conftest.$ac_objext \
18814     conftest$ac_exeext conftest.$ac_ext
18815 LIBS=$ac_check_lib_save_LIBS
18816 fi
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
18818 $as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
18819 if test "x$ac_cv_lib_curl_curl_global_init" = x""yes; then :
18820   cat >>confdefs.h <<_ACEOF
18821 #define HAVE_LIBCURL 1
18822 _ACEOF
18823
18824   LIBS="-lcurl $LIBS"
18825
18826 else
18827   as_fn_error $? "unable to link with libcurl" "$LINENO" 5
18828 fi
18829
18830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURLOPT_SSL_CTX_FUNCTION in curl.h" >&5
18831 $as_echo_n "checking for CURLOPT_SSL_CTX_FUNCTION in curl.h... " >&6; }
18832     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833 /* end confdefs.h.  */
18834 #include <curl/curl.h>
18835
18836 _ACEOF
18837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18838   $EGREP "CURLOPT_SSL_CTX_FUNCTION" >/dev/null 2>&1; then :
18839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18840 $as_echo "yes" >&6; }
18841 else
18842   as_fn_error $? "need libcurl that supports CURLOPT_SSL_CTX_FUNCTION" "$LINENO" 5
18843 fi
18844 rm -f conftest*
18845
18846     ac_fn_cxx_check_type "$LINENO" "curl_off_t" "ac_cv_type_curl_off_t" "$ac_includes_default"
18847 if test "x$ac_cv_type_curl_off_t" = x""yes; then :
18848
18849 $as_echo "#define HAVE_CURL_OFF_T 1" >>confdefs.h
18850
18851 fi
18852
18853
18854     # restore master libs
18855     LIBS="$save_LIBS"
18856
18857
18858 else
18859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlsec disabled, building without signature/encryption support" >&5
18860 $as_echo "$as_me: WARNING: xmlsec disabled, building without signature/encryption support" >&2;}
18861
18862 $as_echo "#define XMLTOOLING_NO_XMLSEC 1" >>confdefs.h
18863
18864 fi
18865  if test x_$with_xmlsec != x_no; then
18866   BUILD_XMLSEC_TRUE=
18867   BUILD_XMLSEC_FALSE='#'
18868 else
18869   BUILD_XMLSEC_TRUE='#'
18870   BUILD_XMLSEC_FALSE=
18871 fi
18872
18873
18874 # Does the STL in use help or screw us?
18875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876 /* end confdefs.h.  */
18877 #include <string>
18878 int
18879 main ()
18880 {
18881 std::basic_string<unsigned short> foo; foo=foo+(unsigned short)65
18882   ;
18883   return 0;
18884 }
18885 _ACEOF
18886 if ac_fn_cxx_try_link "$LINENO"; then :
18887
18888 $as_echo "#define HAVE_GOOD_STL 1" >>confdefs.h
18889
18890 fi
18891 rm -f core conftest.err conftest.$ac_objext \
18892     conftest$ac_exeext conftest.$ac_ext
18893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18894 /* end confdefs.h.  */
18895 #include <vector>
18896 int
18897 main ()
18898 {
18899 std::iterator_traits<std::vector<int>::iterator>::value_type foo=0
18900   ;
18901   return 0;
18902 }
18903 _ACEOF
18904 if ac_fn_cxx_try_link "$LINENO"; then :
18905
18906 $as_echo "#define HAVE_ITERATOR_TRAITS 1" >>confdefs.h
18907
18908 fi
18909 rm -f core conftest.err conftest.$ac_objext \
18910     conftest$ac_exeext conftest.$ac_ext
18911
18912 # Check for unit test support
18913 CXXTEST="/usr/bin/cxxtestgen.pl"
18914 CXXTESTFLAGS=""
18915
18916 # Check whether --with-cxxtest was given.
18917 if test "${with_cxxtest+set}" = set; then :
18918   withval=$with_cxxtest; if test x_$with_cxxtest != x_/usr; then
18919         CXXTEST="${with_cxxtest}/cxxtestgen.pl"
18920         CXXTESTFLAGS="-I${with_cxxtest}"
18921     fi
18922 fi
18923
18924 if ! test -f "${CXXTEST}"; then
18925     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cxxtestgen not found, won't build unit tests" >&5
18926 $as_echo "$as_me: WARNING: cxxtestgen not found, won't build unit tests" >&2;}
18927 fi
18928
18929
18930
18931  if test -f ${CXXTEST}; then
18932   BUILD_UNITTEST_TRUE=
18933   BUILD_UNITTEST_FALSE='#'
18934 else
18935   BUILD_UNITTEST_TRUE='#'
18936   BUILD_UNITTEST_FALSE=
18937 fi
18938
18939
18940
18941 # we need the expanded forms...
18942 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18944
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
18946 $as_echo_n "checking our pkgconfig libname... " >&6; }
18947 test ".$ax_create_pkgconfig_libname" != "." || \
18948 ax_create_pkgconfig_libname="${PACKAGE_NAME}"
18949 test ".$ax_create_pkgconfig_libname" != "." || \
18950 ax_create_pkgconfig_libname="$PACKAGE"
18951 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
18952 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
18954 $as_echo "$ax_create_pkgconfig_libname" >&6; }
18955
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
18957 $as_echo_n "checking our pkgconfig version... " >&6; }
18958 test ".$ax_create_pkgconfig_version" != "." || \
18959 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
18960 test ".$ax_create_pkgconfig_version" != "." || \
18961 ax_create_pkgconfig_version="$VERSION"
18962 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
18963 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
18965 $as_echo "$ax_create_pkgconfig_version" >&6; }
18966
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
18968 $as_echo_n "checking our pkgconfig_libdir... " >&6; }
18969 test ".$pkgconfig_libdir" = "." && \
18970 pkgconfig_libdir='${libdir}/pkgconfig'
18971 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
18972 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
18973 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
18975 $as_echo "$pkgconfig_libdir" >&6; }
18976 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
18978 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
18979
18980
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
18982 $as_echo_n "checking our pkgconfig_libfile... " >&6; }
18983 test ".$pkgconfig_libfile" != "." || \
18984 pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
18985 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
18986 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
18988 $as_echo "$pkgconfig_libfile" >&6; }
18989 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
18991 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
18992
18993
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
18995 $as_echo_n "checking our package / suffix... " >&6; }
18996 ax_create_pkgconfig_suffix="$program_suffix"
18997 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
18999 $as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
19000
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
19002 $as_echo_n "checking our pkgconfig description... " >&6; }
19003 ax_create_pkgconfig_description="OpenSAML XMLTooling-C library"
19004 test ".$ax_create_pkgconfig_description" != "." || \
19005 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
19006 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
19007 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
19009 $as_echo "$ax_create_pkgconfig_description" >&6; }
19010
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
19012 $as_echo_n "checking our pkgconfig requires... " >&6; }
19013 ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
19014 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
19015 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
19017 $as_echo "$ax_create_pkgconfig_requires" >&6; }
19018
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
19020 $as_echo_n "checking our pkgconfig ext libs... " >&6; }
19021 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
19022 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
19023 ax_create_pkgconfig_libs="$XMLSEC_LIBS -lxmltooling"
19024 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
19025 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
19027 $as_echo "$ax_create_pkgconfig_libs" >&6; }
19028
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
19030 $as_echo_n "checking our pkgconfig cppflags... " >&6; }
19031 ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS"
19032 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
19033 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
19035 $as_echo "$ax_create_pkgconfig_cppflags" >&6; }
19036
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
19038 $as_echo_n "checking our pkgconfig ldflags... " >&6; }
19039 ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS"
19040 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
19041 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
19043 $as_echo "$ax_create_pkgconfig_ldflags" >&6; }
19044
19045 test ".$ax_create_pkgconfig_generate" != "." || \
19046 ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
19047 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
19048 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
19049 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
19051 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
19052
19053 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
19054 ax_create_pkgconfig_src_libdir=`pwd`
19055 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
19056 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19057          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
19058          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
19059          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
19060 $as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
19061     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19062             s//\1/
19063             q
19064           }
19065           /^X\(\/\/\)[^/].*/{
19066             s//\1/
19067             q
19068           }
19069           /^X\(\/\/\)$/{
19070             s//\1/
19071             q
19072           }
19073           /^X\(\/\).*/{
19074             s//\1/
19075             q
19076           }
19077           s/.*/./; q'`
19078 test ! -d $ax_create_pkgconfig_src_libdir/src || \
19079 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
19080 case ".$objdir" in
19081 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
19083 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
19084 fi
19085
19086 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
19087 ax_create_pkgconfig_src_headers=`pwd`
19088 v="$ac_top_srcdir" ;
19089 test ".$v" != "." || v="$ax_spec_dir"
19090 test ".$v" != "." || v="$srcdir"
19091 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
19092 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
19093 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19094          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
19095          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
19096          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
19097 $as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
19098     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19099             s//\1/
19100             q
19101           }
19102           /^X\(\/\/\)[^/].*/{
19103             s//\1/
19104             q
19105           }
19106           /^X\(\/\/\)$/{
19107             s//\1/
19108             q
19109           }
19110           /^X\(\/\).*/{
19111             s//\1/
19112             q
19113           }
19114           s/.*/./; q'`
19115 test ! -d $ax_create_pkgconfig_src_headers/include || \
19116 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
19118 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
19119 fi
19120
19121
19122 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
19123
19124
19125 LIBTOOL="$LIBTOOL --silent"
19126
19127 # output packaging and makefiles
19128 cat >confcache <<\_ACEOF
19129 # This file is a shell script that caches the results of configure
19130 # tests run on this system so they can be shared between configure
19131 # scripts and configure runs, see configure's option --config-cache.
19132 # It is not useful on other systems.  If it contains results you don't
19133 # want to keep, you may remove or edit it.
19134 #
19135 # config.status only pays attention to the cache file if you give it
19136 # the --recheck option to rerun configure.
19137 #
19138 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19139 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19140 # following values.
19141
19142 _ACEOF
19143
19144 # The following way of writing the cache mishandles newlines in values,
19145 # but we know of no workaround that is simple, portable, and efficient.
19146 # So, we kill variables containing newlines.
19147 # Ultrix sh set writes to stderr and can't be redirected directly,
19148 # and sets the high bit in the cache file unless we assign to the vars.
19149 (
19150   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19151     eval ac_val=\$$ac_var
19152     case $ac_val in #(
19153     *${as_nl}*)
19154       case $ac_var in #(
19155       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19156 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19157       esac
19158       case $ac_var in #(
19159       _ | IFS | as_nl) ;; #(
19160       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19161       *) { eval $ac_var=; unset $ac_var;} ;;
19162       esac ;;
19163     esac
19164   done
19165
19166   (set) 2>&1 |
19167     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19168     *${as_nl}ac_space=\ *)
19169       # `set' does not quote correctly, so add quotes: double-quote
19170       # substitution turns \\\\ into \\, and sed turns \\ into \.
19171       sed -n \
19172         "s/'/'\\\\''/g;
19173           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19174       ;; #(
19175     *)
19176       # `set' quotes correctly as required by POSIX, so do not add quotes.
19177       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19178       ;;
19179     esac |
19180     sort
19181 ) |
19182   sed '
19183      /^ac_cv_env_/b end
19184      t clear
19185      :clear
19186      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19187      t end
19188      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19189      :end' >>confcache
19190 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19191   if test -w "$cache_file"; then
19192     test "x$cache_file" != "x/dev/null" &&
19193       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19194 $as_echo "$as_me: updating cache $cache_file" >&6;}
19195     cat confcache >$cache_file
19196   else
19197     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19198 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19199   fi
19200 fi
19201 rm -f confcache
19202
19203 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19204 # Let make expand exec_prefix.
19205 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19206
19207 DEFS=-DHAVE_CONFIG_H
19208
19209 ac_libobjs=
19210 ac_ltlibobjs=
19211 U=
19212 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19213   # 1. Remove the extension, and $U if already installed.
19214   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19215   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19216   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19217   #    will be set to the directory where LIBOBJS objects are built.
19218   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19219   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19220 done
19221 LIBOBJS=$ac_libobjs
19222
19223 LTLIBOBJS=$ac_ltlibobjs
19224
19225
19226  if test -n "$EXEEXT"; then
19227   am__EXEEXT_TRUE=
19228   am__EXEEXT_FALSE='#'
19229 else
19230   am__EXEEXT_TRUE='#'
19231   am__EXEEXT_FALSE=
19232 fi
19233
19234 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19235   as_fn_error $? "conditional \"AMDEP\" was never defined.
19236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19237 fi
19238 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19239   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19241 fi
19242 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19243   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19245 fi
19246 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19247   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19249 fi
19250 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19251   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19253 fi
19254 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19255   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19257 fi
19258 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19259   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19261 fi
19262 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19263   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19265 fi
19266 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19267   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19269 fi
19270 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19271   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19273 fi
19274 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19275   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19277 fi
19278 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19279   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19281 fi
19282 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19283   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19285 fi
19286 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19287   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19289 fi
19290 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19291   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19293 fi
19294 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19295   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19297 fi
19298 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19299   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19301 fi
19302 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19303   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19305 fi
19306 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19307   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19309 fi
19310 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19311   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19313 fi
19314 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19315   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19317 fi
19318 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19319   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19321 fi
19322 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19323   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19325 fi
19326 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19327   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19329 fi
19330 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19331   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19333 fi
19334 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19335   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19337 fi
19338 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19339   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19341 fi
19342 if test -z "${BUILD_PTHREAD_TRUE}" && test -z "${BUILD_PTHREAD_FALSE}"; then
19343   as_fn_error $? "conditional \"BUILD_PTHREAD\" was never defined.
19344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19345 fi
19346 if test -z "${BUILD_XMLSEC_TRUE}" && test -z "${BUILD_XMLSEC_FALSE}"; then
19347   as_fn_error $? "conditional \"BUILD_XMLSEC\" was never defined.
19348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19349 fi
19350 if test -z "${BUILD_UNITTEST_TRUE}" && test -z "${BUILD_UNITTEST_FALSE}"; then
19351   as_fn_error $? "conditional \"BUILD_UNITTEST\" was never defined.
19352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19353 fi
19354
19355 : ${CONFIG_STATUS=./config.status}
19356 ac_write_fail=0
19357 ac_clean_files_save=$ac_clean_files
19358 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19360 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19361 as_write_fail=0
19362 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19363 #! $SHELL
19364 # Generated by $as_me.
19365 # Run this file to recreate the current configuration.
19366 # Compiler output produced by configure, useful for debugging
19367 # configure, is in config.log if it exists.
19368
19369 debug=false
19370 ac_cs_recheck=false
19371 ac_cs_silent=false
19372
19373 SHELL=\${CONFIG_SHELL-$SHELL}
19374 export SHELL
19375 _ASEOF
19376 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19377 ## -------------------- ##
19378 ## M4sh Initialization. ##
19379 ## -------------------- ##
19380
19381 # Be more Bourne compatible
19382 DUALCASE=1; export DUALCASE # for MKS sh
19383 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19384   emulate sh
19385   NULLCMD=:
19386   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19387   # is contrary to our usage.  Disable this feature.
19388   alias -g '${1+"$@"}'='"$@"'
19389   setopt NO_GLOB_SUBST
19390 else
19391   case `(set -o) 2>/dev/null` in #(
19392   *posix*) :
19393     set -o posix ;; #(
19394   *) :
19395      ;;
19396 esac
19397 fi
19398
19399
19400 as_nl='
19401 '
19402 export as_nl
19403 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19404 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19405 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19406 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19407 # Prefer a ksh shell builtin over an external printf program on Solaris,
19408 # but without wasting forks for bash or zsh.
19409 if test -z "$BASH_VERSION$ZSH_VERSION" \
19410     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19411   as_echo='print -r --'
19412   as_echo_n='print -rn --'
19413 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19414   as_echo='printf %s\n'
19415   as_echo_n='printf %s'
19416 else
19417   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19418     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19419     as_echo_n='/usr/ucb/echo -n'
19420   else
19421     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19422     as_echo_n_body='eval
19423       arg=$1;
19424       case $arg in #(
19425       *"$as_nl"*)
19426         expr "X$arg" : "X\\(.*\\)$as_nl";
19427         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19428       esac;
19429       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19430     '
19431     export as_echo_n_body
19432     as_echo_n='sh -c $as_echo_n_body as_echo'
19433   fi
19434   export as_echo_body
19435   as_echo='sh -c $as_echo_body as_echo'
19436 fi
19437
19438 # The user is always right.
19439 if test "${PATH_SEPARATOR+set}" != set; then
19440   PATH_SEPARATOR=:
19441   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19442     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19443       PATH_SEPARATOR=';'
19444   }
19445 fi
19446
19447
19448 # IFS
19449 # We need space, tab and new line, in precisely that order.  Quoting is
19450 # there to prevent editors from complaining about space-tab.
19451 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19452 # splitting by setting IFS to empty value.)
19453 IFS=" ""        $as_nl"
19454
19455 # Find who we are.  Look in the path if we contain no directory separator.
19456 case $0 in #((
19457   *[\\/]* ) as_myself=$0 ;;
19458   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19459 for as_dir in $PATH
19460 do
19461   IFS=$as_save_IFS
19462   test -z "$as_dir" && as_dir=.
19463     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19464   done
19465 IFS=$as_save_IFS
19466
19467      ;;
19468 esac
19469 # We did not find ourselves, most probably we were run as `sh COMMAND'
19470 # in which case we are not to be found in the path.
19471 if test "x$as_myself" = x; then
19472   as_myself=$0
19473 fi
19474 if test ! -f "$as_myself"; then
19475   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19476   exit 1
19477 fi
19478
19479 # Unset variables that we do not need and which cause bugs (e.g. in
19480 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19481 # suppresses any "Segmentation fault" message there.  '((' could
19482 # trigger a bug in pdksh 5.2.14.
19483 for as_var in BASH_ENV ENV MAIL MAILPATH
19484 do eval test x\${$as_var+set} = xset \
19485   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19486 done
19487 PS1='$ '
19488 PS2='> '
19489 PS4='+ '
19490
19491 # NLS nuisances.
19492 LC_ALL=C
19493 export LC_ALL
19494 LANGUAGE=C
19495 export LANGUAGE
19496
19497 # CDPATH.
19498 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19499
19500
19501 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19502 # ----------------------------------------
19503 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19504 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19505 # script with STATUS, using 1 if that was 0.
19506 as_fn_error ()
19507 {
19508   as_status=$1; test $as_status -eq 0 && as_status=1
19509   if test "$4"; then
19510     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19511     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19512   fi
19513   $as_echo "$as_me: error: $2" >&2
19514   as_fn_exit $as_status
19515 } # as_fn_error
19516
19517
19518 # as_fn_set_status STATUS
19519 # -----------------------
19520 # Set $? to STATUS, without forking.
19521 as_fn_set_status ()
19522 {
19523   return $1
19524 } # as_fn_set_status
19525
19526 # as_fn_exit STATUS
19527 # -----------------
19528 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19529 as_fn_exit ()
19530 {
19531   set +e
19532   as_fn_set_status $1
19533   exit $1
19534 } # as_fn_exit
19535
19536 # as_fn_unset VAR
19537 # ---------------
19538 # Portably unset VAR.
19539 as_fn_unset ()
19540 {
19541   { eval $1=; unset $1;}
19542 }
19543 as_unset=as_fn_unset
19544 # as_fn_append VAR VALUE
19545 # ----------------------
19546 # Append the text in VALUE to the end of the definition contained in VAR. Take
19547 # advantage of any shell optimizations that allow amortized linear growth over
19548 # repeated appends, instead of the typical quadratic growth present in naive
19549 # implementations.
19550 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19551   eval 'as_fn_append ()
19552   {
19553     eval $1+=\$2
19554   }'
19555 else
19556   as_fn_append ()
19557   {
19558     eval $1=\$$1\$2
19559   }
19560 fi # as_fn_append
19561
19562 # as_fn_arith ARG...
19563 # ------------------
19564 # Perform arithmetic evaluation on the ARGs, and store the result in the
19565 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19566 # must be portable across $(()) and expr.
19567 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19568   eval 'as_fn_arith ()
19569   {
19570     as_val=$(( $* ))
19571   }'
19572 else
19573   as_fn_arith ()
19574   {
19575     as_val=`expr "$@" || test $? -eq 1`
19576   }
19577 fi # as_fn_arith
19578
19579
19580 if expr a : '\(a\)' >/dev/null 2>&1 &&
19581    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19582   as_expr=expr
19583 else
19584   as_expr=false
19585 fi
19586
19587 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19588   as_basename=basename
19589 else
19590   as_basename=false
19591 fi
19592
19593 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19594   as_dirname=dirname
19595 else
19596   as_dirname=false
19597 fi
19598
19599 as_me=`$as_basename -- "$0" ||
19600 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19601          X"$0" : 'X\(//\)$' \| \
19602          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19603 $as_echo X/"$0" |
19604     sed '/^.*\/\([^/][^/]*\)\/*$/{
19605             s//\1/
19606             q
19607           }
19608           /^X\/\(\/\/\)$/{
19609             s//\1/
19610             q
19611           }
19612           /^X\/\(\/\).*/{
19613             s//\1/
19614             q
19615           }
19616           s/.*/./; q'`
19617
19618 # Avoid depending upon Character Ranges.
19619 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19620 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19621 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19622 as_cr_digits='0123456789'
19623 as_cr_alnum=$as_cr_Letters$as_cr_digits
19624
19625 ECHO_C= ECHO_N= ECHO_T=
19626 case `echo -n x` in #(((((
19627 -n*)
19628   case `echo 'xy\c'` in
19629   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19630   xy)  ECHO_C='\c';;
19631   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19632        ECHO_T=' ';;
19633   esac;;
19634 *)
19635   ECHO_N='-n';;
19636 esac
19637
19638 rm -f conf$$ conf$$.exe conf$$.file
19639 if test -d conf$$.dir; then
19640   rm -f conf$$.dir/conf$$.file
19641 else
19642   rm -f conf$$.dir
19643   mkdir conf$$.dir 2>/dev/null
19644 fi
19645 if (echo >conf$$.file) 2>/dev/null; then
19646   if ln -s conf$$.file conf$$ 2>/dev/null; then
19647     as_ln_s='ln -s'
19648     # ... but there are two gotchas:
19649     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19650     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19651     # In both cases, we have to default to `cp -p'.
19652     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19653       as_ln_s='cp -p'
19654   elif ln conf$$.file conf$$ 2>/dev/null; then
19655     as_ln_s=ln
19656   else
19657     as_ln_s='cp -p'
19658   fi
19659 else
19660   as_ln_s='cp -p'
19661 fi
19662 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19663 rmdir conf$$.dir 2>/dev/null
19664
19665
19666 # as_fn_mkdir_p
19667 # -------------
19668 # Create "$as_dir" as a directory, including parents if necessary.
19669 as_fn_mkdir_p ()
19670 {
19671
19672   case $as_dir in #(
19673   -*) as_dir=./$as_dir;;
19674   esac
19675   test -d "$as_dir" || eval $as_mkdir_p || {
19676     as_dirs=
19677     while :; do
19678       case $as_dir in #(
19679       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19680       *) as_qdir=$as_dir;;
19681       esac
19682       as_dirs="'$as_qdir' $as_dirs"
19683       as_dir=`$as_dirname -- "$as_dir" ||
19684 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19685          X"$as_dir" : 'X\(//\)[^/]' \| \
19686          X"$as_dir" : 'X\(//\)$' \| \
19687          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19688 $as_echo X"$as_dir" |
19689     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19690             s//\1/
19691             q
19692           }
19693           /^X\(\/\/\)[^/].*/{
19694             s//\1/
19695             q
19696           }
19697           /^X\(\/\/\)$/{
19698             s//\1/
19699             q
19700           }
19701           /^X\(\/\).*/{
19702             s//\1/
19703             q
19704           }
19705           s/.*/./; q'`
19706       test -d "$as_dir" && break
19707     done
19708     test -z "$as_dirs" || eval "mkdir $as_dirs"
19709   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19710
19711
19712 } # as_fn_mkdir_p
19713 if mkdir -p . 2>/dev/null; then
19714   as_mkdir_p='mkdir -p "$as_dir"'
19715 else
19716   test -d ./-p && rmdir ./-p
19717   as_mkdir_p=false
19718 fi
19719
19720 if test -x / >/dev/null 2>&1; then
19721   as_test_x='test -x'
19722 else
19723   if ls -dL / >/dev/null 2>&1; then
19724     as_ls_L_option=L
19725   else
19726     as_ls_L_option=
19727   fi
19728   as_test_x='
19729     eval sh -c '\''
19730       if test -d "$1"; then
19731         test -d "$1/.";
19732       else
19733         case $1 in #(
19734         -*)set "./$1";;
19735         esac;
19736         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19737         ???[sx]*):;;*)false;;esac;fi
19738     '\'' sh
19739   '
19740 fi
19741 as_executable_p=$as_test_x
19742
19743 # Sed expression to map a string onto a valid CPP name.
19744 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19745
19746 # Sed expression to map a string onto a valid variable name.
19747 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19748
19749
19750 exec 6>&1
19751 ## ----------------------------------- ##
19752 ## Main body of $CONFIG_STATUS script. ##
19753 ## ----------------------------------- ##
19754 _ASEOF
19755 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19756
19757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19758 # Save the log message, to keep $0 and so on meaningful, and to
19759 # report actual input values of CONFIG_FILES etc. instead of their
19760 # values after options handling.
19761 ac_log="
19762 This file was extended by xmltooling $as_me 1.4, which was
19763 generated by GNU Autoconf 2.67.  Invocation command line was
19764
19765   CONFIG_FILES    = $CONFIG_FILES
19766   CONFIG_HEADERS  = $CONFIG_HEADERS
19767   CONFIG_LINKS    = $CONFIG_LINKS
19768   CONFIG_COMMANDS = $CONFIG_COMMANDS
19769   $ $0 $@
19770
19771 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19772 "
19773
19774 _ACEOF
19775
19776 case $ac_config_files in *"
19777 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19778 esac
19779
19780 case $ac_config_headers in *"
19781 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19782 esac
19783
19784
19785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19786 # Files that config.status was made for.
19787 config_files="$ac_config_files"
19788 config_headers="$ac_config_headers"
19789 config_commands="$ac_config_commands"
19790
19791 _ACEOF
19792
19793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19794 ac_cs_usage="\
19795 \`$as_me' instantiates files and other configuration actions
19796 from templates according to the current configuration.  Unless the files
19797 and actions are specified as TAGs, all are instantiated by default.
19798
19799 Usage: $0 [OPTION]... [TAG]...
19800
19801   -h, --help       print this help, then exit
19802   -V, --version    print version number and configuration settings, then exit
19803       --config     print configuration, then exit
19804   -q, --quiet, --silent
19805                    do not print progress messages
19806   -d, --debug      don't remove temporary files
19807       --recheck    update $as_me by reconfiguring in the same conditions
19808       --file=FILE[:TEMPLATE]
19809                    instantiate the configuration file FILE
19810       --header=FILE[:TEMPLATE]
19811                    instantiate the configuration header FILE
19812
19813 Configuration files:
19814 $config_files
19815
19816 Configuration headers:
19817 $config_headers
19818
19819 Configuration commands:
19820 $config_commands
19821
19822 Report bugs to <https://bugs.internet2.edu/>."
19823
19824 _ACEOF
19825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19826 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19827 ac_cs_version="\\
19828 xmltooling config.status 1.4
19829 configured by $0, generated by GNU Autoconf 2.67,
19830   with options \\"\$ac_cs_config\\"
19831
19832 Copyright (C) 2010 Free Software Foundation, Inc.
19833 This config.status script is free software; the Free Software Foundation
19834 gives unlimited permission to copy, distribute and modify it."
19835
19836 ac_pwd='$ac_pwd'
19837 srcdir='$srcdir'
19838 INSTALL='$INSTALL'
19839 MKDIR_P='$MKDIR_P'
19840 AWK='$AWK'
19841 test -n "\$AWK" || AWK=awk
19842 _ACEOF
19843
19844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19845 # The default lists apply if the user does not specify any file.
19846 ac_need_defaults=:
19847 while test $# != 0
19848 do
19849   case $1 in
19850   --*=?*)
19851     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19852     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19853     ac_shift=:
19854     ;;
19855   --*=)
19856     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19857     ac_optarg=
19858     ac_shift=:
19859     ;;
19860   *)
19861     ac_option=$1
19862     ac_optarg=$2
19863     ac_shift=shift
19864     ;;
19865   esac
19866
19867   case $ac_option in
19868   # Handling of the options.
19869   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19870     ac_cs_recheck=: ;;
19871   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19872     $as_echo "$ac_cs_version"; exit ;;
19873   --config | --confi | --conf | --con | --co | --c )
19874     $as_echo "$ac_cs_config"; exit ;;
19875   --debug | --debu | --deb | --de | --d | -d )
19876     debug=: ;;
19877   --file | --fil | --fi | --f )
19878     $ac_shift
19879     case $ac_optarg in
19880     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19881     '') as_fn_error $? "missing file argument" ;;
19882     esac
19883     as_fn_append CONFIG_FILES " '$ac_optarg'"
19884     ac_need_defaults=false;;
19885   --header | --heade | --head | --hea )
19886     $ac_shift
19887     case $ac_optarg in
19888     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19889     esac
19890     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19891     ac_need_defaults=false;;
19892   --he | --h)
19893     # Conflict between --help and --header
19894     as_fn_error $? "ambiguous option: \`$1'
19895 Try \`$0 --help' for more information.";;
19896   --help | --hel | -h )
19897     $as_echo "$ac_cs_usage"; exit ;;
19898   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19899   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19900     ac_cs_silent=: ;;
19901
19902   # This is an error.
19903   -*) as_fn_error $? "unrecognized option: \`$1'
19904 Try \`$0 --help' for more information." ;;
19905
19906   *) as_fn_append ac_config_targets " $1"
19907      ac_need_defaults=false ;;
19908
19909   esac
19910   shift
19911 done
19912
19913 ac_configure_extra_args=
19914
19915 if $ac_cs_silent; then
19916   exec 6>/dev/null
19917   ac_configure_extra_args="$ac_configure_extra_args --silent"
19918 fi
19919
19920 _ACEOF
19921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19922 if \$ac_cs_recheck; then
19923   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19924   shift
19925   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19926   CONFIG_SHELL='$SHELL'
19927   export CONFIG_SHELL
19928   exec "\$@"
19929 fi
19930
19931 _ACEOF
19932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19933 exec 5>>config.log
19934 {
19935   echo
19936   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19937 ## Running $as_me. ##
19938 _ASBOX
19939   $as_echo "$ac_log"
19940 } >&5
19941
19942 _ACEOF
19943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19944 #
19945 # INIT-COMMANDS
19946 #
19947 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19948
19949
19950 # The HP-UX ksh and POSIX shell print the target directory to stdout
19951 # if CDPATH is set.
19952 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19953
19954 sed_quote_subst='$sed_quote_subst'
19955 double_quote_subst='$double_quote_subst'
19956 delay_variable_subst='$delay_variable_subst'
19957 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19958 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19959 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19960 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19961 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19962 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19963 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19964 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19965 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19966 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19967 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19968 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19969 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19970 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19971 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19972 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19973 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19974 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19975 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19976 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19977 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19978 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19979 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19980 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19981 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19982 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19983 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19984 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19985 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19986 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19987 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19988 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19989 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19990 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19991 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19992 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19993 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19994 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19995 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19996 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19997 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19998 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19999 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20000 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20001 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20002 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20003 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20004 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20005 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20006 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20007 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20008 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20009 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20010 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20011 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20012 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20013 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20014 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20015 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20016 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20017 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20018 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20019 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20020 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20021 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20022 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20023 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20024 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20025 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20026 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20027 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20028 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20029 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20030 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20031 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20032 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20033 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20034 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20035 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20036 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20037 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20038 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20039 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20040 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20041 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20042 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20043 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20044 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20045 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20046 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20047 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20048 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20049 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20050 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20051 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20052 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20053 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20054 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20055 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20056 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20057 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20058 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20059 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20060 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20061 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20062 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20063 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20064 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20065 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20066 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20067 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20068 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20069 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20070 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20071 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20072 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20073 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20074 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20075 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20076 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20077 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20078 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20079 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20080 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20081 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20082 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20083 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20084 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20085 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20086 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20087 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20088 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20089 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20090 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20091 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20092 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20093 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20094 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20095 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20096 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20097 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20098 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20099 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20100 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20101 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20102 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20103 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20104 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20105 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20106 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20107 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20108 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20109 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20110 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20111 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20112 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20113 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20114 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20115 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20116 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20117 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20118 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20119 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20120 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20121 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20122 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20123 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20124 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20125 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20126 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20127 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20128
20129 LTCC='$LTCC'
20130 LTCFLAGS='$LTCFLAGS'
20131 compiler='$compiler_DEFAULT'
20132
20133 # Quote evaled strings.
20134 for var in SED \
20135 GREP \
20136 EGREP \
20137 FGREP \
20138 LD \
20139 NM \
20140 LN_S \
20141 lt_SP2NL \
20142 lt_NL2SP \
20143 reload_flag \
20144 OBJDUMP \
20145 deplibs_check_method \
20146 file_magic_cmd \
20147 AR \
20148 AR_FLAGS \
20149 STRIP \
20150 RANLIB \
20151 CC \
20152 CFLAGS \
20153 compiler \
20154 lt_cv_sys_global_symbol_pipe \
20155 lt_cv_sys_global_symbol_to_cdecl \
20156 lt_cv_sys_global_symbol_to_c_name_address \
20157 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20158 SHELL \
20159 ECHO \
20160 lt_prog_compiler_no_builtin_flag \
20161 lt_prog_compiler_wl \
20162 lt_prog_compiler_pic \
20163 lt_prog_compiler_static \
20164 lt_cv_prog_compiler_c_o \
20165 need_locks \
20166 DSYMUTIL \
20167 NMEDIT \
20168 LIPO \
20169 OTOOL \
20170 OTOOL64 \
20171 shrext_cmds \
20172 export_dynamic_flag_spec \
20173 whole_archive_flag_spec \
20174 compiler_needs_object \
20175 with_gnu_ld \
20176 allow_undefined_flag \
20177 no_undefined_flag \
20178 hardcode_libdir_flag_spec \
20179 hardcode_libdir_flag_spec_ld \
20180 hardcode_libdir_separator \
20181 fix_srcfile_path \
20182 exclude_expsyms \
20183 include_expsyms \
20184 file_list_spec \
20185 variables_saved_for_relink \
20186 libname_spec \
20187 library_names_spec \
20188 soname_spec \
20189 finish_eval \
20190 old_striplib \
20191 striplib \
20192 compiler_lib_search_dirs \
20193 predep_objects \
20194 postdep_objects \
20195 predeps \
20196 postdeps \
20197 compiler_lib_search_path \
20198 LD_CXX \
20199 compiler_CXX \
20200 lt_prog_compiler_no_builtin_flag_CXX \
20201 lt_prog_compiler_wl_CXX \
20202 lt_prog_compiler_pic_CXX \
20203 lt_prog_compiler_static_CXX \
20204 lt_cv_prog_compiler_c_o_CXX \
20205 export_dynamic_flag_spec_CXX \
20206 whole_archive_flag_spec_CXX \
20207 compiler_needs_object_CXX \
20208 with_gnu_ld_CXX \
20209 allow_undefined_flag_CXX \
20210 no_undefined_flag_CXX \
20211 hardcode_libdir_flag_spec_CXX \
20212 hardcode_libdir_flag_spec_ld_CXX \
20213 hardcode_libdir_separator_CXX \
20214 fix_srcfile_path_CXX \
20215 exclude_expsyms_CXX \
20216 include_expsyms_CXX \
20217 file_list_spec_CXX \
20218 compiler_lib_search_dirs_CXX \
20219 predep_objects_CXX \
20220 postdep_objects_CXX \
20221 predeps_CXX \
20222 postdeps_CXX \
20223 compiler_lib_search_path_CXX; do
20224     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20225     *[\\\\\\\`\\"\\\$]*)
20226       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20227       ;;
20228     *)
20229       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20230       ;;
20231     esac
20232 done
20233
20234 # Double-quote double-evaled strings.
20235 for var in reload_cmds \
20236 old_postinstall_cmds \
20237 old_postuninstall_cmds \
20238 old_archive_cmds \
20239 extract_expsyms_cmds \
20240 old_archive_from_new_cmds \
20241 old_archive_from_expsyms_cmds \
20242 archive_cmds \
20243 archive_expsym_cmds \
20244 module_cmds \
20245 module_expsym_cmds \
20246 export_symbols_cmds \
20247 prelink_cmds \
20248 postinstall_cmds \
20249 postuninstall_cmds \
20250 finish_cmds \
20251 sys_lib_search_path_spec \
20252 sys_lib_dlsearch_path_spec \
20253 old_archive_cmds_CXX \
20254 old_archive_from_new_cmds_CXX \
20255 old_archive_from_expsyms_cmds_CXX \
20256 archive_cmds_CXX \
20257 archive_expsym_cmds_CXX \
20258 module_cmds_CXX \
20259 module_expsym_cmds_CXX \
20260 export_symbols_cmds_CXX \
20261 prelink_cmds_CXX; do
20262     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20263     *[\\\\\\\`\\"\\\$]*)
20264       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20265       ;;
20266     *)
20267       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20268       ;;
20269     esac
20270 done
20271
20272 # Fix-up fallback echo if it was mangled by the above quoting rules.
20273 case \$lt_ECHO in
20274 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20275   ;;
20276 esac
20277
20278 ac_aux_dir='$ac_aux_dir'
20279 xsi_shell='$xsi_shell'
20280 lt_shell_append='$lt_shell_append'
20281
20282 # See if we are running on zsh, and set the options which allow our
20283 # commands through without removal of \ escapes INIT.
20284 if test -n "\${ZSH_VERSION+set}" ; then
20285    setopt NO_GLOB_SUBST
20286 fi
20287
20288
20289     PACKAGE='$PACKAGE'
20290     VERSION='$VERSION'
20291     TIMESTAMP='$TIMESTAMP'
20292     RM='$RM'
20293     ofile='$ofile'
20294
20295
20296
20297
20298
20299
20300 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
20301 pkgconfig_prefix='$prefix'
20302 pkgconfig_execprefix='$exec_prefix'
20303 pkgconfig_bindir='$bindir'
20304 pkgconfig_libdir='$libdir'
20305 pkgconfig_includedir='$includedir'
20306 pkgconfig_datarootdir='$datarootdir'
20307 pkgconfig_datadir='$datadir'
20308 pkgconfig_sysconfdir='$sysconfdir'
20309 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
20310 pkgconfig_package='$PACKAGE_NAME'
20311 pkgconfig_libname='$ax_create_pkgconfig_libname'
20312 pkgconfig_description='$ax_create_pkgconfig_description'
20313 pkgconfig_version='$ax_create_pkgconfig_version'
20314 pkgconfig_requires='$ax_create_pkgconfig_requires'
20315 pkgconfig_libs='$ax_create_pkgconfig_libs'
20316 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
20317 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
20318 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
20319 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
20320
20321
20322 _ACEOF
20323
20324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20325
20326 # Handling of arguments.
20327 for ac_config_target in $ac_config_targets
20328 do
20329   case $ac_config_target in
20330     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20331     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20332     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20333     "xmltooling/config_pub.h") CONFIG_HEADERS="$CONFIG_HEADERS xmltooling/config_pub.h" ;;
20334     "xmltooling.spec") CONFIG_FILES="$CONFIG_FILES xmltooling.spec" ;;
20335     "pkginfo") CONFIG_FILES="$CONFIG_FILES pkginfo" ;;
20336     "Portfile") CONFIG_FILES="$CONFIG_FILES Portfile" ;;
20337     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20338     "xmltooling/Makefile") CONFIG_FILES="$CONFIG_FILES xmltooling/Makefile" ;;
20339     "xmltoolingtest/Makefile") CONFIG_FILES="$CONFIG_FILES xmltoolingtest/Makefile" ;;
20340     "schemas/Makefile") CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
20341     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20342     "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
20343
20344   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
20345   esac
20346 done
20347
20348
20349 # If the user did not use the arguments to specify the items to instantiate,
20350 # then the envvar interface is used.  Set only those that are not.
20351 # We use the long form for the default assignment because of an extremely
20352 # bizarre bug on SunOS 4.1.3.
20353 if $ac_need_defaults; then
20354   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20355   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20356   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20357 fi
20358
20359 # Have a temporary directory for convenience.  Make it in the build tree
20360 # simply because there is no reason against having it here, and in addition,
20361 # creating and moving files from /tmp can sometimes cause problems.
20362 # Hook for its removal unless debugging.
20363 # Note that there is a small window in which the directory will not be cleaned:
20364 # after its creation but before its name has been assigned to `$tmp'.
20365 $debug ||
20366 {
20367   tmp=
20368   trap 'exit_status=$?
20369   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20370 ' 0
20371   trap 'as_fn_exit 1' 1 2 13 15
20372 }
20373 # Create a (secure) tmp directory for tmp files.
20374
20375 {
20376   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20377   test -n "$tmp" && test -d "$tmp"
20378 }  ||
20379 {
20380   tmp=./conf$$-$RANDOM
20381   (umask 077 && mkdir "$tmp")
20382 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20383
20384 # Set up the scripts for CONFIG_FILES section.
20385 # No need to generate them if there are no CONFIG_FILES.
20386 # This happens for instance with `./config.status config.h'.
20387 if test -n "$CONFIG_FILES"; then
20388
20389
20390 ac_cr=`echo X | tr X '\015'`
20391 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20392 # But we know of no other shell where ac_cr would be empty at this
20393 # point, so we can use a bashism as a fallback.
20394 if test "x$ac_cr" = x; then
20395   eval ac_cr=\$\'\\r\'
20396 fi
20397 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20398 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20399   ac_cs_awk_cr='\\r'
20400 else
20401   ac_cs_awk_cr=$ac_cr
20402 fi
20403
20404 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20405 _ACEOF
20406
20407
20408 {
20409   echo "cat >conf$$subs.awk <<_ACEOF" &&
20410   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20411   echo "_ACEOF"
20412 } >conf$$subs.sh ||
20413   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20414 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20415 ac_delim='%!_!# '
20416 for ac_last_try in false false false false false :; do
20417   . ./conf$$subs.sh ||
20418     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20419
20420   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20421   if test $ac_delim_n = $ac_delim_num; then
20422     break
20423   elif $ac_last_try; then
20424     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20425   else
20426     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20427   fi
20428 done
20429 rm -f conf$$subs.sh
20430
20431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20432 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20433 _ACEOF
20434 sed -n '
20435 h
20436 s/^/S["/; s/!.*/"]=/
20437 p
20438 g
20439 s/^[^!]*!//
20440 :repl
20441 t repl
20442 s/'"$ac_delim"'$//
20443 t delim
20444 :nl
20445 h
20446 s/\(.\{148\}\)..*/\1/
20447 t more1
20448 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20449 p
20450 n
20451 b repl
20452 :more1
20453 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20454 p
20455 g
20456 s/.\{148\}//
20457 t nl
20458 :delim
20459 h
20460 s/\(.\{148\}\)..*/\1/
20461 t more2
20462 s/["\\]/\\&/g; s/^/"/; s/$/"/
20463 p
20464 b
20465 :more2
20466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20467 p
20468 g
20469 s/.\{148\}//
20470 t delim
20471 ' <conf$$subs.awk | sed '
20472 /^[^""]/{
20473   N
20474   s/\n//
20475 }
20476 ' >>$CONFIG_STATUS || ac_write_fail=1
20477 rm -f conf$$subs.awk
20478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20479 _ACAWK
20480 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20481   for (key in S) S_is_set[key] = 1
20482   FS = "\a"
20483
20484 }
20485 {
20486   line = $ 0
20487   nfields = split(line, field, "@")
20488   substed = 0
20489   len = length(field[1])
20490   for (i = 2; i < nfields; i++) {
20491     key = field[i]
20492     keylen = length(key)
20493     if (S_is_set[key]) {
20494       value = S[key]
20495       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20496       len += length(value) + length(field[++i])
20497       substed = 1
20498     } else
20499       len += 1 + keylen
20500   }
20501
20502   print line
20503 }
20504
20505 _ACAWK
20506 _ACEOF
20507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20508 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20509   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20510 else
20511   cat
20512 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20513   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20514 _ACEOF
20515
20516 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20517 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20518 # trailing colons and then remove the whole line if VPATH becomes empty
20519 # (actually we leave an empty line to preserve line numbers).
20520 if test "x$srcdir" = x.; then
20521   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20522 h
20523 s///
20524 s/^/:/
20525 s/[      ]*$/:/
20526 s/:\$(srcdir):/:/g
20527 s/:\${srcdir}:/:/g
20528 s/:@srcdir@:/:/g
20529 s/^:*//
20530 s/:*$//
20531 x
20532 s/\(=[   ]*\).*/\1/
20533 G
20534 s/\n//
20535 s/^[^=]*=[       ]*$//
20536 }'
20537 fi
20538
20539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20540 fi # test -n "$CONFIG_FILES"
20541
20542 # Set up the scripts for CONFIG_HEADERS section.
20543 # No need to generate them if there are no CONFIG_HEADERS.
20544 # This happens for instance with `./config.status Makefile'.
20545 if test -n "$CONFIG_HEADERS"; then
20546 cat >"$tmp/defines.awk" <<\_ACAWK ||
20547 BEGIN {
20548 _ACEOF
20549
20550 # Transform confdefs.h into an awk script `defines.awk', embedded as
20551 # here-document in config.status, that substitutes the proper values into
20552 # config.h.in to produce config.h.
20553
20554 # Create a delimiter string that does not exist in confdefs.h, to ease
20555 # handling of long lines.
20556 ac_delim='%!_!# '
20557 for ac_last_try in false false :; do
20558   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20559   if test -z "$ac_t"; then
20560     break
20561   elif $ac_last_try; then
20562     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20563   else
20564     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20565   fi
20566 done
20567
20568 # For the awk script, D is an array of macro values keyed by name,
20569 # likewise P contains macro parameters if any.  Preserve backslash
20570 # newline sequences.
20571
20572 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20573 sed -n '
20574 s/.\{148\}/&'"$ac_delim"'/g
20575 t rset
20576 :rset
20577 s/^[     ]*#[    ]*define[       ][      ]*/ /
20578 t def
20579 d
20580 :def
20581 s/\\$//
20582 t bsnl
20583 s/["\\]/\\&/g
20584 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20585 D["\1"]=" \3"/p
20586 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20587 d
20588 :bsnl
20589 s/["\\]/\\&/g
20590 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20591 D["\1"]=" \3\\\\\\n"\\/p
20592 t cont
20593 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20594 t cont
20595 d
20596 :cont
20597 n
20598 s/.\{148\}/&'"$ac_delim"'/g
20599 t clear
20600 :clear
20601 s/\\$//
20602 t bsnlc
20603 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20604 d
20605 :bsnlc
20606 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20607 b cont
20608 ' <confdefs.h | sed '
20609 s/'"$ac_delim"'/"\\\
20610 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20611
20612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20613   for (key in D) D_is_set[key] = 1
20614   FS = "\a"
20615 }
20616 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20617   line = \$ 0
20618   split(line, arg, " ")
20619   if (arg[1] == "#") {
20620     defundef = arg[2]
20621     mac1 = arg[3]
20622   } else {
20623     defundef = substr(arg[1], 2)
20624     mac1 = arg[2]
20625   }
20626   split(mac1, mac2, "(") #)
20627   macro = mac2[1]
20628   prefix = substr(line, 1, index(line, defundef) - 1)
20629   if (D_is_set[macro]) {
20630     # Preserve the white space surrounding the "#".
20631     print prefix "define", macro P[macro] D[macro]
20632     next
20633   } else {
20634     # Replace #undef with comments.  This is necessary, for example,
20635     # in the case of _POSIX_SOURCE, which is predefined and required
20636     # on some systems where configure will not decide to define it.
20637     if (defundef == "undef") {
20638       print "/*", prefix defundef, macro, "*/"
20639       next
20640     }
20641   }
20642 }
20643 { print }
20644 _ACAWK
20645 _ACEOF
20646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20647   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20648 fi # test -n "$CONFIG_HEADERS"
20649
20650
20651 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20652 shift
20653 for ac_tag
20654 do
20655   case $ac_tag in
20656   :[FHLC]) ac_mode=$ac_tag; continue;;
20657   esac
20658   case $ac_mode$ac_tag in
20659   :[FHL]*:*);;
20660   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
20661   :[FH]-) ac_tag=-:-;;
20662   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20663   esac
20664   ac_save_IFS=$IFS
20665   IFS=:
20666   set x $ac_tag
20667   IFS=$ac_save_IFS
20668   shift
20669   ac_file=$1
20670   shift
20671
20672   case $ac_mode in
20673   :L) ac_source=$1;;
20674   :[FH])
20675     ac_file_inputs=
20676     for ac_f
20677     do
20678       case $ac_f in
20679       -) ac_f="$tmp/stdin";;
20680       *) # Look for the file first in the build tree, then in the source tree
20681          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20682          # because $ac_f cannot contain `:'.
20683          test -f "$ac_f" ||
20684            case $ac_f in
20685            [\\/$]*) false;;
20686            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20687            esac ||
20688            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
20689       esac
20690       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20691       as_fn_append ac_file_inputs " '$ac_f'"
20692     done
20693
20694     # Let's still pretend it is `configure' which instantiates (i.e., don't
20695     # use $as_me), people would be surprised to read:
20696     #    /* config.h.  Generated by config.status.  */
20697     configure_input='Generated from '`
20698           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20699         `' by configure.'
20700     if test x"$ac_file" != x-; then
20701       configure_input="$ac_file.  $configure_input"
20702       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20703 $as_echo "$as_me: creating $ac_file" >&6;}
20704     fi
20705     # Neutralize special characters interpreted by sed in replacement strings.
20706     case $configure_input in #(
20707     *\&* | *\|* | *\\* )
20708        ac_sed_conf_input=`$as_echo "$configure_input" |
20709        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20710     *) ac_sed_conf_input=$configure_input;;
20711     esac
20712
20713     case $ac_tag in
20714     *:-:* | *:-) cat >"$tmp/stdin" \
20715       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
20716     esac
20717     ;;
20718   esac
20719
20720   ac_dir=`$as_dirname -- "$ac_file" ||
20721 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20722          X"$ac_file" : 'X\(//\)[^/]' \| \
20723          X"$ac_file" : 'X\(//\)$' \| \
20724          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20725 $as_echo X"$ac_file" |
20726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20727             s//\1/
20728             q
20729           }
20730           /^X\(\/\/\)[^/].*/{
20731             s//\1/
20732             q
20733           }
20734           /^X\(\/\/\)$/{
20735             s//\1/
20736             q
20737           }
20738           /^X\(\/\).*/{
20739             s//\1/
20740             q
20741           }
20742           s/.*/./; q'`
20743   as_dir="$ac_dir"; as_fn_mkdir_p
20744   ac_builddir=.
20745
20746 case "$ac_dir" in
20747 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20748 *)
20749   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20750   # A ".." for each directory in $ac_dir_suffix.
20751   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20752   case $ac_top_builddir_sub in
20753   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20754   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20755   esac ;;
20756 esac
20757 ac_abs_top_builddir=$ac_pwd
20758 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20759 # for backward compatibility:
20760 ac_top_builddir=$ac_top_build_prefix
20761
20762 case $srcdir in
20763   .)  # We are building in place.
20764     ac_srcdir=.
20765     ac_top_srcdir=$ac_top_builddir_sub
20766     ac_abs_top_srcdir=$ac_pwd ;;
20767   [\\/]* | ?:[\\/]* )  # Absolute name.
20768     ac_srcdir=$srcdir$ac_dir_suffix;
20769     ac_top_srcdir=$srcdir
20770     ac_abs_top_srcdir=$srcdir ;;
20771   *) # Relative name.
20772     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20773     ac_top_srcdir=$ac_top_build_prefix$srcdir
20774     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20775 esac
20776 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20777
20778
20779   case $ac_mode in
20780   :F)
20781   #
20782   # CONFIG_FILE
20783   #
20784
20785   case $INSTALL in
20786   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20787   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20788   esac
20789   ac_MKDIR_P=$MKDIR_P
20790   case $MKDIR_P in
20791   [\\/$]* | ?:[\\/]* ) ;;
20792   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20793   esac
20794 _ACEOF
20795
20796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20797 # If the template does not know about datarootdir, expand it.
20798 # FIXME: This hack should be removed a few years after 2.60.
20799 ac_datarootdir_hack=; ac_datarootdir_seen=
20800 ac_sed_dataroot='
20801 /datarootdir/ {
20802   p
20803   q
20804 }
20805 /@datadir@/p
20806 /@docdir@/p
20807 /@infodir@/p
20808 /@localedir@/p
20809 /@mandir@/p'
20810 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20811 *datarootdir*) ac_datarootdir_seen=yes;;
20812 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20813   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20814 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20815 _ACEOF
20816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20817   ac_datarootdir_hack='
20818   s&@datadir@&$datadir&g
20819   s&@docdir@&$docdir&g
20820   s&@infodir@&$infodir&g
20821   s&@localedir@&$localedir&g
20822   s&@mandir@&$mandir&g
20823   s&\\\${datarootdir}&$datarootdir&g' ;;
20824 esac
20825 _ACEOF
20826
20827 # Neutralize VPATH when `$srcdir' = `.'.
20828 # Shell code in configure.ac might set extrasub.
20829 # FIXME: do we really want to maintain this feature?
20830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20831 ac_sed_extra="$ac_vpsub
20832 $extrasub
20833 _ACEOF
20834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20835 :t
20836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20837 s|@configure_input@|$ac_sed_conf_input|;t t
20838 s&@top_builddir@&$ac_top_builddir_sub&;t t
20839 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20840 s&@srcdir@&$ac_srcdir&;t t
20841 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20842 s&@top_srcdir@&$ac_top_srcdir&;t t
20843 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20844 s&@builddir@&$ac_builddir&;t t
20845 s&@abs_builddir@&$ac_abs_builddir&;t t
20846 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20847 s&@INSTALL@&$ac_INSTALL&;t t
20848 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20849 $ac_datarootdir_hack
20850 "
20851 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20852   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20853
20854 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20855   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20856   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20857   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20858 which seems to be undefined.  Please make sure it is defined" >&5
20859 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20860 which seems to be undefined.  Please make sure it is defined" >&2;}
20861
20862   rm -f "$tmp/stdin"
20863   case $ac_file in
20864   -) cat "$tmp/out" && rm -f "$tmp/out";;
20865   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20866   esac \
20867   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20868  ;;
20869   :H)
20870   #
20871   # CONFIG_HEADER
20872   #
20873   if test x"$ac_file" != x-; then
20874     {
20875       $as_echo "/* $configure_input  */" \
20876       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20877     } >"$tmp/config.h" \
20878       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20879     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20880       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20881 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20882     else
20883       rm -f "$ac_file"
20884       mv "$tmp/config.h" "$ac_file" \
20885         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20886     fi
20887   else
20888     $as_echo "/* $configure_input  */" \
20889       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20890       || as_fn_error $? "could not create -" "$LINENO" 5
20891   fi
20892 # Compute "$ac_file"'s index in $config_headers.
20893 _am_arg="$ac_file"
20894 _am_stamp_count=1
20895 for _am_header in $config_headers :; do
20896   case $_am_header in
20897     $_am_arg | $_am_arg:* )
20898       break ;;
20899     * )
20900       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20901   esac
20902 done
20903 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20904 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20905          X"$_am_arg" : 'X\(//\)[^/]' \| \
20906          X"$_am_arg" : 'X\(//\)$' \| \
20907          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20908 $as_echo X"$_am_arg" |
20909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20910             s//\1/
20911             q
20912           }
20913           /^X\(\/\/\)[^/].*/{
20914             s//\1/
20915             q
20916           }
20917           /^X\(\/\/\)$/{
20918             s//\1/
20919             q
20920           }
20921           /^X\(\/\).*/{
20922             s//\1/
20923             q
20924           }
20925           s/.*/./; q'`/stamp-h$_am_stamp_count
20926  ;;
20927
20928   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20929 $as_echo "$as_me: executing $ac_file commands" >&6;}
20930  ;;
20931   esac
20932
20933
20934   case $ac_file$ac_mode in
20935     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20936   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20937   # are listed without --file.  Let's play safe and only enable the eval
20938   # if we detect the quoting.
20939   case $CONFIG_FILES in
20940   *\'*) eval set x "$CONFIG_FILES" ;;
20941   *)   set x $CONFIG_FILES ;;
20942   esac
20943   shift
20944   for mf
20945   do
20946     # Strip MF so we end up with the name of the file.
20947     mf=`echo "$mf" | sed -e 's/:.*$//'`
20948     # Check whether this is an Automake generated Makefile or not.
20949     # We used to match only the files named `Makefile.in', but
20950     # some people rename them; so instead we look at the file content.
20951     # Grep'ing the first line is not enough: some people post-process
20952     # each Makefile.in and add a new line on top of each file to say so.
20953     # Grep'ing the whole file is not good either: AIX grep has a line
20954     # limit of 2048, but all sed's we know have understand at least 4000.
20955     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20956       dirpart=`$as_dirname -- "$mf" ||
20957 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20958          X"$mf" : 'X\(//\)[^/]' \| \
20959          X"$mf" : 'X\(//\)$' \| \
20960          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20961 $as_echo X"$mf" |
20962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20963             s//\1/
20964             q
20965           }
20966           /^X\(\/\/\)[^/].*/{
20967             s//\1/
20968             q
20969           }
20970           /^X\(\/\/\)$/{
20971             s//\1/
20972             q
20973           }
20974           /^X\(\/\).*/{
20975             s//\1/
20976             q
20977           }
20978           s/.*/./; q'`
20979     else
20980       continue
20981     fi
20982     # Extract the definition of DEPDIR, am__include, and am__quote
20983     # from the Makefile without running `make'.
20984     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20985     test -z "$DEPDIR" && continue
20986     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20987     test -z "am__include" && continue
20988     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20989     # When using ansi2knr, U may be empty or an underscore; expand it
20990     U=`sed -n 's/^U = //p' < "$mf"`
20991     # Find all dependency output files, they are included files with
20992     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20993     # simplest approach to changing $(DEPDIR) to its actual value in the
20994     # expansion.
20995     for file in `sed -n "
20996       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20997          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20998       # Make sure the directory exists.
20999       test -f "$dirpart/$file" && continue
21000       fdir=`$as_dirname -- "$file" ||
21001 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21002          X"$file" : 'X\(//\)[^/]' \| \
21003          X"$file" : 'X\(//\)$' \| \
21004          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21005 $as_echo X"$file" |
21006     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21007             s//\1/
21008             q
21009           }
21010           /^X\(\/\/\)[^/].*/{
21011             s//\1/
21012             q
21013           }
21014           /^X\(\/\/\)$/{
21015             s//\1/
21016             q
21017           }
21018           /^X\(\/\).*/{
21019             s//\1/
21020             q
21021           }
21022           s/.*/./; q'`
21023       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21024       # echo "creating $dirpart/$file"
21025       echo '# dummy' > "$dirpart/$file"
21026     done
21027   done
21028 }
21029  ;;
21030     "libtool":C)
21031
21032     # See if we are running on zsh, and set the options which allow our
21033     # commands through without removal of \ escapes.
21034     if test -n "${ZSH_VERSION+set}" ; then
21035       setopt NO_GLOB_SUBST
21036     fi
21037
21038     cfgfile="${ofile}T"
21039     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21040     $RM "$cfgfile"
21041
21042     cat <<_LT_EOF >> "$cfgfile"
21043 #! $SHELL
21044
21045 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21046 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21047 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21048 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21049 #
21050 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21051 #                 2006, 2007, 2008 Free Software Foundation, Inc.
21052 #   Written by Gordon Matzigkeit, 1996
21053 #
21054 #   This file is part of GNU Libtool.
21055 #
21056 # GNU Libtool is free software; you can redistribute it and/or
21057 # modify it under the terms of the GNU General Public License as
21058 # published by the Free Software Foundation; either version 2 of
21059 # the License, or (at your option) any later version.
21060 #
21061 # As a special exception to the GNU General Public License,
21062 # if you distribute this file as part of a program or library that
21063 # is built using GNU Libtool, you may include this file under the
21064 # same distribution terms that you use for the rest of that program.
21065 #
21066 # GNU Libtool is distributed in the hope that it will be useful,
21067 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21068 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21069 # GNU General Public License for more details.
21070 #
21071 # You should have received a copy of the GNU General Public License
21072 # along with GNU Libtool; see the file COPYING.  If not, a copy
21073 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21074 # obtained by writing to the Free Software Foundation, Inc.,
21075 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21076
21077
21078 # The names of the tagged configurations supported by this script.
21079 available_tags="CXX "
21080
21081 # ### BEGIN LIBTOOL CONFIG
21082
21083 # Whether or not to build static libraries.
21084 build_old_libs=$enable_static
21085
21086 # Which release of libtool.m4 was used?
21087 macro_version=$macro_version
21088 macro_revision=$macro_revision
21089
21090 # Whether or not to build shared libraries.
21091 build_libtool_libs=$enable_shared
21092
21093 # What type of objects to build.
21094 pic_mode=$pic_mode
21095
21096 # Whether or not to optimize for fast installation.
21097 fast_install=$enable_fast_install
21098
21099 # The host system.
21100 host_alias=$host_alias
21101 host=$host
21102 host_os=$host_os
21103
21104 # The build system.
21105 build_alias=$build_alias
21106 build=$build
21107 build_os=$build_os
21108
21109 # A sed program that does not truncate output.
21110 SED=$lt_SED
21111
21112 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21113 Xsed="\$SED -e 1s/^X//"
21114
21115 # A grep program that handles long lines.
21116 GREP=$lt_GREP
21117
21118 # An ERE matcher.
21119 EGREP=$lt_EGREP
21120
21121 # A literal string matcher.
21122 FGREP=$lt_FGREP
21123
21124 # A BSD- or MS-compatible name lister.
21125 NM=$lt_NM
21126
21127 # Whether we need soft or hard links.
21128 LN_S=$lt_LN_S
21129
21130 # What is the maximum length of a command?
21131 max_cmd_len=$max_cmd_len
21132
21133 # Object file suffix (normally "o").
21134 objext=$ac_objext
21135
21136 # Executable file suffix (normally "").
21137 exeext=$exeext
21138
21139 # whether the shell understands "unset".
21140 lt_unset=$lt_unset
21141
21142 # turn spaces into newlines.
21143 SP2NL=$lt_lt_SP2NL
21144
21145 # turn newlines into spaces.
21146 NL2SP=$lt_lt_NL2SP
21147
21148 # How to create reloadable object files.
21149 reload_flag=$lt_reload_flag
21150 reload_cmds=$lt_reload_cmds
21151
21152 # An object symbol dumper.
21153 OBJDUMP=$lt_OBJDUMP
21154
21155 # Method to check whether dependent libraries are shared objects.
21156 deplibs_check_method=$lt_deplibs_check_method
21157
21158 # Command to use when deplibs_check_method == "file_magic".
21159 file_magic_cmd=$lt_file_magic_cmd
21160
21161 # The archiver.
21162 AR=$lt_AR
21163 AR_FLAGS=$lt_AR_FLAGS
21164
21165 # A symbol stripping program.
21166 STRIP=$lt_STRIP
21167
21168 # Commands used to install an old-style archive.
21169 RANLIB=$lt_RANLIB
21170 old_postinstall_cmds=$lt_old_postinstall_cmds
21171 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21172
21173 # A C compiler.
21174 LTCC=$lt_CC
21175
21176 # LTCC compiler flags.
21177 LTCFLAGS=$lt_CFLAGS
21178
21179 # Take the output of nm and produce a listing of raw symbols and C names.
21180 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21181
21182 # Transform the output of nm in a proper C declaration.
21183 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21184
21185 # Transform the output of nm in a C name address pair.
21186 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21187
21188 # Transform the output of nm in a C name address pair when lib prefix is needed.
21189 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21190
21191 # The name of the directory that contains temporary libtool files.
21192 objdir=$objdir
21193
21194 # Shell to use when invoking shell scripts.
21195 SHELL=$lt_SHELL
21196
21197 # An echo program that does not interpret backslashes.
21198 ECHO=$lt_ECHO
21199
21200 # Used to examine libraries when file_magic_cmd begins with "file".
21201 MAGIC_CMD=$MAGIC_CMD
21202
21203 # Must we lock files when doing compilation?
21204 need_locks=$lt_need_locks
21205
21206 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21207 DSYMUTIL=$lt_DSYMUTIL
21208
21209 # Tool to change global to local symbols on Mac OS X.
21210 NMEDIT=$lt_NMEDIT
21211
21212 # Tool to manipulate fat objects and archives on Mac OS X.
21213 LIPO=$lt_LIPO
21214
21215 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21216 OTOOL=$lt_OTOOL
21217
21218 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21219 OTOOL64=$lt_OTOOL64
21220
21221 # Old archive suffix (normally "a").
21222 libext=$libext
21223
21224 # Shared library suffix (normally ".so").
21225 shrext_cmds=$lt_shrext_cmds
21226
21227 # The commands to extract the exported symbol list from a shared archive.
21228 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21229
21230 # Variables whose values should be saved in libtool wrapper scripts and
21231 # restored at link time.
21232 variables_saved_for_relink=$lt_variables_saved_for_relink
21233
21234 # Do we need the "lib" prefix for modules?
21235 need_lib_prefix=$need_lib_prefix
21236
21237 # Do we need a version for libraries?
21238 need_version=$need_version
21239
21240 # Library versioning type.
21241 version_type=$version_type
21242
21243 # Shared library runtime path variable.
21244 runpath_var=$runpath_var
21245
21246 # Shared library path variable.
21247 shlibpath_var=$shlibpath_var
21248
21249 # Is shlibpath searched before the hard-coded library search path?
21250 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21251
21252 # Format of library name prefix.
21253 libname_spec=$lt_libname_spec
21254
21255 # List of archive names.  First name is the real one, the rest are links.
21256 # The last name is the one that the linker finds with -lNAME
21257 library_names_spec=$lt_library_names_spec
21258
21259 # The coded name of the library, if different from the real name.
21260 soname_spec=$lt_soname_spec
21261
21262 # Command to use after installation of a shared archive.
21263 postinstall_cmds=$lt_postinstall_cmds
21264
21265 # Command to use after uninstallation of a shared archive.
21266 postuninstall_cmds=$lt_postuninstall_cmds
21267
21268 # Commands used to finish a libtool library installation in a directory.
21269 finish_cmds=$lt_finish_cmds
21270
21271 # As "finish_cmds", except a single script fragment to be evaled but
21272 # not shown.
21273 finish_eval=$lt_finish_eval
21274
21275 # Whether we should hardcode library paths into libraries.
21276 hardcode_into_libs=$hardcode_into_libs
21277
21278 # Compile-time system search path for libraries.
21279 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21280
21281 # Run-time system search path for libraries.
21282 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21283
21284 # Whether dlopen is supported.
21285 dlopen_support=$enable_dlopen
21286
21287 # Whether dlopen of programs is supported.
21288 dlopen_self=$enable_dlopen_self
21289
21290 # Whether dlopen of statically linked programs is supported.
21291 dlopen_self_static=$enable_dlopen_self_static
21292
21293 # Commands to strip libraries.
21294 old_striplib=$lt_old_striplib
21295 striplib=$lt_striplib
21296
21297
21298 # The linker used to build libraries.
21299 LD=$lt_LD
21300
21301 # Commands used to build an old-style archive.
21302 old_archive_cmds=$lt_old_archive_cmds
21303
21304 # A language specific compiler.
21305 CC=$lt_compiler
21306
21307 # Is the compiler the GNU compiler?
21308 with_gcc=$GCC
21309
21310 # Compiler flag to turn off builtin functions.
21311 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21312
21313 # How to pass a linker flag through the compiler.
21314 wl=$lt_lt_prog_compiler_wl
21315
21316 # Additional compiler flags for building library objects.
21317 pic_flag=$lt_lt_prog_compiler_pic
21318
21319 # Compiler flag to prevent dynamic linking.
21320 link_static_flag=$lt_lt_prog_compiler_static
21321
21322 # Does compiler simultaneously support -c and -o options?
21323 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21324
21325 # Whether or not to add -lc for building shared libraries.
21326 build_libtool_need_lc=$archive_cmds_need_lc
21327
21328 # Whether or not to disallow shared libs when runtime libs are static.
21329 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21330
21331 # Compiler flag to allow reflexive dlopens.
21332 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21333
21334 # Compiler flag to generate shared objects directly from archives.
21335 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21336
21337 # Whether the compiler copes with passing no objects directly.
21338 compiler_needs_object=$lt_compiler_needs_object
21339
21340 # Create an old-style archive from a shared archive.
21341 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21342
21343 # Create a temporary old-style archive to link instead of a shared archive.
21344 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21345
21346 # Commands used to build a shared archive.
21347 archive_cmds=$lt_archive_cmds
21348 archive_expsym_cmds=$lt_archive_expsym_cmds
21349
21350 # Commands used to build a loadable module if different from building
21351 # a shared archive.
21352 module_cmds=$lt_module_cmds
21353 module_expsym_cmds=$lt_module_expsym_cmds
21354
21355 # Whether we are building with GNU ld or not.
21356 with_gnu_ld=$lt_with_gnu_ld
21357
21358 # Flag that allows shared libraries with undefined symbols to be built.
21359 allow_undefined_flag=$lt_allow_undefined_flag
21360
21361 # Flag that enforces no undefined symbols.
21362 no_undefined_flag=$lt_no_undefined_flag
21363
21364 # Flag to hardcode \$libdir into a binary during linking.
21365 # This must work even if \$libdir does not exist
21366 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21367
21368 # If ld is used when linking, flag to hardcode \$libdir into a binary
21369 # during linking.  This must work even if \$libdir does not exist.
21370 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21371
21372 # Whether we need a single "-rpath" flag with a separated argument.
21373 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21374
21375 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21376 # DIR into the resulting binary.
21377 hardcode_direct=$hardcode_direct
21378
21379 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21380 # DIR into the resulting binary and the resulting library dependency is
21381 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21382 # library is relocated.
21383 hardcode_direct_absolute=$hardcode_direct_absolute
21384
21385 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21386 # into the resulting binary.
21387 hardcode_minus_L=$hardcode_minus_L
21388
21389 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21390 # into the resulting binary.
21391 hardcode_shlibpath_var=$hardcode_shlibpath_var
21392
21393 # Set to "yes" if building a shared library automatically hardcodes DIR
21394 # into the library and all subsequent libraries and executables linked
21395 # against it.
21396 hardcode_automatic=$hardcode_automatic
21397
21398 # Set to yes if linker adds runtime paths of dependent libraries
21399 # to runtime path list.
21400 inherit_rpath=$inherit_rpath
21401
21402 # Whether libtool must link a program against all its dependency libraries.
21403 link_all_deplibs=$link_all_deplibs
21404
21405 # Fix the shell variable \$srcfile for the compiler.
21406 fix_srcfile_path=$lt_fix_srcfile_path
21407
21408 # Set to "yes" if exported symbols are required.
21409 always_export_symbols=$always_export_symbols
21410
21411 # The commands to list exported symbols.
21412 export_symbols_cmds=$lt_export_symbols_cmds
21413
21414 # Symbols that should not be listed in the preloaded symbols.
21415 exclude_expsyms=$lt_exclude_expsyms
21416
21417 # Symbols that must always be exported.
21418 include_expsyms=$lt_include_expsyms
21419
21420 # Commands necessary for linking programs (against libraries) with templates.
21421 prelink_cmds=$lt_prelink_cmds
21422
21423 # Specify filename containing input files.
21424 file_list_spec=$lt_file_list_spec
21425
21426 # How to hardcode a shared library path into an executable.
21427 hardcode_action=$hardcode_action
21428
21429 # The directories searched by this compiler when creating a shared library.
21430 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21431
21432 # Dependencies to place before and after the objects being linked to
21433 # create a shared library.
21434 predep_objects=$lt_predep_objects
21435 postdep_objects=$lt_postdep_objects
21436 predeps=$lt_predeps
21437 postdeps=$lt_postdeps
21438
21439 # The library search path used internally by the compiler when linking
21440 # a shared library.
21441 compiler_lib_search_path=$lt_compiler_lib_search_path
21442
21443 # ### END LIBTOOL CONFIG
21444
21445 _LT_EOF
21446
21447   case $host_os in
21448   aix3*)
21449     cat <<\_LT_EOF >> "$cfgfile"
21450 # AIX sometimes has problems with the GCC collect2 program.  For some
21451 # reason, if we set the COLLECT_NAMES environment variable, the problems
21452 # vanish in a puff of smoke.
21453 if test "X${COLLECT_NAMES+set}" != Xset; then
21454   COLLECT_NAMES=
21455   export COLLECT_NAMES
21456 fi
21457 _LT_EOF
21458     ;;
21459   esac
21460
21461
21462 ltmain="$ac_aux_dir/ltmain.sh"
21463
21464
21465   # We use sed instead of cat because bash on DJGPP gets confused if
21466   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21467   # text mode, it properly converts lines to CR/LF.  This bash problem
21468   # is reportedly fixed, but why not run on old versions too?
21469   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21470     || (rm -f "$cfgfile"; exit 1)
21471
21472   case $xsi_shell in
21473   yes)
21474     cat << \_LT_EOF >> "$cfgfile"
21475
21476 # func_dirname file append nondir_replacement
21477 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21478 # otherwise set result to NONDIR_REPLACEMENT.
21479 func_dirname ()
21480 {
21481   case ${1} in
21482     */*) func_dirname_result="${1%/*}${2}" ;;
21483     *  ) func_dirname_result="${3}" ;;
21484   esac
21485 }
21486
21487 # func_basename file
21488 func_basename ()
21489 {
21490   func_basename_result="${1##*/}"
21491 }
21492
21493 # func_dirname_and_basename file append nondir_replacement
21494 # perform func_basename and func_dirname in a single function
21495 # call:
21496 #   dirname:  Compute the dirname of FILE.  If nonempty,
21497 #             add APPEND to the result, otherwise set result
21498 #             to NONDIR_REPLACEMENT.
21499 #             value returned in "$func_dirname_result"
21500 #   basename: Compute filename of FILE.
21501 #             value retuned in "$func_basename_result"
21502 # Implementation must be kept synchronized with func_dirname
21503 # and func_basename. For efficiency, we do not delegate to
21504 # those functions but instead duplicate the functionality here.
21505 func_dirname_and_basename ()
21506 {
21507   case ${1} in
21508     */*) func_dirname_result="${1%/*}${2}" ;;
21509     *  ) func_dirname_result="${3}" ;;
21510   esac
21511   func_basename_result="${1##*/}"
21512 }
21513
21514 # func_stripname prefix suffix name
21515 # strip PREFIX and SUFFIX off of NAME.
21516 # PREFIX and SUFFIX must not contain globbing or regex special
21517 # characters, hashes, percent signs, but SUFFIX may contain a leading
21518 # dot (in which case that matches only a dot).
21519 func_stripname ()
21520 {
21521   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21522   # positional parameters, so assign one to ordinary parameter first.
21523   func_stripname_result=${3}
21524   func_stripname_result=${func_stripname_result#"${1}"}
21525   func_stripname_result=${func_stripname_result%"${2}"}
21526 }
21527
21528 # func_opt_split
21529 func_opt_split ()
21530 {
21531   func_opt_split_opt=${1%%=*}
21532   func_opt_split_arg=${1#*=}
21533 }
21534
21535 # func_lo2o object
21536 func_lo2o ()
21537 {
21538   case ${1} in
21539     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21540     *)    func_lo2o_result=${1} ;;
21541   esac
21542 }
21543
21544 # func_xform libobj-or-source
21545 func_xform ()
21546 {
21547   func_xform_result=${1%.*}.lo
21548 }
21549
21550 # func_arith arithmetic-term...
21551 func_arith ()
21552 {
21553   func_arith_result=$(( $* ))
21554 }
21555
21556 # func_len string
21557 # STRING may not start with a hyphen.
21558 func_len ()
21559 {
21560   func_len_result=${#1}
21561 }
21562
21563 _LT_EOF
21564     ;;
21565   *) # Bourne compatible functions.
21566     cat << \_LT_EOF >> "$cfgfile"
21567
21568 # func_dirname file append nondir_replacement
21569 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21570 # otherwise set result to NONDIR_REPLACEMENT.
21571 func_dirname ()
21572 {
21573   # Extract subdirectory from the argument.
21574   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21575   if test "X$func_dirname_result" = "X${1}"; then
21576     func_dirname_result="${3}"
21577   else
21578     func_dirname_result="$func_dirname_result${2}"
21579   fi
21580 }
21581
21582 # func_basename file
21583 func_basename ()
21584 {
21585   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21586 }
21587
21588
21589 # func_stripname prefix suffix name
21590 # strip PREFIX and SUFFIX off of NAME.
21591 # PREFIX and SUFFIX must not contain globbing or regex special
21592 # characters, hashes, percent signs, but SUFFIX may contain a leading
21593 # dot (in which case that matches only a dot).
21594 # func_strip_suffix prefix name
21595 func_stripname ()
21596 {
21597   case ${2} in
21598     .*) func_stripname_result=`$ECHO "X${3}" \
21599            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21600     *)  func_stripname_result=`$ECHO "X${3}" \
21601            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21602   esac
21603 }
21604
21605 # sed scripts:
21606 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21607 my_sed_long_arg='1s/^-[^=]*=//'
21608
21609 # func_opt_split
21610 func_opt_split ()
21611 {
21612   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21613   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21614 }
21615
21616 # func_lo2o object
21617 func_lo2o ()
21618 {
21619   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21620 }
21621
21622 # func_xform libobj-or-source
21623 func_xform ()
21624 {
21625   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21626 }
21627
21628 # func_arith arithmetic-term...
21629 func_arith ()
21630 {
21631   func_arith_result=`expr "$@"`
21632 }
21633
21634 # func_len string
21635 # STRING may not start with a hyphen.
21636 func_len ()
21637 {
21638   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21639 }
21640
21641 _LT_EOF
21642 esac
21643
21644 case $lt_shell_append in
21645   yes)
21646     cat << \_LT_EOF >> "$cfgfile"
21647
21648 # func_append var value
21649 # Append VALUE to the end of shell variable VAR.
21650 func_append ()
21651 {
21652   eval "$1+=\$2"
21653 }
21654 _LT_EOF
21655     ;;
21656   *)
21657     cat << \_LT_EOF >> "$cfgfile"
21658
21659 # func_append var value
21660 # Append VALUE to the end of shell variable VAR.
21661 func_append ()
21662 {
21663   eval "$1=\$$1\$2"
21664 }
21665
21666 _LT_EOF
21667     ;;
21668   esac
21669
21670
21671   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21672     || (rm -f "$cfgfile"; exit 1)
21673
21674   mv -f "$cfgfile" "$ofile" ||
21675     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21676   chmod +x "$ofile"
21677
21678
21679     cat <<_LT_EOF >> "$ofile"
21680
21681 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21682
21683 # The linker used to build libraries.
21684 LD=$lt_LD_CXX
21685
21686 # Commands used to build an old-style archive.
21687 old_archive_cmds=$lt_old_archive_cmds_CXX
21688
21689 # A language specific compiler.
21690 CC=$lt_compiler_CXX
21691
21692 # Is the compiler the GNU compiler?
21693 with_gcc=$GCC_CXX
21694
21695 # Compiler flag to turn off builtin functions.
21696 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21697
21698 # How to pass a linker flag through the compiler.
21699 wl=$lt_lt_prog_compiler_wl_CXX
21700
21701 # Additional compiler flags for building library objects.
21702 pic_flag=$lt_lt_prog_compiler_pic_CXX
21703
21704 # Compiler flag to prevent dynamic linking.
21705 link_static_flag=$lt_lt_prog_compiler_static_CXX
21706
21707 # Does compiler simultaneously support -c and -o options?
21708 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21709
21710 # Whether or not to add -lc for building shared libraries.
21711 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21712
21713 # Whether or not to disallow shared libs when runtime libs are static.
21714 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21715
21716 # Compiler flag to allow reflexive dlopens.
21717 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21718
21719 # Compiler flag to generate shared objects directly from archives.
21720 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21721
21722 # Whether the compiler copes with passing no objects directly.
21723 compiler_needs_object=$lt_compiler_needs_object_CXX
21724
21725 # Create an old-style archive from a shared archive.
21726 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21727
21728 # Create a temporary old-style archive to link instead of a shared archive.
21729 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21730
21731 # Commands used to build a shared archive.
21732 archive_cmds=$lt_archive_cmds_CXX
21733 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21734
21735 # Commands used to build a loadable module if different from building
21736 # a shared archive.
21737 module_cmds=$lt_module_cmds_CXX
21738 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21739
21740 # Whether we are building with GNU ld or not.
21741 with_gnu_ld=$lt_with_gnu_ld_CXX
21742
21743 # Flag that allows shared libraries with undefined symbols to be built.
21744 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21745
21746 # Flag that enforces no undefined symbols.
21747 no_undefined_flag=$lt_no_undefined_flag_CXX
21748
21749 # Flag to hardcode \$libdir into a binary during linking.
21750 # This must work even if \$libdir does not exist
21751 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21752
21753 # If ld is used when linking, flag to hardcode \$libdir into a binary
21754 # during linking.  This must work even if \$libdir does not exist.
21755 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21756
21757 # Whether we need a single "-rpath" flag with a separated argument.
21758 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21759
21760 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21761 # DIR into the resulting binary.
21762 hardcode_direct=$hardcode_direct_CXX
21763
21764 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21765 # DIR into the resulting binary and the resulting library dependency is
21766 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21767 # library is relocated.
21768 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21769
21770 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21771 # into the resulting binary.
21772 hardcode_minus_L=$hardcode_minus_L_CXX
21773
21774 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21775 # into the resulting binary.
21776 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21777
21778 # Set to "yes" if building a shared library automatically hardcodes DIR
21779 # into the library and all subsequent libraries and executables linked
21780 # against it.
21781 hardcode_automatic=$hardcode_automatic_CXX
21782
21783 # Set to yes if linker adds runtime paths of dependent libraries
21784 # to runtime path list.
21785 inherit_rpath=$inherit_rpath_CXX
21786
21787 # Whether libtool must link a program against all its dependency libraries.
21788 link_all_deplibs=$link_all_deplibs_CXX
21789
21790 # Fix the shell variable \$srcfile for the compiler.
21791 fix_srcfile_path=$lt_fix_srcfile_path_CXX
21792
21793 # Set to "yes" if exported symbols are required.
21794 always_export_symbols=$always_export_symbols_CXX
21795
21796 # The commands to list exported symbols.
21797 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21798
21799 # Symbols that should not be listed in the preloaded symbols.
21800 exclude_expsyms=$lt_exclude_expsyms_CXX
21801
21802 # Symbols that must always be exported.
21803 include_expsyms=$lt_include_expsyms_CXX
21804
21805 # Commands necessary for linking programs (against libraries) with templates.
21806 prelink_cmds=$lt_prelink_cmds_CXX
21807
21808 # Specify filename containing input files.
21809 file_list_spec=$lt_file_list_spec_CXX
21810
21811 # How to hardcode a shared library path into an executable.
21812 hardcode_action=$hardcode_action_CXX
21813
21814 # The directories searched by this compiler when creating a shared library.
21815 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21816
21817 # Dependencies to place before and after the objects being linked to
21818 # create a shared library.
21819 predep_objects=$lt_predep_objects_CXX
21820 postdep_objects=$lt_postdep_objects_CXX
21821 predeps=$lt_predeps_CXX
21822 postdeps=$lt_postdeps_CXX
21823
21824 # The library search path used internally by the compiler when linking
21825 # a shared library.
21826 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21827
21828 # ### END LIBTOOL TAG CONFIG: CXX
21829 _LT_EOF
21830
21831  ;;
21832     "$ax_create_pkgconfig_generate":C)
21833 pkgconfig_generate="$ax_create_pkgconfig_generate"
21834 if test ! -f "$pkgconfig_generate.in"
21835 then generate="true"
21836 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
21837 then generate="true"
21838 else generate="false";
21839 fi
21840 if $generate ; then
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
21842 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
21843 cat > $pkgconfig_generate.in <<AXEOF
21844 # generated by configure / remove this line to disable regeneration
21845 prefix=@prefix@
21846 exec_prefix=@exec_prefix@
21847 bindir=@bindir@
21848 libdir=@libdir@
21849 datarootdir=@datarootdir@
21850 datadir=@datadir@
21851 sysconfdir=@sysconfdir@
21852 includedir=@includedir@
21853 package=@PACKAGE@
21854 suffix=@suffix@
21855
21856 Name: @PACKAGE_NAME@
21857 Description: @PACKAGE_DESCRIPTION@
21858 Version: @PACKAGE_VERSION@
21859 Requires: @PACKAGE_REQUIRES@
21860 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
21861 Cflags: -I\${includedir} @CPPFLAGS@
21862 AXEOF
21863 fi # DONE generate $pkgconfig_generate.in
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
21865 $as_echo "$as_me: creating $pkgconfig_generate" >&6;}
21866 cat >conftest.sed <<AXEOF
21867 s|@prefix@|${pkgconfig_prefix}|
21868 s|@exec_prefix@|${pkgconfig_execprefix}|
21869 s|@bindir@|${pkgconfig_bindir}|
21870 s|@libdir@|${pkgconfig_libdir}|
21871 s|@datarootdir@|${pkgconfig_datarootdir}|
21872 s|@datadir@|${pkgconfig_datadir}|
21873 s|@sysconfdir@|${pkgconfig_sysconfdir}|
21874 s|@includedir@|${pkgconfig_includedir}|
21875 s|@suffix@|${pkgconfig_suffix}|
21876 s|@PACKAGE@|${pkgconfig_package}|
21877 s|@PACKAGE_NAME@|${pkgconfig_libname}|
21878 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
21879 s|@PACKAGE_VERSION@|${pkgconfig_version}|
21880 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
21881 s|@LIBS@|${pkgconfig_libs}|
21882 s|@LDFLAGS@|${pkgconfig_ldflags}|
21883 s|@CPPFLAGS@|${pkgconfig_cppflags}|
21884 AXEOF
21885 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_generate
21886 if test ! -s $pkgconfig_generate ; then
21887     as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
21888 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
21889 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
21891 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
21892 cat >conftest.sed <<AXEOF
21893 s|@prefix@|${pkgconfig_prefix}|
21894 s|@exec_prefix@|${pkgconfig_execprefix}|
21895 s|@bindir@|${pkgconfig_bindir}|
21896 s|@libdir@|${pkgconfig_src_libdir}|
21897 s|@datarootdir@|${pkgconfig_datarootdir}|
21898 s|@datadir@|${pkgconfig_datadir}|
21899 s|@sysconfdir@|${pkgconfig_sysconfdir}|
21900 s|@includedir@|${pkgconfig_src_headers}|
21901 s|@suffix@|${pkgconfig_suffix}|
21902 s|@PACKAGE@|${pkgconfig_package}|
21903 s|@PACKAGE_NAME@|${pkgconfig_libname}|
21904 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
21905 s|@PACKAGE_VERSION@|${pkgconfig_version}|
21906 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
21907 s|@LIBS@|${pkgconfig_libs}|
21908 s|@LDFLAGS@|${pkgconfig_ldflags}|
21909 s|@CPPFLAGS@|${pkgconfig_cppflags}|
21910 AXEOF
21911 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
21912 if test ! -s $pkgconfig_uninstalled ; then
21913     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
21914 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
21915            pkgconfig_requires_add=`echo ${pkgconfig_requires}`
21916 if test ".$pkgconfig_requires_add" != "." ; then
21917            pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
21918     else   pkgconfig_requires_add=":" ; fi
21919 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
21921 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
21922 cat >conftest.sed <<AXEOF
21923 s|@prefix@|\"${pkgconfig_prefix}\"|
21924 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
21925 s|@bindir@|\"${pkgconfig_bindir}\"|
21926 s|@libdir@|\"${pkgconfig_src_libdir}\"|
21927 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
21928 s|@datadir@|\"${pkgconfig_datadir}\"|
21929 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
21930 s|@includedir@|\"${pkgconfig_src_headers}\"|
21931 s|@suffix@|\"${pkgconfig_suffix}\"|
21932 s|@PACKAGE@|\"${pkgconfig_package}\"|
21933 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
21934 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
21935 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
21936 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
21937 s|@LIBS@|\"${pkgconfig_libs}\"|
21938 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
21939 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
21940 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
21941 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
21942 s>Version: *>\\;\\; --modversion|--version) echo >
21943 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
21944 s>Libs: *>\\;\\; --libs) echo >
21945 s>Cflags: *>\\;\\; --cflags) echo >
21946 /--libs)/a\\
21947        $pkgconfig_requires_add
21948 /--cflags)/a\\
21949        $pkgconfig_requires_add\\
21950 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
21951 ;; --uninstalled) exit 0 \\
21952 ;; *) ;; esac done
21953 AXEOF
21954 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_uninstalled
21955 if test ! -s $pkgconfig_uninstalled ; then
21956     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
21957 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
21958  ;;
21959
21960   esac
21961 done # for ac_tag
21962
21963
21964 as_fn_exit 0
21965 _ACEOF
21966 ac_clean_files=$ac_clean_files_save
21967
21968 test $ac_write_fail = 0 ||
21969   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21970
21971
21972 # configure is writing to config.log, and then calls config.status.
21973 # config.status does its own redirection, appending to config.log.
21974 # Unfortunately, on DOS this fails, as config.log is still kept open
21975 # by configure, so config.status won't be able to write to it; its
21976 # output is simply discarded.  So we exec the FD to /dev/null,
21977 # effectively closing config.log, so it can be properly (re)opened and
21978 # appended to by config.status.  When coming back to configure, we
21979 # need to make the FD available again.
21980 if test "$no_create" != yes; then
21981   ac_cs_success=:
21982   ac_config_status_args=
21983   test "$silent" = yes &&
21984     ac_config_status_args="$ac_config_status_args --quiet"
21985   exec 5>/dev/null
21986   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21987   exec 5>>config.log
21988   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21989   # would make configure fail if this is the last instruction.
21990   $ac_cs_success || as_fn_exit 1
21991 fi
21992 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21993   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21994 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21995 fi
21996