update build-depends
[shibboleth/opensaml2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for opensaml 2.5.0.
4 #
5 # Report bugs to <https://issues.shibboleth.net/>.
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://issues.shibboleth.net/ 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='opensaml'
703 PACKAGE_TARNAME='opensaml'
704 PACKAGE_VERSION='2.5.0'
705 PACKAGE_STRING='opensaml 2.5.0'
706 PACKAGE_BUGREPORT='https://issues.shibboleth.net/'
707 PACKAGE_URL=''
708
709 ac_unique_file="saml"
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 DX_INCLUDE
751 pkgconfig_libfile
752 pkgconfig_libdir
753 BUILD_UNITTEST_FALSE
754 BUILD_UNITTEST_TRUE
755 CXXTESTFLAGS
756 CXXTEST
757 LOG4CPP_CONFIG
758 LOG4SHIB_CONFIG
759 BOOST_CPPFLAGS
760 DISTCHECK_CONFIGURE_FLAGS
761 BOOST_ROOT
762 PKG_CONFIG
763 PTHREAD_CFLAGS
764 PTHREAD_LIBS
765 PTHREAD_CC
766 acx_pthread_config
767 CXXCPP
768 am__fastdepCXX_FALSE
769 am__fastdepCXX_TRUE
770 CXXDEPMODE
771 ac_ct_CXX
772 CXXFLAGS
773 CXX
774 DOXYGEN_PAPER_SIZE
775 DX_COND_latex_FALSE
776 DX_COND_latex_TRUE
777 DX_COND_pdf_FALSE
778 DX_COND_pdf_TRUE
779 DX_PDFLATEX
780 DX_FLAG_pdf
781 DX_COND_ps_FALSE
782 DX_COND_ps_TRUE
783 DX_EGREP
784 DX_DVIPS
785 DX_MAKEINDEX
786 DX_LATEX
787 DX_FLAG_ps
788 DX_COND_html_FALSE
789 DX_COND_html_TRUE
790 DX_FLAG_html
791 DX_COND_chi_FALSE
792 DX_COND_chi_TRUE
793 DX_FLAG_chi
794 DX_COND_chm_FALSE
795 DX_COND_chm_TRUE
796 DX_HHC
797 DX_FLAG_chm
798 DX_COND_xml_FALSE
799 DX_COND_xml_TRUE
800 DX_FLAG_xml
801 DX_COND_rtf_FALSE
802 DX_COND_rtf_TRUE
803 DX_FLAG_rtf
804 DX_COND_man_FALSE
805 DX_COND_man_TRUE
806 DX_FLAG_man
807 DX_COND_dot_FALSE
808 DX_COND_dot_TRUE
809 DX_DOT
810 DX_FLAG_dot
811 DX_COND_doc_FALSE
812 DX_COND_doc_TRUE
813 DX_PERL
814 DX_DOXYGEN
815 DX_FLAG_doc
816 DX_ENV
817 DX_DOCDIR
818 DX_CONFIG
819 DX_PROJECT
820 CPP
821 OTOOL64
822 OTOOL
823 LIPO
824 NMEDIT
825 DSYMUTIL
826 lt_ECHO
827 RANLIB
828 AR
829 OBJDUMP
830 LN_S
831 NM
832 ac_ct_DUMPBIN
833 DUMPBIN
834 LD
835 FGREP
836 EGREP
837 GREP
838 SED
839 am__fastdepCC_FALSE
840 am__fastdepCC_TRUE
841 CCDEPMODE
842 AMDEPBACKSLASH
843 AMDEP_FALSE
844 AMDEP_TRUE
845 am__quote
846 am__include
847 DEPDIR
848 OBJEXT
849 EXEEXT
850 ac_ct_CC
851 CPPFLAGS
852 LDFLAGS
853 CFLAGS
854 CC
855 host_os
856 host_vendor
857 host_cpu
858 host
859 build_os
860 build_vendor
861 build_cpu
862 build
863 LIBTOOL
864 am__untar
865 am__tar
866 AMTAR
867 am__leading_dot
868 SET_MAKE
869 AWK
870 mkdir_p
871 MKDIR_P
872 INSTALL_STRIP_PROGRAM
873 STRIP
874 install_sh
875 MAKEINFO
876 AUTOHEADER
877 AUTOMAKE
878 AUTOCONF
879 ACLOCAL
880 VERSION
881 PACKAGE
882 CYGPATH_W
883 am__isrc
884 INSTALL_DATA
885 INSTALL_SCRIPT
886 INSTALL_PROGRAM
887 target_alias
888 host_alias
889 build_alias
890 LIBS
891 ECHO_T
892 ECHO_N
893 ECHO_C
894 DEFS
895 mandir
896 localedir
897 libdir
898 psdir
899 pdfdir
900 dvidir
901 htmldir
902 infodir
903 docdir
904 oldincludedir
905 includedir
906 localstatedir
907 sharedstatedir
908 sysconfdir
909 datadir
910 datarootdir
911 libexecdir
912 sbindir
913 bindir
914 program_transform_name
915 prefix
916 exec_prefix
917 PACKAGE_URL
918 PACKAGE_BUGREPORT
919 PACKAGE_STRING
920 PACKAGE_VERSION
921 PACKAGE_TARNAME
922 PACKAGE_NAME
923 PATH_SEPARATOR
924 SHELL'
925 ac_subst_files=''
926 ac_user_opts='
927 enable_option_checking
928 enable_static
929 enable_shared
930 with_pic
931 enable_fast_install
932 enable_dependency_tracking
933 with_gnu_ld
934 enable_libtool_lock
935 enable_doxygen_doc
936 enable_doxygen_dot
937 enable_doxygen_man
938 enable_doxygen_rtf
939 enable_doxygen_xml
940 enable_doxygen_chm
941 enable_doxygen_chi
942 enable_doxygen_html
943 enable_doxygen_ps
944 enable_doxygen_pdf
945 enable_debug
946 with_zlib
947 with_openssl
948 with_boost
949 with_log4shib
950 with_log4cpp
951 with_xerces
952 with_xmlsec
953 with_xmltooling
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 BOOST_ROOT'
971
972
973 # Initialize some variables set by options.
974 ac_init_help=
975 ac_init_version=false
976 ac_unrecognized_opts=
977 ac_unrecognized_sep=
978 # The variables have the same names as the options, with
979 # dashes changed to underlines.
980 cache_file=/dev/null
981 exec_prefix=NONE
982 no_create=
983 no_recursion=
984 prefix=NONE
985 program_prefix=NONE
986 program_suffix=NONE
987 program_transform_name=s,x,x,
988 silent=
989 site=
990 srcdir=
991 verbose=
992 x_includes=NONE
993 x_libraries=NONE
994
995 # Installation directory options.
996 # These are left unexpanded so users can "make install exec_prefix=/foo"
997 # and all the variables that are supposed to be based on exec_prefix
998 # by default will actually change.
999 # Use braces instead of parens because sh, perl, etc. also accept them.
1000 # (The list follows the same order as the GNU Coding Standards.)
1001 bindir='${exec_prefix}/bin'
1002 sbindir='${exec_prefix}/sbin'
1003 libexecdir='${exec_prefix}/libexec'
1004 datarootdir='${prefix}/share'
1005 datadir='${datarootdir}'
1006 sysconfdir='${prefix}/etc'
1007 sharedstatedir='${prefix}/com'
1008 localstatedir='${prefix}/var'
1009 includedir='${prefix}/include'
1010 oldincludedir='/usr/include'
1011 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1012 infodir='${datarootdir}/info'
1013 htmldir='${docdir}'
1014 dvidir='${docdir}'
1015 pdfdir='${docdir}'
1016 psdir='${docdir}'
1017 libdir='${exec_prefix}/lib'
1018 localedir='${datarootdir}/locale'
1019 mandir='${datarootdir}/man'
1020
1021 ac_prev=
1022 ac_dashdash=
1023 for ac_option
1024 do
1025   # If the previous option needs an argument, assign it.
1026   if test -n "$ac_prev"; then
1027     eval $ac_prev=\$ac_option
1028     ac_prev=
1029     continue
1030   fi
1031
1032   case $ac_option in
1033   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034   *=)   ac_optarg= ;;
1035   *)    ac_optarg=yes ;;
1036   esac
1037
1038   # Accept the important Cygnus configure options, so we can diagnose typos.
1039
1040   case $ac_dashdash$ac_option in
1041   --)
1042     ac_dashdash=yes ;;
1043
1044   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045     ac_prev=bindir ;;
1046   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047     bindir=$ac_optarg ;;
1048
1049   -build | --build | --buil | --bui | --bu)
1050     ac_prev=build_alias ;;
1051   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052     build_alias=$ac_optarg ;;
1053
1054   -cache-file | --cache-file | --cache-fil | --cache-fi \
1055   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056     ac_prev=cache_file ;;
1057   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059     cache_file=$ac_optarg ;;
1060
1061   --config-cache | -C)
1062     cache_file=config.cache ;;
1063
1064   -datadir | --datadir | --datadi | --datad)
1065     ac_prev=datadir ;;
1066   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067     datadir=$ac_optarg ;;
1068
1069   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070   | --dataroo | --dataro | --datar)
1071     ac_prev=datarootdir ;;
1072   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074     datarootdir=$ac_optarg ;;
1075
1076   -disable-* | --disable-*)
1077     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078     # Reject names that are not valid shell variable names.
1079     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080       as_fn_error $? "invalid feature name: $ac_useropt"
1081     ac_useropt_orig=$ac_useropt
1082     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083     case $ac_user_opts in
1084       *"
1085 "enable_$ac_useropt"
1086 "*) ;;
1087       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088          ac_unrecognized_sep=', ';;
1089     esac
1090     eval enable_$ac_useropt=no ;;
1091
1092   -docdir | --docdir | --docdi | --doc | --do)
1093     ac_prev=docdir ;;
1094   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1095     docdir=$ac_optarg ;;
1096
1097   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1098     ac_prev=dvidir ;;
1099   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1100     dvidir=$ac_optarg ;;
1101
1102   -enable-* | --enable-*)
1103     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104     # Reject names that are not valid shell variable names.
1105     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106       as_fn_error $? "invalid feature name: $ac_useropt"
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "enable_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval enable_$ac_useropt=\$ac_optarg ;;
1117
1118   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1119   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1120   | --exec | --exe | --ex)
1121     ac_prev=exec_prefix ;;
1122   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1123   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1124   | --exec=* | --exe=* | --ex=*)
1125     exec_prefix=$ac_optarg ;;
1126
1127   -gas | --gas | --ga | --g)
1128     # Obsolete; use --with-gas.
1129     with_gas=yes ;;
1130
1131   -help | --help | --hel | --he | -h)
1132     ac_init_help=long ;;
1133   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1134     ac_init_help=recursive ;;
1135   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1136     ac_init_help=short ;;
1137
1138   -host | --host | --hos | --ho)
1139     ac_prev=host_alias ;;
1140   -host=* | --host=* | --hos=* | --ho=*)
1141     host_alias=$ac_optarg ;;
1142
1143   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1144     ac_prev=htmldir ;;
1145   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1146   | --ht=*)
1147     htmldir=$ac_optarg ;;
1148
1149   -includedir | --includedir | --includedi | --included | --include \
1150   | --includ | --inclu | --incl | --inc)
1151     ac_prev=includedir ;;
1152   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1153   | --includ=* | --inclu=* | --incl=* | --inc=*)
1154     includedir=$ac_optarg ;;
1155
1156   -infodir | --infodir | --infodi | --infod | --info | --inf)
1157     ac_prev=infodir ;;
1158   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1159     infodir=$ac_optarg ;;
1160
1161   -libdir | --libdir | --libdi | --libd)
1162     ac_prev=libdir ;;
1163   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1164     libdir=$ac_optarg ;;
1165
1166   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1167   | --libexe | --libex | --libe)
1168     ac_prev=libexecdir ;;
1169   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1170   | --libexe=* | --libex=* | --libe=*)
1171     libexecdir=$ac_optarg ;;
1172
1173   -localedir | --localedir | --localedi | --localed | --locale)
1174     ac_prev=localedir ;;
1175   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1176     localedir=$ac_optarg ;;
1177
1178   -localstatedir | --localstatedir | --localstatedi | --localstated \
1179   | --localstate | --localstat | --localsta | --localst | --locals)
1180     ac_prev=localstatedir ;;
1181   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1182   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1183     localstatedir=$ac_optarg ;;
1184
1185   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1186     ac_prev=mandir ;;
1187   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1188     mandir=$ac_optarg ;;
1189
1190   -nfp | --nfp | --nf)
1191     # Obsolete; use --without-fp.
1192     with_fp=no ;;
1193
1194   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1195   | --no-cr | --no-c | -n)
1196     no_create=yes ;;
1197
1198   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1199   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1200     no_recursion=yes ;;
1201
1202   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1203   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1204   | --oldin | --oldi | --old | --ol | --o)
1205     ac_prev=oldincludedir ;;
1206   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1207   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1208   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1209     oldincludedir=$ac_optarg ;;
1210
1211   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1212     ac_prev=prefix ;;
1213   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1214     prefix=$ac_optarg ;;
1215
1216   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1217   | --program-pre | --program-pr | --program-p)
1218     ac_prev=program_prefix ;;
1219   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1220   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1221     program_prefix=$ac_optarg ;;
1222
1223   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1224   | --program-suf | --program-su | --program-s)
1225     ac_prev=program_suffix ;;
1226   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1227   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1228     program_suffix=$ac_optarg ;;
1229
1230   -program-transform-name | --program-transform-name \
1231   | --program-transform-nam | --program-transform-na \
1232   | --program-transform-n | --program-transform- \
1233   | --program-transform | --program-transfor \
1234   | --program-transfo | --program-transf \
1235   | --program-trans | --program-tran \
1236   | --progr-tra | --program-tr | --program-t)
1237     ac_prev=program_transform_name ;;
1238   -program-transform-name=* | --program-transform-name=* \
1239   | --program-transform-nam=* | --program-transform-na=* \
1240   | --program-transform-n=* | --program-transform-=* \
1241   | --program-transform=* | --program-transfor=* \
1242   | --program-transfo=* | --program-transf=* \
1243   | --program-trans=* | --program-tran=* \
1244   | --progr-tra=* | --program-tr=* | --program-t=*)
1245     program_transform_name=$ac_optarg ;;
1246
1247   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1248     ac_prev=pdfdir ;;
1249   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1250     pdfdir=$ac_optarg ;;
1251
1252   -psdir | --psdir | --psdi | --psd | --ps)
1253     ac_prev=psdir ;;
1254   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1255     psdir=$ac_optarg ;;
1256
1257   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258   | -silent | --silent | --silen | --sile | --sil)
1259     silent=yes ;;
1260
1261   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1262     ac_prev=sbindir ;;
1263   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1264   | --sbi=* | --sb=*)
1265     sbindir=$ac_optarg ;;
1266
1267   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1268   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1269   | --sharedst | --shareds | --shared | --share | --shar \
1270   | --sha | --sh)
1271     ac_prev=sharedstatedir ;;
1272   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1273   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1274   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1275   | --sha=* | --sh=*)
1276     sharedstatedir=$ac_optarg ;;
1277
1278   -site | --site | --sit)
1279     ac_prev=site ;;
1280   -site=* | --site=* | --sit=*)
1281     site=$ac_optarg ;;
1282
1283   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1284     ac_prev=srcdir ;;
1285   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1286     srcdir=$ac_optarg ;;
1287
1288   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1289   | --syscon | --sysco | --sysc | --sys | --sy)
1290     ac_prev=sysconfdir ;;
1291   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1292   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1293     sysconfdir=$ac_optarg ;;
1294
1295   -target | --target | --targe | --targ | --tar | --ta | --t)
1296     ac_prev=target_alias ;;
1297   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1298     target_alias=$ac_optarg ;;
1299
1300   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1301     verbose=yes ;;
1302
1303   -version | --version | --versio | --versi | --vers | -V)
1304     ac_init_version=: ;;
1305
1306   -with-* | --with-*)
1307     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308     # Reject names that are not valid shell variable names.
1309     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310       as_fn_error $? "invalid package name: $ac_useropt"
1311     ac_useropt_orig=$ac_useropt
1312     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313     case $ac_user_opts in
1314       *"
1315 "with_$ac_useropt"
1316 "*) ;;
1317       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318          ac_unrecognized_sep=', ';;
1319     esac
1320     eval with_$ac_useropt=\$ac_optarg ;;
1321
1322   -without-* | --without-*)
1323     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324     # Reject names that are not valid shell variable names.
1325     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326       as_fn_error $? "invalid package name: $ac_useropt"
1327     ac_useropt_orig=$ac_useropt
1328     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329     case $ac_user_opts in
1330       *"
1331 "with_$ac_useropt"
1332 "*) ;;
1333       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334          ac_unrecognized_sep=', ';;
1335     esac
1336     eval with_$ac_useropt=no ;;
1337
1338   --x)
1339     # Obsolete; use --with-x.
1340     with_x=yes ;;
1341
1342   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343   | --x-incl | --x-inc | --x-in | --x-i)
1344     ac_prev=x_includes ;;
1345   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347     x_includes=$ac_optarg ;;
1348
1349   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351     ac_prev=x_libraries ;;
1352   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354     x_libraries=$ac_optarg ;;
1355
1356   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1357 Try \`$0 --help' for more information"
1358     ;;
1359
1360   *=*)
1361     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362     # Reject names that are not valid shell variable names.
1363     case $ac_envvar in #(
1364       '' | [0-9]* | *[!_$as_cr_alnum]* )
1365       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1366     esac
1367     eval $ac_envvar=\$ac_optarg
1368     export $ac_envvar ;;
1369
1370   *)
1371     # FIXME: should be removed in autoconf 3.0.
1372     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1376     ;;
1377
1378   esac
1379 done
1380
1381 if test -n "$ac_prev"; then
1382   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383   as_fn_error $? "missing argument to $ac_option"
1384 fi
1385
1386 if test -n "$ac_unrecognized_opts"; then
1387   case $enable_option_checking in
1388     no) ;;
1389     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1390     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391   esac
1392 fi
1393
1394 # Check all directory arguments for consistency.
1395 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396                 datadir sysconfdir sharedstatedir localstatedir includedir \
1397                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398                 libdir localedir mandir
1399 do
1400   eval ac_val=\$$ac_var
1401   # Remove trailing slashes.
1402   case $ac_val in
1403     */ )
1404       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405       eval $ac_var=\$ac_val;;
1406   esac
1407   # Be sure to have absolute directory names.
1408   case $ac_val in
1409     [\\/$]* | ?:[\\/]* )  continue;;
1410     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1411   esac
1412   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1413 done
1414
1415 # There might be people who depend on the old broken behavior: `$host'
1416 # used to hold the argument of --host etc.
1417 # FIXME: To remove some day.
1418 build=$build_alias
1419 host=$host_alias
1420 target=$target_alias
1421
1422 # FIXME: To remove some day.
1423 if test "x$host_alias" != x; then
1424   if test "x$build_alias" = x; then
1425     cross_compiling=maybe
1426     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1427     If a cross compiler is detected then cross compile mode will be used" >&2
1428   elif test "x$build_alias" != "x$host_alias"; then
1429     cross_compiling=yes
1430   fi
1431 fi
1432
1433 ac_tool_prefix=
1434 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435
1436 test "$silent" = yes && exec 6>/dev/null
1437
1438
1439 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di=`ls -di .` &&
1441 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1442   as_fn_error $? "working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444   as_fn_error $? "pwd does not report name of working directory"
1445
1446
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449   ac_srcdir_defaulted=yes
1450   # Try the directory containing this script, then the parent directory.
1451   ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453          X"$as_myself" : 'X\(//\)[^/]' \| \
1454          X"$as_myself" : 'X\(//\)$' \| \
1455          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458             s//\1/
1459             q
1460           }
1461           /^X\(\/\/\)[^/].*/{
1462             s//\1/
1463             q
1464           }
1465           /^X\(\/\/\)$/{
1466             s//\1/
1467             q
1468           }
1469           /^X\(\/\).*/{
1470             s//\1/
1471             q
1472           }
1473           s/.*/./; q'`
1474   srcdir=$ac_confdir
1475   if test ! -r "$srcdir/$ac_unique_file"; then
1476     srcdir=..
1477   fi
1478 else
1479   ac_srcdir_defaulted=no
1480 fi
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1484 fi
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486 ac_abs_confdir=`(
1487         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1488         pwd)`
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1491   srcdir=.
1492 fi
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1496 case $srcdir in
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 esac
1499 for ac_var in $ac_precious_vars; do
1500   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501   eval ac_env_${ac_var}_value=\$${ac_var}
1502   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504 done
1505
1506 #
1507 # Report the --help message.
1508 #
1509 if test "$ac_init_help" = "long"; then
1510   # Omit some internal or obsolete options to make the list less imposing.
1511   # This message is too long to be a string in the A/UX 3.1 sh.
1512   cat <<_ACEOF
1513 \`configure' configures opensaml 2.5.0 to adapt to many kinds of systems.
1514
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1516
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE.  See below for descriptions of some of the useful variables.
1519
1520 Defaults for the options are specified in brackets.
1521
1522 Configuration:
1523   -h, --help              display this help and exit
1524       --help=short        display options specific to this package
1525       --help=recursive    display the short help of all the included packages
1526   -V, --version           display version information and exit
1527   -q, --quiet, --silent   do not print \`checking ...' messages
1528       --cache-file=FILE   cache test results in FILE [disabled]
1529   -C, --config-cache      alias for \`--cache-file=config.cache'
1530   -n, --no-create         do not create output files
1531       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1532
1533 Installation directories:
1534   --prefix=PREFIX         install architecture-independent files in PREFIX
1535                           [$ac_default_prefix]
1536   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1537                           [PREFIX]
1538
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1543
1544 For better control, use the options below.
1545
1546 Fine tuning of the installation directories:
1547   --bindir=DIR            user executables [EPREFIX/bin]
1548   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1549   --libexecdir=DIR        program executables [EPREFIX/libexec]
1550   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1551   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1552   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1553   --libdir=DIR            object code libraries [EPREFIX/lib]
1554   --includedir=DIR        C header files [PREFIX/include]
1555   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1556   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1557   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1558   --infodir=DIR           info documentation [DATAROOTDIR/info]
1559   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1560   --mandir=DIR            man documentation [DATAROOTDIR/man]
1561   --docdir=DIR            documentation root [DATAROOTDIR/doc/opensaml]
1562   --htmldir=DIR           html documentation [DOCDIR]
1563   --dvidir=DIR            dvi documentation [DOCDIR]
1564   --pdfdir=DIR            pdf documentation [DOCDIR]
1565   --psdir=DIR             ps documentation [DOCDIR]
1566 _ACEOF
1567
1568   cat <<\_ACEOF
1569
1570 Program names:
1571   --program-prefix=PREFIX            prepend PREFIX to installed program names
1572   --program-suffix=SUFFIX            append SUFFIX to installed program names
1573   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1574
1575 System types:
1576   --build=BUILD     configure for building on BUILD [guessed]
1577   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1578 _ACEOF
1579 fi
1580
1581 if test -n "$ac_init_help"; then
1582   case $ac_init_help in
1583      short | recursive ) echo "Configuration of opensaml 2.5.0:";;
1584    esac
1585   cat <<\_ACEOF
1586
1587 Optional Features:
1588   --disable-option-checking  ignore unrecognized --enable/--with options
1589   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1590   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1591   --enable-static[=PKGS]  build static libraries [default=no]
1592   --enable-shared[=PKGS]  build shared libraries [default=yes]
1593   --enable-fast-install[=PKGS]
1594                           optimize for fast installation [default=yes]
1595   --disable-dependency-tracking  speeds up one-time build
1596   --enable-dependency-tracking   do not reject slow dependency extractors
1597   --disable-libtool-lock  avoid locking (might break parallel builds)
1598   --disable-doxygen-doc   don't generate any doxygen documentation
1599   --enable-doxygen-dot    generate graphics for doxygen documentation
1600   --enable-doxygen-man    generate doxygen manual pages
1601   --enable-doxygen-rtf    generate doxygen RTF documentation
1602   --enable-doxygen-xml    generate doxygen XML documentation
1603   --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1604   --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1605                           file
1606   --disable-doxygen-html  don't generate doxygen plain HTML documentation
1607   --enable-doxygen-ps     generate doxygen PostScript documentation
1608   --enable-doxygen-pdf    generate doxygen PDF documentation
1609   --enable-debug          Have GCC compile with symbols (Default = no)
1610
1611 Optional Packages:
1612   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1613   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1614   --with-pic              try to use only PIC/non-PIC objects [default=use
1615                           both]
1616   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1617   --with-zlib=PATH        where zlib is installed
1618   --with-openssl=PATH     where openssl is installed
1619   --with-boost=DIR        prefix of Boost [guess]
1620   --with-log4shib=PATH    where log4shib-config is installed
1621   --with-log4cpp=PATH     where log4cpp-config is installed
1622   --with-xerces=PATH      where xerces-c is installed
1623   --with-xmlsec=PATH      where xmlsec is installed
1624   --with-xmltooling=PATH  where xmltooling is installed
1625   --with-cxxtest=PATH     where cxxtest is installed
1626
1627 Some influential environment variables:
1628   CC          C compiler command
1629   CFLAGS      C compiler flags
1630   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1631               nonstandard directory <lib dir>
1632   LIBS        libraries to pass to the linker, e.g. -l<library>
1633   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1634               you have headers in a nonstandard directory <include dir>
1635   CPP         C preprocessor
1636   DOXYGEN_PAPER_SIZE
1637               a4wide (default), a4, letter, legal or executive
1638   CXX         C++ compiler command
1639   CXXFLAGS    C++ compiler flags
1640   CXXCPP      C++ preprocessor
1641   BOOST_ROOT  Location of Boost installation
1642
1643 Use these variables to override the choices made by `configure' or to help
1644 it to find libraries and programs with nonstandard names/locations.
1645
1646 Report bugs to <https://issues.shibboleth.net/>.
1647 _ACEOF
1648 ac_status=$?
1649 fi
1650
1651 if test "$ac_init_help" = "recursive"; then
1652   # If there are subdirs, report their specific --help.
1653   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1654     test -d "$ac_dir" ||
1655       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1656       continue
1657     ac_builddir=.
1658
1659 case "$ac_dir" in
1660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *)
1662   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1663   # A ".." for each directory in $ac_dir_suffix.
1664   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1665   case $ac_top_builddir_sub in
1666   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1668   esac ;;
1669 esac
1670 ac_abs_top_builddir=$ac_pwd
1671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1672 # for backward compatibility:
1673 ac_top_builddir=$ac_top_build_prefix
1674
1675 case $srcdir in
1676   .)  # We are building in place.
1677     ac_srcdir=.
1678     ac_top_srcdir=$ac_top_builddir_sub
1679     ac_abs_top_srcdir=$ac_pwd ;;
1680   [\\/]* | ?:[\\/]* )  # Absolute name.
1681     ac_srcdir=$srcdir$ac_dir_suffix;
1682     ac_top_srcdir=$srcdir
1683     ac_abs_top_srcdir=$srcdir ;;
1684   *) # Relative name.
1685     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1686     ac_top_srcdir=$ac_top_build_prefix$srcdir
1687     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 esac
1689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690
1691     cd "$ac_dir" || { ac_status=$?; continue; }
1692     # Check for guested configure.
1693     if test -f "$ac_srcdir/configure.gnu"; then
1694       echo &&
1695       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696     elif test -f "$ac_srcdir/configure"; then
1697       echo &&
1698       $SHELL "$ac_srcdir/configure" --help=recursive
1699     else
1700       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701     fi || ac_status=$?
1702     cd "$ac_pwd" || { ac_status=$?; break; }
1703   done
1704 fi
1705
1706 test -n "$ac_init_help" && exit $ac_status
1707 if $ac_init_version; then
1708   cat <<\_ACEOF
1709 opensaml configure 2.5.0
1710 generated by GNU Autoconf 2.67
1711
1712 Copyright (C) 2010 Free Software Foundation, Inc.
1713 This configure script is free software; the Free Software Foundation
1714 gives unlimited permission to copy, distribute and modify it.
1715 _ACEOF
1716   exit
1717 fi
1718
1719 ## ------------------------ ##
1720 ## Autoconf initialization. ##
1721 ## ------------------------ ##
1722
1723 # ac_fn_c_try_compile LINENO
1724 # --------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_compile ()
1727 {
1728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729   rm -f conftest.$ac_objext
1730   if { { ac_try="$ac_compile"
1731 case "(($ac_try" in
1732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733   *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737   (eval "$ac_compile") 2>conftest.err
1738   ac_status=$?
1739   if test -s conftest.err; then
1740     grep -v '^ *+' conftest.err >conftest.er1
1741     cat conftest.er1 >&5
1742     mv -f conftest.er1 conftest.err
1743   fi
1744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745   test $ac_status = 0; } && {
1746          test -z "$ac_c_werror_flag" ||
1747          test ! -s conftest.err
1748        } && test -s conftest.$ac_objext; then :
1749   ac_retval=0
1750 else
1751   $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754         ac_retval=1
1755 fi
1756   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757   as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_compile
1760
1761 # ac_fn_c_try_link LINENO
1762 # -----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_link ()
1765 {
1766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767   rm -f conftest.$ac_objext conftest$ac_exeext
1768   if { { ac_try="$ac_link"
1769 case "(($ac_try" in
1770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771   *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775   (eval "$ac_link") 2>conftest.err
1776   ac_status=$?
1777   if test -s conftest.err; then
1778     grep -v '^ *+' conftest.err >conftest.er1
1779     cat conftest.er1 >&5
1780     mv -f conftest.er1 conftest.err
1781   fi
1782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783   test $ac_status = 0; } && {
1784          test -z "$ac_c_werror_flag" ||
1785          test ! -s conftest.err
1786        } && test -s conftest$ac_exeext && {
1787          test "$cross_compiling" = yes ||
1788          $as_test_x conftest$ac_exeext
1789        }; then :
1790   ac_retval=0
1791 else
1792   $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795         ac_retval=1
1796 fi
1797   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1798   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1799   # interfere with the next link command; also delete a directory that is
1800   # left behind by Apple's compiler.  We do this before executing the actions.
1801   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803   as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_link
1806
1807 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1808 # -------------------------------------------------------
1809 # Tests whether HEADER exists and can be compiled using the include files in
1810 # INCLUDES, setting the cache variable VAR accordingly.
1811 ac_fn_c_check_header_compile ()
1812 {
1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval "test \"\${$3+set}\"" = set; then :
1817   $as_echo_n "(cached) " >&6
1818 else
1819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h.  */
1821 $4
1822 #include <$2>
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825   eval "$3=yes"
1826 else
1827   eval "$3=no"
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 fi
1831 eval ac_res=\$$3
1832                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835
1836 } # ac_fn_c_check_header_compile
1837
1838 # ac_fn_c_try_cpp LINENO
1839 # ----------------------
1840 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_cpp ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   if { { ac_try="$ac_cpp conftest.$ac_ext"
1845 case "(($ac_try" in
1846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847   *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852   ac_status=$?
1853   if test -s conftest.err; then
1854     grep -v '^ *+' conftest.err >conftest.er1
1855     cat conftest.er1 >&5
1856     mv -f conftest.er1 conftest.err
1857   fi
1858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859   test $ac_status = 0; } > conftest.i && {
1860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861          test ! -s conftest.err
1862        }; then :
1863   ac_retval=0
1864 else
1865   $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868     ac_retval=1
1869 fi
1870   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871   as_fn_set_status $ac_retval
1872
1873 } # ac_fn_c_try_cpp
1874
1875 # ac_fn_c_try_run LINENO
1876 # ----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878 # that executables *can* be run.
1879 ac_fn_c_try_run ()
1880 {
1881   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882   if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885   *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889   (eval "$ac_link") 2>&5
1890   ac_status=$?
1891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893   { { case "(($ac_try" in
1894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895   *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899   (eval "$ac_try") 2>&5
1900   ac_status=$?
1901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902   test $ac_status = 0; }; }; then :
1903   ac_retval=0
1904 else
1905   $as_echo "$as_me: program exited with status $ac_status" >&5
1906        $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909        ac_retval=$ac_status
1910 fi
1911   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913   as_fn_set_status $ac_retval
1914
1915 } # ac_fn_c_try_run
1916
1917 # ac_fn_c_check_func LINENO FUNC VAR
1918 # ----------------------------------
1919 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1920 ac_fn_c_check_func ()
1921 {
1922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval "test \"\${$3+set}\"" = set; then :
1926   $as_echo_n "(cached) " >&6
1927 else
1928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h.  */
1930 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1932 #define $2 innocuous_$2
1933
1934 /* System header to define __stub macros and hopefully few prototypes,
1935     which can conflict with char $2 (); below.
1936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1937     <limits.h> exists even on freestanding compilers.  */
1938
1939 #ifdef __STDC__
1940 # include <limits.h>
1941 #else
1942 # include <assert.h>
1943 #endif
1944
1945 #undef $2
1946
1947 /* Override any GCC internal prototype to avoid an error.
1948    Use char because int might match the return type of a GCC
1949    builtin and then its argument prototype would still apply.  */
1950 #ifdef __cplusplus
1951 extern "C"
1952 #endif
1953 char $2 ();
1954 /* The GNU C library defines this for functions which it implements
1955     to always fail with ENOSYS.  Some functions are actually named
1956     something starting with __ and the normal name is an alias.  */
1957 #if defined __stub_$2 || defined __stub___$2
1958 choke me
1959 #endif
1960
1961 int
1962 main ()
1963 {
1964 return $2 ();
1965   ;
1966   return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_link "$LINENO"; then :
1970   eval "$3=yes"
1971 else
1972   eval "$3=no"
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext \
1975     conftest$ac_exeext conftest.$ac_ext
1976 fi
1977 eval ac_res=\$$3
1978                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981
1982 } # ac_fn_c_check_func
1983
1984 # ac_fn_cxx_try_compile LINENO
1985 # ----------------------------
1986 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1987 ac_fn_cxx_try_compile ()
1988 {
1989   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990   rm -f conftest.$ac_objext
1991   if { { ac_try="$ac_compile"
1992 case "(($ac_try" in
1993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994   *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998   (eval "$ac_compile") 2>conftest.err
1999   ac_status=$?
2000   if test -s conftest.err; then
2001     grep -v '^ *+' conftest.err >conftest.er1
2002     cat conftest.er1 >&5
2003     mv -f conftest.er1 conftest.err
2004   fi
2005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006   test $ac_status = 0; } && {
2007          test -z "$ac_cxx_werror_flag" ||
2008          test ! -s conftest.err
2009        } && test -s conftest.$ac_objext; then :
2010   ac_retval=0
2011 else
2012   $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015         ac_retval=1
2016 fi
2017   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018   as_fn_set_status $ac_retval
2019
2020 } # ac_fn_cxx_try_compile
2021
2022 # ac_fn_cxx_try_cpp LINENO
2023 # ------------------------
2024 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_cxx_try_cpp ()
2026 {
2027   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028   if { { ac_try="$ac_cpp conftest.$ac_ext"
2029 case "(($ac_try" in
2030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031   *) ac_try_echo=$ac_try;;
2032 esac
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2036   ac_status=$?
2037   if test -s conftest.err; then
2038     grep -v '^ *+' conftest.err >conftest.er1
2039     cat conftest.er1 >&5
2040     mv -f conftest.er1 conftest.err
2041   fi
2042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043   test $ac_status = 0; } > conftest.i && {
2044          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2045          test ! -s conftest.err
2046        }; then :
2047   ac_retval=0
2048 else
2049   $as_echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2051
2052     ac_retval=1
2053 fi
2054   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055   as_fn_set_status $ac_retval
2056
2057 } # ac_fn_cxx_try_cpp
2058
2059 # ac_fn_cxx_try_link LINENO
2060 # -------------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded.
2062 ac_fn_cxx_try_link ()
2063 {
2064   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065   rm -f conftest.$ac_objext conftest$ac_exeext
2066   if { { ac_try="$ac_link"
2067 case "(($ac_try" in
2068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069   *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073   (eval "$ac_link") 2>conftest.err
2074   ac_status=$?
2075   if test -s conftest.err; then
2076     grep -v '^ *+' conftest.err >conftest.er1
2077     cat conftest.er1 >&5
2078     mv -f conftest.er1 conftest.err
2079   fi
2080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081   test $ac_status = 0; } && {
2082          test -z "$ac_cxx_werror_flag" ||
2083          test ! -s conftest.err
2084        } && test -s conftest$ac_exeext && {
2085          test "$cross_compiling" = yes ||
2086          $as_test_x conftest$ac_exeext
2087        }; then :
2088   ac_retval=0
2089 else
2090   $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092
2093         ac_retval=1
2094 fi
2095   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2096   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2097   # interfere with the next link command; also delete a directory that is
2098   # left behind by Apple's compiler.  We do this before executing the actions.
2099   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2101   as_fn_set_status $ac_retval
2102
2103 } # ac_fn_cxx_try_link
2104
2105 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2106 # -------------------------------------------
2107 # Tests whether TYPE exists after having included INCLUDES, setting cache
2108 # variable VAR accordingly.
2109 ac_fn_c_check_type ()
2110 {
2111   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if eval "test \"\${$3+set}\"" = set; then :
2115   $as_echo_n "(cached) " >&6
2116 else
2117   eval "$3=no"
2118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h.  */
2120 $4
2121 int
2122 main ()
2123 {
2124 if (sizeof ($2))
2125          return 0;
2126   ;
2127   return 0;
2128 }
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h.  */
2133 $4
2134 int
2135 main ()
2136 {
2137 if (sizeof (($2)))
2138             return 0;
2139   ;
2140   return 0;
2141 }
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144
2145 else
2146   eval "$3=yes"
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 fi
2152 eval ac_res=\$$3
2153                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2156
2157 } # ac_fn_c_check_type
2158
2159 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2160 # --------------------------------------------
2161 # Tries to find the compile-time value of EXPR in a program that includes
2162 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2163 # computed
2164 ac_fn_c_compute_int ()
2165 {
2166   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167   if test "$cross_compiling" = yes; then
2168     # Depending upon the size, compute the lo and hi bounds.
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h.  */
2171 $4
2172 int
2173 main ()
2174 {
2175 static int test_array [1 - 2 * !(($2) >= 0)];
2176 test_array [0] = 0
2177
2178   ;
2179   return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183   ac_lo=0 ac_mid=0
2184   while :; do
2185     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h.  */
2187 $4
2188 int
2189 main ()
2190 {
2191 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2192 test_array [0] = 0
2193
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199   ac_hi=$ac_mid; break
2200 else
2201   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2202                         if test $ac_lo -le $ac_mid; then
2203                           ac_lo= ac_hi=
2204                           break
2205                         fi
2206                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209   done
2210 else
2211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h.  */
2213 $4
2214 int
2215 main ()
2216 {
2217 static int test_array [1 - 2 * !(($2) < 0)];
2218 test_array [0] = 0
2219
2220   ;
2221   return 0;
2222 }
2223 _ACEOF
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225   ac_hi=-1 ac_mid=-1
2226   while :; do
2227     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h.  */
2229 $4
2230 int
2231 main ()
2232 {
2233 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2234 test_array [0] = 0
2235
2236   ;
2237   return 0;
2238 }
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241   ac_lo=$ac_mid; break
2242 else
2243   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2244                         if test $ac_mid -le $ac_hi; then
2245                           ac_lo= ac_hi=
2246                           break
2247                         fi
2248                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2249 fi
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251   done
2252 else
2253   ac_lo= ac_hi=
2254 fi
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 fi
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 # Binary search between lo and hi bounds.
2259 while test "x$ac_lo" != "x$ac_hi"; do
2260   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h.  */
2263 $4
2264 int
2265 main ()
2266 {
2267 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2268 test_array [0] = 0
2269
2270   ;
2271   return 0;
2272 }
2273 _ACEOF
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275   ac_hi=$ac_mid
2276 else
2277   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2278 fi
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 done
2281 case $ac_lo in #((
2282 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2283 '') ac_retval=1 ;;
2284 esac
2285   else
2286     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h.  */
2288 $4
2289 static long int longval () { return $2; }
2290 static unsigned long int ulongval () { return $2; }
2291 #include <stdio.h>
2292 #include <stdlib.h>
2293 int
2294 main ()
2295 {
2296
2297   FILE *f = fopen ("conftest.val", "w");
2298   if (! f)
2299     return 1;
2300   if (($2) < 0)
2301     {
2302       long int i = longval ();
2303       if (i != ($2))
2304         return 1;
2305       fprintf (f, "%ld", i);
2306     }
2307   else
2308     {
2309       unsigned long int i = ulongval ();
2310       if (i != ($2))
2311         return 1;
2312       fprintf (f, "%lu", i);
2313     }
2314   /* Do not output a trailing newline, as this causes \r\n confusion
2315      on some platforms.  */
2316   return ferror (f) || fclose (f) != 0;
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_run "$LINENO"; then :
2323   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2324 else
2325   ac_retval=1
2326 fi
2327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2328   conftest.$ac_objext conftest.beam conftest.$ac_ext
2329 rm -f conftest.val
2330
2331   fi
2332   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2333   as_fn_set_status $ac_retval
2334
2335 } # ac_fn_c_compute_int
2336
2337 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2338 # -------------------------------------------------------
2339 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2340 # the include files in INCLUDES and setting the cache variable VAR
2341 # accordingly.
2342 ac_fn_c_check_header_mongrel ()
2343 {
2344   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345   if eval "test \"\${$3+set}\"" = set; then :
2346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2347 $as_echo_n "checking for $2... " >&6; }
2348 if eval "test \"\${$3+set}\"" = set; then :
2349   $as_echo_n "(cached) " >&6
2350 fi
2351 eval ac_res=\$$3
2352                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 else
2355   # Is the header compilable?
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2357 $as_echo_n "checking $2 usability... " >&6; }
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h.  */
2360 $4
2361 #include <$2>
2362 _ACEOF
2363 if ac_fn_c_try_compile "$LINENO"; then :
2364   ac_header_compiler=yes
2365 else
2366   ac_header_compiler=no
2367 fi
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2370 $as_echo "$ac_header_compiler" >&6; }
2371
2372 # Is the header present?
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2374 $as_echo_n "checking $2 presence... " >&6; }
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h.  */
2377 #include <$2>
2378 _ACEOF
2379 if ac_fn_c_try_cpp "$LINENO"; then :
2380   ac_header_preproc=yes
2381 else
2382   ac_header_preproc=no
2383 fi
2384 rm -f conftest.err conftest.i conftest.$ac_ext
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2386 $as_echo "$ac_header_preproc" >&6; }
2387
2388 # So?  What about this header?
2389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2390   yes:no: )
2391     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2392 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2394 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2395     ;;
2396   no:yes:* )
2397     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2398 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2399     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2400 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2401     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2402 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2403     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2404 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2405     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2406 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2407 ( $as_echo "## --------------------------------------------- ##
2408 ## Report this to https://issues.shibboleth.net/ ##
2409 ## --------------------------------------------- ##"
2410      ) | sed "s/^/$as_me: WARNING:     /" >&2
2411     ;;
2412 esac
2413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2414 $as_echo_n "checking for $2... " >&6; }
2415 if eval "test \"\${$3+set}\"" = set; then :
2416   $as_echo_n "(cached) " >&6
2417 else
2418   eval "$3=\$ac_header_compiler"
2419 fi
2420 eval ac_res=\$$3
2421                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2422 $as_echo "$ac_res" >&6; }
2423 fi
2424   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2425
2426 } # ac_fn_c_check_header_mongrel
2427
2428 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2429 # ---------------------------------------------------------
2430 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2431 # the include files in INCLUDES and setting the cache variable VAR
2432 # accordingly.
2433 ac_fn_cxx_check_header_mongrel ()
2434 {
2435   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2436   if eval "test \"\${$3+set}\"" = set; then :
2437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2438 $as_echo_n "checking for $2... " >&6; }
2439 if eval "test \"\${$3+set}\"" = set; then :
2440   $as_echo_n "(cached) " >&6
2441 fi
2442 eval ac_res=\$$3
2443                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445 else
2446   # Is the header compilable?
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2448 $as_echo_n "checking $2 usability... " >&6; }
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h.  */
2451 $4
2452 #include <$2>
2453 _ACEOF
2454 if ac_fn_cxx_try_compile "$LINENO"; then :
2455   ac_header_compiler=yes
2456 else
2457   ac_header_compiler=no
2458 fi
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2461 $as_echo "$ac_header_compiler" >&6; }
2462
2463 # Is the header present?
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2465 $as_echo_n "checking $2 presence... " >&6; }
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h.  */
2468 #include <$2>
2469 _ACEOF
2470 if ac_fn_cxx_try_cpp "$LINENO"; then :
2471   ac_header_preproc=yes
2472 else
2473   ac_header_preproc=no
2474 fi
2475 rm -f conftest.err conftest.i conftest.$ac_ext
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2477 $as_echo "$ac_header_preproc" >&6; }
2478
2479 # So?  What about this header?
2480 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2481   yes:no: )
2482     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2483 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2484     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2485 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2486     ;;
2487   no:yes:* )
2488     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2489 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2490     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2491 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2492     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2493 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2494     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2495 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2496     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2497 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2498 ( $as_echo "## --------------------------------------------- ##
2499 ## Report this to https://issues.shibboleth.net/ ##
2500 ## --------------------------------------------- ##"
2501      ) | sed "s/^/$as_me: WARNING:     /" >&2
2502     ;;
2503 esac
2504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2505 $as_echo_n "checking for $2... " >&6; }
2506 if eval "test \"\${$3+set}\"" = set; then :
2507   $as_echo_n "(cached) " >&6
2508 else
2509   eval "$3=\$ac_header_compiler"
2510 fi
2511 eval ac_res=\$$3
2512                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513 $as_echo "$ac_res" >&6; }
2514 fi
2515   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2516
2517 } # ac_fn_cxx_check_header_mongrel
2518 cat >config.log <<_ACEOF
2519 This file contains any messages produced by compilers while
2520 running configure, to aid debugging if configure makes a mistake.
2521
2522 It was created by opensaml $as_me 2.5.0, which was
2523 generated by GNU Autoconf 2.67.  Invocation command line was
2524
2525   $ $0 $@
2526
2527 _ACEOF
2528 exec 5>>config.log
2529 {
2530 cat <<_ASUNAME
2531 ## --------- ##
2532 ## Platform. ##
2533 ## --------- ##
2534
2535 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2536 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2537 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2538 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2539 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2540
2541 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2542 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2543
2544 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2545 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2546 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2547 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2548 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2549 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2550 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2551
2552 _ASUNAME
2553
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557   IFS=$as_save_IFS
2558   test -z "$as_dir" && as_dir=.
2559     $as_echo "PATH: $as_dir"
2560   done
2561 IFS=$as_save_IFS
2562
2563 } >&5
2564
2565 cat >&5 <<_ACEOF
2566
2567
2568 ## ----------- ##
2569 ## Core tests. ##
2570 ## ----------- ##
2571
2572 _ACEOF
2573
2574
2575 # Keep a trace of the command line.
2576 # Strip out --no-create and --no-recursion so they do not pile up.
2577 # Strip out --silent because we don't want to record it for future runs.
2578 # Also quote any args containing shell meta-characters.
2579 # Make two passes to allow for proper duplicate-argument suppression.
2580 ac_configure_args=
2581 ac_configure_args0=
2582 ac_configure_args1=
2583 ac_must_keep_next=false
2584 for ac_pass in 1 2
2585 do
2586   for ac_arg
2587   do
2588     case $ac_arg in
2589     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2590     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2591     | -silent | --silent | --silen | --sile | --sil)
2592       continue ;;
2593     *\'*)
2594       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2595     esac
2596     case $ac_pass in
2597     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2598     2)
2599       as_fn_append ac_configure_args1 " '$ac_arg'"
2600       if test $ac_must_keep_next = true; then
2601         ac_must_keep_next=false # Got value, back to normal.
2602       else
2603         case $ac_arg in
2604           *=* | --config-cache | -C | -disable-* | --disable-* \
2605           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2606           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2607           | -with-* | --with-* | -without-* | --without-* | --x)
2608             case "$ac_configure_args0 " in
2609               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2610             esac
2611             ;;
2612           -* ) ac_must_keep_next=true ;;
2613         esac
2614       fi
2615       as_fn_append ac_configure_args " '$ac_arg'"
2616       ;;
2617     esac
2618   done
2619 done
2620 { ac_configure_args0=; unset ac_configure_args0;}
2621 { ac_configure_args1=; unset ac_configure_args1;}
2622
2623 # When interrupted or exit'd, cleanup temporary files, and complete
2624 # config.log.  We remove comments because anyway the quotes in there
2625 # would cause problems or look ugly.
2626 # WARNING: Use '\'' to represent an apostrophe within the trap.
2627 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2628 trap 'exit_status=$?
2629   # Save into config.log some information that might help in debugging.
2630   {
2631     echo
2632
2633     $as_echo "## ---------------- ##
2634 ## Cache variables. ##
2635 ## ---------------- ##"
2636     echo
2637     # The following way of writing the cache mishandles newlines in values,
2638 (
2639   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2640     eval ac_val=\$$ac_var
2641     case $ac_val in #(
2642     *${as_nl}*)
2643       case $ac_var in #(
2644       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2645 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2646       esac
2647       case $ac_var in #(
2648       _ | IFS | as_nl) ;; #(
2649       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2650       *) { eval $ac_var=; unset $ac_var;} ;;
2651       esac ;;
2652     esac
2653   done
2654   (set) 2>&1 |
2655     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2656     *${as_nl}ac_space=\ *)
2657       sed -n \
2658         "s/'\''/'\''\\\\'\'''\''/g;
2659           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2660       ;; #(
2661     *)
2662       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2663       ;;
2664     esac |
2665     sort
2666 )
2667     echo
2668
2669     $as_echo "## ----------------- ##
2670 ## Output variables. ##
2671 ## ----------------- ##"
2672     echo
2673     for ac_var in $ac_subst_vars
2674     do
2675       eval ac_val=\$$ac_var
2676       case $ac_val in
2677       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2678       esac
2679       $as_echo "$ac_var='\''$ac_val'\''"
2680     done | sort
2681     echo
2682
2683     if test -n "$ac_subst_files"; then
2684       $as_echo "## ------------------- ##
2685 ## File substitutions. ##
2686 ## ------------------- ##"
2687       echo
2688       for ac_var in $ac_subst_files
2689       do
2690         eval ac_val=\$$ac_var
2691         case $ac_val in
2692         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2693         esac
2694         $as_echo "$ac_var='\''$ac_val'\''"
2695       done | sort
2696       echo
2697     fi
2698
2699     if test -s confdefs.h; then
2700       $as_echo "## ----------- ##
2701 ## confdefs.h. ##
2702 ## ----------- ##"
2703       echo
2704       cat confdefs.h
2705       echo
2706     fi
2707     test "$ac_signal" != 0 &&
2708       $as_echo "$as_me: caught signal $ac_signal"
2709     $as_echo "$as_me: exit $exit_status"
2710   } >&5
2711   rm -f core *.core core.conftest.* &&
2712     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2713     exit $exit_status
2714 ' 0
2715 for ac_signal in 1 2 13 15; do
2716   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2717 done
2718 ac_signal=0
2719
2720 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2721 rm -f -r conftest* confdefs.h
2722
2723 $as_echo "/* confdefs.h */" > confdefs.h
2724
2725 # Predefined preprocessor variables.
2726
2727 cat >>confdefs.h <<_ACEOF
2728 #define PACKAGE_NAME "$PACKAGE_NAME"
2729 _ACEOF
2730
2731 cat >>confdefs.h <<_ACEOF
2732 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2733 _ACEOF
2734
2735 cat >>confdefs.h <<_ACEOF
2736 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2737 _ACEOF
2738
2739 cat >>confdefs.h <<_ACEOF
2740 #define PACKAGE_STRING "$PACKAGE_STRING"
2741 _ACEOF
2742
2743 cat >>confdefs.h <<_ACEOF
2744 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2745 _ACEOF
2746
2747 cat >>confdefs.h <<_ACEOF
2748 #define PACKAGE_URL "$PACKAGE_URL"
2749 _ACEOF
2750
2751
2752 # Let the site file select an alternate cache file if it wants to.
2753 # Prefer an explicitly selected file to automatically selected ones.
2754 ac_site_file1=NONE
2755 ac_site_file2=NONE
2756 if test -n "$CONFIG_SITE"; then
2757   # We do not want a PATH search for config.site.
2758   case $CONFIG_SITE in #((
2759     -*)  ac_site_file1=./$CONFIG_SITE;;
2760     */*) ac_site_file1=$CONFIG_SITE;;
2761     *)   ac_site_file1=./$CONFIG_SITE;;
2762   esac
2763 elif test "x$prefix" != xNONE; then
2764   ac_site_file1=$prefix/share/config.site
2765   ac_site_file2=$prefix/etc/config.site
2766 else
2767   ac_site_file1=$ac_default_prefix/share/config.site
2768   ac_site_file2=$ac_default_prefix/etc/config.site
2769 fi
2770 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2771 do
2772   test "x$ac_site_file" = xNONE && continue
2773   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2774     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2775 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2776     sed 's/^/| /' "$ac_site_file" >&5
2777     . "$ac_site_file" \
2778       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2780 as_fn_error $? "failed to load site script $ac_site_file
2781 See \`config.log' for more details" "$LINENO" 5 ; }
2782   fi
2783 done
2784
2785 if test -r "$cache_file"; then
2786   # Some versions of bash will fail to source /dev/null (special files
2787   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2788   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2789     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2790 $as_echo "$as_me: loading cache $cache_file" >&6;}
2791     case $cache_file in
2792       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2793       *)                      . "./$cache_file";;
2794     esac
2795   fi
2796 else
2797   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2798 $as_echo "$as_me: creating cache $cache_file" >&6;}
2799   >$cache_file
2800 fi
2801
2802 # Check that the precious variables saved in the cache have kept the same
2803 # value.
2804 ac_cache_corrupted=false
2805 for ac_var in $ac_precious_vars; do
2806   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2807   eval ac_new_set=\$ac_env_${ac_var}_set
2808   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2809   eval ac_new_val=\$ac_env_${ac_var}_value
2810   case $ac_old_set,$ac_new_set in
2811     set,)
2812       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2813 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2814       ac_cache_corrupted=: ;;
2815     ,set)
2816       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2817 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2818       ac_cache_corrupted=: ;;
2819     ,);;
2820     *)
2821       if test "x$ac_old_val" != "x$ac_new_val"; then
2822         # differences in whitespace do not lead to failure.
2823         ac_old_val_w=`echo x $ac_old_val`
2824         ac_new_val_w=`echo x $ac_new_val`
2825         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2826           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2827 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2828           ac_cache_corrupted=:
2829         else
2830           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2831 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2832           eval $ac_var=\$ac_old_val
2833         fi
2834         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2835 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2836         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2837 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2838       fi;;
2839   esac
2840   # Pass precious variables to config.status.
2841   if test "$ac_new_set" = set; then
2842     case $ac_new_val in
2843     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2844     *) ac_arg=$ac_var=$ac_new_val ;;
2845     esac
2846     case " $ac_configure_args " in
2847       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2848       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2849     esac
2850   fi
2851 done
2852 if $ac_cache_corrupted; then
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2855   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2856 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2857   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2858 fi
2859 ## -------------------- ##
2860 ## Main body of script. ##
2861 ## -------------------- ##
2862
2863 ac_ext=c
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868
2869
2870
2871 ac_aux_dir=
2872 for ac_dir in build-aux "$srcdir"/build-aux; do
2873   if test -f "$ac_dir/install-sh"; then
2874     ac_aux_dir=$ac_dir
2875     ac_install_sh="$ac_aux_dir/install-sh -c"
2876     break
2877   elif test -f "$ac_dir/install.sh"; then
2878     ac_aux_dir=$ac_dir
2879     ac_install_sh="$ac_aux_dir/install.sh -c"
2880     break
2881   elif test -f "$ac_dir/shtool"; then
2882     ac_aux_dir=$ac_dir
2883     ac_install_sh="$ac_aux_dir/shtool install -c"
2884     break
2885   fi
2886 done
2887 if test -z "$ac_aux_dir"; then
2888   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2889 fi
2890
2891 # These three variables are undocumented and unsupported,
2892 # and are intended to be withdrawn in a future Autoconf release.
2893 # They can cause serious problems if a builder's source tree is in a directory
2894 # whose full name contains unusual characters.
2895 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2896 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2897 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2898
2899
2900
2901 am__api_version='1.11'
2902
2903 # Find a good install program.  We prefer a C program (faster),
2904 # so one script is as good as another.  But avoid the broken or
2905 # incompatible versions:
2906 # SysV /etc/install, /usr/sbin/install
2907 # SunOS /usr/etc/install
2908 # IRIX /sbin/install
2909 # AIX /bin/install
2910 # AmigaOS /C/install, which installs bootblocks on floppy discs
2911 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2912 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2913 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2914 # OS/2's system install, which has a completely different semantic
2915 # ./install, which can be erroneously created by make from ./install.sh.
2916 # Reject install programs that cannot install multiple files.
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2918 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2919 if test -z "$INSTALL"; then
2920 if test "${ac_cv_path_install+set}" = set; then :
2921   $as_echo_n "(cached) " >&6
2922 else
2923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926   IFS=$as_save_IFS
2927   test -z "$as_dir" && as_dir=.
2928     # Account for people who put trailing slashes in PATH elements.
2929 case $as_dir/ in #((
2930   ./ | .// | /[cC]/* | \
2931   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2932   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2933   /usr/ucb/* ) ;;
2934   *)
2935     # OSF1 and SCO ODT 3.0 have their own names for install.
2936     # Don't use installbsd from OSF since it installs stuff as root
2937     # by default.
2938     for ac_prog in ginstall scoinst install; do
2939       for ac_exec_ext in '' $ac_executable_extensions; do
2940         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2941           if test $ac_prog = install &&
2942             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2943             # AIX install.  It has an incompatible calling convention.
2944             :
2945           elif test $ac_prog = install &&
2946             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2947             # program-specific install script used by HP pwplus--don't use.
2948             :
2949           else
2950             rm -rf conftest.one conftest.two conftest.dir
2951             echo one > conftest.one
2952             echo two > conftest.two
2953             mkdir conftest.dir
2954             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2955               test -s conftest.one && test -s conftest.two &&
2956               test -s conftest.dir/conftest.one &&
2957               test -s conftest.dir/conftest.two
2958             then
2959               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2960               break 3
2961             fi
2962           fi
2963         fi
2964       done
2965     done
2966     ;;
2967 esac
2968
2969   done
2970 IFS=$as_save_IFS
2971
2972 rm -rf conftest.one conftest.two conftest.dir
2973
2974 fi
2975   if test "${ac_cv_path_install+set}" = set; then
2976     INSTALL=$ac_cv_path_install
2977   else
2978     # As a last resort, use the slow shell script.  Don't cache a
2979     # value for INSTALL within a source directory, because that will
2980     # break other packages using the cache if that directory is
2981     # removed, or if the value is a relative name.
2982     INSTALL=$ac_install_sh
2983   fi
2984 fi
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2986 $as_echo "$INSTALL" >&6; }
2987
2988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2989 # It thinks the first close brace ends the variable substitution.
2990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2991
2992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2993
2994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2995
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2997 $as_echo_n "checking whether build environment is sane... " >&6; }
2998 # Just in case
2999 sleep 1
3000 echo timestamp > conftest.file
3001 # Reject unsafe characters in $srcdir or the absolute working directory
3002 # name.  Accept space and tab only in the latter.
3003 am_lf='
3004 '
3005 case `pwd` in
3006   *[\\\"\#\$\&\'\`$am_lf]*)
3007     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3008 esac
3009 case $srcdir in
3010   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3011     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3012 esac
3013
3014 # Do `set' in a subshell so we don't clobber the current shell's
3015 # arguments.  Must try -L first in case configure is actually a
3016 # symlink; some systems play weird games with the mod time of symlinks
3017 # (eg FreeBSD returns the mod time of the symlink's containing
3018 # directory).
3019 if (
3020    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3021    if test "$*" = "X"; then
3022       # -L didn't work.
3023       set X `ls -t "$srcdir/configure" conftest.file`
3024    fi
3025    rm -f conftest.file
3026    if test "$*" != "X $srcdir/configure conftest.file" \
3027       && test "$*" != "X conftest.file $srcdir/configure"; then
3028
3029       # If neither matched, then we have a broken ls.  This can happen
3030       # if, for instance, CONFIG_SHELL is bash and it inherits a
3031       # broken ls alias from the environment.  This has actually
3032       # happened.  Such a system could not be considered "sane".
3033       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3034 alias in your environment" "$LINENO" 5
3035    fi
3036
3037    test "$2" = conftest.file
3038    )
3039 then
3040    # Ok.
3041    :
3042 else
3043    as_fn_error $? "newly created file is older than distributed files!
3044 Check your system clock" "$LINENO" 5
3045 fi
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3047 $as_echo "yes" >&6; }
3048 test "$program_prefix" != NONE &&
3049   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3050 # Use a double $ so make ignores it.
3051 test "$program_suffix" != NONE &&
3052   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3053 # Double any \ or $.
3054 # By default was `s,x,x', remove it if useless.
3055 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3056 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3057
3058 # expand $ac_aux_dir to an absolute path
3059 am_aux_dir=`cd $ac_aux_dir && pwd`
3060
3061 if test x"${MISSING+set}" != xset; then
3062   case $am_aux_dir in
3063   *\ * | *\     *)
3064     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3065   *)
3066     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3067   esac
3068 fi
3069 # Use eval to expand $SHELL
3070 if eval "$MISSING --run true"; then
3071   am_missing_run="$MISSING --run "
3072 else
3073   am_missing_run=
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3075 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3076 fi
3077
3078 if test x"${install_sh}" != xset; then
3079   case $am_aux_dir in
3080   *\ * | *\     *)
3081     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3082   *)
3083     install_sh="\${SHELL} $am_aux_dir/install-sh"
3084   esac
3085 fi
3086
3087 # Installed binaries are usually stripped using `strip' when the user
3088 # run `make install-strip'.  However `strip' might not be the right
3089 # tool to use in cross-compilation environments, therefore Automake
3090 # will honor the `STRIP' environment variable to overrule this program.
3091 if test "$cross_compiling" != no; then
3092   if test -n "$ac_tool_prefix"; then
3093   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}strip; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_STRIP+set}" = set; then :
3098   $as_echo_n "(cached) " >&6
3099 else
3100   if test -n "$STRIP"; then
3101   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106   IFS=$as_save_IFS
3107   test -z "$as_dir" && as_dir=.
3108     for ac_exec_ext in '' $ac_executable_extensions; do
3109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112     break 2
3113   fi
3114 done
3115   done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 STRIP=$ac_cv_prog_STRIP
3121 if test -n "$STRIP"; then
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3123 $as_echo "$STRIP" >&6; }
3124 else
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130 fi
3131 if test -z "$ac_cv_prog_STRIP"; then
3132   ac_ct_STRIP=$STRIP
3133   # Extract the first word of "strip", so it can be a program name with args.
3134 set dummy strip; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   if test -n "$ac_ct_STRIP"; then
3141   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148     for ac_exec_ext in '' $ac_executable_extensions; do
3149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150     ac_cv_prog_ac_ct_STRIP="strip"
3151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155   done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3161 if test -n "$ac_ct_STRIP"; then
3162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3163 $as_echo "$ac_ct_STRIP" >&6; }
3164 else
3165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169   if test "x$ac_ct_STRIP" = x; then
3170     STRIP=":"
3171   else
3172     case $cross_compiling:$ac_tool_warned in
3173 yes:)
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176 ac_tool_warned=yes ;;
3177 esac
3178     STRIP=$ac_ct_STRIP
3179   fi
3180 else
3181   STRIP="$ac_cv_prog_STRIP"
3182 fi
3183
3184 fi
3185 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3186
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3188 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3189 if test -z "$MKDIR_P"; then
3190   if test "${ac_cv_path_mkdir+set}" = set; then :
3191   $as_echo_n "(cached) " >&6
3192 else
3193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3195 do
3196   IFS=$as_save_IFS
3197   test -z "$as_dir" && as_dir=.
3198     for ac_prog in mkdir gmkdir; do
3199          for ac_exec_ext in '' $ac_executable_extensions; do
3200            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3201            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3202              'mkdir (GNU coreutils) '* | \
3203              'mkdir (coreutils) '* | \
3204              'mkdir (fileutils) '4.1*)
3205                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3206                break 3;;
3207            esac
3208          done
3209        done
3210   done
3211 IFS=$as_save_IFS
3212
3213 fi
3214
3215   test -d ./--version && rmdir ./--version
3216   if test "${ac_cv_path_mkdir+set}" = set; then
3217     MKDIR_P="$ac_cv_path_mkdir -p"
3218   else
3219     # As a last resort, use the slow shell script.  Don't cache a
3220     # value for MKDIR_P within a source directory, because that will
3221     # break other packages using the cache if that directory is
3222     # removed, or if the value is a relative name.
3223     MKDIR_P="$ac_install_sh -d"
3224   fi
3225 fi
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3227 $as_echo "$MKDIR_P" >&6; }
3228
3229 mkdir_p="$MKDIR_P"
3230 case $mkdir_p in
3231   [\\/$]* | ?:[\\/]*) ;;
3232   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3233 esac
3234
3235 for ac_prog in gawk mawk nawk awk
3236 do
3237   # Extract the first word of "$ac_prog", so it can be a program name with args.
3238 set dummy $ac_prog; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if test "${ac_cv_prog_AWK+set}" = set; then :
3242   $as_echo_n "(cached) " >&6
3243 else
3244   if test -n "$AWK"; then
3245   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254     ac_cv_prog_AWK="$ac_prog"
3255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256     break 2
3257   fi
3258 done
3259   done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 AWK=$ac_cv_prog_AWK
3265 if test -n "$AWK"; then
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3267 $as_echo "$AWK" >&6; }
3268 else
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274   test -n "$AWK" && break
3275 done
3276
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3278 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3279 set x ${MAKE-make}
3280 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3281 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3282   $as_echo_n "(cached) " >&6
3283 else
3284   cat >conftest.make <<\_ACEOF
3285 SHELL = /bin/sh
3286 all:
3287         @echo '@@@%%%=$(MAKE)=@@@%%%'
3288 _ACEOF
3289 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3290 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3291   *@@@%%%=?*=@@@%%%*)
3292     eval ac_cv_prog_make_${ac_make}_set=yes;;
3293   *)
3294     eval ac_cv_prog_make_${ac_make}_set=no;;
3295 esac
3296 rm -f conftest.make
3297 fi
3298 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3300 $as_echo "yes" >&6; }
3301   SET_MAKE=
3302 else
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305   SET_MAKE="MAKE=${MAKE-make}"
3306 fi
3307
3308 rm -rf .tst 2>/dev/null
3309 mkdir .tst 2>/dev/null
3310 if test -d .tst; then
3311   am__leading_dot=.
3312 else
3313   am__leading_dot=_
3314 fi
3315 rmdir .tst 2>/dev/null
3316
3317 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3318   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3319   # is not polluted with repeated "-I."
3320   am__isrc=' -I$(srcdir)'
3321   # test to see if srcdir already configured
3322   if test -f $srcdir/config.status; then
3323     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3324   fi
3325 fi
3326
3327 # test whether we have cygpath
3328 if test -z "$CYGPATH_W"; then
3329   if (cygpath --version) >/dev/null 2>/dev/null; then
3330     CYGPATH_W='cygpath -w'
3331   else
3332     CYGPATH_W=echo
3333   fi
3334 fi
3335
3336
3337 # Define the identity of the package.
3338  PACKAGE='opensaml'
3339  VERSION='2.5.0'
3340
3341
3342 cat >>confdefs.h <<_ACEOF
3343 #define PACKAGE "$PACKAGE"
3344 _ACEOF
3345
3346
3347 cat >>confdefs.h <<_ACEOF
3348 #define VERSION "$VERSION"
3349 _ACEOF
3350
3351 # Some tools Automake needs.
3352
3353 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3354
3355
3356 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3357
3358
3359 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3360
3361
3362 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3363
3364
3365 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3366
3367 # We need awk for the "check" target.  The system "awk" is bad on
3368 # some platforms.
3369 # Always define AMTAR for backward compatibility.
3370
3371 AMTAR=${AMTAR-"${am_missing_run}tar"}
3372
3373 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3374
3375
3376
3377
3378
3379 # Check whether --enable-static was given.
3380 if test "${enable_static+set}" = set; then :
3381   enableval=$enable_static; p=${PACKAGE-default}
3382     case $enableval in
3383     yes) enable_static=yes ;;
3384     no) enable_static=no ;;
3385     *)
3386      enable_static=no
3387       # Look at the argument we got.  We use all the common list separators.
3388       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3389       for pkg in $enableval; do
3390         IFS="$lt_save_ifs"
3391         if test "X$pkg" = "X$p"; then
3392           enable_static=yes
3393         fi
3394       done
3395       IFS="$lt_save_ifs"
3396       ;;
3397     esac
3398 else
3399   enable_static=no
3400 fi
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410 case `pwd` in
3411   *\ * | *\     *)
3412     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3413 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3414 esac
3415
3416
3417
3418 macro_version='2.2.6b'
3419 macro_revision='1.3017'
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433 ltmain="$ac_aux_dir/ltmain.sh"
3434
3435 # Make sure we can run config.sub.
3436 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3437   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3438
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3440 $as_echo_n "checking build system type... " >&6; }
3441 if test "${ac_cv_build+set}" = set; then :
3442   $as_echo_n "(cached) " >&6
3443 else
3444   ac_build_alias=$build_alias
3445 test "x$ac_build_alias" = x &&
3446   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3447 test "x$ac_build_alias" = x &&
3448   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3449 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3450   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3451
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3454 $as_echo "$ac_cv_build" >&6; }
3455 case $ac_cv_build in
3456 *-*-*) ;;
3457 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3458 esac
3459 build=$ac_cv_build
3460 ac_save_IFS=$IFS; IFS='-'
3461 set x $ac_cv_build
3462 shift
3463 build_cpu=$1
3464 build_vendor=$2
3465 shift; shift
3466 # Remember, the first character of IFS is used to create $*,
3467 # except with old shells:
3468 build_os=$*
3469 IFS=$ac_save_IFS
3470 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3471
3472
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3474 $as_echo_n "checking host system type... " >&6; }
3475 if test "${ac_cv_host+set}" = set; then :
3476   $as_echo_n "(cached) " >&6
3477 else
3478   if test "x$host_alias" = x; then
3479   ac_cv_host=$ac_cv_build
3480 else
3481   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3482     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3483 fi
3484
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3487 $as_echo "$ac_cv_host" >&6; }
3488 case $ac_cv_host in
3489 *-*-*) ;;
3490 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3491 esac
3492 host=$ac_cv_host
3493 ac_save_IFS=$IFS; IFS='-'
3494 set x $ac_cv_host
3495 shift
3496 host_cpu=$1
3497 host_vendor=$2
3498 shift; shift
3499 # Remember, the first character of IFS is used to create $*,
3500 # except with old shells:
3501 host_os=$*
3502 IFS=$ac_save_IFS
3503 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3504
3505
3506 DEPDIR="${am__leading_dot}deps"
3507
3508 ac_config_commands="$ac_config_commands depfiles"
3509
3510
3511 am_make=${MAKE-make}
3512 cat > confinc << 'END'
3513 am__doit:
3514         @echo this is the am__doit target
3515 .PHONY: am__doit
3516 END
3517 # If we don't find an include directive, just comment out the code.
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3519 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3520 am__include="#"
3521 am__quote=
3522 _am_result=none
3523 # First try GNU make style include.
3524 echo "include confinc" > confmf
3525 # Ignore all kinds of additional output from `make'.
3526 case `$am_make -s -f confmf 2> /dev/null` in #(
3527 *the\ am__doit\ target*)
3528   am__include=include
3529   am__quote=
3530   _am_result=GNU
3531   ;;
3532 esac
3533 # Now try BSD make style include.
3534 if test "$am__include" = "#"; then
3535    echo '.include "confinc"' > confmf
3536    case `$am_make -s -f confmf 2> /dev/null` in #(
3537    *the\ am__doit\ target*)
3538      am__include=.include
3539      am__quote="\""
3540      _am_result=BSD
3541      ;;
3542    esac
3543 fi
3544
3545
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3547 $as_echo "$_am_result" >&6; }
3548 rm -f confinc confmf
3549
3550 # Check whether --enable-dependency-tracking was given.
3551 if test "${enable_dependency_tracking+set}" = set; then :
3552   enableval=$enable_dependency_tracking;
3553 fi
3554
3555 if test "x$enable_dependency_tracking" != xno; then
3556   am_depcomp="$ac_aux_dir/depcomp"
3557   AMDEPBACKSLASH='\'
3558 fi
3559  if test "x$enable_dependency_tracking" != xno; then
3560   AMDEP_TRUE=
3561   AMDEP_FALSE='#'
3562 else
3563   AMDEP_TRUE='#'
3564   AMDEP_FALSE=
3565 fi
3566
3567
3568 ac_ext=c
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573 if test -n "$ac_tool_prefix"; then
3574   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3575 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if test "${ac_cv_prog_CC+set}" = set; then :
3579   $as_echo_n "(cached) " >&6
3580 else
3581   if test -n "$CC"; then
3582   ac_cv_prog_CC="$CC" # Let the user override the test.
3583 else
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3586 do
3587   IFS=$as_save_IFS
3588   test -z "$as_dir" && as_dir=.
3589     for ac_exec_ext in '' $ac_executable_extensions; do
3590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593     break 2
3594   fi
3595 done
3596   done
3597 IFS=$as_save_IFS
3598
3599 fi
3600 fi
3601 CC=$ac_cv_prog_CC
3602 if test -n "$CC"; then
3603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3604 $as_echo "$CC" >&6; }
3605 else
3606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3608 fi
3609
3610
3611 fi
3612 if test -z "$ac_cv_prog_CC"; then
3613   ac_ct_CC=$CC
3614   # Extract the first word of "gcc", so it can be a program name with args.
3615 set dummy gcc; ac_word=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3619   $as_echo_n "(cached) " >&6
3620 else
3621   if test -n "$ac_ct_CC"; then
3622   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3626 do
3627   IFS=$as_save_IFS
3628   test -z "$as_dir" && as_dir=.
3629     for ac_exec_ext in '' $ac_executable_extensions; do
3630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631     ac_cv_prog_ac_ct_CC="gcc"
3632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633     break 2
3634   fi
3635 done
3636   done
3637 IFS=$as_save_IFS
3638
3639 fi
3640 fi
3641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3642 if test -n "$ac_ct_CC"; then
3643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3644 $as_echo "$ac_ct_CC" >&6; }
3645 else
3646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3648 fi
3649
3650   if test "x$ac_ct_CC" = x; then
3651     CC=""
3652   else
3653     case $cross_compiling:$ac_tool_warned in
3654 yes:)
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned=yes ;;
3658 esac
3659     CC=$ac_ct_CC
3660   fi
3661 else
3662   CC="$ac_cv_prog_CC"
3663 fi
3664
3665 if test -z "$CC"; then
3666           if test -n "$ac_tool_prefix"; then
3667     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3668 set dummy ${ac_tool_prefix}cc; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if test "${ac_cv_prog_CC+set}" = set; then :
3672   $as_echo_n "(cached) " >&6
3673 else
3674   if test -n "$CC"; then
3675   ac_cv_prog_CC="$CC" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680   IFS=$as_save_IFS
3681   test -z "$as_dir" && as_dir=.
3682     for ac_exec_ext in '' $ac_executable_extensions; do
3683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684     ac_cv_prog_CC="${ac_tool_prefix}cc"
3685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686     break 2
3687   fi
3688 done
3689   done
3690 IFS=$as_save_IFS
3691
3692 fi
3693 fi
3694 CC=$ac_cv_prog_CC
3695 if test -n "$CC"; then
3696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3697 $as_echo "$CC" >&6; }
3698 else
3699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3701 fi
3702
3703
3704   fi
3705 fi
3706 if test -z "$CC"; then
3707   # Extract the first word of "cc", so it can be a program name with args.
3708 set dummy cc; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if test "${ac_cv_prog_CC+set}" = set; then :
3712   $as_echo_n "(cached) " >&6
3713 else
3714   if test -n "$CC"; then
3715   ac_cv_prog_CC="$CC" # Let the user override the test.
3716 else
3717   ac_prog_rejected=no
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3720 do
3721   IFS=$as_save_IFS
3722   test -z "$as_dir" && as_dir=.
3723     for ac_exec_ext in '' $ac_executable_extensions; do
3724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3726        ac_prog_rejected=yes
3727        continue
3728      fi
3729     ac_cv_prog_CC="cc"
3730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731     break 2
3732   fi
3733 done
3734   done
3735 IFS=$as_save_IFS
3736
3737 if test $ac_prog_rejected = yes; then
3738   # We found a bogon in the path, so make sure we never use it.
3739   set dummy $ac_cv_prog_CC
3740   shift
3741   if test $# != 0; then
3742     # We chose a different compiler from the bogus one.
3743     # However, it has the same basename, so the bogon will be chosen
3744     # first if we set CC to just the basename; use the full file name.
3745     shift
3746     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3747   fi
3748 fi
3749 fi
3750 fi
3751 CC=$ac_cv_prog_CC
3752 if test -n "$CC"; then
3753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754 $as_echo "$CC" >&6; }
3755 else
3756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3758 fi
3759
3760
3761 fi
3762 if test -z "$CC"; then
3763   if test -n "$ac_tool_prefix"; then
3764   for ac_prog in cl.exe
3765   do
3766     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if test "${ac_cv_prog_CC+set}" = set; then :
3771   $as_echo_n "(cached) " >&6
3772 else
3773   if test -n "$CC"; then
3774   ac_cv_prog_CC="$CC" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3778 do
3779   IFS=$as_save_IFS
3780   test -z "$as_dir" && as_dir=.
3781     for ac_exec_ext in '' $ac_executable_extensions; do
3782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3783     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785     break 2
3786   fi
3787 done
3788   done
3789 IFS=$as_save_IFS
3790
3791 fi
3792 fi
3793 CC=$ac_cv_prog_CC
3794 if test -n "$CC"; then
3795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 $as_echo "$CC" >&6; }
3797 else
3798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3800 fi
3801
3802
3803     test -n "$CC" && break
3804   done
3805 fi
3806 if test -z "$CC"; then
3807   ac_ct_CC=$CC
3808   for ac_prog in cl.exe
3809 do
3810   # Extract the first word of "$ac_prog", so it can be a program name with args.
3811 set dummy $ac_prog; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3815   $as_echo_n "(cached) " >&6
3816 else
3817   if test -n "$ac_ct_CC"; then
3818   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825     for ac_exec_ext in '' $ac_executable_extensions; do
3826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827     ac_cv_prog_ac_ct_CC="$ac_prog"
3828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832   done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3838 if test -n "$ac_ct_CC"; then
3839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840 $as_echo "$ac_ct_CC" >&6; }
3841 else
3842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 fi
3845
3846
3847   test -n "$ac_ct_CC" && break
3848 done
3849
3850   if test "x$ac_ct_CC" = x; then
3851     CC=""
3852   else
3853     case $cross_compiling:$ac_tool_warned in
3854 yes:)
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3857 ac_tool_warned=yes ;;
3858 esac
3859     CC=$ac_ct_CC
3860   fi
3861 fi
3862
3863 fi
3864
3865
3866 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $? "no acceptable C compiler found in \$PATH
3869 See \`config.log' for more details" "$LINENO" 5 ; }
3870
3871 # Provide some information about the compiler.
3872 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3873 set X $ac_compile
3874 ac_compiler=$2
3875 for ac_option in --version -v -V -qversion; do
3876   { { ac_try="$ac_compiler $ac_option >&5"
3877 case "(($ac_try" in
3878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879   *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3884   ac_status=$?
3885   if test -s conftest.err; then
3886     sed '10a\
3887 ... rest of stderr output deleted ...
3888          10q' conftest.err >conftest.er1
3889     cat conftest.er1 >&5
3890   fi
3891   rm -f conftest.er1 conftest.err
3892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893   test $ac_status = 0; }
3894 done
3895
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h.  */
3898
3899 int
3900 main ()
3901 {
3902
3903   ;
3904   return 0;
3905 }
3906 _ACEOF
3907 ac_clean_files_save=$ac_clean_files
3908 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3909 # Try to create an executable without -o first, disregard a.out.
3910 # It will help us diagnose broken compilers, and finding out an intuition
3911 # of exeext.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3915
3916 # The possible output files:
3917 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3918
3919 ac_rmfiles=
3920 for ac_file in $ac_files
3921 do
3922   case $ac_file in
3923     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3924     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3925   esac
3926 done
3927 rm -f $ac_rmfiles
3928
3929 if { { ac_try="$ac_link_default"
3930 case "(($ac_try" in
3931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932   *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936   (eval "$ac_link_default") 2>&5
3937   ac_status=$?
3938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939   test $ac_status = 0; }; then :
3940   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3941 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3942 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3943 # so that the user can short-circuit this test for compilers unknown to
3944 # Autoconf.
3945 for ac_file in $ac_files ''
3946 do
3947   test -f "$ac_file" || continue
3948   case $ac_file in
3949     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3950         ;;
3951     [ab].out )
3952         # We found the default executable, but exeext='' is most
3953         # certainly right.
3954         break;;
3955     *.* )
3956         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3957         then :; else
3958            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3959         fi
3960         # We set ac_cv_exeext here because the later test for it is not
3961         # safe: cross compilers may not add the suffix if given an `-o'
3962         # argument, so we may need to know it at that point already.
3963         # Even if this section looks crufty: it has the advantage of
3964         # actually working.
3965         break;;
3966     * )
3967         break;;
3968   esac
3969 done
3970 test "$ac_cv_exeext" = no && ac_cv_exeext=
3971
3972 else
3973   ac_file=''
3974 fi
3975 if test -z "$ac_file"; then :
3976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error 77 "C compiler cannot create executables
3984 See \`config.log' for more details" "$LINENO" 5 ; }
3985 else
3986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3987 $as_echo "yes" >&6; }
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3990 $as_echo_n "checking for C compiler default output file name... " >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3992 $as_echo "$ac_file" >&6; }
3993 ac_exeext=$ac_cv_exeext
3994
3995 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3996 ac_clean_files=$ac_clean_files_save
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3998 $as_echo_n "checking for suffix of executables... " >&6; }
3999 if { { ac_try="$ac_link"
4000 case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006   (eval "$ac_link") 2>&5
4007   ac_status=$?
4008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009   test $ac_status = 0; }; then :
4010   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4011 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4012 # work properly (i.e., refer to `conftest.exe'), while it won't with
4013 # `rm'.
4014 for ac_file in conftest.exe conftest conftest.*; do
4015   test -f "$ac_file" || continue
4016   case $ac_file in
4017     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4018     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019           break;;
4020     * ) break;;
4021   esac
4022 done
4023 else
4024   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4027 See \`config.log' for more details" "$LINENO" 5 ; }
4028 fi
4029 rm -f conftest conftest$ac_cv_exeext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4031 $as_echo "$ac_cv_exeext" >&6; }
4032
4033 rm -f conftest.$ac_ext
4034 EXEEXT=$ac_cv_exeext
4035 ac_exeext=$EXEEXT
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h.  */
4038 #include <stdio.h>
4039 int
4040 main ()
4041 {
4042 FILE *f = fopen ("conftest.out", "w");
4043  return ferror (f) || fclose (f) != 0;
4044
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049 ac_clean_files="$ac_clean_files conftest.out"
4050 # Check that the compiler produces executables we can run.  If not, either
4051 # the compiler is broken, or we cross compile.
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4053 $as_echo_n "checking whether we are cross compiling... " >&6; }
4054 if test "$cross_compiling" != yes; then
4055   { { ac_try="$ac_link"
4056 case "(($ac_try" in
4057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058   *) ac_try_echo=$ac_try;;
4059 esac
4060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061 $as_echo "$ac_try_echo"; } >&5
4062   (eval "$ac_link") 2>&5
4063   ac_status=$?
4064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065   test $ac_status = 0; }
4066   if { ac_try='./conftest$ac_cv_exeext'
4067   { { case "(($ac_try" in
4068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069   *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073   (eval "$ac_try") 2>&5
4074   ac_status=$?
4075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076   test $ac_status = 0; }; }; then
4077     cross_compiling=no
4078   else
4079     if test "$cross_compiling" = maybe; then
4080         cross_compiling=yes
4081     else
4082         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4084 as_fn_error $? "cannot run C compiled programs.
4085 If you meant to cross compile, use \`--host'.
4086 See \`config.log' for more details" "$LINENO" 5 ; }
4087     fi
4088   fi
4089 fi
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4091 $as_echo "$cross_compiling" >&6; }
4092
4093 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4094 ac_clean_files=$ac_clean_files_save
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4096 $as_echo_n "checking for suffix of object files... " >&6; }
4097 if test "${ac_cv_objext+set}" = set; then :
4098   $as_echo_n "(cached) " >&6
4099 else
4100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h.  */
4102
4103 int
4104 main ()
4105 {
4106
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 rm -f conftest.o conftest.obj
4112 if { { ac_try="$ac_compile"
4113 case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 $as_echo "$ac_try_echo"; } >&5
4119   (eval "$ac_compile") 2>&5
4120   ac_status=$?
4121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122   test $ac_status = 0; }; then :
4123   for ac_file in conftest.o conftest.obj conftest.*; do
4124   test -f "$ac_file" || continue;
4125   case $ac_file in
4126     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4127     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4128        break;;
4129   esac
4130 done
4131 else
4132   $as_echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137 as_fn_error $? "cannot compute suffix of object files: cannot compile
4138 See \`config.log' for more details" "$LINENO" 5 ; }
4139 fi
4140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4143 $as_echo "$ac_cv_objext" >&6; }
4144 OBJEXT=$ac_cv_objext
4145 ac_objext=$OBJEXT
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4147 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4148 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4149   $as_echo_n "(cached) " >&6
4150 else
4151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h.  */
4153
4154 int
4155 main ()
4156 {
4157 #ifndef __GNUC__
4158        choke me
4159 #endif
4160
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166   ac_compiler_gnu=yes
4167 else
4168   ac_compiler_gnu=no
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4172
4173 fi
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4175 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4176 if test $ac_compiler_gnu = yes; then
4177   GCC=yes
4178 else
4179   GCC=
4180 fi
4181 ac_test_CFLAGS=${CFLAGS+set}
4182 ac_save_CFLAGS=$CFLAGS
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4184 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4185 if test "${ac_cv_prog_cc_g+set}" = set; then :
4186   $as_echo_n "(cached) " >&6
4187 else
4188   ac_save_c_werror_flag=$ac_c_werror_flag
4189    ac_c_werror_flag=yes
4190    ac_cv_prog_cc_g=no
4191    CFLAGS="-g"
4192    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h.  */
4194
4195 int
4196 main ()
4197 {
4198
4199   ;
4200   return 0;
4201 }
4202 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204   ac_cv_prog_cc_g=yes
4205 else
4206   CFLAGS=""
4207       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h.  */
4209
4210 int
4211 main ()
4212 {
4213
4214   ;
4215   return 0;
4216 }
4217 _ACEOF
4218 if ac_fn_c_try_compile "$LINENO"; then :
4219
4220 else
4221   ac_c_werror_flag=$ac_save_c_werror_flag
4222          CFLAGS="-g"
4223          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h.  */
4225
4226 int
4227 main ()
4228 {
4229
4230   ;
4231   return 0;
4232 }
4233 _ACEOF
4234 if ac_fn_c_try_compile "$LINENO"; then :
4235   ac_cv_prog_cc_g=yes
4236 fi
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 fi
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 fi
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242    ac_c_werror_flag=$ac_save_c_werror_flag
4243 fi
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4245 $as_echo "$ac_cv_prog_cc_g" >&6; }
4246 if test "$ac_test_CFLAGS" = set; then
4247   CFLAGS=$ac_save_CFLAGS
4248 elif test $ac_cv_prog_cc_g = yes; then
4249   if test "$GCC" = yes; then
4250     CFLAGS="-g -O2"
4251   else
4252     CFLAGS="-g"
4253   fi
4254 else
4255   if test "$GCC" = yes; then
4256     CFLAGS="-O2"
4257   else
4258     CFLAGS=
4259   fi
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4262 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4263 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   ac_cv_prog_cc_c89=no
4267 ac_save_CC=$CC
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h.  */
4270 #include <stdarg.h>
4271 #include <stdio.h>
4272 #include <sys/types.h>
4273 #include <sys/stat.h>
4274 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4275 struct buf { int x; };
4276 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4277 static char *e (p, i)
4278      char **p;
4279      int i;
4280 {
4281   return p[i];
4282 }
4283 static char *f (char * (*g) (char **, int), char **p, ...)
4284 {
4285   char *s;
4286   va_list v;
4287   va_start (v,p);
4288   s = g (p, va_arg (v,int));
4289   va_end (v);
4290   return s;
4291 }
4292
4293 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4294    function prototypes and stuff, but not '\xHH' hex character constants.
4295    These don't provoke an error unfortunately, instead are silently treated
4296    as 'x'.  The following induces an error, until -std is added to get
4297    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4298    array size at least.  It's necessary to write '\x00'==0 to get something
4299    that's true only with -std.  */
4300 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4301
4302 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4303    inside strings and character constants.  */
4304 #define FOO(x) 'x'
4305 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4306
4307 int test (int i, double x);
4308 struct s1 {int (*f) (int a);};
4309 struct s2 {int (*f) (double a);};
4310 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4311 int argc;
4312 char **argv;
4313 int
4314 main ()
4315 {
4316 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4322         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4323 do
4324   CC="$ac_save_CC $ac_arg"
4325   if ac_fn_c_try_compile "$LINENO"; then :
4326   ac_cv_prog_cc_c89=$ac_arg
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext
4329   test "x$ac_cv_prog_cc_c89" != "xno" && break
4330 done
4331 rm -f conftest.$ac_ext
4332 CC=$ac_save_CC
4333
4334 fi
4335 # AC_CACHE_VAL
4336 case "x$ac_cv_prog_cc_c89" in
4337   x)
4338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4339 $as_echo "none needed" >&6; } ;;
4340   xno)
4341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4342 $as_echo "unsupported" >&6; } ;;
4343   *)
4344     CC="$CC $ac_cv_prog_cc_c89"
4345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4346 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4347 esac
4348 if test "x$ac_cv_prog_cc_c89" != xno; then :
4349
4350 fi
4351
4352 ac_ext=c
4353 ac_cpp='$CPP $CPPFLAGS'
4354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357
4358 depcc="$CC"   am_compiler_list=
4359
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4361 $as_echo_n "checking dependency style of $depcc... " >&6; }
4362 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4363   $as_echo_n "(cached) " >&6
4364 else
4365   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4366   # We make a subdir and do the tests there.  Otherwise we can end up
4367   # making bogus files that we don't know about and never remove.  For
4368   # instance it was reported that on HP-UX the gcc test will end up
4369   # making a dummy file named `D' -- because `-MD' means `put the output
4370   # in D'.
4371   mkdir conftest.dir
4372   # Copy depcomp to subdir because otherwise we won't find it if we're
4373   # using a relative directory.
4374   cp "$am_depcomp" conftest.dir
4375   cd conftest.dir
4376   # We will build objects and dependencies in a subdirectory because
4377   # it helps to detect inapplicable dependency modes.  For instance
4378   # both Tru64's cc and ICC support -MD to output dependencies as a
4379   # side effect of compilation, but ICC will put the dependencies in
4380   # the current directory while Tru64 will put them in the object
4381   # directory.
4382   mkdir sub
4383
4384   am_cv_CC_dependencies_compiler_type=none
4385   if test "$am_compiler_list" = ""; then
4386      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4387   fi
4388   am__universal=false
4389   case " $depcc " in #(
4390      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4391      esac
4392
4393   for depmode in $am_compiler_list; do
4394     # Setup a source with many dependencies, because some compilers
4395     # like to wrap large dependency lists on column 80 (with \), and
4396     # we should not choose a depcomp mode which is confused by this.
4397     #
4398     # We need to recreate these files for each test, as the compiler may
4399     # overwrite some of them when testing with obscure command lines.
4400     # This happens at least with the AIX C compiler.
4401     : > sub/conftest.c
4402     for i in 1 2 3 4 5 6; do
4403       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4404       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4405       # Solaris 8's {/usr,}/bin/sh.
4406       touch sub/conftst$i.h
4407     done
4408     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4409
4410     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4411     # mode.  It turns out that the SunPro C++ compiler does not properly
4412     # handle `-M -o', and we need to detect this.  Also, some Intel
4413     # versions had trouble with output in subdirs
4414     am__obj=sub/conftest.${OBJEXT-o}
4415     am__minus_obj="-o $am__obj"
4416     case $depmode in
4417     gcc)
4418       # This depmode causes a compiler race in universal mode.
4419       test "$am__universal" = false || continue
4420       ;;
4421     nosideeffect)
4422       # after this tag, mechanisms are not by side-effect, so they'll
4423       # only be used when explicitly requested
4424       if test "x$enable_dependency_tracking" = xyes; then
4425         continue
4426       else
4427         break
4428       fi
4429       ;;
4430     msvisualcpp | msvcmsys)
4431       # This compiler won't grok `-c -o', but also, the minuso test has
4432       # not run yet.  These depmodes are late enough in the game, and
4433       # so weak that their functioning should not be impacted.
4434       am__obj=conftest.${OBJEXT-o}
4435       am__minus_obj=
4436       ;;
4437     none) break ;;
4438     esac
4439     if depmode=$depmode \
4440        source=sub/conftest.c object=$am__obj \
4441        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4442        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4443          >/dev/null 2>conftest.err &&
4444        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4445        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4446        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4447        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4448       # icc doesn't choke on unknown options, it will just issue warnings
4449       # or remarks (even with -Werror).  So we grep stderr for any message
4450       # that says an option was ignored or not supported.
4451       # When given -MP, icc 7.0 and 7.1 complain thusly:
4452       #   icc: Command line warning: ignoring option '-M'; no argument required
4453       # The diagnosis changed in icc 8.0:
4454       #   icc: Command line remark: option '-MP' not supported
4455       if (grep 'ignoring option' conftest.err ||
4456           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4457         am_cv_CC_dependencies_compiler_type=$depmode
4458         break
4459       fi
4460     fi
4461   done
4462
4463   cd ..
4464   rm -rf conftest.dir
4465 else
4466   am_cv_CC_dependencies_compiler_type=none
4467 fi
4468
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4471 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4472 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4473
4474  if
4475   test "x$enable_dependency_tracking" != xno \
4476   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4477   am__fastdepCC_TRUE=
4478   am__fastdepCC_FALSE='#'
4479 else
4480   am__fastdepCC_TRUE='#'
4481   am__fastdepCC_FALSE=
4482 fi
4483
4484
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4486 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4487 if test "${ac_cv_path_SED+set}" = set; then :
4488   $as_echo_n "(cached) " >&6
4489 else
4490             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4491      for ac_i in 1 2 3 4 5 6 7; do
4492        ac_script="$ac_script$as_nl$ac_script"
4493      done
4494      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4495      { ac_script=; unset ac_script;}
4496      if test -z "$SED"; then
4497   ac_path_SED_found=false
4498   # Loop through the user's path and test for each of PROGNAME-LIST
4499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
4502   IFS=$as_save_IFS
4503   test -z "$as_dir" && as_dir=.
4504     for ac_prog in sed gsed; do
4505     for ac_exec_ext in '' $ac_executable_extensions; do
4506       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4507       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4508 # Check for GNU ac_path_SED and select it if it is found.
4509   # Check for GNU $ac_path_SED
4510 case `"$ac_path_SED" --version 2>&1` in
4511 *GNU*)
4512   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4513 *)
4514   ac_count=0
4515   $as_echo_n 0123456789 >"conftest.in"
4516   while :
4517   do
4518     cat "conftest.in" "conftest.in" >"conftest.tmp"
4519     mv "conftest.tmp" "conftest.in"
4520     cp "conftest.in" "conftest.nl"
4521     $as_echo '' >> "conftest.nl"
4522     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4523     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4524     as_fn_arith $ac_count + 1 && ac_count=$as_val
4525     if test $ac_count -gt ${ac_path_SED_max-0}; then
4526       # Best one so far, save it but keep looking for a better one
4527       ac_cv_path_SED="$ac_path_SED"
4528       ac_path_SED_max=$ac_count
4529     fi
4530     # 10*(2^10) chars as input seems more than enough
4531     test $ac_count -gt 10 && break
4532   done
4533   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4534 esac
4535
4536       $ac_path_SED_found && break 3
4537     done
4538   done
4539   done
4540 IFS=$as_save_IFS
4541   if test -z "$ac_cv_path_SED"; then
4542     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4543   fi
4544 else
4545   ac_cv_path_SED=$SED
4546 fi
4547
4548 fi
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4550 $as_echo "$ac_cv_path_SED" >&6; }
4551  SED="$ac_cv_path_SED"
4552   rm -f conftest.sed
4553
4554 test -z "$SED" && SED=sed
4555 Xsed="$SED -e 1s/^X//"
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4568 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4569 if test "${ac_cv_path_GREP+set}" = set; then :
4570   $as_echo_n "(cached) " >&6
4571 else
4572   if test -z "$GREP"; then
4573   ac_path_GREP_found=false
4574   # Loop through the user's path and test for each of PROGNAME-LIST
4575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4577 do
4578   IFS=$as_save_IFS
4579   test -z "$as_dir" && as_dir=.
4580     for ac_prog in grep ggrep; do
4581     for ac_exec_ext in '' $ac_executable_extensions; do
4582       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4583       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4584 # Check for GNU ac_path_GREP and select it if it is found.
4585   # Check for GNU $ac_path_GREP
4586 case `"$ac_path_GREP" --version 2>&1` in
4587 *GNU*)
4588   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4589 *)
4590   ac_count=0
4591   $as_echo_n 0123456789 >"conftest.in"
4592   while :
4593   do
4594     cat "conftest.in" "conftest.in" >"conftest.tmp"
4595     mv "conftest.tmp" "conftest.in"
4596     cp "conftest.in" "conftest.nl"
4597     $as_echo 'GREP' >> "conftest.nl"
4598     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4599     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4600     as_fn_arith $ac_count + 1 && ac_count=$as_val
4601     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4602       # Best one so far, save it but keep looking for a better one
4603       ac_cv_path_GREP="$ac_path_GREP"
4604       ac_path_GREP_max=$ac_count
4605     fi
4606     # 10*(2^10) chars as input seems more than enough
4607     test $ac_count -gt 10 && break
4608   done
4609   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610 esac
4611
4612       $ac_path_GREP_found && break 3
4613     done
4614   done
4615   done
4616 IFS=$as_save_IFS
4617   if test -z "$ac_cv_path_GREP"; then
4618     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4619   fi
4620 else
4621   ac_cv_path_GREP=$GREP
4622 fi
4623
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4626 $as_echo "$ac_cv_path_GREP" >&6; }
4627  GREP="$ac_cv_path_GREP"
4628
4629
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4631 $as_echo_n "checking for egrep... " >&6; }
4632 if test "${ac_cv_path_EGREP+set}" = set; then :
4633   $as_echo_n "(cached) " >&6
4634 else
4635   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4636    then ac_cv_path_EGREP="$GREP -E"
4637    else
4638      if test -z "$EGREP"; then
4639   ac_path_EGREP_found=false
4640   # Loop through the user's path and test for each of PROGNAME-LIST
4641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4643 do
4644   IFS=$as_save_IFS
4645   test -z "$as_dir" && as_dir=.
4646     for ac_prog in egrep; do
4647     for ac_exec_ext in '' $ac_executable_extensions; do
4648       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4649       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4650 # Check for GNU ac_path_EGREP and select it if it is found.
4651   # Check for GNU $ac_path_EGREP
4652 case `"$ac_path_EGREP" --version 2>&1` in
4653 *GNU*)
4654   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4655 *)
4656   ac_count=0
4657   $as_echo_n 0123456789 >"conftest.in"
4658   while :
4659   do
4660     cat "conftest.in" "conftest.in" >"conftest.tmp"
4661     mv "conftest.tmp" "conftest.in"
4662     cp "conftest.in" "conftest.nl"
4663     $as_echo 'EGREP' >> "conftest.nl"
4664     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4665     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4666     as_fn_arith $ac_count + 1 && ac_count=$as_val
4667     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4668       # Best one so far, save it but keep looking for a better one
4669       ac_cv_path_EGREP="$ac_path_EGREP"
4670       ac_path_EGREP_max=$ac_count
4671     fi
4672     # 10*(2^10) chars as input seems more than enough
4673     test $ac_count -gt 10 && break
4674   done
4675   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4676 esac
4677
4678       $ac_path_EGREP_found && break 3
4679     done
4680   done
4681   done
4682 IFS=$as_save_IFS
4683   if test -z "$ac_cv_path_EGREP"; then
4684     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4685   fi
4686 else
4687   ac_cv_path_EGREP=$EGREP
4688 fi
4689
4690    fi
4691 fi
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4693 $as_echo "$ac_cv_path_EGREP" >&6; }
4694  EGREP="$ac_cv_path_EGREP"
4695
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4698 $as_echo_n "checking for fgrep... " >&6; }
4699 if test "${ac_cv_path_FGREP+set}" = set; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4703    then ac_cv_path_FGREP="$GREP -F"
4704    else
4705      if test -z "$FGREP"; then
4706   ac_path_FGREP_found=false
4707   # Loop through the user's path and test for each of PROGNAME-LIST
4708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4710 do
4711   IFS=$as_save_IFS
4712   test -z "$as_dir" && as_dir=.
4713     for ac_prog in fgrep; do
4714     for ac_exec_ext in '' $ac_executable_extensions; do
4715       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4716       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4717 # Check for GNU ac_path_FGREP and select it if it is found.
4718   # Check for GNU $ac_path_FGREP
4719 case `"$ac_path_FGREP" --version 2>&1` in
4720 *GNU*)
4721   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4722 *)
4723   ac_count=0
4724   $as_echo_n 0123456789 >"conftest.in"
4725   while :
4726   do
4727     cat "conftest.in" "conftest.in" >"conftest.tmp"
4728     mv "conftest.tmp" "conftest.in"
4729     cp "conftest.in" "conftest.nl"
4730     $as_echo 'FGREP' >> "conftest.nl"
4731     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4732     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4733     as_fn_arith $ac_count + 1 && ac_count=$as_val
4734     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4735       # Best one so far, save it but keep looking for a better one
4736       ac_cv_path_FGREP="$ac_path_FGREP"
4737       ac_path_FGREP_max=$ac_count
4738     fi
4739     # 10*(2^10) chars as input seems more than enough
4740     test $ac_count -gt 10 && break
4741   done
4742   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4743 esac
4744
4745       $ac_path_FGREP_found && break 3
4746     done
4747   done
4748   done
4749 IFS=$as_save_IFS
4750   if test -z "$ac_cv_path_FGREP"; then
4751     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4752   fi
4753 else
4754   ac_cv_path_FGREP=$FGREP
4755 fi
4756
4757    fi
4758 fi
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4760 $as_echo "$ac_cv_path_FGREP" >&6; }
4761  FGREP="$ac_cv_path_FGREP"
4762
4763
4764 test -z "$GREP" && GREP=grep
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784 # Check whether --with-gnu-ld was given.
4785 if test "${with_gnu_ld+set}" = set; then :
4786   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4787 else
4788   with_gnu_ld=no
4789 fi
4790
4791 ac_prog=ld
4792 if test "$GCC" = yes; then
4793   # Check if gcc -print-prog-name=ld gives a path.
4794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4795 $as_echo_n "checking for ld used by $CC... " >&6; }
4796   case $host in
4797   *-*-mingw*)
4798     # gcc leaves a trailing carriage return which upsets mingw
4799     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4800   *)
4801     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4802   esac
4803   case $ac_prog in
4804     # Accept absolute paths.
4805     [\\/]* | ?:[\\/]*)
4806       re_direlt='/[^/][^/]*/\.\./'
4807       # Canonicalize the pathname of ld
4808       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4809       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4810         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4811       done
4812       test -z "$LD" && LD="$ac_prog"
4813       ;;
4814   "")
4815     # If it fails, then pretend we aren't using GCC.
4816     ac_prog=ld
4817     ;;
4818   *)
4819     # If it is relative, then search for the first ld in PATH.
4820     with_gnu_ld=unknown
4821     ;;
4822   esac
4823 elif test "$with_gnu_ld" = yes; then
4824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4825 $as_echo_n "checking for GNU ld... " >&6; }
4826 else
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4828 $as_echo_n "checking for non-GNU ld... " >&6; }
4829 fi
4830 if test "${lt_cv_path_LD+set}" = set; then :
4831   $as_echo_n "(cached) " >&6
4832 else
4833   if test -z "$LD"; then
4834   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4835   for ac_dir in $PATH; do
4836     IFS="$lt_save_ifs"
4837     test -z "$ac_dir" && ac_dir=.
4838     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4839       lt_cv_path_LD="$ac_dir/$ac_prog"
4840       # Check to see if the program is GNU ld.  I'd rather use --version,
4841       # but apparently some variants of GNU ld only accept -v.
4842       # Break only if it was the GNU/non-GNU ld that we prefer.
4843       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4844       *GNU* | *'with BFD'*)
4845         test "$with_gnu_ld" != no && break
4846         ;;
4847       *)
4848         test "$with_gnu_ld" != yes && break
4849         ;;
4850       esac
4851     fi
4852   done
4853   IFS="$lt_save_ifs"
4854 else
4855   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4856 fi
4857 fi
4858
4859 LD="$lt_cv_path_LD"
4860 if test -n "$LD"; then
4861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4862 $as_echo "$LD" >&6; }
4863 else
4864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4866 fi
4867 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4869 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4870 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4871   $as_echo_n "(cached) " >&6
4872 else
4873   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4874 case `$LD -v 2>&1 </dev/null` in
4875 *GNU* | *'with BFD'*)
4876   lt_cv_prog_gnu_ld=yes
4877   ;;
4878 *)
4879   lt_cv_prog_gnu_ld=no
4880   ;;
4881 esac
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4884 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4885 with_gnu_ld=$lt_cv_prog_gnu_ld
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4896 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4897 if test "${lt_cv_path_NM+set}" = set; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900   if test -n "$NM"; then
4901   # Let the user override the test.
4902   lt_cv_path_NM="$NM"
4903 else
4904   lt_nm_to_check="${ac_tool_prefix}nm"
4905   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4906     lt_nm_to_check="$lt_nm_to_check nm"
4907   fi
4908   for lt_tmp_nm in $lt_nm_to_check; do
4909     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4910     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4911       IFS="$lt_save_ifs"
4912       test -z "$ac_dir" && ac_dir=.
4913       tmp_nm="$ac_dir/$lt_tmp_nm"
4914       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4915         # Check to see if the nm accepts a BSD-compat flag.
4916         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4917         #   nm: unknown option "B" ignored
4918         # Tru64's nm complains that /dev/null is an invalid object file
4919         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4920         */dev/null* | *'Invalid file or object type'*)
4921           lt_cv_path_NM="$tmp_nm -B"
4922           break
4923           ;;
4924         *)
4925           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4926           */dev/null*)
4927             lt_cv_path_NM="$tmp_nm -p"
4928             break
4929             ;;
4930           *)
4931             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4932             continue # so that we can try to find one that supports BSD flags
4933             ;;
4934           esac
4935           ;;
4936         esac
4937       fi
4938     done
4939     IFS="$lt_save_ifs"
4940   done
4941   : ${lt_cv_path_NM=no}
4942 fi
4943 fi
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4945 $as_echo "$lt_cv_path_NM" >&6; }
4946 if test "$lt_cv_path_NM" != "no"; then
4947   NM="$lt_cv_path_NM"
4948 else
4949   # Didn't find any BSD compatible name lister, look for dumpbin.
4950   if test -n "$ac_tool_prefix"; then
4951   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4952   do
4953     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4958   $as_echo_n "(cached) " >&6
4959 else
4960   if test -n "$DUMPBIN"; then
4961   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4962 else
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4965 do
4966   IFS=$as_save_IFS
4967   test -z "$as_dir" && as_dir=.
4968     for ac_exec_ext in '' $ac_executable_extensions; do
4969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972     break 2
4973   fi
4974 done
4975   done
4976 IFS=$as_save_IFS
4977
4978 fi
4979 fi
4980 DUMPBIN=$ac_cv_prog_DUMPBIN
4981 if test -n "$DUMPBIN"; then
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4983 $as_echo "$DUMPBIN" >&6; }
4984 else
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4987 fi
4988
4989
4990     test -n "$DUMPBIN" && break
4991   done
4992 fi
4993 if test -z "$DUMPBIN"; then
4994   ac_ct_DUMPBIN=$DUMPBIN
4995   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4996 do
4997   # Extract the first word of "$ac_prog", so it can be a program name with args.
4998 set dummy $ac_prog; ac_word=$2
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000 $as_echo_n "checking for $ac_word... " >&6; }
5001 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5002   $as_echo_n "(cached) " >&6
5003 else
5004   if test -n "$ac_ct_DUMPBIN"; then
5005   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5009 do
5010   IFS=$as_save_IFS
5011   test -z "$as_dir" && as_dir=.
5012     for ac_exec_ext in '' $ac_executable_extensions; do
5013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5014     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016     break 2
5017   fi
5018 done
5019   done
5020 IFS=$as_save_IFS
5021
5022 fi
5023 fi
5024 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5025 if test -n "$ac_ct_DUMPBIN"; then
5026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5027 $as_echo "$ac_ct_DUMPBIN" >&6; }
5028 else
5029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5031 fi
5032
5033
5034   test -n "$ac_ct_DUMPBIN" && break
5035 done
5036
5037   if test "x$ac_ct_DUMPBIN" = x; then
5038     DUMPBIN=":"
5039   else
5040     case $cross_compiling:$ac_tool_warned in
5041 yes:)
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044 ac_tool_warned=yes ;;
5045 esac
5046     DUMPBIN=$ac_ct_DUMPBIN
5047   fi
5048 fi
5049
5050
5051   if test "$DUMPBIN" != ":"; then
5052     NM="$DUMPBIN"
5053   fi
5054 fi
5055 test -z "$NM" && NM=nm
5056
5057
5058
5059
5060
5061
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5063 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5064 if test "${lt_cv_nm_interface+set}" = set; then :
5065   $as_echo_n "(cached) " >&6
5066 else
5067   lt_cv_nm_interface="BSD nm"
5068   echo "int some_variable = 0;" > conftest.$ac_ext
5069   (eval echo "\"\$as_me:5069: $ac_compile\"" >&5)
5070   (eval "$ac_compile" 2>conftest.err)
5071   cat conftest.err >&5
5072   (eval echo "\"\$as_me:5072: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5073   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5074   cat conftest.err >&5
5075   (eval echo "\"\$as_me:5075: output\"" >&5)
5076   cat conftest.out >&5
5077   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5078     lt_cv_nm_interface="MS dumpbin"
5079   fi
5080   rm -f conftest*
5081 fi
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5083 $as_echo "$lt_cv_nm_interface" >&6; }
5084
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5086 $as_echo_n "checking whether ln -s works... " >&6; }
5087 LN_S=$as_ln_s
5088 if test "$LN_S" = "ln -s"; then
5089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5090 $as_echo "yes" >&6; }
5091 else
5092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5093 $as_echo "no, using $LN_S" >&6; }
5094 fi
5095
5096 # find the maximum length of command line arguments
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5098 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5099 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5100   $as_echo_n "(cached) " >&6
5101 else
5102     i=0
5103   teststring="ABCD"
5104
5105   case $build_os in
5106   msdosdjgpp*)
5107     # On DJGPP, this test can blow up pretty badly due to problems in libc
5108     # (any single argument exceeding 2000 bytes causes a buffer overrun
5109     # during glob expansion).  Even if it were fixed, the result of this
5110     # check would be larger than it should be.
5111     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5112     ;;
5113
5114   gnu*)
5115     # Under GNU Hurd, this test is not required because there is
5116     # no limit to the length of command line arguments.
5117     # Libtool will interpret -1 as no limit whatsoever
5118     lt_cv_sys_max_cmd_len=-1;
5119     ;;
5120
5121   cygwin* | mingw* | cegcc*)
5122     # On Win9x/ME, this test blows up -- it succeeds, but takes
5123     # about 5 minutes as the teststring grows exponentially.
5124     # Worse, since 9x/ME are not pre-emptively multitasking,
5125     # you end up with a "frozen" computer, even though with patience
5126     # the test eventually succeeds (with a max line length of 256k).
5127     # Instead, let's just punt: use the minimum linelength reported by
5128     # all of the supported platforms: 8192 (on NT/2K/XP).
5129     lt_cv_sys_max_cmd_len=8192;
5130     ;;
5131
5132   amigaos*)
5133     # On AmigaOS with pdksh, this test takes hours, literally.
5134     # So we just punt and use a minimum line length of 8192.
5135     lt_cv_sys_max_cmd_len=8192;
5136     ;;
5137
5138   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5139     # This has been around since 386BSD, at least.  Likely further.
5140     if test -x /sbin/sysctl; then
5141       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5142     elif test -x /usr/sbin/sysctl; then
5143       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5144     else
5145       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5146     fi
5147     # And add a safety zone
5148     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5149     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5150     ;;
5151
5152   interix*)
5153     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5154     lt_cv_sys_max_cmd_len=196608
5155     ;;
5156
5157   osf*)
5158     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5159     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5160     # nice to cause kernel panics so lets avoid the loop below.
5161     # First set a reasonable default.
5162     lt_cv_sys_max_cmd_len=16384
5163     #
5164     if test -x /sbin/sysconfig; then
5165       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5166         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5167       esac
5168     fi
5169     ;;
5170   sco3.2v5*)
5171     lt_cv_sys_max_cmd_len=102400
5172     ;;
5173   sysv5* | sco5v6* | sysv4.2uw2*)
5174     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5175     if test -n "$kargmax"; then
5176       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5177     else
5178       lt_cv_sys_max_cmd_len=32768
5179     fi
5180     ;;
5181   *)
5182     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5183     if test -n "$lt_cv_sys_max_cmd_len"; then
5184       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5185       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5186     else
5187       # Make teststring a little bigger before we do anything with it.
5188       # a 1K string should be a reasonable start.
5189       for i in 1 2 3 4 5 6 7 8 ; do
5190         teststring=$teststring$teststring
5191       done
5192       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5193       # If test is not a shell built-in, we'll probably end up computing a
5194       # maximum length that is only half of the actual maximum length, but
5195       # we can't tell.
5196       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5197                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5198               test $i != 17 # 1/2 MB should be enough
5199       do
5200         i=`expr $i + 1`
5201         teststring=$teststring$teststring
5202       done
5203       # Only check the string length outside the loop.
5204       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5205       teststring=
5206       # Add a significant safety factor because C++ compilers can tack on
5207       # massive amounts of additional arguments before passing them to the
5208       # linker.  It appears as though 1/2 is a usable value.
5209       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5210     fi
5211     ;;
5212   esac
5213
5214 fi
5215
5216 if test -n $lt_cv_sys_max_cmd_len ; then
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5218 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5219 else
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5221 $as_echo "none" >&6; }
5222 fi
5223 max_cmd_len=$lt_cv_sys_max_cmd_len
5224
5225
5226
5227
5228
5229
5230 : ${CP="cp -f"}
5231 : ${MV="mv -f"}
5232 : ${RM="rm -f"}
5233
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5235 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5236 # Try some XSI features
5237 xsi_shell=no
5238 ( _lt_dummy="a/b/c"
5239   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5240       = c,a/b,, \
5241     && eval 'test $(( 1 + 1 )) -eq 2 \
5242     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5243   && xsi_shell=yes
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5245 $as_echo "$xsi_shell" >&6; }
5246
5247
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5249 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5250 lt_shell_append=no
5251 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5252     >/dev/null 2>&1 \
5253   && lt_shell_append=yes
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5255 $as_echo "$lt_shell_append" >&6; }
5256
5257
5258 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5259   lt_unset=unset
5260 else
5261   lt_unset=false
5262 fi
5263
5264
5265
5266
5267
5268 # test EBCDIC or ASCII
5269 case `echo X|tr X '\101'` in
5270  A) # ASCII based system
5271     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5272   lt_SP2NL='tr \040 \012'
5273   lt_NL2SP='tr \015\012 \040\040'
5274   ;;
5275  *) # EBCDIC based system
5276   lt_SP2NL='tr \100 \n'
5277   lt_NL2SP='tr \r\n \100\100'
5278   ;;
5279 esac
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5290 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5291 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5292   $as_echo_n "(cached) " >&6
5293 else
5294   lt_cv_ld_reload_flag='-r'
5295 fi
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5297 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5298 reload_flag=$lt_cv_ld_reload_flag
5299 case $reload_flag in
5300 "" | " "*) ;;
5301 *) reload_flag=" $reload_flag" ;;
5302 esac
5303 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5304 case $host_os in
5305   darwin*)
5306     if test "$GCC" = yes; then
5307       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5308     else
5309       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5310     fi
5311     ;;
5312 esac
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322 if test -n "$ac_tool_prefix"; then
5323   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5324 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5328   $as_echo_n "(cached) " >&6
5329 else
5330   if test -n "$OBJDUMP"; then
5331   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5335 do
5336   IFS=$as_save_IFS
5337   test -z "$as_dir" && as_dir=.
5338     for ac_exec_ext in '' $ac_executable_extensions; do
5339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342     break 2
5343   fi
5344 done
5345   done
5346 IFS=$as_save_IFS
5347
5348 fi
5349 fi
5350 OBJDUMP=$ac_cv_prog_OBJDUMP
5351 if test -n "$OBJDUMP"; then
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5353 $as_echo "$OBJDUMP" >&6; }
5354 else
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5357 fi
5358
5359
5360 fi
5361 if test -z "$ac_cv_prog_OBJDUMP"; then
5362   ac_ct_OBJDUMP=$OBJDUMP
5363   # Extract the first word of "objdump", so it can be a program name with args.
5364 set dummy objdump; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5368   $as_echo_n "(cached) " >&6
5369 else
5370   if test -n "$ac_ct_OBJDUMP"; then
5371   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5375 do
5376   IFS=$as_save_IFS
5377   test -z "$as_dir" && as_dir=.
5378     for ac_exec_ext in '' $ac_executable_extensions; do
5379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5380     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382     break 2
5383   fi
5384 done
5385   done
5386 IFS=$as_save_IFS
5387
5388 fi
5389 fi
5390 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5391 if test -n "$ac_ct_OBJDUMP"; then
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5393 $as_echo "$ac_ct_OBJDUMP" >&6; }
5394 else
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5397 fi
5398
5399   if test "x$ac_ct_OBJDUMP" = x; then
5400     OBJDUMP="false"
5401   else
5402     case $cross_compiling:$ac_tool_warned in
5403 yes:)
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5406 ac_tool_warned=yes ;;
5407 esac
5408     OBJDUMP=$ac_ct_OBJDUMP
5409   fi
5410 else
5411   OBJDUMP="$ac_cv_prog_OBJDUMP"
5412 fi
5413
5414 test -z "$OBJDUMP" && OBJDUMP=objdump
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5425 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5426 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5427   $as_echo_n "(cached) " >&6
5428 else
5429   lt_cv_file_magic_cmd='$MAGIC_CMD'
5430 lt_cv_file_magic_test_file=
5431 lt_cv_deplibs_check_method='unknown'
5432 # Need to set the preceding variable on all platforms that support
5433 # interlibrary dependencies.
5434 # 'none' -- dependencies not supported.
5435 # `unknown' -- same as none, but documents that we really don't know.
5436 # 'pass_all' -- all dependencies passed with no checks.
5437 # 'test_compile' -- check by making test program.
5438 # 'file_magic [[regex]]' -- check by looking for files in library path
5439 # which responds to the $file_magic_cmd with a given extended regex.
5440 # If you have `file' or equivalent on your system and you're not sure
5441 # whether `pass_all' will *always* work, you probably want this one.
5442
5443 case $host_os in
5444 aix[4-9]*)
5445   lt_cv_deplibs_check_method=pass_all
5446   ;;
5447
5448 beos*)
5449   lt_cv_deplibs_check_method=pass_all
5450   ;;
5451
5452 bsdi[45]*)
5453   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5454   lt_cv_file_magic_cmd='/usr/bin/file -L'
5455   lt_cv_file_magic_test_file=/shlib/libc.so
5456   ;;
5457
5458 cygwin*)
5459   # func_win32_libid is a shell function defined in ltmain.sh
5460   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5461   lt_cv_file_magic_cmd='func_win32_libid'
5462   ;;
5463
5464 mingw* | pw32*)
5465   # Base MSYS/MinGW do not provide the 'file' command needed by
5466   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5467   # unless we find 'file', for example because we are cross-compiling.
5468   if ( file / ) >/dev/null 2>&1; then
5469     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5470     lt_cv_file_magic_cmd='func_win32_libid'
5471   else
5472     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5473     lt_cv_file_magic_cmd='$OBJDUMP -f'
5474   fi
5475   ;;
5476
5477 cegcc)
5478   # use the weaker test based on 'objdump'. See mingw*.
5479   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5480   lt_cv_file_magic_cmd='$OBJDUMP -f'
5481   ;;
5482
5483 darwin* | rhapsody*)
5484   lt_cv_deplibs_check_method=pass_all
5485   ;;
5486
5487 freebsd* | dragonfly*)
5488   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5489     case $host_cpu in
5490     i*86 )
5491       # Not sure whether the presence of OpenBSD here was a mistake.
5492       # Let's accept both of them until this is cleared up.
5493       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5494       lt_cv_file_magic_cmd=/usr/bin/file
5495       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5496       ;;
5497     esac
5498   else
5499     lt_cv_deplibs_check_method=pass_all
5500   fi
5501   ;;
5502
5503 gnu*)
5504   lt_cv_deplibs_check_method=pass_all
5505   ;;
5506
5507 hpux10.20* | hpux11*)
5508   lt_cv_file_magic_cmd=/usr/bin/file
5509   case $host_cpu in
5510   ia64*)
5511     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5512     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5513     ;;
5514   hppa*64*)
5515     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]'
5516     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5517     ;;
5518   *)
5519     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5520     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5521     ;;
5522   esac
5523   ;;
5524
5525 interix[3-9]*)
5526   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5527   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5528   ;;
5529
5530 irix5* | irix6* | nonstopux*)
5531   case $LD in
5532   *-32|*"-32 ") libmagic=32-bit;;
5533   *-n32|*"-n32 ") libmagic=N32;;
5534   *-64|*"-64 ") libmagic=64-bit;;
5535   *) libmagic=never-match;;
5536   esac
5537   lt_cv_deplibs_check_method=pass_all
5538   ;;
5539
5540 # This must be Linux ELF.
5541 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5542   lt_cv_deplibs_check_method=pass_all
5543   ;;
5544
5545 netbsd* | netbsdelf*-gnu)
5546   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5547     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5548   else
5549     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5550   fi
5551   ;;
5552
5553 newos6*)
5554   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5555   lt_cv_file_magic_cmd=/usr/bin/file
5556   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5557   ;;
5558
5559 *nto* | *qnx*)
5560   lt_cv_deplibs_check_method=pass_all
5561   ;;
5562
5563 openbsd*)
5564   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5565     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5566   else
5567     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5568   fi
5569   ;;
5570
5571 osf3* | osf4* | osf5*)
5572   lt_cv_deplibs_check_method=pass_all
5573   ;;
5574
5575 rdos*)
5576   lt_cv_deplibs_check_method=pass_all
5577   ;;
5578
5579 solaris*)
5580   lt_cv_deplibs_check_method=pass_all
5581   ;;
5582
5583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5584   lt_cv_deplibs_check_method=pass_all
5585   ;;
5586
5587 sysv4 | sysv4.3*)
5588   case $host_vendor in
5589   motorola)
5590     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]'
5591     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5592     ;;
5593   ncr)
5594     lt_cv_deplibs_check_method=pass_all
5595     ;;
5596   sequent)
5597     lt_cv_file_magic_cmd='/bin/file'
5598     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5599     ;;
5600   sni)
5601     lt_cv_file_magic_cmd='/bin/file'
5602     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5603     lt_cv_file_magic_test_file=/lib/libc.so
5604     ;;
5605   siemens)
5606     lt_cv_deplibs_check_method=pass_all
5607     ;;
5608   pc)
5609     lt_cv_deplibs_check_method=pass_all
5610     ;;
5611   esac
5612   ;;
5613
5614 tpf*)
5615   lt_cv_deplibs_check_method=pass_all
5616   ;;
5617 esac
5618
5619 fi
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5621 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5622 file_magic_cmd=$lt_cv_file_magic_cmd
5623 deplibs_check_method=$lt_cv_deplibs_check_method
5624 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637 if test -n "$ac_tool_prefix"; then
5638   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5639 set dummy ${ac_tool_prefix}ar; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if test "${ac_cv_prog_AR+set}" = set; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   if test -n "$AR"; then
5646   ac_cv_prog_AR="$AR" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651   IFS=$as_save_IFS
5652   test -z "$as_dir" && as_dir=.
5653     for ac_exec_ext in '' $ac_executable_extensions; do
5654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655     ac_cv_prog_AR="${ac_tool_prefix}ar"
5656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657     break 2
5658   fi
5659 done
5660   done
5661 IFS=$as_save_IFS
5662
5663 fi
5664 fi
5665 AR=$ac_cv_prog_AR
5666 if test -n "$AR"; then
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5668 $as_echo "$AR" >&6; }
5669 else
5670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 fi
5673
5674
5675 fi
5676 if test -z "$ac_cv_prog_AR"; then
5677   ac_ct_AR=$AR
5678   # Extract the first word of "ar", so it can be a program name with args.
5679 set dummy ar; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5683   $as_echo_n "(cached) " >&6
5684 else
5685   if test -n "$ac_ct_AR"; then
5686   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5690 do
5691   IFS=$as_save_IFS
5692   test -z "$as_dir" && as_dir=.
5693     for ac_exec_ext in '' $ac_executable_extensions; do
5694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5695     ac_cv_prog_ac_ct_AR="ar"
5696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697     break 2
5698   fi
5699 done
5700   done
5701 IFS=$as_save_IFS
5702
5703 fi
5704 fi
5705 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5706 if test -n "$ac_ct_AR"; then
5707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5708 $as_echo "$ac_ct_AR" >&6; }
5709 else
5710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5712 fi
5713
5714   if test "x$ac_ct_AR" = x; then
5715     AR="false"
5716   else
5717     case $cross_compiling:$ac_tool_warned in
5718 yes:)
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5721 ac_tool_warned=yes ;;
5722 esac
5723     AR=$ac_ct_AR
5724   fi
5725 else
5726   AR="$ac_cv_prog_AR"
5727 fi
5728
5729 test -z "$AR" && AR=ar
5730 test -z "$AR_FLAGS" && AR_FLAGS=cru
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742 if test -n "$ac_tool_prefix"; then
5743   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5744 set dummy ${ac_tool_prefix}strip; ac_word=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if test "${ac_cv_prog_STRIP+set}" = set; then :
5748   $as_echo_n "(cached) " >&6
5749 else
5750   if test -n "$STRIP"; then
5751   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758     for ac_exec_ext in '' $ac_executable_extensions; do
5759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762     break 2
5763   fi
5764 done
5765   done
5766 IFS=$as_save_IFS
5767
5768 fi
5769 fi
5770 STRIP=$ac_cv_prog_STRIP
5771 if test -n "$STRIP"; then
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5773 $as_echo "$STRIP" >&6; }
5774 else
5775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5777 fi
5778
5779
5780 fi
5781 if test -z "$ac_cv_prog_STRIP"; then
5782   ac_ct_STRIP=$STRIP
5783   # Extract the first word of "strip", so it can be a program name with args.
5784 set dummy strip; ac_word=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5788   $as_echo_n "(cached) " >&6
5789 else
5790   if test -n "$ac_ct_STRIP"; then
5791   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796   IFS=$as_save_IFS
5797   test -z "$as_dir" && as_dir=.
5798     for ac_exec_ext in '' $ac_executable_extensions; do
5799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5800     ac_cv_prog_ac_ct_STRIP="strip"
5801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802     break 2
5803   fi
5804 done
5805   done
5806 IFS=$as_save_IFS
5807
5808 fi
5809 fi
5810 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5811 if test -n "$ac_ct_STRIP"; then
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5813 $as_echo "$ac_ct_STRIP" >&6; }
5814 else
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5817 fi
5818
5819   if test "x$ac_ct_STRIP" = x; then
5820     STRIP=":"
5821   else
5822     case $cross_compiling:$ac_tool_warned in
5823 yes:)
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5826 ac_tool_warned=yes ;;
5827 esac
5828     STRIP=$ac_ct_STRIP
5829   fi
5830 else
5831   STRIP="$ac_cv_prog_STRIP"
5832 fi
5833
5834 test -z "$STRIP" && STRIP=:
5835
5836
5837
5838
5839
5840
5841 if test -n "$ac_tool_prefix"; then
5842   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5843 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845 $as_echo_n "checking for $ac_word... " >&6; }
5846 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5847   $as_echo_n "(cached) " >&6
5848 else
5849   if test -n "$RANLIB"; then
5850   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5851 else
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5854 do
5855   IFS=$as_save_IFS
5856   test -z "$as_dir" && as_dir=.
5857     for ac_exec_ext in '' $ac_executable_extensions; do
5858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5859     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861     break 2
5862   fi
5863 done
5864   done
5865 IFS=$as_save_IFS
5866
5867 fi
5868 fi
5869 RANLIB=$ac_cv_prog_RANLIB
5870 if test -n "$RANLIB"; then
5871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5872 $as_echo "$RANLIB" >&6; }
5873 else
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875 $as_echo "no" >&6; }
5876 fi
5877
5878
5879 fi
5880 if test -z "$ac_cv_prog_RANLIB"; then
5881   ac_ct_RANLIB=$RANLIB
5882   # Extract the first word of "ranlib", so it can be a program name with args.
5883 set dummy ranlib; ac_word=$2
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885 $as_echo_n "checking for $ac_word... " >&6; }
5886 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5887   $as_echo_n "(cached) " >&6
5888 else
5889   if test -n "$ac_ct_RANLIB"; then
5890   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5891 else
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5894 do
5895   IFS=$as_save_IFS
5896   test -z "$as_dir" && as_dir=.
5897     for ac_exec_ext in '' $ac_executable_extensions; do
5898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5899     ac_cv_prog_ac_ct_RANLIB="ranlib"
5900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901     break 2
5902   fi
5903 done
5904   done
5905 IFS=$as_save_IFS
5906
5907 fi
5908 fi
5909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5910 if test -n "$ac_ct_RANLIB"; then
5911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5912 $as_echo "$ac_ct_RANLIB" >&6; }
5913 else
5914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915 $as_echo "no" >&6; }
5916 fi
5917
5918   if test "x$ac_ct_RANLIB" = x; then
5919     RANLIB=":"
5920   else
5921     case $cross_compiling:$ac_tool_warned in
5922 yes:)
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5925 ac_tool_warned=yes ;;
5926 esac
5927     RANLIB=$ac_ct_RANLIB
5928   fi
5929 else
5930   RANLIB="$ac_cv_prog_RANLIB"
5931 fi
5932
5933 test -z "$RANLIB" && RANLIB=:
5934
5935
5936
5937
5938
5939
5940 # Determine commands to create old-style static archives.
5941 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5942 old_postinstall_cmds='chmod 644 $oldlib'
5943 old_postuninstall_cmds=
5944
5945 if test -n "$RANLIB"; then
5946   case $host_os in
5947   openbsd*)
5948     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5949     ;;
5950   *)
5951     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5952     ;;
5953   esac
5954   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5955 fi
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990 # If no C compiler was specified, use CC.
5991 LTCC=${LTCC-"$CC"}
5992
5993 # If no C compiler flags were specified, use CFLAGS.
5994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5995
5996 # Allow CC to be a program name with arguments.
5997 compiler=$CC
5998
5999
6000 # Check for command to grab the raw symbol name followed by C symbol from nm.
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6002 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6003 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6004   $as_echo_n "(cached) " >&6
6005 else
6006
6007 # These are sane defaults that work on at least a few old systems.
6008 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6009
6010 # Character class describing NM global symbol codes.
6011 symcode='[BCDEGRST]'
6012
6013 # Regexp to match symbols that can be accessed directly from C.
6014 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6015
6016 # Define system-specific variables.
6017 case $host_os in
6018 aix*)
6019   symcode='[BCDT]'
6020   ;;
6021 cygwin* | mingw* | pw32* | cegcc*)
6022   symcode='[ABCDGISTW]'
6023   ;;
6024 hpux*)
6025   if test "$host_cpu" = ia64; then
6026     symcode='[ABCDEGRST]'
6027   fi
6028   ;;
6029 irix* | nonstopux*)
6030   symcode='[BCDEGRST]'
6031   ;;
6032 osf*)
6033   symcode='[BCDEGQRST]'
6034   ;;
6035 solaris*)
6036   symcode='[BDRT]'
6037   ;;
6038 sco3.2v5*)
6039   symcode='[DT]'
6040   ;;
6041 sysv4.2uw2*)
6042   symcode='[DT]'
6043   ;;
6044 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6045   symcode='[ABDT]'
6046   ;;
6047 sysv4)
6048   symcode='[DFNSTU]'
6049   ;;
6050 esac
6051
6052 # If we're using GNU nm, then use its standard symbol codes.
6053 case `$NM -V 2>&1` in
6054 *GNU* | *'with BFD'*)
6055   symcode='[ABCDGIRSTW]' ;;
6056 esac
6057
6058 # Transform an extracted symbol line into a proper C declaration.
6059 # Some systems (esp. on ia64) link data and code symbols differently,
6060 # so use this general approach.
6061 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6062
6063 # Transform an extracted symbol line into symbol name and symbol address
6064 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6065 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'"
6066
6067 # Handle CRLF in mingw tool chain
6068 opt_cr=
6069 case $build_os in
6070 mingw*)
6071   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6072   ;;
6073 esac
6074
6075 # Try without a prefix underscore, then with it.
6076 for ac_symprfx in "" "_"; do
6077
6078   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6079   symxfrm="\\1 $ac_symprfx\\2 \\2"
6080
6081   # Write the raw and C identifiers.
6082   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6083     # Fake it for dumpbin and say T for any non-static function
6084     # and D for any global variable.
6085     # Also find C++ and __fastcall symbols from MSVC++,
6086     # which start with @ or ?.
6087     lt_cv_sys_global_symbol_pipe="$AWK '"\
6088 "     {last_section=section; section=\$ 3};"\
6089 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6090 "     \$ 0!~/External *\|/{next};"\
6091 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6092 "     {if(hide[section]) next};"\
6093 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6094 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6095 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6096 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6097 "     ' prfx=^$ac_symprfx"
6098   else
6099     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6100   fi
6101
6102   # Check to see that the pipe works correctly.
6103   pipe_works=no
6104
6105   rm -f conftest*
6106   cat > conftest.$ac_ext <<_LT_EOF
6107 #ifdef __cplusplus
6108 extern "C" {
6109 #endif
6110 char nm_test_var;
6111 void nm_test_func(void);
6112 void nm_test_func(void){}
6113 #ifdef __cplusplus
6114 }
6115 #endif
6116 int main(){nm_test_var='a';nm_test_func();return(0);}
6117 _LT_EOF
6118
6119   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6120   (eval $ac_compile) 2>&5
6121   ac_status=$?
6122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6123   test $ac_status = 0; }; then
6124     # Now try to grab the symbols.
6125     nlist=conftest.nm
6126     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6127   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6128   ac_status=$?
6129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130   test $ac_status = 0; } && test -s "$nlist"; then
6131       # Try sorting and uniquifying the output.
6132       if sort "$nlist" | uniq > "$nlist"T; then
6133         mv -f "$nlist"T "$nlist"
6134       else
6135         rm -f "$nlist"T
6136       fi
6137
6138       # Make sure that we snagged all the symbols we need.
6139       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6140         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6141           cat <<_LT_EOF > conftest.$ac_ext
6142 #ifdef __cplusplus
6143 extern "C" {
6144 #endif
6145
6146 _LT_EOF
6147           # Now generate the symbol file.
6148           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6149
6150           cat <<_LT_EOF >> conftest.$ac_ext
6151
6152 /* The mapping between symbol names and symbols.  */
6153 const struct {
6154   const char *name;
6155   void       *address;
6156 }
6157 lt__PROGRAM__LTX_preloaded_symbols[] =
6158 {
6159   { "@PROGRAM@", (void *) 0 },
6160 _LT_EOF
6161           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6162           cat <<\_LT_EOF >> conftest.$ac_ext
6163   {0, (void *) 0}
6164 };
6165
6166 /* This works around a problem in FreeBSD linker */
6167 #ifdef FREEBSD_WORKAROUND
6168 static const void *lt_preloaded_setup() {
6169   return lt__PROGRAM__LTX_preloaded_symbols;
6170 }
6171 #endif
6172
6173 #ifdef __cplusplus
6174 }
6175 #endif
6176 _LT_EOF
6177           # Now try linking the two files.
6178           mv conftest.$ac_objext conftstm.$ac_objext
6179           lt_save_LIBS="$LIBS"
6180           lt_save_CFLAGS="$CFLAGS"
6181           LIBS="conftstm.$ac_objext"
6182           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6183           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6184   (eval $ac_link) 2>&5
6185   ac_status=$?
6186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6188             pipe_works=yes
6189           fi
6190           LIBS="$lt_save_LIBS"
6191           CFLAGS="$lt_save_CFLAGS"
6192         else
6193           echo "cannot find nm_test_func in $nlist" >&5
6194         fi
6195       else
6196         echo "cannot find nm_test_var in $nlist" >&5
6197       fi
6198     else
6199       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6200     fi
6201   else
6202     echo "$progname: failed program was:" >&5
6203     cat conftest.$ac_ext >&5
6204   fi
6205   rm -rf conftest* conftst*
6206
6207   # Do not use the global_symbol_pipe unless it works.
6208   if test "$pipe_works" = yes; then
6209     break
6210   else
6211     lt_cv_sys_global_symbol_pipe=
6212   fi
6213 done
6214
6215 fi
6216
6217 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6218   lt_cv_sys_global_symbol_to_cdecl=
6219 fi
6220 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6222 $as_echo "failed" >&6; }
6223 else
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6225 $as_echo "ok" >&6; }
6226 fi
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250 # Check whether --enable-libtool-lock was given.
6251 if test "${enable_libtool_lock+set}" = set; then :
6252   enableval=$enable_libtool_lock;
6253 fi
6254
6255 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6256
6257 # Some flags need to be propagated to the compiler or linker for good
6258 # libtool support.
6259 case $host in
6260 ia64-*-hpux*)
6261   # Find out which ABI we are using.
6262   echo 'int i;' > conftest.$ac_ext
6263   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6264   (eval $ac_compile) 2>&5
6265   ac_status=$?
6266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267   test $ac_status = 0; }; then
6268     case `/usr/bin/file conftest.$ac_objext` in
6269       *ELF-32*)
6270         HPUX_IA64_MODE="32"
6271         ;;
6272       *ELF-64*)
6273         HPUX_IA64_MODE="64"
6274         ;;
6275     esac
6276   fi
6277   rm -rf conftest*
6278   ;;
6279 *-*-irix6*)
6280   # Find out which ABI we are using.
6281   echo '#line 6281 "configure"' > conftest.$ac_ext
6282   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6283   (eval $ac_compile) 2>&5
6284   ac_status=$?
6285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6286   test $ac_status = 0; }; then
6287     if test "$lt_cv_prog_gnu_ld" = yes; then
6288       case `/usr/bin/file conftest.$ac_objext` in
6289         *32-bit*)
6290           LD="${LD-ld} -melf32bsmip"
6291           ;;
6292         *N32*)
6293           LD="${LD-ld} -melf32bmipn32"
6294           ;;
6295         *64-bit*)
6296           LD="${LD-ld} -melf64bmip"
6297         ;;
6298       esac
6299     else
6300       case `/usr/bin/file conftest.$ac_objext` in
6301         *32-bit*)
6302           LD="${LD-ld} -32"
6303           ;;
6304         *N32*)
6305           LD="${LD-ld} -n32"
6306           ;;
6307         *64-bit*)
6308           LD="${LD-ld} -64"
6309           ;;
6310       esac
6311     fi
6312   fi
6313   rm -rf conftest*
6314   ;;
6315
6316 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6317 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6318   # Find out which ABI we are using.
6319   echo 'int i;' > conftest.$ac_ext
6320   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6321   (eval $ac_compile) 2>&5
6322   ac_status=$?
6323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324   test $ac_status = 0; }; then
6325     case `/usr/bin/file conftest.o` in
6326       *32-bit*)
6327         case $host in
6328           x86_64-*kfreebsd*-gnu)
6329             LD="${LD-ld} -m elf_i386_fbsd"
6330             ;;
6331           x86_64-*linux*)
6332             LD="${LD-ld} -m elf_i386"
6333             ;;
6334           ppc64-*linux*|powerpc64-*linux*)
6335             LD="${LD-ld} -m elf32ppclinux"
6336             ;;
6337           s390x-*linux*)
6338             LD="${LD-ld} -m elf_s390"
6339             ;;
6340           sparc64-*linux*)
6341             LD="${LD-ld} -m elf32_sparc"
6342             ;;
6343         esac
6344         ;;
6345       *64-bit*)
6346         case $host in
6347           x86_64-*kfreebsd*-gnu)
6348             LD="${LD-ld} -m elf_x86_64_fbsd"
6349             ;;
6350           x86_64-*linux*)
6351             LD="${LD-ld} -m elf_x86_64"
6352             ;;
6353           ppc*-*linux*|powerpc*-*linux*)
6354             LD="${LD-ld} -m elf64ppc"
6355             ;;
6356           s390*-*linux*|s390*-*tpf*)
6357             LD="${LD-ld} -m elf64_s390"
6358             ;;
6359           sparc*-*linux*)
6360             LD="${LD-ld} -m elf64_sparc"
6361             ;;
6362         esac
6363         ;;
6364     esac
6365   fi
6366   rm -rf conftest*
6367   ;;
6368
6369 *-*-sco3.2v5*)
6370   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6371   SAVE_CFLAGS="$CFLAGS"
6372   CFLAGS="$CFLAGS -belf"
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6374 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6375 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6376   $as_echo_n "(cached) " >&6
6377 else
6378   ac_ext=c
6379 ac_cpp='$CPP $CPPFLAGS'
6380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6383
6384      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h.  */
6386
6387 int
6388 main ()
6389 {
6390
6391   ;
6392   return 0;
6393 }
6394 _ACEOF
6395 if ac_fn_c_try_link "$LINENO"; then :
6396   lt_cv_cc_needs_belf=yes
6397 else
6398   lt_cv_cc_needs_belf=no
6399 fi
6400 rm -f core conftest.err conftest.$ac_objext \
6401     conftest$ac_exeext conftest.$ac_ext
6402      ac_ext=c
6403 ac_cpp='$CPP $CPPFLAGS'
6404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6407
6408 fi
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6410 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6411   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6412     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6413     CFLAGS="$SAVE_CFLAGS"
6414   fi
6415   ;;
6416 sparc*-*solaris*)
6417   # Find out which ABI we are using.
6418   echo 'int i;' > conftest.$ac_ext
6419   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6420   (eval $ac_compile) 2>&5
6421   ac_status=$?
6422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6423   test $ac_status = 0; }; then
6424     case `/usr/bin/file conftest.o` in
6425     *64-bit*)
6426       case $lt_cv_prog_gnu_ld in
6427       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6428       *)
6429         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6430           LD="${LD-ld} -64"
6431         fi
6432         ;;
6433       esac
6434       ;;
6435     esac
6436   fi
6437   rm -rf conftest*
6438   ;;
6439 esac
6440
6441 need_locks="$enable_libtool_lock"
6442
6443
6444   case $host_os in
6445     rhapsody* | darwin*)
6446     if test -n "$ac_tool_prefix"; then
6447   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6448 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6452   $as_echo_n "(cached) " >&6
6453 else
6454   if test -n "$DSYMUTIL"; then
6455   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460   IFS=$as_save_IFS
6461   test -z "$as_dir" && as_dir=.
6462     for ac_exec_ext in '' $ac_executable_extensions; do
6463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466     break 2
6467   fi
6468 done
6469   done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6475 if test -n "$DSYMUTIL"; then
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6477 $as_echo "$DSYMUTIL" >&6; }
6478 else
6479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6481 fi
6482
6483
6484 fi
6485 if test -z "$ac_cv_prog_DSYMUTIL"; then
6486   ac_ct_DSYMUTIL=$DSYMUTIL
6487   # Extract the first word of "dsymutil", so it can be a program name with args.
6488 set dummy dsymutil; ac_word=$2
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6492   $as_echo_n "(cached) " >&6
6493 else
6494   if test -n "$ac_ct_DSYMUTIL"; then
6495   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502     for ac_exec_ext in '' $ac_executable_extensions; do
6503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509   done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6515 if test -n "$ac_ct_DSYMUTIL"; then
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6517 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6518 else
6519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6521 fi
6522
6523   if test "x$ac_ct_DSYMUTIL" = x; then
6524     DSYMUTIL=":"
6525   else
6526     case $cross_compiling:$ac_tool_warned in
6527 yes:)
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530 ac_tool_warned=yes ;;
6531 esac
6532     DSYMUTIL=$ac_ct_DSYMUTIL
6533   fi
6534 else
6535   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6536 fi
6537
6538     if test -n "$ac_tool_prefix"; then
6539   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6540 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6544   $as_echo_n "(cached) " >&6
6545 else
6546   if test -n "$NMEDIT"; then
6547   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552   IFS=$as_save_IFS
6553   test -z "$as_dir" && as_dir=.
6554     for ac_exec_ext in '' $ac_executable_extensions; do
6555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558     break 2
6559   fi
6560 done
6561   done
6562 IFS=$as_save_IFS
6563
6564 fi
6565 fi
6566 NMEDIT=$ac_cv_prog_NMEDIT
6567 if test -n "$NMEDIT"; then
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6569 $as_echo "$NMEDIT" >&6; }
6570 else
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6573 fi
6574
6575
6576 fi
6577 if test -z "$ac_cv_prog_NMEDIT"; then
6578   ac_ct_NMEDIT=$NMEDIT
6579   # Extract the first word of "nmedit", so it can be a program name with args.
6580 set dummy nmedit; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6584   $as_echo_n "(cached) " >&6
6585 else
6586   if test -n "$ac_ct_NMEDIT"; then
6587   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6588 else
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6591 do
6592   IFS=$as_save_IFS
6593   test -z "$as_dir" && as_dir=.
6594     for ac_exec_ext in '' $ac_executable_extensions; do
6595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598     break 2
6599   fi
6600 done
6601   done
6602 IFS=$as_save_IFS
6603
6604 fi
6605 fi
6606 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6607 if test -n "$ac_ct_NMEDIT"; then
6608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6609 $as_echo "$ac_ct_NMEDIT" >&6; }
6610 else
6611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6613 fi
6614
6615   if test "x$ac_ct_NMEDIT" = x; then
6616     NMEDIT=":"
6617   else
6618     case $cross_compiling:$ac_tool_warned in
6619 yes:)
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6622 ac_tool_warned=yes ;;
6623 esac
6624     NMEDIT=$ac_ct_NMEDIT
6625   fi
6626 else
6627   NMEDIT="$ac_cv_prog_NMEDIT"
6628 fi
6629
6630     if test -n "$ac_tool_prefix"; then
6631   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if test "${ac_cv_prog_LIPO+set}" = set; then :
6636   $as_echo_n "(cached) " >&6
6637 else
6638   if test -n "$LIPO"; then
6639   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644   IFS=$as_save_IFS
6645   test -z "$as_dir" && as_dir=.
6646     for ac_exec_ext in '' $ac_executable_extensions; do
6647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650     break 2
6651   fi
6652 done
6653   done
6654 IFS=$as_save_IFS
6655
6656 fi
6657 fi
6658 LIPO=$ac_cv_prog_LIPO
6659 if test -n "$LIPO"; then
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6661 $as_echo "$LIPO" >&6; }
6662 else
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6665 fi
6666
6667
6668 fi
6669 if test -z "$ac_cv_prog_LIPO"; then
6670   ac_ct_LIPO=$LIPO
6671   # Extract the first word of "lipo", so it can be a program name with args.
6672 set dummy lipo; ac_word=$2
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6676   $as_echo_n "(cached) " >&6
6677 else
6678   if test -n "$ac_ct_LIPO"; then
6679   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684   IFS=$as_save_IFS
6685   test -z "$as_dir" && as_dir=.
6686     for ac_exec_ext in '' $ac_executable_extensions; do
6687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688     ac_cv_prog_ac_ct_LIPO="lipo"
6689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690     break 2
6691   fi
6692 done
6693   done
6694 IFS=$as_save_IFS
6695
6696 fi
6697 fi
6698 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6699 if test -n "$ac_ct_LIPO"; then
6700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6701 $as_echo "$ac_ct_LIPO" >&6; }
6702 else
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 $as_echo "no" >&6; }
6705 fi
6706
6707   if test "x$ac_ct_LIPO" = x; then
6708     LIPO=":"
6709   else
6710     case $cross_compiling:$ac_tool_warned in
6711 yes:)
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6714 ac_tool_warned=yes ;;
6715 esac
6716     LIPO=$ac_ct_LIPO
6717   fi
6718 else
6719   LIPO="$ac_cv_prog_LIPO"
6720 fi
6721
6722     if test -n "$ac_tool_prefix"; then
6723   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}otool; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6728   $as_echo_n "(cached) " >&6
6729 else
6730   if test -n "$OTOOL"; then
6731   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736   IFS=$as_save_IFS
6737   test -z "$as_dir" && as_dir=.
6738     for ac_exec_ext in '' $ac_executable_extensions; do
6739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742     break 2
6743   fi
6744 done
6745   done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 OTOOL=$ac_cv_prog_OTOOL
6751 if test -n "$OTOOL"; then
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6753 $as_echo "$OTOOL" >&6; }
6754 else
6755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6757 fi
6758
6759
6760 fi
6761 if test -z "$ac_cv_prog_OTOOL"; then
6762   ac_ct_OTOOL=$OTOOL
6763   # Extract the first word of "otool", so it can be a program name with args.
6764 set dummy otool; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6768   $as_echo_n "(cached) " >&6
6769 else
6770   if test -n "$ac_ct_OTOOL"; then
6771   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776   IFS=$as_save_IFS
6777   test -z "$as_dir" && as_dir=.
6778     for ac_exec_ext in '' $ac_executable_extensions; do
6779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780     ac_cv_prog_ac_ct_OTOOL="otool"
6781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782     break 2
6783   fi
6784 done
6785   done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6791 if test -n "$ac_ct_OTOOL"; then
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6793 $as_echo "$ac_ct_OTOOL" >&6; }
6794 else
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6797 fi
6798
6799   if test "x$ac_ct_OTOOL" = x; then
6800     OTOOL=":"
6801   else
6802     case $cross_compiling:$ac_tool_warned in
6803 yes:)
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808     OTOOL=$ac_ct_OTOOL
6809   fi
6810 else
6811   OTOOL="$ac_cv_prog_OTOOL"
6812 fi
6813
6814     if test -n "$ac_tool_prefix"; then
6815   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6820   $as_echo_n "(cached) " >&6
6821 else
6822   if test -n "$OTOOL64"; then
6823   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828   IFS=$as_save_IFS
6829   test -z "$as_dir" && as_dir=.
6830     for ac_exec_ext in '' $ac_executable_extensions; do
6831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834     break 2
6835   fi
6836 done
6837   done
6838 IFS=$as_save_IFS
6839
6840 fi
6841 fi
6842 OTOOL64=$ac_cv_prog_OTOOL64
6843 if test -n "$OTOOL64"; then
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6845 $as_echo "$OTOOL64" >&6; }
6846 else
6847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6849 fi
6850
6851
6852 fi
6853 if test -z "$ac_cv_prog_OTOOL64"; then
6854   ac_ct_OTOOL64=$OTOOL64
6855   # Extract the first word of "otool64", so it can be a program name with args.
6856 set dummy otool64; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6860   $as_echo_n "(cached) " >&6
6861 else
6862   if test -n "$ac_ct_OTOOL64"; then
6863   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870     for ac_exec_ext in '' $ac_executable_extensions; do
6871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872     ac_cv_prog_ac_ct_OTOOL64="otool64"
6873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874     break 2
6875   fi
6876 done
6877   done
6878 IFS=$as_save_IFS
6879
6880 fi
6881 fi
6882 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6883 if test -n "$ac_ct_OTOOL64"; then
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6885 $as_echo "$ac_ct_OTOOL64" >&6; }
6886 else
6887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6889 fi
6890
6891   if test "x$ac_ct_OTOOL64" = x; then
6892     OTOOL64=":"
6893   else
6894     case $cross_compiling:$ac_tool_warned in
6895 yes:)
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6898 ac_tool_warned=yes ;;
6899 esac
6900     OTOOL64=$ac_ct_OTOOL64
6901   fi
6902 else
6903   OTOOL64="$ac_cv_prog_OTOOL64"
6904 fi
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6933 $as_echo_n "checking for -single_module linker flag... " >&6; }
6934 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6935   $as_echo_n "(cached) " >&6
6936 else
6937   lt_cv_apple_cc_single_mod=no
6938       if test -z "${LT_MULTI_MODULE}"; then
6939         # By default we will add the -single_module flag. You can override
6940         # by either setting the environment variable LT_MULTI_MODULE
6941         # non-empty at configure time, or by adding -multi_module to the
6942         # link flags.
6943         rm -rf libconftest.dylib*
6944         echo "int foo(void){return 1;}" > conftest.c
6945         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6946 -dynamiclib -Wl,-single_module conftest.c" >&5
6947         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6948           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6949         _lt_result=$?
6950         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6951           lt_cv_apple_cc_single_mod=yes
6952         else
6953           cat conftest.err >&5
6954         fi
6955         rm -rf libconftest.dylib*
6956         rm -f conftest.*
6957       fi
6958 fi
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6960 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6962 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6963 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6964   $as_echo_n "(cached) " >&6
6965 else
6966   lt_cv_ld_exported_symbols_list=no
6967       save_LDFLAGS=$LDFLAGS
6968       echo "_main" > conftest.sym
6969       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6970       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h.  */
6972
6973 int
6974 main ()
6975 {
6976
6977   ;
6978   return 0;
6979 }
6980 _ACEOF
6981 if ac_fn_c_try_link "$LINENO"; then :
6982   lt_cv_ld_exported_symbols_list=yes
6983 else
6984   lt_cv_ld_exported_symbols_list=no
6985 fi
6986 rm -f core conftest.err conftest.$ac_objext \
6987     conftest$ac_exeext conftest.$ac_ext
6988         LDFLAGS="$save_LDFLAGS"
6989
6990 fi
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6992 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6993     case $host_os in
6994     rhapsody* | darwin1.[012])
6995       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6996     darwin1.*)
6997       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6998     darwin*) # darwin 5.x on
6999       # if running on 10.5 or later, the deployment target defaults
7000       # to the OS version, if on x86, and 10.4, the deployment
7001       # target defaults to 10.4. Don't you love it?
7002       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7003         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7004           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7005         10.[012]*)
7006           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7007         10.*)
7008           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7009       esac
7010     ;;
7011   esac
7012     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7013       _lt_dar_single_mod='$single_module'
7014     fi
7015     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7016       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7017     else
7018       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7019     fi
7020     if test "$DSYMUTIL" != ":"; then
7021       _lt_dsymutil='~$DSYMUTIL $lib || :'
7022     else
7023       _lt_dsymutil=
7024     fi
7025     ;;
7026   esac
7027
7028 ac_ext=c
7029 ac_cpp='$CPP $CPPFLAGS'
7030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7034 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7035 # On Suns, sometimes $CPP names a directory.
7036 if test -n "$CPP" && test -d "$CPP"; then
7037   CPP=
7038 fi
7039 if test -z "$CPP"; then
7040   if test "${ac_cv_prog_CPP+set}" = set; then :
7041   $as_echo_n "(cached) " >&6
7042 else
7043       # Double quotes because CPP needs to be expanded
7044     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7045     do
7046       ac_preproc_ok=false
7047 for ac_c_preproc_warn_flag in '' yes
7048 do
7049   # Use a header file that comes with gcc, so configuring glibc
7050   # with a fresh cross-compiler works.
7051   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7052   # <limits.h> exists even on freestanding compilers.
7053   # On the NeXT, cc -E runs the code through the compiler's parser,
7054   # not just through cpp. "Syntax error" is here to catch this case.
7055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h.  */
7057 #ifdef __STDC__
7058 # include <limits.h>
7059 #else
7060 # include <assert.h>
7061 #endif
7062                      Syntax error
7063 _ACEOF
7064 if ac_fn_c_try_cpp "$LINENO"; then :
7065
7066 else
7067   # Broken: fails on valid input.
7068 continue
7069 fi
7070 rm -f conftest.err conftest.i conftest.$ac_ext
7071
7072   # OK, works on sane cases.  Now check whether nonexistent headers
7073   # can be detected and how.
7074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h.  */
7076 #include <ac_nonexistent.h>
7077 _ACEOF
7078 if ac_fn_c_try_cpp "$LINENO"; then :
7079   # Broken: success on invalid input.
7080 continue
7081 else
7082   # Passes both tests.
7083 ac_preproc_ok=:
7084 break
7085 fi
7086 rm -f conftest.err conftest.i conftest.$ac_ext
7087
7088 done
7089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7090 rm -f conftest.i conftest.err conftest.$ac_ext
7091 if $ac_preproc_ok; then :
7092   break
7093 fi
7094
7095     done
7096     ac_cv_prog_CPP=$CPP
7097
7098 fi
7099   CPP=$ac_cv_prog_CPP
7100 else
7101   ac_cv_prog_CPP=$CPP
7102 fi
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7104 $as_echo "$CPP" >&6; }
7105 ac_preproc_ok=false
7106 for ac_c_preproc_warn_flag in '' yes
7107 do
7108   # Use a header file that comes with gcc, so configuring glibc
7109   # with a fresh cross-compiler works.
7110   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7111   # <limits.h> exists even on freestanding compilers.
7112   # On the NeXT, cc -E runs the code through the compiler's parser,
7113   # not just through cpp. "Syntax error" is here to catch this case.
7114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h.  */
7116 #ifdef __STDC__
7117 # include <limits.h>
7118 #else
7119 # include <assert.h>
7120 #endif
7121                      Syntax error
7122 _ACEOF
7123 if ac_fn_c_try_cpp "$LINENO"; then :
7124
7125 else
7126   # Broken: fails on valid input.
7127 continue
7128 fi
7129 rm -f conftest.err conftest.i conftest.$ac_ext
7130
7131   # OK, works on sane cases.  Now check whether nonexistent headers
7132   # can be detected and how.
7133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h.  */
7135 #include <ac_nonexistent.h>
7136 _ACEOF
7137 if ac_fn_c_try_cpp "$LINENO"; then :
7138   # Broken: success on invalid input.
7139 continue
7140 else
7141   # Passes both tests.
7142 ac_preproc_ok=:
7143 break
7144 fi
7145 rm -f conftest.err conftest.i conftest.$ac_ext
7146
7147 done
7148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7149 rm -f conftest.i conftest.err conftest.$ac_ext
7150 if $ac_preproc_ok; then :
7151
7152 else
7153   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7155 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7156 See \`config.log' for more details" "$LINENO" 5 ; }
7157 fi
7158
7159 ac_ext=c
7160 ac_cpp='$CPP $CPPFLAGS'
7161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7164
7165
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7167 $as_echo_n "checking for ANSI C header files... " >&6; }
7168 if test "${ac_cv_header_stdc+set}" = set; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h.  */
7173 #include <stdlib.h>
7174 #include <stdarg.h>
7175 #include <string.h>
7176 #include <float.h>
7177
7178 int
7179 main ()
7180 {
7181
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 if ac_fn_c_try_compile "$LINENO"; then :
7187   ac_cv_header_stdc=yes
7188 else
7189   ac_cv_header_stdc=no
7190 fi
7191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7192
7193 if test $ac_cv_header_stdc = yes; then
7194   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h.  */
7197 #include <string.h>
7198
7199 _ACEOF
7200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7201   $EGREP "memchr" >/dev/null 2>&1; then :
7202
7203 else
7204   ac_cv_header_stdc=no
7205 fi
7206 rm -f conftest*
7207
7208 fi
7209
7210 if test $ac_cv_header_stdc = yes; then
7211   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h.  */
7214 #include <stdlib.h>
7215
7216 _ACEOF
7217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7218   $EGREP "free" >/dev/null 2>&1; then :
7219
7220 else
7221   ac_cv_header_stdc=no
7222 fi
7223 rm -f conftest*
7224
7225 fi
7226
7227 if test $ac_cv_header_stdc = yes; then
7228   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7229   if test "$cross_compiling" = yes; then :
7230   :
7231 else
7232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h.  */
7234 #include <ctype.h>
7235 #include <stdlib.h>
7236 #if ((' ' & 0x0FF) == 0x020)
7237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7239 #else
7240 # define ISLOWER(c) \
7241                    (('a' <= (c) && (c) <= 'i') \
7242                      || ('j' <= (c) && (c) <= 'r') \
7243                      || ('s' <= (c) && (c) <= 'z'))
7244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7245 #endif
7246
7247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7248 int
7249 main ()
7250 {
7251   int i;
7252   for (i = 0; i < 256; i++)
7253     if (XOR (islower (i), ISLOWER (i))
7254         || toupper (i) != TOUPPER (i))
7255       return 2;
7256   return 0;
7257 }
7258 _ACEOF
7259 if ac_fn_c_try_run "$LINENO"; then :
7260
7261 else
7262   ac_cv_header_stdc=no
7263 fi
7264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7265   conftest.$ac_objext conftest.beam conftest.$ac_ext
7266 fi
7267
7268 fi
7269 fi
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7271 $as_echo "$ac_cv_header_stdc" >&6; }
7272 if test $ac_cv_header_stdc = yes; then
7273
7274 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7275
7276 fi
7277
7278 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7279 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7280                   inttypes.h stdint.h unistd.h
7281 do :
7282   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7283 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7284 "
7285 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7286   cat >>confdefs.h <<_ACEOF
7287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7288 _ACEOF
7289
7290 fi
7291
7292 done
7293
7294
7295 for ac_header in dlfcn.h
7296 do :
7297   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7298 "
7299 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7300   cat >>confdefs.h <<_ACEOF
7301 #define HAVE_DLFCN_H 1
7302 _ACEOF
7303
7304 fi
7305
7306 done
7307
7308
7309
7310 # Set options
7311
7312
7313
7314         enable_dlopen=no
7315
7316
7317   enable_win32_dll=no
7318
7319
7320             # Check whether --enable-shared was given.
7321 if test "${enable_shared+set}" = set; then :
7322   enableval=$enable_shared; p=${PACKAGE-default}
7323     case $enableval in
7324     yes) enable_shared=yes ;;
7325     no) enable_shared=no ;;
7326     *)
7327       enable_shared=no
7328       # Look at the argument we got.  We use all the common list separators.
7329       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7330       for pkg in $enableval; do
7331         IFS="$lt_save_ifs"
7332         if test "X$pkg" = "X$p"; then
7333           enable_shared=yes
7334         fi
7335       done
7336       IFS="$lt_save_ifs"
7337       ;;
7338     esac
7339 else
7340   enable_shared=yes
7341 fi
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353 # Check whether --with-pic was given.
7354 if test "${with_pic+set}" = set; then :
7355   withval=$with_pic; pic_mode="$withval"
7356 else
7357   pic_mode=default
7358 fi
7359
7360
7361 test -z "$pic_mode" && pic_mode=default
7362
7363
7364
7365
7366
7367
7368
7369   # Check whether --enable-fast-install was given.
7370 if test "${enable_fast_install+set}" = set; then :
7371   enableval=$enable_fast_install; p=${PACKAGE-default}
7372     case $enableval in
7373     yes) enable_fast_install=yes ;;
7374     no) enable_fast_install=no ;;
7375     *)
7376       enable_fast_install=no
7377       # Look at the argument we got.  We use all the common list separators.
7378       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7379       for pkg in $enableval; do
7380         IFS="$lt_save_ifs"
7381         if test "X$pkg" = "X$p"; then
7382           enable_fast_install=yes
7383         fi
7384       done
7385       IFS="$lt_save_ifs"
7386       ;;
7387     esac
7388 else
7389   enable_fast_install=yes
7390 fi
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402 # This can be used to rebuild libtool when needed
7403 LIBTOOL_DEPS="$ltmain"
7404
7405 # Always use our own libtool.
7406 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432 test -z "$LN_S" && LN_S="ln -s"
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447 if test -n "${ZSH_VERSION+set}" ; then
7448    setopt NO_GLOB_SUBST
7449 fi
7450
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7452 $as_echo_n "checking for objdir... " >&6; }
7453 if test "${lt_cv_objdir+set}" = set; then :
7454   $as_echo_n "(cached) " >&6
7455 else
7456   rm -f .libs 2>/dev/null
7457 mkdir .libs 2>/dev/null
7458 if test -d .libs; then
7459   lt_cv_objdir=.libs
7460 else
7461   # MS-DOS does not allow filenames that begin with a dot.
7462   lt_cv_objdir=_libs
7463 fi
7464 rmdir .libs 2>/dev/null
7465 fi
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7467 $as_echo "$lt_cv_objdir" >&6; }
7468 objdir=$lt_cv_objdir
7469
7470
7471
7472
7473
7474 cat >>confdefs.h <<_ACEOF
7475 #define LT_OBJDIR "$lt_cv_objdir/"
7476 _ACEOF
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494 case $host_os in
7495 aix3*)
7496   # AIX sometimes has problems with the GCC collect2 program.  For some
7497   # reason, if we set the COLLECT_NAMES environment variable, the problems
7498   # vanish in a puff of smoke.
7499   if test "X${COLLECT_NAMES+set}" != Xset; then
7500     COLLECT_NAMES=
7501     export COLLECT_NAMES
7502   fi
7503   ;;
7504 esac
7505
7506 # Sed substitution that helps us do robust quoting.  It backslashifies
7507 # metacharacters that are still active within double-quoted strings.
7508 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7509
7510 # Same as above, but do not quote variable references.
7511 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7512
7513 # Sed substitution to delay expansion of an escaped shell variable in a
7514 # double_quote_subst'ed string.
7515 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7516
7517 # Sed substitution to delay expansion of an escaped single quote.
7518 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7519
7520 # Sed substitution to avoid accidental globbing in evaled expressions
7521 no_glob_subst='s/\*/\\\*/g'
7522
7523 # Global variables:
7524 ofile=libtool
7525 can_build_shared=yes
7526
7527 # All known linkers require a `.a' archive for static linking (except MSVC,
7528 # which needs '.lib').
7529 libext=a
7530
7531 with_gnu_ld="$lt_cv_prog_gnu_ld"
7532
7533 old_CC="$CC"
7534 old_CFLAGS="$CFLAGS"
7535
7536 # Set sane defaults for various variables
7537 test -z "$CC" && CC=cc
7538 test -z "$LTCC" && LTCC=$CC
7539 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7540 test -z "$LD" && LD=ld
7541 test -z "$ac_objext" && ac_objext=o
7542
7543 for cc_temp in $compiler""; do
7544   case $cc_temp in
7545     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7546     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7547     \-*) ;;
7548     *) break;;
7549   esac
7550 done
7551 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7552
7553
7554 # Only perform the check for file, if the check method requires it
7555 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7556 case $deplibs_check_method in
7557 file_magic*)
7558   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7560 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7561 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564   case $MAGIC_CMD in
7565 [\\/*] |  ?:[\\/]*)
7566   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7567   ;;
7568 *)
7569   lt_save_MAGIC_CMD="$MAGIC_CMD"
7570   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7571   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7572   for ac_dir in $ac_dummy; do
7573     IFS="$lt_save_ifs"
7574     test -z "$ac_dir" && ac_dir=.
7575     if test -f $ac_dir/${ac_tool_prefix}file; then
7576       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7577       if test -n "$file_magic_test_file"; then
7578         case $deplibs_check_method in
7579         "file_magic "*)
7580           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7581           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7582           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7583             $EGREP "$file_magic_regex" > /dev/null; then
7584             :
7585           else
7586             cat <<_LT_EOF 1>&2
7587
7588 *** Warning: the command libtool uses to detect shared libraries,
7589 *** $file_magic_cmd, produces output that libtool cannot recognize.
7590 *** The result is that libtool may fail to recognize shared libraries
7591 *** as such.  This will affect the creation of libtool libraries that
7592 *** depend on shared libraries, but programs linked with such libtool
7593 *** libraries will work regardless of this problem.  Nevertheless, you
7594 *** may want to report the problem to your system manager and/or to
7595 *** bug-libtool@gnu.org
7596
7597 _LT_EOF
7598           fi ;;
7599         esac
7600       fi
7601       break
7602     fi
7603   done
7604   IFS="$lt_save_ifs"
7605   MAGIC_CMD="$lt_save_MAGIC_CMD"
7606   ;;
7607 esac
7608 fi
7609
7610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7611 if test -n "$MAGIC_CMD"; then
7612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7613 $as_echo "$MAGIC_CMD" >&6; }
7614 else
7615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7617 fi
7618
7619
7620
7621
7622
7623 if test -z "$lt_cv_path_MAGIC_CMD"; then
7624   if test -n "$ac_tool_prefix"; then
7625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7626 $as_echo_n "checking for file... " >&6; }
7627 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7628   $as_echo_n "(cached) " >&6
7629 else
7630   case $MAGIC_CMD in
7631 [\\/*] |  ?:[\\/]*)
7632   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7633   ;;
7634 *)
7635   lt_save_MAGIC_CMD="$MAGIC_CMD"
7636   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7637   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7638   for ac_dir in $ac_dummy; do
7639     IFS="$lt_save_ifs"
7640     test -z "$ac_dir" && ac_dir=.
7641     if test -f $ac_dir/file; then
7642       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7643       if test -n "$file_magic_test_file"; then
7644         case $deplibs_check_method in
7645         "file_magic "*)
7646           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7647           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7648           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7649             $EGREP "$file_magic_regex" > /dev/null; then
7650             :
7651           else
7652             cat <<_LT_EOF 1>&2
7653
7654 *** Warning: the command libtool uses to detect shared libraries,
7655 *** $file_magic_cmd, produces output that libtool cannot recognize.
7656 *** The result is that libtool may fail to recognize shared libraries
7657 *** as such.  This will affect the creation of libtool libraries that
7658 *** depend on shared libraries, but programs linked with such libtool
7659 *** libraries will work regardless of this problem.  Nevertheless, you
7660 *** may want to report the problem to your system manager and/or to
7661 *** bug-libtool@gnu.org
7662
7663 _LT_EOF
7664           fi ;;
7665         esac
7666       fi
7667       break
7668     fi
7669   done
7670   IFS="$lt_save_ifs"
7671   MAGIC_CMD="$lt_save_MAGIC_CMD"
7672   ;;
7673 esac
7674 fi
7675
7676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7677 if test -n "$MAGIC_CMD"; then
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7679 $as_echo "$MAGIC_CMD" >&6; }
7680 else
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7683 fi
7684
7685
7686   else
7687     MAGIC_CMD=:
7688   fi
7689 fi
7690
7691   fi
7692   ;;
7693 esac
7694
7695 # Use C for the default configuration in the libtool script
7696
7697 lt_save_CC="$CC"
7698 ac_ext=c
7699 ac_cpp='$CPP $CPPFLAGS'
7700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7703
7704
7705 # Source file extension for C test sources.
7706 ac_ext=c
7707
7708 # Object file extension for compiled C test sources.
7709 objext=o
7710 objext=$objext
7711
7712 # Code to be used in simple compile tests
7713 lt_simple_compile_test_code="int some_variable = 0;"
7714
7715 # Code to be used in simple link tests
7716 lt_simple_link_test_code='int main(){return(0);}'
7717
7718
7719
7720
7721
7722
7723
7724 # If no C compiler was specified, use CC.
7725 LTCC=${LTCC-"$CC"}
7726
7727 # If no C compiler flags were specified, use CFLAGS.
7728 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7729
7730 # Allow CC to be a program name with arguments.
7731 compiler=$CC
7732
7733 # Save the default compiler, since it gets overwritten when the other
7734 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7735 compiler_DEFAULT=$CC
7736
7737 # save warnings/boilerplate of simple test code
7738 ac_outfile=conftest.$ac_objext
7739 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7740 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7741 _lt_compiler_boilerplate=`cat conftest.err`
7742 $RM conftest*
7743
7744 ac_outfile=conftest.$ac_objext
7745 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7746 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7747 _lt_linker_boilerplate=`cat conftest.err`
7748 $RM -r conftest*
7749
7750
7751 ## CAVEAT EMPTOR:
7752 ## There is no encapsulation within the following macros, do not change
7753 ## the running order or otherwise move them around unless you know exactly
7754 ## what you are doing...
7755 if test -n "$compiler"; then
7756
7757 lt_prog_compiler_no_builtin_flag=
7758
7759 if test "$GCC" = yes; then
7760   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7761
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7763 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7764 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7765   $as_echo_n "(cached) " >&6
7766 else
7767   lt_cv_prog_compiler_rtti_exceptions=no
7768    ac_outfile=conftest.$ac_objext
7769    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7770    lt_compiler_flag="-fno-rtti -fno-exceptions"
7771    # Insert the option either (1) after the last *FLAGS variable, or
7772    # (2) before a word containing "conftest.", or (3) at the end.
7773    # Note that $ac_compile itself does not contain backslashes and begins
7774    # with a dollar sign (not a hyphen), so the echo should work correctly.
7775    # The option is referenced via a variable to avoid confusing sed.
7776    lt_compile=`echo "$ac_compile" | $SED \
7777    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7778    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7779    -e 's:$: $lt_compiler_flag:'`
7780    (eval echo "\"\$as_me:7780: $lt_compile\"" >&5)
7781    (eval "$lt_compile" 2>conftest.err)
7782    ac_status=$?
7783    cat conftest.err >&5
7784    echo "$as_me:7784: \$? = $ac_status" >&5
7785    if (exit $ac_status) && test -s "$ac_outfile"; then
7786      # The compiler can only warn and ignore the option if not recognized
7787      # So say no if there are warnings other than the usual output.
7788      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7789      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7790      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7791        lt_cv_prog_compiler_rtti_exceptions=yes
7792      fi
7793    fi
7794    $RM conftest*
7795
7796 fi
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7798 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7799
7800 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7801     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7802 else
7803     :
7804 fi
7805
7806 fi
7807
7808
7809
7810
7811
7812
7813   lt_prog_compiler_wl=
7814 lt_prog_compiler_pic=
7815 lt_prog_compiler_static=
7816
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7818 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7819
7820   if test "$GCC" = yes; then
7821     lt_prog_compiler_wl='-Wl,'
7822     lt_prog_compiler_static='-static'
7823
7824     case $host_os in
7825       aix*)
7826       # All AIX code is PIC.
7827       if test "$host_cpu" = ia64; then
7828         # AIX 5 now supports IA64 processor
7829         lt_prog_compiler_static='-Bstatic'
7830       fi
7831       ;;
7832
7833     amigaos*)
7834       case $host_cpu in
7835       powerpc)
7836             # see comment about AmigaOS4 .so support
7837             lt_prog_compiler_pic='-fPIC'
7838         ;;
7839       m68k)
7840             # FIXME: we need at least 68020 code to build shared libraries, but
7841             # adding the `-m68020' flag to GCC prevents building anything better,
7842             # like `-m68040'.
7843             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7844         ;;
7845       esac
7846       ;;
7847
7848     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7849       # PIC is the default for these OSes.
7850       ;;
7851
7852     mingw* | cygwin* | pw32* | os2* | cegcc*)
7853       # This hack is so that the source file can tell whether it is being
7854       # built for inclusion in a dll (and should export symbols for example).
7855       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7856       # (--disable-auto-import) libraries
7857       lt_prog_compiler_pic='-DDLL_EXPORT'
7858       ;;
7859
7860     darwin* | rhapsody*)
7861       # PIC is the default on this platform
7862       # Common symbols not allowed in MH_DYLIB files
7863       lt_prog_compiler_pic='-fno-common'
7864       ;;
7865
7866     hpux*)
7867       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7868       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7869       # sets the default TLS model and affects inlining.
7870       case $host_cpu in
7871       hppa*64*)
7872         # +Z the default
7873         ;;
7874       *)
7875         lt_prog_compiler_pic='-fPIC'
7876         ;;
7877       esac
7878       ;;
7879
7880     interix[3-9]*)
7881       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7882       # Instead, we relocate shared libraries at runtime.
7883       ;;
7884
7885     msdosdjgpp*)
7886       # Just because we use GCC doesn't mean we suddenly get shared libraries
7887       # on systems that don't support them.
7888       lt_prog_compiler_can_build_shared=no
7889       enable_shared=no
7890       ;;
7891
7892     *nto* | *qnx*)
7893       # QNX uses GNU C++, but need to define -shared option too, otherwise
7894       # it will coredump.
7895       lt_prog_compiler_pic='-fPIC -shared'
7896       ;;
7897
7898     sysv4*MP*)
7899       if test -d /usr/nec; then
7900         lt_prog_compiler_pic=-Kconform_pic
7901       fi
7902       ;;
7903
7904     *)
7905       lt_prog_compiler_pic='-fPIC'
7906       ;;
7907     esac
7908   else
7909     # PORTME Check for flag to pass linker flags through the system compiler.
7910     case $host_os in
7911     aix*)
7912       lt_prog_compiler_wl='-Wl,'
7913       if test "$host_cpu" = ia64; then
7914         # AIX 5 now supports IA64 processor
7915         lt_prog_compiler_static='-Bstatic'
7916       else
7917         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7918       fi
7919       ;;
7920
7921     mingw* | cygwin* | pw32* | os2* | cegcc*)
7922       # This hack is so that the source file can tell whether it is being
7923       # built for inclusion in a dll (and should export symbols for example).
7924       lt_prog_compiler_pic='-DDLL_EXPORT'
7925       ;;
7926
7927     hpux9* | hpux10* | hpux11*)
7928       lt_prog_compiler_wl='-Wl,'
7929       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7930       # not for PA HP-UX.
7931       case $host_cpu in
7932       hppa*64*|ia64*)
7933         # +Z the default
7934         ;;
7935       *)
7936         lt_prog_compiler_pic='+Z'
7937         ;;
7938       esac
7939       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7940       lt_prog_compiler_static='${wl}-a ${wl}archive'
7941       ;;
7942
7943     irix5* | irix6* | nonstopux*)
7944       lt_prog_compiler_wl='-Wl,'
7945       # PIC (with -KPIC) is the default.
7946       lt_prog_compiler_static='-non_shared'
7947       ;;
7948
7949     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7950       case $cc_basename in
7951       # old Intel for x86_64 which still supported -KPIC.
7952       ecc*)
7953         lt_prog_compiler_wl='-Wl,'
7954         lt_prog_compiler_pic='-KPIC'
7955         lt_prog_compiler_static='-static'
7956         ;;
7957       # icc used to be incompatible with GCC.
7958       # ICC 10 doesn't accept -KPIC any more.
7959       icc* | ifort*)
7960         lt_prog_compiler_wl='-Wl,'
7961         lt_prog_compiler_pic='-fPIC'
7962         lt_prog_compiler_static='-static'
7963         ;;
7964       # Lahey Fortran 8.1.
7965       lf95*)
7966         lt_prog_compiler_wl='-Wl,'
7967         lt_prog_compiler_pic='--shared'
7968         lt_prog_compiler_static='--static'
7969         ;;
7970       pgcc* | pgf77* | pgf90* | pgf95*)
7971         # Portland Group compilers (*not* the Pentium gcc compiler,
7972         # which looks to be a dead project)
7973         lt_prog_compiler_wl='-Wl,'
7974         lt_prog_compiler_pic='-fpic'
7975         lt_prog_compiler_static='-Bstatic'
7976         ;;
7977       ccc*)
7978         lt_prog_compiler_wl='-Wl,'
7979         # All Alpha code is PIC.
7980         lt_prog_compiler_static='-non_shared'
7981         ;;
7982       xl*)
7983         # IBM XL C 8.0/Fortran 10.1 on PPC
7984         lt_prog_compiler_wl='-Wl,'
7985         lt_prog_compiler_pic='-qpic'
7986         lt_prog_compiler_static='-qstaticlink'
7987         ;;
7988       *)
7989         case `$CC -V 2>&1 | sed 5q` in
7990         *Sun\ C*)
7991           # Sun C 5.9
7992           lt_prog_compiler_pic='-KPIC'
7993           lt_prog_compiler_static='-Bstatic'
7994           lt_prog_compiler_wl='-Wl,'
7995           ;;
7996         *Sun\ F*)
7997           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7998           lt_prog_compiler_pic='-KPIC'
7999           lt_prog_compiler_static='-Bstatic'
8000           lt_prog_compiler_wl=''
8001           ;;
8002         esac
8003         ;;
8004       esac
8005       ;;
8006
8007     newsos6)
8008       lt_prog_compiler_pic='-KPIC'
8009       lt_prog_compiler_static='-Bstatic'
8010       ;;
8011
8012     *nto* | *qnx*)
8013       # QNX uses GNU C++, but need to define -shared option too, otherwise
8014       # it will coredump.
8015       lt_prog_compiler_pic='-fPIC -shared'
8016       ;;
8017
8018     osf3* | osf4* | osf5*)
8019       lt_prog_compiler_wl='-Wl,'
8020       # All OSF/1 code is PIC.
8021       lt_prog_compiler_static='-non_shared'
8022       ;;
8023
8024     rdos*)
8025       lt_prog_compiler_static='-non_shared'
8026       ;;
8027
8028     solaris*)
8029       lt_prog_compiler_pic='-KPIC'
8030       lt_prog_compiler_static='-Bstatic'
8031       case $cc_basename in
8032       f77* | f90* | f95*)
8033         lt_prog_compiler_wl='-Qoption ld ';;
8034       *)
8035         lt_prog_compiler_wl='-Wl,';;
8036       esac
8037       ;;
8038
8039     sunos4*)
8040       lt_prog_compiler_wl='-Qoption ld '
8041       lt_prog_compiler_pic='-PIC'
8042       lt_prog_compiler_static='-Bstatic'
8043       ;;
8044
8045     sysv4 | sysv4.2uw2* | sysv4.3*)
8046       lt_prog_compiler_wl='-Wl,'
8047       lt_prog_compiler_pic='-KPIC'
8048       lt_prog_compiler_static='-Bstatic'
8049       ;;
8050
8051     sysv4*MP*)
8052       if test -d /usr/nec ;then
8053         lt_prog_compiler_pic='-Kconform_pic'
8054         lt_prog_compiler_static='-Bstatic'
8055       fi
8056       ;;
8057
8058     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8059       lt_prog_compiler_wl='-Wl,'
8060       lt_prog_compiler_pic='-KPIC'
8061       lt_prog_compiler_static='-Bstatic'
8062       ;;
8063
8064     unicos*)
8065       lt_prog_compiler_wl='-Wl,'
8066       lt_prog_compiler_can_build_shared=no
8067       ;;
8068
8069     uts4*)
8070       lt_prog_compiler_pic='-pic'
8071       lt_prog_compiler_static='-Bstatic'
8072       ;;
8073
8074     *)
8075       lt_prog_compiler_can_build_shared=no
8076       ;;
8077     esac
8078   fi
8079
8080 case $host_os in
8081   # For platforms which do not support PIC, -DPIC is meaningless:
8082   *djgpp*)
8083     lt_prog_compiler_pic=
8084     ;;
8085   *)
8086     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8087     ;;
8088 esac
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8090 $as_echo "$lt_prog_compiler_pic" >&6; }
8091
8092
8093
8094
8095
8096
8097 #
8098 # Check to make sure the PIC flag actually works.
8099 #
8100 if test -n "$lt_prog_compiler_pic"; then
8101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8102 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8103 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8104   $as_echo_n "(cached) " >&6
8105 else
8106   lt_cv_prog_compiler_pic_works=no
8107    ac_outfile=conftest.$ac_objext
8108    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8109    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8110    # Insert the option either (1) after the last *FLAGS variable, or
8111    # (2) before a word containing "conftest.", or (3) at the end.
8112    # Note that $ac_compile itself does not contain backslashes and begins
8113    # with a dollar sign (not a hyphen), so the echo should work correctly.
8114    # The option is referenced via a variable to avoid confusing sed.
8115    lt_compile=`echo "$ac_compile" | $SED \
8116    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8117    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8118    -e 's:$: $lt_compiler_flag:'`
8119    (eval echo "\"\$as_me:8119: $lt_compile\"" >&5)
8120    (eval "$lt_compile" 2>conftest.err)
8121    ac_status=$?
8122    cat conftest.err >&5
8123    echo "$as_me:8123: \$? = $ac_status" >&5
8124    if (exit $ac_status) && test -s "$ac_outfile"; then
8125      # The compiler can only warn and ignore the option if not recognized
8126      # So say no if there are warnings other than the usual output.
8127      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8128      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8129      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8130        lt_cv_prog_compiler_pic_works=yes
8131      fi
8132    fi
8133    $RM conftest*
8134
8135 fi
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8137 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8138
8139 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8140     case $lt_prog_compiler_pic in
8141      "" | " "*) ;;
8142      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8143      esac
8144 else
8145     lt_prog_compiler_pic=
8146      lt_prog_compiler_can_build_shared=no
8147 fi
8148
8149 fi
8150
8151
8152
8153
8154
8155
8156 #
8157 # Check to make sure the static flag actually works.
8158 #
8159 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8161 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8162 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8163   $as_echo_n "(cached) " >&6
8164 else
8165   lt_cv_prog_compiler_static_works=no
8166    save_LDFLAGS="$LDFLAGS"
8167    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8168    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8169    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8170      # The linker can only warn and ignore the option if not recognized
8171      # So say no if there are warnings
8172      if test -s conftest.err; then
8173        # Append any errors to the config.log.
8174        cat conftest.err 1>&5
8175        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8176        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8177        if diff conftest.exp conftest.er2 >/dev/null; then
8178          lt_cv_prog_compiler_static_works=yes
8179        fi
8180      else
8181        lt_cv_prog_compiler_static_works=yes
8182      fi
8183    fi
8184    $RM -r conftest*
8185    LDFLAGS="$save_LDFLAGS"
8186
8187 fi
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8189 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8190
8191 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8192     :
8193 else
8194     lt_prog_compiler_static=
8195 fi
8196
8197
8198
8199
8200
8201
8202
8203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8204 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8205 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8206   $as_echo_n "(cached) " >&6
8207 else
8208   lt_cv_prog_compiler_c_o=no
8209    $RM -r conftest 2>/dev/null
8210    mkdir conftest
8211    cd conftest
8212    mkdir out
8213    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8214
8215    lt_compiler_flag="-o out/conftest2.$ac_objext"
8216    # Insert the option either (1) after the last *FLAGS variable, or
8217    # (2) before a word containing "conftest.", or (3) at the end.
8218    # Note that $ac_compile itself does not contain backslashes and begins
8219    # with a dollar sign (not a hyphen), so the echo should work correctly.
8220    lt_compile=`echo "$ac_compile" | $SED \
8221    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8222    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8223    -e 's:$: $lt_compiler_flag:'`
8224    (eval echo "\"\$as_me:8224: $lt_compile\"" >&5)
8225    (eval "$lt_compile" 2>out/conftest.err)
8226    ac_status=$?
8227    cat out/conftest.err >&5
8228    echo "$as_me:8228: \$? = $ac_status" >&5
8229    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8230    then
8231      # The compiler can only warn and ignore the option if not recognized
8232      # So say no if there are warnings
8233      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8234      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8235      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8236        lt_cv_prog_compiler_c_o=yes
8237      fi
8238    fi
8239    chmod u+w . 2>&5
8240    $RM conftest*
8241    # SGI C++ compiler will create directory out/ii_files/ for
8242    # template instantiation
8243    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8244    $RM out/* && rmdir out
8245    cd ..
8246    $RM -r conftest
8247    $RM conftest*
8248
8249 fi
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8251 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8252
8253
8254
8255
8256
8257
8258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8259 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8260 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8261   $as_echo_n "(cached) " >&6
8262 else
8263   lt_cv_prog_compiler_c_o=no
8264    $RM -r conftest 2>/dev/null
8265    mkdir conftest
8266    cd conftest
8267    mkdir out
8268    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8269
8270    lt_compiler_flag="-o out/conftest2.$ac_objext"
8271    # Insert the option either (1) after the last *FLAGS variable, or
8272    # (2) before a word containing "conftest.", or (3) at the end.
8273    # Note that $ac_compile itself does not contain backslashes and begins
8274    # with a dollar sign (not a hyphen), so the echo should work correctly.
8275    lt_compile=`echo "$ac_compile" | $SED \
8276    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8277    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8278    -e 's:$: $lt_compiler_flag:'`
8279    (eval echo "\"\$as_me:8279: $lt_compile\"" >&5)
8280    (eval "$lt_compile" 2>out/conftest.err)
8281    ac_status=$?
8282    cat out/conftest.err >&5
8283    echo "$as_me:8283: \$? = $ac_status" >&5
8284    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8285    then
8286      # The compiler can only warn and ignore the option if not recognized
8287      # So say no if there are warnings
8288      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8289      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8290      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8291        lt_cv_prog_compiler_c_o=yes
8292      fi
8293    fi
8294    chmod u+w . 2>&5
8295    $RM conftest*
8296    # SGI C++ compiler will create directory out/ii_files/ for
8297    # template instantiation
8298    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8299    $RM out/* && rmdir out
8300    cd ..
8301    $RM -r conftest
8302    $RM conftest*
8303
8304 fi
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8306 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8307
8308
8309
8310
8311 hard_links="nottested"
8312 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8313   # do not overwrite the value of need_locks provided by the user
8314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8315 $as_echo_n "checking if we can lock with hard links... " >&6; }
8316   hard_links=yes
8317   $RM conftest*
8318   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8319   touch conftest.a
8320   ln conftest.a conftest.b 2>&5 || hard_links=no
8321   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8323 $as_echo "$hard_links" >&6; }
8324   if test "$hard_links" = no; then
8325     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8326 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8327     need_locks=warn
8328   fi
8329 else
8330   need_locks=no
8331 fi
8332
8333
8334
8335
8336
8337
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8339 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8340
8341   runpath_var=
8342   allow_undefined_flag=
8343   always_export_symbols=no
8344   archive_cmds=
8345   archive_expsym_cmds=
8346   compiler_needs_object=no
8347   enable_shared_with_static_runtimes=no
8348   export_dynamic_flag_spec=
8349   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8350   hardcode_automatic=no
8351   hardcode_direct=no
8352   hardcode_direct_absolute=no
8353   hardcode_libdir_flag_spec=
8354   hardcode_libdir_flag_spec_ld=
8355   hardcode_libdir_separator=
8356   hardcode_minus_L=no
8357   hardcode_shlibpath_var=unsupported
8358   inherit_rpath=no
8359   link_all_deplibs=unknown
8360   module_cmds=
8361   module_expsym_cmds=
8362   old_archive_from_new_cmds=
8363   old_archive_from_expsyms_cmds=
8364   thread_safe_flag_spec=
8365   whole_archive_flag_spec=
8366   # include_expsyms should be a list of space-separated symbols to be *always*
8367   # included in the symbol list
8368   include_expsyms=
8369   # exclude_expsyms can be an extended regexp of symbols to exclude
8370   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8371   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8372   # as well as any symbol that contains `d'.
8373   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8374   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8375   # platforms (ab)use it in PIC code, but their linkers get confused if
8376   # the symbol is explicitly referenced.  Since portable code cannot
8377   # rely on this symbol name, it's probably fine to never include it in
8378   # preloaded symbol tables.
8379   # Exclude shared library initialization/finalization symbols.
8380   extract_expsyms_cmds=
8381
8382   case $host_os in
8383   cygwin* | mingw* | pw32* | cegcc*)
8384     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8385     # When not using gcc, we currently assume that we are using
8386     # Microsoft Visual C++.
8387     if test "$GCC" != yes; then
8388       with_gnu_ld=no
8389     fi
8390     ;;
8391   interix*)
8392     # we just hope/assume this is gcc and not c89 (= MSVC++)
8393     with_gnu_ld=yes
8394     ;;
8395   openbsd*)
8396     with_gnu_ld=no
8397     ;;
8398   linux* | k*bsd*-gnu)
8399     link_all_deplibs=no
8400     ;;
8401   esac
8402
8403   ld_shlibs=yes
8404   if test "$with_gnu_ld" = yes; then
8405     # If archive_cmds runs LD, not CC, wlarc should be empty
8406     wlarc='${wl}'
8407
8408     # Set some defaults for GNU ld with shared library support. These
8409     # are reset later if shared libraries are not supported. Putting them
8410     # here allows them to be overridden if necessary.
8411     runpath_var=LD_RUN_PATH
8412     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8413     export_dynamic_flag_spec='${wl}--export-dynamic'
8414     # ancient GNU ld didn't support --whole-archive et. al.
8415     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8416       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8417     else
8418       whole_archive_flag_spec=
8419     fi
8420     supports_anon_versioning=no
8421     case `$LD -v 2>&1` in
8422       *GNU\ gold*) supports_anon_versioning=yes ;;
8423       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8424       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8425       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8426       *\ 2.11.*) ;; # other 2.11 versions
8427       *) supports_anon_versioning=yes ;;
8428     esac
8429
8430     # See if GNU ld supports shared libraries.
8431     case $host_os in
8432     aix[3-9]*)
8433       # On AIX/PPC, the GNU linker is very broken
8434       if test "$host_cpu" != ia64; then
8435         ld_shlibs=no
8436         cat <<_LT_EOF 1>&2
8437
8438 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8439 *** to be unable to reliably create shared libraries on AIX.
8440 *** Therefore, libtool is disabling shared libraries support.  If you
8441 *** really care for shared libraries, you may want to modify your PATH
8442 *** so that a non-GNU linker is found, and then restart.
8443
8444 _LT_EOF
8445       fi
8446       ;;
8447
8448     amigaos*)
8449       case $host_cpu in
8450       powerpc)
8451             # see comment about AmigaOS4 .so support
8452             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8453             archive_expsym_cmds=''
8454         ;;
8455       m68k)
8456             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)'
8457             hardcode_libdir_flag_spec='-L$libdir'
8458             hardcode_minus_L=yes
8459         ;;
8460       esac
8461       ;;
8462
8463     beos*)
8464       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8465         allow_undefined_flag=unsupported
8466         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8467         # support --undefined.  This deserves some investigation.  FIXME
8468         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8469       else
8470         ld_shlibs=no
8471       fi
8472       ;;
8473
8474     cygwin* | mingw* | pw32* | cegcc*)
8475       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8476       # as there is no search path for DLLs.
8477       hardcode_libdir_flag_spec='-L$libdir'
8478       allow_undefined_flag=unsupported
8479       always_export_symbols=no
8480       enable_shared_with_static_runtimes=yes
8481       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8482
8483       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8484         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8485         # If the export-symbols file already is a .def file (1st line
8486         # is EXPORTS), use it as is; otherwise, prepend...
8487         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8488           cp $export_symbols $output_objdir/$soname.def;
8489         else
8490           echo EXPORTS > $output_objdir/$soname.def;
8491           cat $export_symbols >> $output_objdir/$soname.def;
8492         fi~
8493         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8494       else
8495         ld_shlibs=no
8496       fi
8497       ;;
8498
8499     interix[3-9]*)
8500       hardcode_direct=no
8501       hardcode_shlibpath_var=no
8502       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8503       export_dynamic_flag_spec='${wl}-E'
8504       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8505       # Instead, shared libraries are loaded at an image base (0x10000000 by
8506       # default) and relocated if they conflict, which is a slow very memory
8507       # consuming and fragmenting process.  To avoid this, we pick a random,
8508       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8509       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8510       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8511       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'
8512       ;;
8513
8514     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8515       tmp_diet=no
8516       if test "$host_os" = linux-dietlibc; then
8517         case $cc_basename in
8518           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8519         esac
8520       fi
8521       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8522          && test "$tmp_diet" = no
8523       then
8524         tmp_addflag=
8525         tmp_sharedflag='-shared'
8526         case $cc_basename,$host_cpu in
8527         pgcc*)                          # Portland Group C compiler
8528           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'
8529           tmp_addflag=' $pic_flag'
8530           ;;
8531         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8532           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'
8533           tmp_addflag=' $pic_flag -Mnomain' ;;
8534         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8535           tmp_addflag=' -i_dynamic' ;;
8536         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8537           tmp_addflag=' -i_dynamic -nofor_main' ;;
8538         ifc* | ifort*)                  # Intel Fortran compiler
8539           tmp_addflag=' -nofor_main' ;;
8540         lf95*)                          # Lahey Fortran 8.1
8541           whole_archive_flag_spec=
8542           tmp_sharedflag='--shared' ;;
8543         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8544           tmp_sharedflag='-qmkshrobj'
8545           tmp_addflag= ;;
8546         esac
8547         case `$CC -V 2>&1 | sed 5q` in
8548         *Sun\ C*)                       # Sun C 5.9
8549           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'
8550           compiler_needs_object=yes
8551           tmp_sharedflag='-G' ;;
8552         *Sun\ F*)                       # Sun Fortran 8.3
8553           tmp_sharedflag='-G' ;;
8554         esac
8555         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8556
8557         if test "x$supports_anon_versioning" = xyes; then
8558           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8559             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8560             echo "local: *; };" >> $output_objdir/$libname.ver~
8561             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8562         fi
8563
8564         case $cc_basename in
8565         xlf*)
8566           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8567           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8568           hardcode_libdir_flag_spec=
8569           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8570           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8571           if test "x$supports_anon_versioning" = xyes; then
8572             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8573               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8574               echo "local: *; };" >> $output_objdir/$libname.ver~
8575               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8576           fi
8577           ;;
8578         esac
8579       else
8580         ld_shlibs=no
8581       fi
8582       ;;
8583
8584     netbsd* | netbsdelf*-gnu)
8585       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8586         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8587         wlarc=
8588       else
8589         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8590         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8591       fi
8592       ;;
8593
8594     solaris*)
8595       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8596         ld_shlibs=no
8597         cat <<_LT_EOF 1>&2
8598
8599 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8600 *** create shared libraries on Solaris systems.  Therefore, libtool
8601 *** is disabling shared libraries support.  We urge you to upgrade GNU
8602 *** binutils to release 2.9.1 or newer.  Another option is to modify
8603 *** your PATH or compiler configuration so that the native linker is
8604 *** used, and then restart.
8605
8606 _LT_EOF
8607       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8608         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8609         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8610       else
8611         ld_shlibs=no
8612       fi
8613       ;;
8614
8615     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8616       case `$LD -v 2>&1` in
8617         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8618         ld_shlibs=no
8619         cat <<_LT_EOF 1>&2
8620
8621 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8622 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8623 *** is disabling shared libraries support.  We urge you to upgrade GNU
8624 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8625 *** your PATH or compiler configuration so that the native linker is
8626 *** used, and then restart.
8627
8628 _LT_EOF
8629         ;;
8630         *)
8631           # For security reasons, it is highly recommended that you always
8632           # use absolute paths for naming shared libraries, and exclude the
8633           # DT_RUNPATH tag from executables and libraries.  But doing so
8634           # requires that you compile everything twice, which is a pain.
8635           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8636             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8637             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8638             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8639           else
8640             ld_shlibs=no
8641           fi
8642         ;;
8643       esac
8644       ;;
8645
8646     sunos4*)
8647       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8648       wlarc=
8649       hardcode_direct=yes
8650       hardcode_shlibpath_var=no
8651       ;;
8652
8653     *)
8654       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8655         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8656         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8657       else
8658         ld_shlibs=no
8659       fi
8660       ;;
8661     esac
8662
8663     if test "$ld_shlibs" = no; then
8664       runpath_var=
8665       hardcode_libdir_flag_spec=
8666       export_dynamic_flag_spec=
8667       whole_archive_flag_spec=
8668     fi
8669   else
8670     # PORTME fill in a description of your system's linker (not GNU ld)
8671     case $host_os in
8672     aix3*)
8673       allow_undefined_flag=unsupported
8674       always_export_symbols=yes
8675       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'
8676       # Note: this linker hardcodes the directories in LIBPATH if there
8677       # are no directories specified by -L.
8678       hardcode_minus_L=yes
8679       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8680         # Neither direct hardcoding nor static linking is supported with a
8681         # broken collect2.
8682         hardcode_direct=unsupported
8683       fi
8684       ;;
8685
8686     aix[4-9]*)
8687       if test "$host_cpu" = ia64; then
8688         # On IA64, the linker does run time linking by default, so we don't
8689         # have to do anything special.
8690         aix_use_runtimelinking=no
8691         exp_sym_flag='-Bexport'
8692         no_entry_flag=""
8693       else
8694         # If we're using GNU nm, then we don't want the "-C" option.
8695         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8696         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8697           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'
8698         else
8699           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'
8700         fi
8701         aix_use_runtimelinking=no
8702
8703         # Test if we are trying to use run time linking or normal
8704         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8705         # need to do runtime linking.
8706         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8707           for ld_flag in $LDFLAGS; do
8708           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8709             aix_use_runtimelinking=yes
8710             break
8711           fi
8712           done
8713           ;;
8714         esac
8715
8716         exp_sym_flag='-bexport'
8717         no_entry_flag='-bnoentry'
8718       fi
8719
8720       # When large executables or shared objects are built, AIX ld can
8721       # have problems creating the table of contents.  If linking a library
8722       # or program results in "error TOC overflow" add -mminimal-toc to
8723       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8724       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8725
8726       archive_cmds=''
8727       hardcode_direct=yes
8728       hardcode_direct_absolute=yes
8729       hardcode_libdir_separator=':'
8730       link_all_deplibs=yes
8731       file_list_spec='${wl}-f,'
8732
8733       if test "$GCC" = yes; then
8734         case $host_os in aix4.[012]|aix4.[012].*)
8735         # We only want to do this on AIX 4.2 and lower, the check
8736         # below for broken collect2 doesn't work under 4.3+
8737           collect2name=`${CC} -print-prog-name=collect2`
8738           if test -f "$collect2name" &&
8739            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8740           then
8741           # We have reworked collect2
8742           :
8743           else
8744           # We have old collect2
8745           hardcode_direct=unsupported
8746           # It fails to find uninstalled libraries when the uninstalled
8747           # path is not listed in the libpath.  Setting hardcode_minus_L
8748           # to unsupported forces relinking
8749           hardcode_minus_L=yes
8750           hardcode_libdir_flag_spec='-L$libdir'
8751           hardcode_libdir_separator=
8752           fi
8753           ;;
8754         esac
8755         shared_flag='-shared'
8756         if test "$aix_use_runtimelinking" = yes; then
8757           shared_flag="$shared_flag "'${wl}-G'
8758         fi
8759         link_all_deplibs=no
8760       else
8761         # not using gcc
8762         if test "$host_cpu" = ia64; then
8763         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8764         # chokes on -Wl,-G. The following line is correct:
8765           shared_flag='-G'
8766         else
8767           if test "$aix_use_runtimelinking" = yes; then
8768             shared_flag='${wl}-G'
8769           else
8770             shared_flag='${wl}-bM:SRE'
8771           fi
8772         fi
8773       fi
8774
8775       export_dynamic_flag_spec='${wl}-bexpall'
8776       # It seems that -bexpall does not export symbols beginning with
8777       # underscore (_), so it is better to generate a list of symbols to export.
8778       always_export_symbols=yes
8779       if test "$aix_use_runtimelinking" = yes; then
8780         # Warning - without using the other runtime loading flags (-brtl),
8781         # -berok will link without error, but may produce a broken library.
8782         allow_undefined_flag='-berok'
8783         # Determine the default libpath from the value encoded in an
8784         # empty executable.
8785         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h.  */
8787
8788 int
8789 main ()
8790 {
8791
8792   ;
8793   return 0;
8794 }
8795 _ACEOF
8796 if ac_fn_c_try_link "$LINENO"; then :
8797
8798 lt_aix_libpath_sed='
8799     /Import File Strings/,/^$/ {
8800         /^0/ {
8801             s/^0  *\(.*\)$/\1/
8802             p
8803         }
8804     }'
8805 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8806 # Check for a 64-bit object if we didn't find anything.
8807 if test -z "$aix_libpath"; then
8808   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8809 fi
8810 fi
8811 rm -f core conftest.err conftest.$ac_objext \
8812     conftest$ac_exeext conftest.$ac_ext
8813 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8814
8815         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8816         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"
8817       else
8818         if test "$host_cpu" = ia64; then
8819           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8820           allow_undefined_flag="-z nodefs"
8821           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"
8822         else
8823          # Determine the default libpath from the value encoded in an
8824          # empty executable.
8825          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h.  */
8827
8828 int
8829 main ()
8830 {
8831
8832   ;
8833   return 0;
8834 }
8835 _ACEOF
8836 if ac_fn_c_try_link "$LINENO"; then :
8837
8838 lt_aix_libpath_sed='
8839     /Import File Strings/,/^$/ {
8840         /^0/ {
8841             s/^0  *\(.*\)$/\1/
8842             p
8843         }
8844     }'
8845 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8846 # Check for a 64-bit object if we didn't find anything.
8847 if test -z "$aix_libpath"; then
8848   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8849 fi
8850 fi
8851 rm -f core conftest.err conftest.$ac_objext \
8852     conftest$ac_exeext conftest.$ac_ext
8853 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8854
8855          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8856           # Warning - without using the other run time loading flags,
8857           # -berok will link without error, but may produce a broken library.
8858           no_undefined_flag=' ${wl}-bernotok'
8859           allow_undefined_flag=' ${wl}-berok'
8860           # Exported symbols can be pulled into shared objects from archives
8861           whole_archive_flag_spec='$convenience'
8862           archive_cmds_need_lc=yes
8863           # This is similar to how AIX traditionally builds its shared libraries.
8864           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'
8865         fi
8866       fi
8867       ;;
8868
8869     amigaos*)
8870       case $host_cpu in
8871       powerpc)
8872             # see comment about AmigaOS4 .so support
8873             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874             archive_expsym_cmds=''
8875         ;;
8876       m68k)
8877             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)'
8878             hardcode_libdir_flag_spec='-L$libdir'
8879             hardcode_minus_L=yes
8880         ;;
8881       esac
8882       ;;
8883
8884     bsdi[45]*)
8885       export_dynamic_flag_spec=-rdynamic
8886       ;;
8887
8888     cygwin* | mingw* | pw32* | cegcc*)
8889       # When not using gcc, we currently assume that we are using
8890       # Microsoft Visual C++.
8891       # hardcode_libdir_flag_spec is actually meaningless, as there is
8892       # no search path for DLLs.
8893       hardcode_libdir_flag_spec=' '
8894       allow_undefined_flag=unsupported
8895       # Tell ltmain to make .lib files, not .a files.
8896       libext=lib
8897       # Tell ltmain to make .dll files, not .so files.
8898       shrext_cmds=".dll"
8899       # FIXME: Setting linknames here is a bad hack.
8900       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8901       # The linker will automatically build a .lib file if we build a DLL.
8902       old_archive_from_new_cmds='true'
8903       # FIXME: Should let the user specify the lib program.
8904       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8905       fix_srcfile_path='`cygpath -w "$srcfile"`'
8906       enable_shared_with_static_runtimes=yes
8907       ;;
8908
8909     darwin* | rhapsody*)
8910
8911
8912   archive_cmds_need_lc=no
8913   hardcode_direct=no
8914   hardcode_automatic=yes
8915   hardcode_shlibpath_var=unsupported
8916   whole_archive_flag_spec=''
8917   link_all_deplibs=yes
8918   allow_undefined_flag="$_lt_dar_allow_undefined"
8919   case $cc_basename in
8920      ifort*) _lt_dar_can_shared=yes ;;
8921      *) _lt_dar_can_shared=$GCC ;;
8922   esac
8923   if test "$_lt_dar_can_shared" = "yes"; then
8924     output_verbose_link_cmd=echo
8925     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8926     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8927     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}"
8928     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}"
8929
8930   else
8931   ld_shlibs=no
8932   fi
8933
8934       ;;
8935
8936     dgux*)
8937       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938       hardcode_libdir_flag_spec='-L$libdir'
8939       hardcode_shlibpath_var=no
8940       ;;
8941
8942     freebsd1*)
8943       ld_shlibs=no
8944       ;;
8945
8946     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8947     # support.  Future versions do this automatically, but an explicit c++rt0.o
8948     # does not break anything, and helps significantly (at the cost of a little
8949     # extra space).
8950     freebsd2.2*)
8951       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8952       hardcode_libdir_flag_spec='-R$libdir'
8953       hardcode_direct=yes
8954       hardcode_shlibpath_var=no
8955       ;;
8956
8957     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8958     freebsd2*)
8959       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8960       hardcode_direct=yes
8961       hardcode_minus_L=yes
8962       hardcode_shlibpath_var=no
8963       ;;
8964
8965     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8966     freebsd* | dragonfly*)
8967       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8968       hardcode_libdir_flag_spec='-R$libdir'
8969       hardcode_direct=yes
8970       hardcode_shlibpath_var=no
8971       ;;
8972
8973     hpux9*)
8974       if test "$GCC" = yes; then
8975         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'
8976       else
8977         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'
8978       fi
8979       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8980       hardcode_libdir_separator=:
8981       hardcode_direct=yes
8982
8983       # hardcode_minus_L: Not really in the search PATH,
8984       # but as the default location of the library.
8985       hardcode_minus_L=yes
8986       export_dynamic_flag_spec='${wl}-E'
8987       ;;
8988
8989     hpux10*)
8990       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8991         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8992       else
8993         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8994       fi
8995       if test "$with_gnu_ld" = no; then
8996         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8997         hardcode_libdir_flag_spec_ld='+b $libdir'
8998         hardcode_libdir_separator=:
8999         hardcode_direct=yes
9000         hardcode_direct_absolute=yes
9001         export_dynamic_flag_spec='${wl}-E'
9002         # hardcode_minus_L: Not really in the search PATH,
9003         # but as the default location of the library.
9004         hardcode_minus_L=yes
9005       fi
9006       ;;
9007
9008     hpux11*)
9009       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9010         case $host_cpu in
9011         hppa*64*)
9012           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9013           ;;
9014         ia64*)
9015           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9016           ;;
9017         *)
9018           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9019           ;;
9020         esac
9021       else
9022         case $host_cpu in
9023         hppa*64*)
9024           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9025           ;;
9026         ia64*)
9027           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9028           ;;
9029         *)
9030           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9031           ;;
9032         esac
9033       fi
9034       if test "$with_gnu_ld" = no; then
9035         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9036         hardcode_libdir_separator=:
9037
9038         case $host_cpu in
9039         hppa*64*|ia64*)
9040           hardcode_direct=no
9041           hardcode_shlibpath_var=no
9042           ;;
9043         *)
9044           hardcode_direct=yes
9045           hardcode_direct_absolute=yes
9046           export_dynamic_flag_spec='${wl}-E'
9047
9048           # hardcode_minus_L: Not really in the search PATH,
9049           # but as the default location of the library.
9050           hardcode_minus_L=yes
9051           ;;
9052         esac
9053       fi
9054       ;;
9055
9056     irix5* | irix6* | nonstopux*)
9057       if test "$GCC" = yes; then
9058         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'
9059         # Try to use the -exported_symbol ld option, if it does not
9060         # work, assume that -exports_file does not work either and
9061         # implicitly export all symbols.
9062         save_LDFLAGS="$LDFLAGS"
9063         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9064         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h.  */
9066 int foo(void) {}
9067 _ACEOF
9068 if ac_fn_c_try_link "$LINENO"; then :
9069   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'
9070
9071 fi
9072 rm -f core conftest.err conftest.$ac_objext \
9073     conftest$ac_exeext conftest.$ac_ext
9074         LDFLAGS="$save_LDFLAGS"
9075       else
9076         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'
9077         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'
9078       fi
9079       archive_cmds_need_lc='no'
9080       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9081       hardcode_libdir_separator=:
9082       inherit_rpath=yes
9083       link_all_deplibs=yes
9084       ;;
9085
9086     netbsd* | netbsdelf*-gnu)
9087       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9088         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9089       else
9090         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9091       fi
9092       hardcode_libdir_flag_spec='-R$libdir'
9093       hardcode_direct=yes
9094       hardcode_shlibpath_var=no
9095       ;;
9096
9097     newsos6)
9098       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9099       hardcode_direct=yes
9100       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9101       hardcode_libdir_separator=:
9102       hardcode_shlibpath_var=no
9103       ;;
9104
9105     *nto* | *qnx*)
9106       ;;
9107
9108     openbsd*)
9109       if test -f /usr/libexec/ld.so; then
9110         hardcode_direct=yes
9111         hardcode_shlibpath_var=no
9112         hardcode_direct_absolute=yes
9113         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9114           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9115           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9116           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9117           export_dynamic_flag_spec='${wl}-E'
9118         else
9119           case $host_os in
9120            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9121              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9122              hardcode_libdir_flag_spec='-R$libdir'
9123              ;;
9124            *)
9125              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9126              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9127              ;;
9128           esac
9129         fi
9130       else
9131         ld_shlibs=no
9132       fi
9133       ;;
9134
9135     os2*)
9136       hardcode_libdir_flag_spec='-L$libdir'
9137       hardcode_minus_L=yes
9138       allow_undefined_flag=unsupported
9139       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'
9140       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9141       ;;
9142
9143     osf3*)
9144       if test "$GCC" = yes; then
9145         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9146         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'
9147       else
9148         allow_undefined_flag=' -expect_unresolved \*'
9149         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'
9150       fi
9151       archive_cmds_need_lc='no'
9152       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9153       hardcode_libdir_separator=:
9154       ;;
9155
9156     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9157       if test "$GCC" = yes; then
9158         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9159         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'
9160         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161       else
9162         allow_undefined_flag=' -expect_unresolved \*'
9163         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'
9164         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~
9165         $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'
9166
9167         # Both c and cxx compiler support -rpath directly
9168         hardcode_libdir_flag_spec='-rpath $libdir'
9169       fi
9170       archive_cmds_need_lc='no'
9171       hardcode_libdir_separator=:
9172       ;;
9173
9174     solaris*)
9175       no_undefined_flag=' -z defs'
9176       if test "$GCC" = yes; then
9177         wlarc='${wl}'
9178         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9180           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9181       else
9182         case `$CC -V 2>&1` in
9183         *"Compilers 5.0"*)
9184           wlarc=''
9185           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9186           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9187           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9188           ;;
9189         *)
9190           wlarc='${wl}'
9191           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9192           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9193           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9194           ;;
9195         esac
9196       fi
9197       hardcode_libdir_flag_spec='-R$libdir'
9198       hardcode_shlibpath_var=no
9199       case $host_os in
9200       solaris2.[0-5] | solaris2.[0-5].*) ;;
9201       *)
9202         # The compiler driver will combine and reorder linker options,
9203         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9204         # but is careful enough not to reorder.
9205         # Supported since Solaris 2.6 (maybe 2.5.1?)
9206         if test "$GCC" = yes; then
9207           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9208         else
9209           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9210         fi
9211         ;;
9212       esac
9213       link_all_deplibs=yes
9214       ;;
9215
9216     sunos4*)
9217       if test "x$host_vendor" = xsequent; then
9218         # Use $CC to link under sequent, because it throws in some extra .o
9219         # files that make .init and .fini sections work.
9220         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9221       else
9222         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9223       fi
9224       hardcode_libdir_flag_spec='-L$libdir'
9225       hardcode_direct=yes
9226       hardcode_minus_L=yes
9227       hardcode_shlibpath_var=no
9228       ;;
9229
9230     sysv4)
9231       case $host_vendor in
9232         sni)
9233           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9234           hardcode_direct=yes # is this really true???
9235         ;;
9236         siemens)
9237           ## LD is ld it makes a PLAMLIB
9238           ## CC just makes a GrossModule.
9239           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9240           reload_cmds='$CC -r -o $output$reload_objs'
9241           hardcode_direct=no
9242         ;;
9243         motorola)
9244           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9245           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9246         ;;
9247       esac
9248       runpath_var='LD_RUN_PATH'
9249       hardcode_shlibpath_var=no
9250       ;;
9251
9252     sysv4.3*)
9253       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9254       hardcode_shlibpath_var=no
9255       export_dynamic_flag_spec='-Bexport'
9256       ;;
9257
9258     sysv4*MP*)
9259       if test -d /usr/nec; then
9260         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9261         hardcode_shlibpath_var=no
9262         runpath_var=LD_RUN_PATH
9263         hardcode_runpath_var=yes
9264         ld_shlibs=yes
9265       fi
9266       ;;
9267
9268     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9269       no_undefined_flag='${wl}-z,text'
9270       archive_cmds_need_lc=no
9271       hardcode_shlibpath_var=no
9272       runpath_var='LD_RUN_PATH'
9273
9274       if test "$GCC" = yes; then
9275         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9276         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9277       else
9278         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9279         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9280       fi
9281       ;;
9282
9283     sysv5* | sco3.2v5* | sco5v6*)
9284       # Note: We can NOT use -z defs as we might desire, because we do not
9285       # link with -lc, and that would cause any symbols used from libc to
9286       # always be unresolved, which means just about no library would
9287       # ever link correctly.  If we're not using GNU ld we use -z text
9288       # though, which does catch some bad symbols but isn't as heavy-handed
9289       # as -z defs.
9290       no_undefined_flag='${wl}-z,text'
9291       allow_undefined_flag='${wl}-z,nodefs'
9292       archive_cmds_need_lc=no
9293       hardcode_shlibpath_var=no
9294       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9295       hardcode_libdir_separator=':'
9296       link_all_deplibs=yes
9297       export_dynamic_flag_spec='${wl}-Bexport'
9298       runpath_var='LD_RUN_PATH'
9299
9300       if test "$GCC" = yes; then
9301         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9302         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9303       else
9304         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9305         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9306       fi
9307       ;;
9308
9309     uts4*)
9310       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9311       hardcode_libdir_flag_spec='-L$libdir'
9312       hardcode_shlibpath_var=no
9313       ;;
9314
9315     *)
9316       ld_shlibs=no
9317       ;;
9318     esac
9319
9320     if test x$host_vendor = xsni; then
9321       case $host in
9322       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9323         export_dynamic_flag_spec='${wl}-Blargedynsym'
9324         ;;
9325       esac
9326     fi
9327   fi
9328
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9330 $as_echo "$ld_shlibs" >&6; }
9331 test "$ld_shlibs" = no && can_build_shared=no
9332
9333 with_gnu_ld=$with_gnu_ld
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349 #
9350 # Do we need to explicitly link libc?
9351 #
9352 case "x$archive_cmds_need_lc" in
9353 x|xyes)
9354   # Assume -lc should be added
9355   archive_cmds_need_lc=yes
9356
9357   if test "$enable_shared" = yes && test "$GCC" = yes; then
9358     case $archive_cmds in
9359     *'~'*)
9360       # FIXME: we may have to deal with multi-command sequences.
9361       ;;
9362     '$CC '*)
9363       # Test whether the compiler implicitly links with -lc since on some
9364       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9365       # to ld, don't add -lc before -lgcc.
9366       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9367 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9368       $RM conftest*
9369       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9370
9371       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9372   (eval $ac_compile) 2>&5
9373   ac_status=$?
9374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9375   test $ac_status = 0; } 2>conftest.err; then
9376         soname=conftest
9377         lib=conftest
9378         libobjs=conftest.$ac_objext
9379         deplibs=
9380         wl=$lt_prog_compiler_wl
9381         pic_flag=$lt_prog_compiler_pic
9382         compiler_flags=-v
9383         linker_flags=-v
9384         verstring=
9385         output_objdir=.
9386         libname=conftest
9387         lt_save_allow_undefined_flag=$allow_undefined_flag
9388         allow_undefined_flag=
9389         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9390   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9391   ac_status=$?
9392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9393   test $ac_status = 0; }
9394         then
9395           archive_cmds_need_lc=no
9396         else
9397           archive_cmds_need_lc=yes
9398         fi
9399         allow_undefined_flag=$lt_save_allow_undefined_flag
9400       else
9401         cat conftest.err 1>&5
9402       fi
9403       $RM conftest*
9404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9405 $as_echo "$archive_cmds_need_lc" >&6; }
9406       ;;
9407     esac
9408   fi
9409   ;;
9410 esac
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9569 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9570
9571 if test "$GCC" = yes; then
9572   case $host_os in
9573     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9574     *) lt_awk_arg="/^libraries:/" ;;
9575   esac
9576   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9577   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9578     # if the path contains ";" then we assume it to be the separator
9579     # otherwise default to the standard path separator (i.e. ":") - it is
9580     # assumed that no part of a normal pathname contains ";" but that should
9581     # okay in the real world where ";" in dirpaths is itself problematic.
9582     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9583   else
9584     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9585   fi
9586   # Ok, now we have the path, separated by spaces, we can step through it
9587   # and add multilib dir if necessary.
9588   lt_tmp_lt_search_path_spec=
9589   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9590   for lt_sys_path in $lt_search_path_spec; do
9591     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9592       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9593     else
9594       test -d "$lt_sys_path" && \
9595         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9596     fi
9597   done
9598   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9599 BEGIN {RS=" "; FS="/|\n";} {
9600   lt_foo="";
9601   lt_count=0;
9602   for (lt_i = NF; lt_i > 0; lt_i--) {
9603     if ($lt_i != "" && $lt_i != ".") {
9604       if ($lt_i == "..") {
9605         lt_count++;
9606       } else {
9607         if (lt_count == 0) {
9608           lt_foo="/" $lt_i lt_foo;
9609         } else {
9610           lt_count--;
9611         }
9612       }
9613     }
9614   }
9615   if (lt_foo != "") { lt_freq[lt_foo]++; }
9616   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9617 }'`
9618   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9619 else
9620   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9621 fi
9622 library_names_spec=
9623 libname_spec='lib$name'
9624 soname_spec=
9625 shrext_cmds=".so"
9626 postinstall_cmds=
9627 postuninstall_cmds=
9628 finish_cmds=
9629 finish_eval=
9630 shlibpath_var=
9631 shlibpath_overrides_runpath=unknown
9632 version_type=none
9633 dynamic_linker="$host_os ld.so"
9634 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9635 need_lib_prefix=unknown
9636 hardcode_into_libs=no
9637
9638 # when you set need_version to no, make sure it does not cause -set_version
9639 # flags to be left without arguments
9640 need_version=unknown
9641
9642 case $host_os in
9643 aix3*)
9644   version_type=linux
9645   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9646   shlibpath_var=LIBPATH
9647
9648   # AIX 3 has no versioning support, so we append a major version to the name.
9649   soname_spec='${libname}${release}${shared_ext}$major'
9650   ;;
9651
9652 aix[4-9]*)
9653   version_type=linux
9654   need_lib_prefix=no
9655   need_version=no
9656   hardcode_into_libs=yes
9657   if test "$host_cpu" = ia64; then
9658     # AIX 5 supports IA64
9659     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9660     shlibpath_var=LD_LIBRARY_PATH
9661   else
9662     # With GCC up to 2.95.x, collect2 would create an import file
9663     # for dependence libraries.  The import file would start with
9664     # the line `#! .'.  This would cause the generated library to
9665     # depend on `.', always an invalid library.  This was fixed in
9666     # development snapshots of GCC prior to 3.0.
9667     case $host_os in
9668       aix4 | aix4.[01] | aix4.[01].*)
9669       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9670            echo ' yes '
9671            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9672         :
9673       else
9674         can_build_shared=no
9675       fi
9676       ;;
9677     esac
9678     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9679     # soname into executable. Probably we can add versioning support to
9680     # collect2, so additional links can be useful in future.
9681     if test "$aix_use_runtimelinking" = yes; then
9682       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9683       # instead of lib<name>.a to let people know that these are not
9684       # typical AIX shared libraries.
9685       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686     else
9687       # We preserve .a as extension for shared libraries through AIX4.2
9688       # and later when we are not doing run time linking.
9689       library_names_spec='${libname}${release}.a $libname.a'
9690       soname_spec='${libname}${release}${shared_ext}$major'
9691     fi
9692     shlibpath_var=LIBPATH
9693   fi
9694   ;;
9695
9696 amigaos*)
9697   case $host_cpu in
9698   powerpc)
9699     # Since July 2007 AmigaOS4 officially supports .so libraries.
9700     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702     ;;
9703   m68k)
9704     library_names_spec='$libname.ixlibrary $libname.a'
9705     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9706     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'
9707     ;;
9708   esac
9709   ;;
9710
9711 beos*)
9712   library_names_spec='${libname}${shared_ext}'
9713   dynamic_linker="$host_os ld.so"
9714   shlibpath_var=LIBRARY_PATH
9715   ;;
9716
9717 bsdi[45]*)
9718   version_type=linux
9719   need_version=no
9720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9721   soname_spec='${libname}${release}${shared_ext}$major'
9722   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9723   shlibpath_var=LD_LIBRARY_PATH
9724   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9725   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9726   # the default ld.so.conf also contains /usr/contrib/lib and
9727   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9728   # libtool to hard-code these into programs
9729   ;;
9730
9731 cygwin* | mingw* | pw32* | cegcc*)
9732   version_type=windows
9733   shrext_cmds=".dll"
9734   need_version=no
9735   need_lib_prefix=no
9736
9737   case $GCC,$host_os in
9738   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9739     library_names_spec='$libname.dll.a'
9740     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9741     postinstall_cmds='base_file=`basename \${file}`~
9742       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9743       dldir=$destdir/`dirname \$dlpath`~
9744       test -d \$dldir || mkdir -p \$dldir~
9745       $install_prog $dir/$dlname \$dldir/$dlname~
9746       chmod a+x \$dldir/$dlname~
9747       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9748         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9749       fi'
9750     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9751       dlpath=$dir/\$dldll~
9752        $RM \$dlpath'
9753     shlibpath_overrides_runpath=yes
9754
9755     case $host_os in
9756     cygwin*)
9757       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9758       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9759       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9760       ;;
9761     mingw* | cegcc*)
9762       # MinGW DLLs use traditional 'lib' prefix
9763       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9764       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9765       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9766         # It is most probably a Windows format PATH printed by
9767         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9768         # path with ; separators, and with drive letters. We can handle the
9769         # drive letters (cygwin fileutils understands them), so leave them,
9770         # especially as we might pass files found there to a mingw objdump,
9771         # which wouldn't understand a cygwinified path. Ahh.
9772         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9773       else
9774         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9775       fi
9776       ;;
9777     pw32*)
9778       # pw32 DLLs use 'pw' prefix rather than 'lib'
9779       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9780       ;;
9781     esac
9782     ;;
9783
9784   *)
9785     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9786     ;;
9787   esac
9788   dynamic_linker='Win32 ld.exe'
9789   # FIXME: first we should search . and the directory the executable is in
9790   shlibpath_var=PATH
9791   ;;
9792
9793 darwin* | rhapsody*)
9794   dynamic_linker="$host_os dyld"
9795   version_type=darwin
9796   need_lib_prefix=no
9797   need_version=no
9798   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9799   soname_spec='${libname}${release}${major}$shared_ext'
9800   shlibpath_overrides_runpath=yes
9801   shlibpath_var=DYLD_LIBRARY_PATH
9802   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9803
9804   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9805   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9806   ;;
9807
9808 dgux*)
9809   version_type=linux
9810   need_lib_prefix=no
9811   need_version=no
9812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9813   soname_spec='${libname}${release}${shared_ext}$major'
9814   shlibpath_var=LD_LIBRARY_PATH
9815   ;;
9816
9817 freebsd1*)
9818   dynamic_linker=no
9819   ;;
9820
9821 freebsd* | dragonfly*)
9822   # DragonFly does not have aout.  When/if they implement a new
9823   # versioning mechanism, adjust this.
9824   if test -x /usr/bin/objformat; then
9825     objformat=`/usr/bin/objformat`
9826   else
9827     case $host_os in
9828     freebsd[123]*) objformat=aout ;;
9829     *) objformat=elf ;;
9830     esac
9831   fi
9832   version_type=freebsd-$objformat
9833   case $version_type in
9834     freebsd-elf*)
9835       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9836       need_version=no
9837       need_lib_prefix=no
9838       ;;
9839     freebsd-*)
9840       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9841       need_version=yes
9842       ;;
9843   esac
9844   shlibpath_var=LD_LIBRARY_PATH
9845   case $host_os in
9846   freebsd2*)
9847     shlibpath_overrides_runpath=yes
9848     ;;
9849   freebsd3.[01]* | freebsdelf3.[01]*)
9850     shlibpath_overrides_runpath=yes
9851     hardcode_into_libs=yes
9852     ;;
9853   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9854   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9855     shlibpath_overrides_runpath=no
9856     hardcode_into_libs=yes
9857     ;;
9858   *) # from 4.6 on, and DragonFly
9859     shlibpath_overrides_runpath=yes
9860     hardcode_into_libs=yes
9861     ;;
9862   esac
9863   ;;
9864
9865 gnu*)
9866   version_type=linux
9867   need_lib_prefix=no
9868   need_version=no
9869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9870   soname_spec='${libname}${release}${shared_ext}$major'
9871   shlibpath_var=LD_LIBRARY_PATH
9872   hardcode_into_libs=yes
9873   ;;
9874
9875 hpux9* | hpux10* | hpux11*)
9876   # Give a soname corresponding to the major version so that dld.sl refuses to
9877   # link against other versions.
9878   version_type=sunos
9879   need_lib_prefix=no
9880   need_version=no
9881   case $host_cpu in
9882   ia64*)
9883     shrext_cmds='.so'
9884     hardcode_into_libs=yes
9885     dynamic_linker="$host_os dld.so"
9886     shlibpath_var=LD_LIBRARY_PATH
9887     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889     soname_spec='${libname}${release}${shared_ext}$major'
9890     if test "X$HPUX_IA64_MODE" = X32; then
9891       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9892     else
9893       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9894     fi
9895     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9896     ;;
9897   hppa*64*)
9898     shrext_cmds='.sl'
9899     hardcode_into_libs=yes
9900     dynamic_linker="$host_os dld.sl"
9901     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9902     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904     soname_spec='${libname}${release}${shared_ext}$major'
9905     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9906     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9907     ;;
9908   *)
9909     shrext_cmds='.sl'
9910     dynamic_linker="$host_os dld.sl"
9911     shlibpath_var=SHLIB_PATH
9912     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914     soname_spec='${libname}${release}${shared_ext}$major'
9915     ;;
9916   esac
9917   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9918   postinstall_cmds='chmod 555 $lib'
9919   ;;
9920
9921 interix[3-9]*)
9922   version_type=linux
9923   need_lib_prefix=no
9924   need_version=no
9925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9926   soname_spec='${libname}${release}${shared_ext}$major'
9927   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9928   shlibpath_var=LD_LIBRARY_PATH
9929   shlibpath_overrides_runpath=no
9930   hardcode_into_libs=yes
9931   ;;
9932
9933 irix5* | irix6* | nonstopux*)
9934   case $host_os in
9935     nonstopux*) version_type=nonstopux ;;
9936     *)
9937         if test "$lt_cv_prog_gnu_ld" = yes; then
9938                 version_type=linux
9939         else
9940                 version_type=irix
9941         fi ;;
9942   esac
9943   need_lib_prefix=no
9944   need_version=no
9945   soname_spec='${libname}${release}${shared_ext}$major'
9946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9947   case $host_os in
9948   irix5* | nonstopux*)
9949     libsuff= shlibsuff=
9950     ;;
9951   *)
9952     case $LD in # libtool.m4 will add one of these switches to LD
9953     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9954       libsuff= shlibsuff= libmagic=32-bit;;
9955     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9956       libsuff=32 shlibsuff=N32 libmagic=N32;;
9957     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9958       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9959     *) libsuff= shlibsuff= libmagic=never-match;;
9960     esac
9961     ;;
9962   esac
9963   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9964   shlibpath_overrides_runpath=no
9965   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9966   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9967   hardcode_into_libs=yes
9968   ;;
9969
9970 # No shared lib support for Linux oldld, aout, or coff.
9971 linux*oldld* | linux*aout* | linux*coff*)
9972   dynamic_linker=no
9973   ;;
9974
9975 # This must be Linux ELF.
9976 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9977   version_type=linux
9978   need_lib_prefix=no
9979   need_version=no
9980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981   soname_spec='${libname}${release}${shared_ext}$major'
9982   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9983   shlibpath_var=LD_LIBRARY_PATH
9984   shlibpath_overrides_runpath=no
9985   # Some binutils ld are patched to set DT_RUNPATH
9986   save_LDFLAGS=$LDFLAGS
9987   save_libdir=$libdir
9988   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9989        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h.  */
9992
9993 int
9994 main ()
9995 {
9996
9997   ;
9998   return 0;
9999 }
10000 _ACEOF
10001 if ac_fn_c_try_link "$LINENO"; then :
10002   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10003   shlibpath_overrides_runpath=yes
10004 fi
10005 fi
10006 rm -f core conftest.err conftest.$ac_objext \
10007     conftest$ac_exeext conftest.$ac_ext
10008   LDFLAGS=$save_LDFLAGS
10009   libdir=$save_libdir
10010
10011   # This implies no fast_install, which is unacceptable.
10012   # Some rework will be needed to allow for fast_install
10013   # before this can be enabled.
10014   hardcode_into_libs=yes
10015
10016   # Append ld.so.conf contents to the search path
10017   if test -f /etc/ld.so.conf; then
10018     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' ' '`
10019     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10020   fi
10021
10022   # We used to test for /lib/ld.so.1 and disable shared libraries on
10023   # powerpc, because MkLinux only supported shared libraries with the
10024   # GNU dynamic linker.  Since this was broken with cross compilers,
10025   # most powerpc-linux boxes support dynamic linking these days and
10026   # people can always --disable-shared, the test was removed, and we
10027   # assume the GNU/Linux dynamic linker is in use.
10028   dynamic_linker='GNU/Linux ld.so'
10029   ;;
10030
10031 netbsdelf*-gnu)
10032   version_type=linux
10033   need_lib_prefix=no
10034   need_version=no
10035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10036   soname_spec='${libname}${release}${shared_ext}$major'
10037   shlibpath_var=LD_LIBRARY_PATH
10038   shlibpath_overrides_runpath=no
10039   hardcode_into_libs=yes
10040   dynamic_linker='NetBSD ld.elf_so'
10041   ;;
10042
10043 netbsd*)
10044   version_type=sunos
10045   need_lib_prefix=no
10046   need_version=no
10047   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10049     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10050     dynamic_linker='NetBSD (a.out) ld.so'
10051   else
10052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10053     soname_spec='${libname}${release}${shared_ext}$major'
10054     dynamic_linker='NetBSD ld.elf_so'
10055   fi
10056   shlibpath_var=LD_LIBRARY_PATH
10057   shlibpath_overrides_runpath=yes
10058   hardcode_into_libs=yes
10059   ;;
10060
10061 newsos6)
10062   version_type=linux
10063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064   shlibpath_var=LD_LIBRARY_PATH
10065   shlibpath_overrides_runpath=yes
10066   ;;
10067
10068 *nto* | *qnx*)
10069   version_type=qnx
10070   need_lib_prefix=no
10071   need_version=no
10072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10073   soname_spec='${libname}${release}${shared_ext}$major'
10074   shlibpath_var=LD_LIBRARY_PATH
10075   shlibpath_overrides_runpath=no
10076   hardcode_into_libs=yes
10077   dynamic_linker='ldqnx.so'
10078   ;;
10079
10080 openbsd*)
10081   version_type=sunos
10082   sys_lib_dlsearch_path_spec="/usr/lib"
10083   need_lib_prefix=no
10084   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10085   case $host_os in
10086     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10087     *)                          need_version=no  ;;
10088   esac
10089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10090   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10091   shlibpath_var=LD_LIBRARY_PATH
10092   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10093     case $host_os in
10094       openbsd2.[89] | openbsd2.[89].*)
10095         shlibpath_overrides_runpath=no
10096         ;;
10097       *)
10098         shlibpath_overrides_runpath=yes
10099         ;;
10100       esac
10101   else
10102     shlibpath_overrides_runpath=yes
10103   fi
10104   ;;
10105
10106 os2*)
10107   libname_spec='$name'
10108   shrext_cmds=".dll"
10109   need_lib_prefix=no
10110   library_names_spec='$libname${shared_ext} $libname.a'
10111   dynamic_linker='OS/2 ld.exe'
10112   shlibpath_var=LIBPATH
10113   ;;
10114
10115 osf3* | osf4* | osf5*)
10116   version_type=osf
10117   need_lib_prefix=no
10118   need_version=no
10119   soname_spec='${libname}${release}${shared_ext}$major'
10120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121   shlibpath_var=LD_LIBRARY_PATH
10122   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10123   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10124   ;;
10125
10126 rdos*)
10127   dynamic_linker=no
10128   ;;
10129
10130 solaris*)
10131   version_type=linux
10132   need_lib_prefix=no
10133   need_version=no
10134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135   soname_spec='${libname}${release}${shared_ext}$major'
10136   shlibpath_var=LD_LIBRARY_PATH
10137   shlibpath_overrides_runpath=yes
10138   hardcode_into_libs=yes
10139   # ldd complains unless libraries are executable
10140   postinstall_cmds='chmod +x $lib'
10141   ;;
10142
10143 sunos4*)
10144   version_type=sunos
10145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10146   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10147   shlibpath_var=LD_LIBRARY_PATH
10148   shlibpath_overrides_runpath=yes
10149   if test "$with_gnu_ld" = yes; then
10150     need_lib_prefix=no
10151   fi
10152   need_version=yes
10153   ;;
10154
10155 sysv4 | sysv4.3*)
10156   version_type=linux
10157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158   soname_spec='${libname}${release}${shared_ext}$major'
10159   shlibpath_var=LD_LIBRARY_PATH
10160   case $host_vendor in
10161     sni)
10162       shlibpath_overrides_runpath=no
10163       need_lib_prefix=no
10164       runpath_var=LD_RUN_PATH
10165       ;;
10166     siemens)
10167       need_lib_prefix=no
10168       ;;
10169     motorola)
10170       need_lib_prefix=no
10171       need_version=no
10172       shlibpath_overrides_runpath=no
10173       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10174       ;;
10175   esac
10176   ;;
10177
10178 sysv4*MP*)
10179   if test -d /usr/nec ;then
10180     version_type=linux
10181     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10182     soname_spec='$libname${shared_ext}.$major'
10183     shlibpath_var=LD_LIBRARY_PATH
10184   fi
10185   ;;
10186
10187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10188   version_type=freebsd-elf
10189   need_lib_prefix=no
10190   need_version=no
10191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10192   soname_spec='${libname}${release}${shared_ext}$major'
10193   shlibpath_var=LD_LIBRARY_PATH
10194   shlibpath_overrides_runpath=yes
10195   hardcode_into_libs=yes
10196   if test "$with_gnu_ld" = yes; then
10197     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10198   else
10199     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10200     case $host_os in
10201       sco3.2v5*)
10202         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10203         ;;
10204     esac
10205   fi
10206   sys_lib_dlsearch_path_spec='/usr/lib'
10207   ;;
10208
10209 tpf*)
10210   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10211   version_type=linux
10212   need_lib_prefix=no
10213   need_version=no
10214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215   shlibpath_var=LD_LIBRARY_PATH
10216   shlibpath_overrides_runpath=no
10217   hardcode_into_libs=yes
10218   ;;
10219
10220 uts4*)
10221   version_type=linux
10222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223   soname_spec='${libname}${release}${shared_ext}$major'
10224   shlibpath_var=LD_LIBRARY_PATH
10225   ;;
10226
10227 *)
10228   dynamic_linker=no
10229   ;;
10230 esac
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10232 $as_echo "$dynamic_linker" >&6; }
10233 test "$dynamic_linker" = no && can_build_shared=no
10234
10235 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10236 if test "$GCC" = yes; then
10237   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10238 fi
10239
10240 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10241   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10242 fi
10243 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10244   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10245 fi
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10334 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10335 hardcode_action=
10336 if test -n "$hardcode_libdir_flag_spec" ||
10337    test -n "$runpath_var" ||
10338    test "X$hardcode_automatic" = "Xyes" ; then
10339
10340   # We can hardcode non-existent directories.
10341   if test "$hardcode_direct" != no &&
10342      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10343      # have to relink, otherwise we might link with an installed library
10344      # when we should be linking with a yet-to-be-installed one
10345      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10346      test "$hardcode_minus_L" != no; then
10347     # Linking always hardcodes the temporary library directory.
10348     hardcode_action=relink
10349   else
10350     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10351     hardcode_action=immediate
10352   fi
10353 else
10354   # We cannot hardcode anything, or else we can only hardcode existing
10355   # directories.
10356   hardcode_action=unsupported
10357 fi
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10359 $as_echo "$hardcode_action" >&6; }
10360
10361 if test "$hardcode_action" = relink ||
10362    test "$inherit_rpath" = yes; then
10363   # Fast installation is not supported
10364   enable_fast_install=no
10365 elif test "$shlibpath_overrides_runpath" = yes ||
10366      test "$enable_shared" = no; then
10367   # Fast installation is not necessary
10368   enable_fast_install=needless
10369 fi
10370
10371
10372
10373
10374
10375
10376   if test "x$enable_dlopen" != xyes; then
10377   enable_dlopen=unknown
10378   enable_dlopen_self=unknown
10379   enable_dlopen_self_static=unknown
10380 else
10381   lt_cv_dlopen=no
10382   lt_cv_dlopen_libs=
10383
10384   case $host_os in
10385   beos*)
10386     lt_cv_dlopen="load_add_on"
10387     lt_cv_dlopen_libs=
10388     lt_cv_dlopen_self=yes
10389     ;;
10390
10391   mingw* | pw32* | cegcc*)
10392     lt_cv_dlopen="LoadLibrary"
10393     lt_cv_dlopen_libs=
10394     ;;
10395
10396   cygwin*)
10397     lt_cv_dlopen="dlopen"
10398     lt_cv_dlopen_libs=
10399     ;;
10400
10401   darwin*)
10402   # if libdl is installed we need to link against it
10403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10404 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10405 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10406   $as_echo_n "(cached) " >&6
10407 else
10408   ac_check_lib_save_LIBS=$LIBS
10409 LIBS="-ldl  $LIBS"
10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h.  */
10412
10413 /* Override any GCC internal prototype to avoid an error.
10414    Use char because int might match the return type of a GCC
10415    builtin and then its argument prototype would still apply.  */
10416 #ifdef __cplusplus
10417 extern "C"
10418 #endif
10419 char dlopen ();
10420 int
10421 main ()
10422 {
10423 return dlopen ();
10424   ;
10425   return 0;
10426 }
10427 _ACEOF
10428 if ac_fn_c_try_link "$LINENO"; then :
10429   ac_cv_lib_dl_dlopen=yes
10430 else
10431   ac_cv_lib_dl_dlopen=no
10432 fi
10433 rm -f core conftest.err conftest.$ac_objext \
10434     conftest$ac_exeext conftest.$ac_ext
10435 LIBS=$ac_check_lib_save_LIBS
10436 fi
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10438 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10439 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10440   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10441 else
10442
10443     lt_cv_dlopen="dyld"
10444     lt_cv_dlopen_libs=
10445     lt_cv_dlopen_self=yes
10446
10447 fi
10448
10449     ;;
10450
10451   *)
10452     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10453 if test "x$ac_cv_func_shl_load" = x""yes; then :
10454   lt_cv_dlopen="shl_load"
10455 else
10456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10457 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10458 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10459   $as_echo_n "(cached) " >&6
10460 else
10461   ac_check_lib_save_LIBS=$LIBS
10462 LIBS="-ldld  $LIBS"
10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h.  */
10465
10466 /* Override any GCC internal prototype to avoid an error.
10467    Use char because int might match the return type of a GCC
10468    builtin and then its argument prototype would still apply.  */
10469 #ifdef __cplusplus
10470 extern "C"
10471 #endif
10472 char shl_load ();
10473 int
10474 main ()
10475 {
10476 return shl_load ();
10477   ;
10478   return 0;
10479 }
10480 _ACEOF
10481 if ac_fn_c_try_link "$LINENO"; then :
10482   ac_cv_lib_dld_shl_load=yes
10483 else
10484   ac_cv_lib_dld_shl_load=no
10485 fi
10486 rm -f core conftest.err conftest.$ac_objext \
10487     conftest$ac_exeext conftest.$ac_ext
10488 LIBS=$ac_check_lib_save_LIBS
10489 fi
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10491 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10492 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10493   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10494 else
10495   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10496 if test "x$ac_cv_func_dlopen" = x""yes; then :
10497   lt_cv_dlopen="dlopen"
10498 else
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10539 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10540 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10541   $as_echo_n "(cached) " >&6
10542 else
10543   ac_check_lib_save_LIBS=$LIBS
10544 LIBS="-lsvld  $LIBS"
10545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h.  */
10547
10548 /* Override any GCC internal prototype to avoid an error.
10549    Use char because int might match the return type of a GCC
10550    builtin and then its argument prototype would still apply.  */
10551 #ifdef __cplusplus
10552 extern "C"
10553 #endif
10554 char dlopen ();
10555 int
10556 main ()
10557 {
10558 return dlopen ();
10559   ;
10560   return 0;
10561 }
10562 _ACEOF
10563 if ac_fn_c_try_link "$LINENO"; then :
10564   ac_cv_lib_svld_dlopen=yes
10565 else
10566   ac_cv_lib_svld_dlopen=no
10567 fi
10568 rm -f core conftest.err conftest.$ac_objext \
10569     conftest$ac_exeext conftest.$ac_ext
10570 LIBS=$ac_check_lib_save_LIBS
10571 fi
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10573 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10574 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10575   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10576 else
10577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10578 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10579 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10580   $as_echo_n "(cached) " >&6
10581 else
10582   ac_check_lib_save_LIBS=$LIBS
10583 LIBS="-ldld  $LIBS"
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h.  */
10586
10587 /* Override any GCC internal prototype to avoid an error.
10588    Use char because int might match the return type of a GCC
10589    builtin and then its argument prototype would still apply.  */
10590 #ifdef __cplusplus
10591 extern "C"
10592 #endif
10593 char dld_link ();
10594 int
10595 main ()
10596 {
10597 return dld_link ();
10598   ;
10599   return 0;
10600 }
10601 _ACEOF
10602 if ac_fn_c_try_link "$LINENO"; then :
10603   ac_cv_lib_dld_dld_link=yes
10604 else
10605   ac_cv_lib_dld_dld_link=no
10606 fi
10607 rm -f core conftest.err conftest.$ac_objext \
10608     conftest$ac_exeext conftest.$ac_ext
10609 LIBS=$ac_check_lib_save_LIBS
10610 fi
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10612 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10613 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10614   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10615 fi
10616
10617
10618 fi
10619
10620
10621 fi
10622
10623
10624 fi
10625
10626
10627 fi
10628
10629
10630 fi
10631
10632     ;;
10633   esac
10634
10635   if test "x$lt_cv_dlopen" != xno; then
10636     enable_dlopen=yes
10637   else
10638     enable_dlopen=no
10639   fi
10640
10641   case $lt_cv_dlopen in
10642   dlopen)
10643     save_CPPFLAGS="$CPPFLAGS"
10644     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10645
10646     save_LDFLAGS="$LDFLAGS"
10647     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10648
10649     save_LIBS="$LIBS"
10650     LIBS="$lt_cv_dlopen_libs $LIBS"
10651
10652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10653 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10654 if test "${lt_cv_dlopen_self+set}" = set; then :
10655   $as_echo_n "(cached) " >&6
10656 else
10657           if test "$cross_compiling" = yes; then :
10658   lt_cv_dlopen_self=cross
10659 else
10660   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10661   lt_status=$lt_dlunknown
10662   cat > conftest.$ac_ext <<_LT_EOF
10663 #line 10663 "configure"
10664 #include "confdefs.h"
10665
10666 #if HAVE_DLFCN_H
10667 #include <dlfcn.h>
10668 #endif
10669
10670 #include <stdio.h>
10671
10672 #ifdef RTLD_GLOBAL
10673 #  define LT_DLGLOBAL           RTLD_GLOBAL
10674 #else
10675 #  ifdef DL_GLOBAL
10676 #    define LT_DLGLOBAL         DL_GLOBAL
10677 #  else
10678 #    define LT_DLGLOBAL         0
10679 #  endif
10680 #endif
10681
10682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10683    find out it does not work in some platform. */
10684 #ifndef LT_DLLAZY_OR_NOW
10685 #  ifdef RTLD_LAZY
10686 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10687 #  else
10688 #    ifdef DL_LAZY
10689 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10690 #    else
10691 #      ifdef RTLD_NOW
10692 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10693 #      else
10694 #        ifdef DL_NOW
10695 #          define LT_DLLAZY_OR_NOW      DL_NOW
10696 #        else
10697 #          define LT_DLLAZY_OR_NOW      0
10698 #        endif
10699 #      endif
10700 #    endif
10701 #  endif
10702 #endif
10703
10704 void fnord() { int i=42;}
10705 int main ()
10706 {
10707   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10708   int status = $lt_dlunknown;
10709
10710   if (self)
10711     {
10712       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10713       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10714       /* dlclose (self); */
10715     }
10716   else
10717     puts (dlerror ());
10718
10719   return status;
10720 }
10721 _LT_EOF
10722   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10723   (eval $ac_link) 2>&5
10724   ac_status=$?
10725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10726   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10727     (./conftest; exit; ) >&5 2>/dev/null
10728     lt_status=$?
10729     case x$lt_status in
10730       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10731       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10732       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10733     esac
10734   else :
10735     # compilation failed
10736     lt_cv_dlopen_self=no
10737   fi
10738 fi
10739 rm -fr conftest*
10740
10741
10742 fi
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10744 $as_echo "$lt_cv_dlopen_self" >&6; }
10745
10746     if test "x$lt_cv_dlopen_self" = xyes; then
10747       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10748       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10749 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10750 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10751   $as_echo_n "(cached) " >&6
10752 else
10753           if test "$cross_compiling" = yes; then :
10754   lt_cv_dlopen_self_static=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_static=yes ;;
10827       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10828       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10829     esac
10830   else :
10831     # compilation failed
10832     lt_cv_dlopen_self_static=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_static" >&5
10840 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10841     fi
10842
10843     CPPFLAGS="$save_CPPFLAGS"
10844     LDFLAGS="$save_LDFLAGS"
10845     LIBS="$save_LIBS"
10846     ;;
10847   esac
10848
10849   case $lt_cv_dlopen_self in
10850   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10851   *) enable_dlopen_self=unknown ;;
10852   esac
10853
10854   case $lt_cv_dlopen_self_static in
10855   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10856   *) enable_dlopen_self_static=unknown ;;
10857   esac
10858 fi
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876 striplib=
10877 old_striplib=
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10879 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10880 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10881   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10882   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884 $as_echo "yes" >&6; }
10885 else
10886 # FIXME - insert some real tests, host_os isn't really good enough
10887   case $host_os in
10888   darwin*)
10889     if test -n "$STRIP" ; then
10890       striplib="$STRIP -x"
10891       old_striplib="$STRIP -S"
10892       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10893 $as_echo "yes" >&6; }
10894     else
10895       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896 $as_echo "no" >&6; }
10897     fi
10898     ;;
10899   *)
10900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10902     ;;
10903   esac
10904 fi
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917   # Report which library types will actually be built
10918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10919 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10921 $as_echo "$can_build_shared" >&6; }
10922
10923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10924 $as_echo_n "checking whether to build shared libraries... " >&6; }
10925   test "$can_build_shared" = "no" && enable_shared=no
10926
10927   # On AIX, shared libraries and static libraries use the same namespace, and
10928   # are all built from PIC.
10929   case $host_os in
10930   aix3*)
10931     test "$enable_shared" = yes && enable_static=no
10932     if test -n "$RANLIB"; then
10933       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10934       postinstall_cmds='$RANLIB $lib'
10935     fi
10936     ;;
10937
10938   aix[4-9]*)
10939     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10940       test "$enable_shared" = yes && enable_static=no
10941     fi
10942     ;;
10943   esac
10944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10945 $as_echo "$enable_shared" >&6; }
10946
10947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10948 $as_echo_n "checking whether to build static libraries... " >&6; }
10949   # Make sure either enable_shared or enable_static is yes.
10950   test "$enable_shared" = yes || enable_static=yes
10951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10952 $as_echo "$enable_static" >&6; }
10953
10954
10955
10956
10957 fi
10958 ac_ext=c
10959 ac_cpp='$CPP $CPPFLAGS'
10960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10963
10964 CC="$lt_save_CC"
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978         ac_config_commands="$ac_config_commands libtool"
10979
10980
10981
10982
10983 # Only expand once:
10984
10985
10986
10987 # Docygen features
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998 # Files:
10999 DX_PROJECT=opensaml
11000
11001 DX_CONFIG=doxygen.cfg
11002
11003 DX_DOCDIR=doc/api
11004
11005
11006 # Environment variables used inside doxygen.cfg:
11007 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
11008
11009 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
11010
11011 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
11012
11013 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
11014
11015
11016 # Doxygen itself:
11017
11018
11019
11020     # Check whether --enable-doxygen-doc was given.
11021 if test "${enable_doxygen_doc+set}" = set; then :
11022   enableval=$enable_doxygen_doc;
11023 case "$enableval" in
11024 #(
11025 y|Y|yes|Yes|YES)
11026     DX_FLAG_doc=1
11027
11028
11029 ;; #(
11030 n|N|no|No|NO)
11031     DX_FLAG_doc=0
11032
11033 ;; #(
11034 *)
11035     as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
11036 ;;
11037 esac
11038
11039 else
11040
11041 DX_FLAG_doc=1
11042
11043
11044
11045 fi
11046
11047 if test "$DX_FLAG_doc" = 1; then
11048
11049 if test -n "$ac_tool_prefix"; then
11050   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
11051 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11053 $as_echo_n "checking for $ac_word... " >&6; }
11054 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
11055   $as_echo_n "(cached) " >&6
11056 else
11057   case $DX_DOXYGEN in
11058   [\\/]* | ?:[\\/]*)
11059   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
11060   ;;
11061   *)
11062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063 for as_dir in $PATH
11064 do
11065   IFS=$as_save_IFS
11066   test -z "$as_dir" && as_dir=.
11067     for ac_exec_ext in '' $ac_executable_extensions; do
11068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11069     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11071     break 2
11072   fi
11073 done
11074   done
11075 IFS=$as_save_IFS
11076
11077   ;;
11078 esac
11079 fi
11080 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
11081 if test -n "$DX_DOXYGEN"; then
11082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
11083 $as_echo "$DX_DOXYGEN" >&6; }
11084 else
11085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11087 fi
11088
11089
11090 fi
11091 if test -z "$ac_cv_path_DX_DOXYGEN"; then
11092   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
11093   # Extract the first word of "doxygen", so it can be a program name with args.
11094 set dummy doxygen; ac_word=$2
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11096 $as_echo_n "checking for $ac_word... " >&6; }
11097 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
11098   $as_echo_n "(cached) " >&6
11099 else
11100   case $ac_pt_DX_DOXYGEN in
11101   [\\/]* | ?:[\\/]*)
11102   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
11103   ;;
11104   *)
11105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11107 do
11108   IFS=$as_save_IFS
11109   test -z "$as_dir" && as_dir=.
11110     for ac_exec_ext in '' $ac_executable_extensions; do
11111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11112     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11114     break 2
11115   fi
11116 done
11117   done
11118 IFS=$as_save_IFS
11119
11120   ;;
11121 esac
11122 fi
11123 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
11124 if test -n "$ac_pt_DX_DOXYGEN"; then
11125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
11126 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
11127 else
11128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11130 fi
11131
11132   if test "x$ac_pt_DX_DOXYGEN" = x; then
11133     DX_DOXYGEN=""
11134   else
11135     case $cross_compiling:$ac_tool_warned in
11136 yes:)
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11139 ac_tool_warned=yes ;;
11140 esac
11141     DX_DOXYGEN=$ac_pt_DX_DOXYGEN
11142   fi
11143 else
11144   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
11145 fi
11146
11147 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
11148     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
11149 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
11150     DX_FLAG_doc=0
11151
11152 fi
11153
11154
11155 if test -n "$ac_tool_prefix"; then
11156   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
11157 set dummy ${ac_tool_prefix}perl; ac_word=$2
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11159 $as_echo_n "checking for $ac_word... " >&6; }
11160 if test "${ac_cv_path_DX_PERL+set}" = set; then :
11161   $as_echo_n "(cached) " >&6
11162 else
11163   case $DX_PERL in
11164   [\\/]* | ?:[\\/]*)
11165   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
11166   ;;
11167   *)
11168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11170 do
11171   IFS=$as_save_IFS
11172   test -z "$as_dir" && as_dir=.
11173     for ac_exec_ext in '' $ac_executable_extensions; do
11174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11175     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
11176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11177     break 2
11178   fi
11179 done
11180   done
11181 IFS=$as_save_IFS
11182
11183   ;;
11184 esac
11185 fi
11186 DX_PERL=$ac_cv_path_DX_PERL
11187 if test -n "$DX_PERL"; then
11188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
11189 $as_echo "$DX_PERL" >&6; }
11190 else
11191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192 $as_echo "no" >&6; }
11193 fi
11194
11195
11196 fi
11197 if test -z "$ac_cv_path_DX_PERL"; then
11198   ac_pt_DX_PERL=$DX_PERL
11199   # Extract the first word of "perl", so it can be a program name with args.
11200 set dummy perl; ac_word=$2
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11202 $as_echo_n "checking for $ac_word... " >&6; }
11203 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
11204   $as_echo_n "(cached) " >&6
11205 else
11206   case $ac_pt_DX_PERL in
11207   [\\/]* | ?:[\\/]*)
11208   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
11209   ;;
11210   *)
11211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212 for as_dir in $PATH
11213 do
11214   IFS=$as_save_IFS
11215   test -z "$as_dir" && as_dir=.
11216     for ac_exec_ext in '' $ac_executable_extensions; do
11217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11218     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
11219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11220     break 2
11221   fi
11222 done
11223   done
11224 IFS=$as_save_IFS
11225
11226   ;;
11227 esac
11228 fi
11229 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
11230 if test -n "$ac_pt_DX_PERL"; then
11231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
11232 $as_echo "$ac_pt_DX_PERL" >&6; }
11233 else
11234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235 $as_echo "no" >&6; }
11236 fi
11237
11238   if test "x$ac_pt_DX_PERL" = x; then
11239     DX_PERL=""
11240   else
11241     case $cross_compiling:$ac_tool_warned in
11242 yes:)
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11245 ac_tool_warned=yes ;;
11246 esac
11247     DX_PERL=$ac_pt_DX_PERL
11248   fi
11249 else
11250   DX_PERL="$ac_cv_path_DX_PERL"
11251 fi
11252
11253 if test "$DX_FLAG_doc$DX_PERL" = 1; then
11254     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
11255 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
11256     DX_FLAG_doc=0
11257
11258 fi
11259
11260     :
11261 fi
11262 if test "$DX_FLAG_doc" = 1; then
11263      if :; then
11264   DX_COND_doc_TRUE=
11265   DX_COND_doc_FALSE='#'
11266 else
11267   DX_COND_doc_TRUE='#'
11268   DX_COND_doc_FALSE=
11269 fi
11270
11271     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
11272
11273     :
11274 else
11275      if false; then
11276   DX_COND_doc_TRUE=
11277   DX_COND_doc_FALSE='#'
11278 else
11279   DX_COND_doc_TRUE='#'
11280   DX_COND_doc_FALSE=
11281 fi
11282
11283
11284     :
11285 fi
11286
11287
11288 # Dot for graphics:
11289
11290
11291
11292     # Check whether --enable-doxygen-dot was given.
11293 if test "${enable_doxygen_dot+set}" = set; then :
11294   enableval=$enable_doxygen_dot;
11295 case "$enableval" in
11296 #(
11297 y|Y|yes|Yes|YES)
11298     DX_FLAG_dot=1
11299
11300
11301 test "$DX_FLAG_doc" = "1" \
11302 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
11303
11304 ;; #(
11305 n|N|no|No|NO)
11306     DX_FLAG_dot=0
11307
11308 ;; #(
11309 *)
11310     as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
11311 ;;
11312 esac
11313
11314 else
11315
11316 DX_FLAG_dot=0
11317
11318
11319 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
11320
11321
11322
11323 fi
11324
11325 if test "$DX_FLAG_dot" = 1; then
11326
11327 if test -n "$ac_tool_prefix"; then
11328   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
11329 set dummy ${ac_tool_prefix}dot; ac_word=$2
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11331 $as_echo_n "checking for $ac_word... " >&6; }
11332 if test "${ac_cv_path_DX_DOT+set}" = set; then :
11333   $as_echo_n "(cached) " >&6
11334 else
11335   case $DX_DOT in
11336   [\\/]* | ?:[\\/]*)
11337   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
11338   ;;
11339   *)
11340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341 for as_dir in $PATH
11342 do
11343   IFS=$as_save_IFS
11344   test -z "$as_dir" && as_dir=.
11345     for ac_exec_ext in '' $ac_executable_extensions; do
11346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11347     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
11348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11349     break 2
11350   fi
11351 done
11352   done
11353 IFS=$as_save_IFS
11354
11355   ;;
11356 esac
11357 fi
11358 DX_DOT=$ac_cv_path_DX_DOT
11359 if test -n "$DX_DOT"; then
11360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
11361 $as_echo "$DX_DOT" >&6; }
11362 else
11363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364 $as_echo "no" >&6; }
11365 fi
11366
11367
11368 fi
11369 if test -z "$ac_cv_path_DX_DOT"; then
11370   ac_pt_DX_DOT=$DX_DOT
11371   # Extract the first word of "dot", so it can be a program name with args.
11372 set dummy dot; ac_word=$2
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374 $as_echo_n "checking for $ac_word... " >&6; }
11375 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378   case $ac_pt_DX_DOT in
11379   [\\/]* | ?:[\\/]*)
11380   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
11381   ;;
11382   *)
11383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11385 do
11386   IFS=$as_save_IFS
11387   test -z "$as_dir" && as_dir=.
11388     for ac_exec_ext in '' $ac_executable_extensions; do
11389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11390     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
11391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392     break 2
11393   fi
11394 done
11395   done
11396 IFS=$as_save_IFS
11397
11398   ;;
11399 esac
11400 fi
11401 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
11402 if test -n "$ac_pt_DX_DOT"; then
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
11404 $as_echo "$ac_pt_DX_DOT" >&6; }
11405 else
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407 $as_echo "no" >&6; }
11408 fi
11409
11410   if test "x$ac_pt_DX_DOT" = x; then
11411     DX_DOT=""
11412   else
11413     case $cross_compiling:$ac_tool_warned in
11414 yes:)
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11417 ac_tool_warned=yes ;;
11418 esac
11419     DX_DOT=$ac_pt_DX_DOT
11420   fi
11421 else
11422   DX_DOT="$ac_cv_path_DX_DOT"
11423 fi
11424
11425 if test "$DX_FLAG_dot$DX_DOT" = 1; then
11426     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
11427 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
11428     DX_FLAG_dot=0
11429
11430 fi
11431
11432     :
11433 fi
11434 if test "$DX_FLAG_dot" = 1; then
11435      if :; then
11436   DX_COND_dot_TRUE=
11437   DX_COND_dot_FALSE='#'
11438 else
11439   DX_COND_dot_TRUE='#'
11440   DX_COND_dot_FALSE=
11441 fi
11442
11443     DX_ENV="$DX_ENV HAVE_DOT='YES'"
11444
11445              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
11446
11447     :
11448 else
11449      if false; then
11450   DX_COND_dot_TRUE=
11451   DX_COND_dot_FALSE='#'
11452 else
11453   DX_COND_dot_TRUE='#'
11454   DX_COND_dot_FALSE=
11455 fi
11456
11457     DX_ENV="$DX_ENV HAVE_DOT='NO'"
11458
11459     :
11460 fi
11461
11462
11463 # Man pages generation:
11464
11465
11466
11467     # Check whether --enable-doxygen-man was given.
11468 if test "${enable_doxygen_man+set}" = set; then :
11469   enableval=$enable_doxygen_man;
11470 case "$enableval" in
11471 #(
11472 y|Y|yes|Yes|YES)
11473     DX_FLAG_man=1
11474
11475
11476 test "$DX_FLAG_doc" = "1" \
11477 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
11478
11479 ;; #(
11480 n|N|no|No|NO)
11481     DX_FLAG_man=0
11482
11483 ;; #(
11484 *)
11485     as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
11486 ;;
11487 esac
11488
11489 else
11490
11491 DX_FLAG_man=0
11492
11493
11494 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
11495
11496
11497
11498 fi
11499
11500 if test "$DX_FLAG_man" = 1; then
11501
11502     :
11503 fi
11504 if test "$DX_FLAG_man" = 1; then
11505      if :; then
11506   DX_COND_man_TRUE=
11507   DX_COND_man_FALSE='#'
11508 else
11509   DX_COND_man_TRUE='#'
11510   DX_COND_man_FALSE=
11511 fi
11512
11513     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
11514
11515     :
11516 else
11517      if false; then
11518   DX_COND_man_TRUE=
11519   DX_COND_man_FALSE='#'
11520 else
11521   DX_COND_man_TRUE='#'
11522   DX_COND_man_FALSE=
11523 fi
11524
11525     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
11526
11527     :
11528 fi
11529
11530
11531 # RTF file generation:
11532
11533
11534
11535     # Check whether --enable-doxygen-rtf was given.
11536 if test "${enable_doxygen_rtf+set}" = set; then :
11537   enableval=$enable_doxygen_rtf;
11538 case "$enableval" in
11539 #(
11540 y|Y|yes|Yes|YES)
11541     DX_FLAG_rtf=1
11542
11543
11544 test "$DX_FLAG_doc" = "1" \
11545 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
11546
11547 ;; #(
11548 n|N|no|No|NO)
11549     DX_FLAG_rtf=0
11550
11551 ;; #(
11552 *)
11553     as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
11554 ;;
11555 esac
11556
11557 else
11558
11559 DX_FLAG_rtf=0
11560
11561
11562 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
11563
11564
11565
11566 fi
11567
11568 if test "$DX_FLAG_rtf" = 1; then
11569
11570     :
11571 fi
11572 if test "$DX_FLAG_rtf" = 1; then
11573      if :; then
11574   DX_COND_rtf_TRUE=
11575   DX_COND_rtf_FALSE='#'
11576 else
11577   DX_COND_rtf_TRUE='#'
11578   DX_COND_rtf_FALSE=
11579 fi
11580
11581     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
11582
11583     :
11584 else
11585      if false; then
11586   DX_COND_rtf_TRUE=
11587   DX_COND_rtf_FALSE='#'
11588 else
11589   DX_COND_rtf_TRUE='#'
11590   DX_COND_rtf_FALSE=
11591 fi
11592
11593     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
11594
11595     :
11596 fi
11597
11598
11599 # XML file generation:
11600
11601
11602
11603     # Check whether --enable-doxygen-xml was given.
11604 if test "${enable_doxygen_xml+set}" = set; then :
11605   enableval=$enable_doxygen_xml;
11606 case "$enableval" in
11607 #(
11608 y|Y|yes|Yes|YES)
11609     DX_FLAG_xml=1
11610
11611
11612 test "$DX_FLAG_doc" = "1" \
11613 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
11614
11615 ;; #(
11616 n|N|no|No|NO)
11617     DX_FLAG_xml=0
11618
11619 ;; #(
11620 *)
11621     as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
11622 ;;
11623 esac
11624
11625 else
11626
11627 DX_FLAG_xml=0
11628
11629
11630 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
11631
11632
11633
11634 fi
11635
11636 if test "$DX_FLAG_xml" = 1; then
11637
11638     :
11639 fi
11640 if test "$DX_FLAG_xml" = 1; then
11641      if :; then
11642   DX_COND_xml_TRUE=
11643   DX_COND_xml_FALSE='#'
11644 else
11645   DX_COND_xml_TRUE='#'
11646   DX_COND_xml_FALSE=
11647 fi
11648
11649     DX_ENV="$DX_ENV GENERATE_XML='YES'"
11650
11651     :
11652 else
11653      if false; then
11654   DX_COND_xml_TRUE=
11655   DX_COND_xml_FALSE='#'
11656 else
11657   DX_COND_xml_TRUE='#'
11658   DX_COND_xml_FALSE=
11659 fi
11660
11661     DX_ENV="$DX_ENV GENERATE_XML='NO'"
11662
11663     :
11664 fi
11665
11666
11667 # (Compressed) HTML help generation:
11668
11669
11670
11671     # Check whether --enable-doxygen-chm was given.
11672 if test "${enable_doxygen_chm+set}" = set; then :
11673   enableval=$enable_doxygen_chm;
11674 case "$enableval" in
11675 #(
11676 y|Y|yes|Yes|YES)
11677     DX_FLAG_chm=1
11678
11679
11680 test "$DX_FLAG_doc" = "1" \
11681 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
11682
11683 ;; #(
11684 n|N|no|No|NO)
11685     DX_FLAG_chm=0
11686
11687 ;; #(
11688 *)
11689     as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
11690 ;;
11691 esac
11692
11693 else
11694
11695 DX_FLAG_chm=0
11696
11697
11698 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
11699
11700
11701
11702 fi
11703
11704 if test "$DX_FLAG_chm" = 1; then
11705
11706 if test -n "$ac_tool_prefix"; then
11707   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
11708 set dummy ${ac_tool_prefix}hhc; ac_word=$2
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710 $as_echo_n "checking for $ac_word... " >&6; }
11711 if test "${ac_cv_path_DX_HHC+set}" = set; then :
11712   $as_echo_n "(cached) " >&6
11713 else
11714   case $DX_HHC in
11715   [\\/]* | ?:[\\/]*)
11716   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
11717   ;;
11718   *)
11719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722   IFS=$as_save_IFS
11723   test -z "$as_dir" && as_dir=.
11724     for ac_exec_ext in '' $ac_executable_extensions; do
11725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
11727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728     break 2
11729   fi
11730 done
11731   done
11732 IFS=$as_save_IFS
11733
11734   ;;
11735 esac
11736 fi
11737 DX_HHC=$ac_cv_path_DX_HHC
11738 if test -n "$DX_HHC"; then
11739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
11740 $as_echo "$DX_HHC" >&6; }
11741 else
11742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11744 fi
11745
11746
11747 fi
11748 if test -z "$ac_cv_path_DX_HHC"; then
11749   ac_pt_DX_HHC=$DX_HHC
11750   # Extract the first word of "hhc", so it can be a program name with args.
11751 set dummy hhc; ac_word=$2
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11753 $as_echo_n "checking for $ac_word... " >&6; }
11754 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
11755   $as_echo_n "(cached) " >&6
11756 else
11757   case $ac_pt_DX_HHC in
11758   [\\/]* | ?:[\\/]*)
11759   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
11760   ;;
11761   *)
11762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763 for as_dir in $PATH
11764 do
11765   IFS=$as_save_IFS
11766   test -z "$as_dir" && as_dir=.
11767     for ac_exec_ext in '' $ac_executable_extensions; do
11768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11769     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
11770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11771     break 2
11772   fi
11773 done
11774   done
11775 IFS=$as_save_IFS
11776
11777   ;;
11778 esac
11779 fi
11780 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
11781 if test -n "$ac_pt_DX_HHC"; then
11782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
11783 $as_echo "$ac_pt_DX_HHC" >&6; }
11784 else
11785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11787 fi
11788
11789   if test "x$ac_pt_DX_HHC" = x; then
11790     DX_HHC=""
11791   else
11792     case $cross_compiling:$ac_tool_warned in
11793 yes:)
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11796 ac_tool_warned=yes ;;
11797 esac
11798     DX_HHC=$ac_pt_DX_HHC
11799   fi
11800 else
11801   DX_HHC="$ac_cv_path_DX_HHC"
11802 fi
11803
11804 if test "$DX_FLAG_chm$DX_HHC" = 1; then
11805     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
11806 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
11807     DX_FLAG_chm=0
11808
11809 fi
11810
11811     :
11812 fi
11813 if test "$DX_FLAG_chm" = 1; then
11814      if :; then
11815   DX_COND_chm_TRUE=
11816   DX_COND_chm_FALSE='#'
11817 else
11818   DX_COND_chm_TRUE='#'
11819   DX_COND_chm_FALSE=
11820 fi
11821
11822     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
11823
11824              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
11825
11826              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
11827
11828     :
11829 else
11830      if false; then
11831   DX_COND_chm_TRUE=
11832   DX_COND_chm_FALSE='#'
11833 else
11834   DX_COND_chm_TRUE='#'
11835   DX_COND_chm_FALSE=
11836 fi
11837
11838     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
11839
11840     :
11841 fi
11842
11843
11844 # Seperate CHI file generation.
11845
11846
11847
11848     # Check whether --enable-doxygen-chi was given.
11849 if test "${enable_doxygen_chi+set}" = set; then :
11850   enableval=$enable_doxygen_chi;
11851 case "$enableval" in
11852 #(
11853 y|Y|yes|Yes|YES)
11854     DX_FLAG_chi=1
11855
11856
11857 test "$DX_FLAG_chm" = "1" \
11858 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
11859
11860 ;; #(
11861 n|N|no|No|NO)
11862     DX_FLAG_chi=0
11863
11864 ;; #(
11865 *)
11866     as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
11867 ;;
11868 esac
11869
11870 else
11871
11872 DX_FLAG_chi=0
11873
11874
11875 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
11876
11877
11878
11879 fi
11880
11881 if test "$DX_FLAG_chi" = 1; then
11882
11883     :
11884 fi
11885 if test "$DX_FLAG_chi" = 1; then
11886      if :; then
11887   DX_COND_chi_TRUE=
11888   DX_COND_chi_FALSE='#'
11889 else
11890   DX_COND_chi_TRUE='#'
11891   DX_COND_chi_FALSE=
11892 fi
11893
11894     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
11895
11896     :
11897 else
11898      if false; then
11899   DX_COND_chi_TRUE=
11900   DX_COND_chi_FALSE='#'
11901 else
11902   DX_COND_chi_TRUE='#'
11903   DX_COND_chi_FALSE=
11904 fi
11905
11906     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
11907
11908     :
11909 fi
11910
11911
11912 # Plain HTML pages generation:
11913
11914
11915
11916     # Check whether --enable-doxygen-html was given.
11917 if test "${enable_doxygen_html+set}" = set; then :
11918   enableval=$enable_doxygen_html;
11919 case "$enableval" in
11920 #(
11921 y|Y|yes|Yes|YES)
11922     DX_FLAG_html=1
11923
11924
11925 test "$DX_FLAG_doc" = "1" \
11926 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
11927
11928 test "$DX_FLAG_chm" = "0" \
11929 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
11930
11931 ;; #(
11932 n|N|no|No|NO)
11933     DX_FLAG_html=0
11934
11935 ;; #(
11936 *)
11937     as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
11938 ;;
11939 esac
11940
11941 else
11942
11943 DX_FLAG_html=1
11944
11945
11946 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
11947
11948
11949 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
11950
11951
11952
11953 fi
11954
11955 if test "$DX_FLAG_html" = 1; then
11956
11957     :
11958 fi
11959 if test "$DX_FLAG_html" = 1; then
11960      if :; then
11961   DX_COND_html_TRUE=
11962   DX_COND_html_FALSE='#'
11963 else
11964   DX_COND_html_TRUE='#'
11965   DX_COND_html_FALSE=
11966 fi
11967
11968     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
11969
11970     :
11971 else
11972      if false; then
11973   DX_COND_html_TRUE=
11974   DX_COND_html_FALSE='#'
11975 else
11976   DX_COND_html_TRUE='#'
11977   DX_COND_html_FALSE=
11978 fi
11979
11980     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
11981
11982     :
11983 fi
11984
11985
11986 # PostScript file generation:
11987
11988
11989
11990     # Check whether --enable-doxygen-ps was given.
11991 if test "${enable_doxygen_ps+set}" = set; then :
11992   enableval=$enable_doxygen_ps;
11993 case "$enableval" in
11994 #(
11995 y|Y|yes|Yes|YES)
11996     DX_FLAG_ps=1
11997
11998
11999 test "$DX_FLAG_doc" = "1" \
12000 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
12001
12002 ;; #(
12003 n|N|no|No|NO)
12004     DX_FLAG_ps=0
12005
12006 ;; #(
12007 *)
12008     as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
12009 ;;
12010 esac
12011
12012 else
12013
12014 DX_FLAG_ps=0
12015
12016
12017 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
12018
12019
12020
12021 fi
12022
12023 if test "$DX_FLAG_ps" = 1; then
12024
12025 if test -n "$ac_tool_prefix"; then
12026   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
12027 set dummy ${ac_tool_prefix}latex; ac_word=$2
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12029 $as_echo_n "checking for $ac_word... " >&6; }
12030 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
12031   $as_echo_n "(cached) " >&6
12032 else
12033   case $DX_LATEX in
12034   [\\/]* | ?:[\\/]*)
12035   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
12036   ;;
12037   *)
12038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12039 for as_dir in $PATH
12040 do
12041   IFS=$as_save_IFS
12042   test -z "$as_dir" && as_dir=.
12043     for ac_exec_ext in '' $ac_executable_extensions; do
12044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12045     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12047     break 2
12048   fi
12049 done
12050   done
12051 IFS=$as_save_IFS
12052
12053   ;;
12054 esac
12055 fi
12056 DX_LATEX=$ac_cv_path_DX_LATEX
12057 if test -n "$DX_LATEX"; then
12058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
12059 $as_echo "$DX_LATEX" >&6; }
12060 else
12061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12062 $as_echo "no" >&6; }
12063 fi
12064
12065
12066 fi
12067 if test -z "$ac_cv_path_DX_LATEX"; then
12068   ac_pt_DX_LATEX=$DX_LATEX
12069   # Extract the first word of "latex", so it can be a program name with args.
12070 set dummy latex; ac_word=$2
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12072 $as_echo_n "checking for $ac_word... " >&6; }
12073 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
12074   $as_echo_n "(cached) " >&6
12075 else
12076   case $ac_pt_DX_LATEX in
12077   [\\/]* | ?:[\\/]*)
12078   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
12079   ;;
12080   *)
12081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12083 do
12084   IFS=$as_save_IFS
12085   test -z "$as_dir" && as_dir=.
12086     for ac_exec_ext in '' $ac_executable_extensions; do
12087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12088     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090     break 2
12091   fi
12092 done
12093   done
12094 IFS=$as_save_IFS
12095
12096   ;;
12097 esac
12098 fi
12099 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
12100 if test -n "$ac_pt_DX_LATEX"; then
12101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
12102 $as_echo "$ac_pt_DX_LATEX" >&6; }
12103 else
12104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12106 fi
12107
12108   if test "x$ac_pt_DX_LATEX" = x; then
12109     DX_LATEX=""
12110   else
12111     case $cross_compiling:$ac_tool_warned in
12112 yes:)
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12115 ac_tool_warned=yes ;;
12116 esac
12117     DX_LATEX=$ac_pt_DX_LATEX
12118   fi
12119 else
12120   DX_LATEX="$ac_cv_path_DX_LATEX"
12121 fi
12122
12123 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
12124     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
12125 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
12126     DX_FLAG_ps=0
12127
12128 fi
12129
12130
12131 if test -n "$ac_tool_prefix"; then
12132   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12133 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12135 $as_echo_n "checking for $ac_word... " >&6; }
12136 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
12137   $as_echo_n "(cached) " >&6
12138 else
12139   case $DX_MAKEINDEX in
12140   [\\/]* | ?:[\\/]*)
12141   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
12142   ;;
12143   *)
12144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145 for as_dir in $PATH
12146 do
12147   IFS=$as_save_IFS
12148   test -z "$as_dir" && as_dir=.
12149     for ac_exec_ext in '' $ac_executable_extensions; do
12150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12151     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12153     break 2
12154   fi
12155 done
12156   done
12157 IFS=$as_save_IFS
12158
12159   ;;
12160 esac
12161 fi
12162 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
12163 if test -n "$DX_MAKEINDEX"; then
12164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
12165 $as_echo "$DX_MAKEINDEX" >&6; }
12166 else
12167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12169 fi
12170
12171
12172 fi
12173 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
12174   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
12175   # Extract the first word of "makeindex", so it can be a program name with args.
12176 set dummy makeindex; ac_word=$2
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178 $as_echo_n "checking for $ac_word... " >&6; }
12179 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
12180   $as_echo_n "(cached) " >&6
12181 else
12182   case $ac_pt_DX_MAKEINDEX in
12183   [\\/]* | ?:[\\/]*)
12184   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
12185   ;;
12186   *)
12187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12189 do
12190   IFS=$as_save_IFS
12191   test -z "$as_dir" && as_dir=.
12192     for ac_exec_ext in '' $ac_executable_extensions; do
12193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12194     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196     break 2
12197   fi
12198 done
12199   done
12200 IFS=$as_save_IFS
12201
12202   ;;
12203 esac
12204 fi
12205 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
12206 if test -n "$ac_pt_DX_MAKEINDEX"; then
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
12208 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
12209 else
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12212 fi
12213
12214   if test "x$ac_pt_DX_MAKEINDEX" = x; then
12215     DX_MAKEINDEX=""
12216   else
12217     case $cross_compiling:$ac_tool_warned in
12218 yes:)
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12221 ac_tool_warned=yes ;;
12222 esac
12223     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
12224   fi
12225 else
12226   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
12227 fi
12228
12229 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
12230     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
12231 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
12232     DX_FLAG_ps=0
12233
12234 fi
12235
12236
12237 if test -n "$ac_tool_prefix"; then
12238   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
12239 set dummy ${ac_tool_prefix}dvips; ac_word=$2
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241 $as_echo_n "checking for $ac_word... " >&6; }
12242 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
12243   $as_echo_n "(cached) " >&6
12244 else
12245   case $DX_DVIPS in
12246   [\\/]* | ?:[\\/]*)
12247   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
12248   ;;
12249   *)
12250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251 for as_dir in $PATH
12252 do
12253   IFS=$as_save_IFS
12254   test -z "$as_dir" && as_dir=.
12255     for ac_exec_ext in '' $ac_executable_extensions; do
12256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12257     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
12258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259     break 2
12260   fi
12261 done
12262   done
12263 IFS=$as_save_IFS
12264
12265   ;;
12266 esac
12267 fi
12268 DX_DVIPS=$ac_cv_path_DX_DVIPS
12269 if test -n "$DX_DVIPS"; then
12270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
12271 $as_echo "$DX_DVIPS" >&6; }
12272 else
12273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12275 fi
12276
12277
12278 fi
12279 if test -z "$ac_cv_path_DX_DVIPS"; then
12280   ac_pt_DX_DVIPS=$DX_DVIPS
12281   # Extract the first word of "dvips", so it can be a program name with args.
12282 set dummy dvips; ac_word=$2
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12284 $as_echo_n "checking for $ac_word... " >&6; }
12285 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
12286   $as_echo_n "(cached) " >&6
12287 else
12288   case $ac_pt_DX_DVIPS in
12289   [\\/]* | ?:[\\/]*)
12290   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
12291   ;;
12292   *)
12293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294 for as_dir in $PATH
12295 do
12296   IFS=$as_save_IFS
12297   test -z "$as_dir" && as_dir=.
12298     for ac_exec_ext in '' $ac_executable_extensions; do
12299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12300     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
12301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12302     break 2
12303   fi
12304 done
12305   done
12306 IFS=$as_save_IFS
12307
12308   ;;
12309 esac
12310 fi
12311 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
12312 if test -n "$ac_pt_DX_DVIPS"; then
12313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
12314 $as_echo "$ac_pt_DX_DVIPS" >&6; }
12315 else
12316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317 $as_echo "no" >&6; }
12318 fi
12319
12320   if test "x$ac_pt_DX_DVIPS" = x; then
12321     DX_DVIPS=""
12322   else
12323     case $cross_compiling:$ac_tool_warned in
12324 yes:)
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12327 ac_tool_warned=yes ;;
12328 esac
12329     DX_DVIPS=$ac_pt_DX_DVIPS
12330   fi
12331 else
12332   DX_DVIPS="$ac_cv_path_DX_DVIPS"
12333 fi
12334
12335 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
12336     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
12337 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
12338     DX_FLAG_ps=0
12339
12340 fi
12341
12342
12343 if test -n "$ac_tool_prefix"; then
12344   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
12345 set dummy ${ac_tool_prefix}egrep; ac_word=$2
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347 $as_echo_n "checking for $ac_word... " >&6; }
12348 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
12349   $as_echo_n "(cached) " >&6
12350 else
12351   case $DX_EGREP in
12352   [\\/]* | ?:[\\/]*)
12353   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
12354   ;;
12355   *)
12356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $PATH
12358 do
12359   IFS=$as_save_IFS
12360   test -z "$as_dir" && as_dir=.
12361     for ac_exec_ext in '' $ac_executable_extensions; do
12362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12363     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12365     break 2
12366   fi
12367 done
12368   done
12369 IFS=$as_save_IFS
12370
12371   ;;
12372 esac
12373 fi
12374 DX_EGREP=$ac_cv_path_DX_EGREP
12375 if test -n "$DX_EGREP"; then
12376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
12377 $as_echo "$DX_EGREP" >&6; }
12378 else
12379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380 $as_echo "no" >&6; }
12381 fi
12382
12383
12384 fi
12385 if test -z "$ac_cv_path_DX_EGREP"; then
12386   ac_pt_DX_EGREP=$DX_EGREP
12387   # Extract the first word of "egrep", so it can be a program name with args.
12388 set dummy egrep; ac_word=$2
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12390 $as_echo_n "checking for $ac_word... " >&6; }
12391 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
12392   $as_echo_n "(cached) " >&6
12393 else
12394   case $ac_pt_DX_EGREP in
12395   [\\/]* | ?:[\\/]*)
12396   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
12397   ;;
12398   *)
12399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12401 do
12402   IFS=$as_save_IFS
12403   test -z "$as_dir" && as_dir=.
12404     for ac_exec_ext in '' $ac_executable_extensions; do
12405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12406     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408     break 2
12409   fi
12410 done
12411   done
12412 IFS=$as_save_IFS
12413
12414   ;;
12415 esac
12416 fi
12417 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
12418 if test -n "$ac_pt_DX_EGREP"; then
12419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
12420 $as_echo "$ac_pt_DX_EGREP" >&6; }
12421 else
12422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424 fi
12425
12426   if test "x$ac_pt_DX_EGREP" = x; then
12427     DX_EGREP=""
12428   else
12429     case $cross_compiling:$ac_tool_warned in
12430 yes:)
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12433 ac_tool_warned=yes ;;
12434 esac
12435     DX_EGREP=$ac_pt_DX_EGREP
12436   fi
12437 else
12438   DX_EGREP="$ac_cv_path_DX_EGREP"
12439 fi
12440
12441 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
12442     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
12443 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
12444     DX_FLAG_ps=0
12445
12446 fi
12447
12448     :
12449 fi
12450 if test "$DX_FLAG_ps" = 1; then
12451      if :; then
12452   DX_COND_ps_TRUE=
12453   DX_COND_ps_FALSE='#'
12454 else
12455   DX_COND_ps_TRUE='#'
12456   DX_COND_ps_FALSE=
12457 fi
12458
12459
12460     :
12461 else
12462      if false; then
12463   DX_COND_ps_TRUE=
12464   DX_COND_ps_FALSE='#'
12465 else
12466   DX_COND_ps_TRUE='#'
12467   DX_COND_ps_FALSE=
12468 fi
12469
12470
12471     :
12472 fi
12473
12474
12475 # PDF file generation:
12476
12477
12478
12479     # Check whether --enable-doxygen-pdf was given.
12480 if test "${enable_doxygen_pdf+set}" = set; then :
12481   enableval=$enable_doxygen_pdf;
12482 case "$enableval" in
12483 #(
12484 y|Y|yes|Yes|YES)
12485     DX_FLAG_pdf=1
12486
12487
12488 test "$DX_FLAG_doc" = "1" \
12489 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
12490
12491 ;; #(
12492 n|N|no|No|NO)
12493     DX_FLAG_pdf=0
12494
12495 ;; #(
12496 *)
12497     as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
12498 ;;
12499 esac
12500
12501 else
12502
12503 DX_FLAG_pdf=0
12504
12505
12506 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
12507
12508
12509
12510 fi
12511
12512 if test "$DX_FLAG_pdf" = 1; then
12513
12514 if test -n "$ac_tool_prefix"; then
12515   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
12516 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12518 $as_echo_n "checking for $ac_word... " >&6; }
12519 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
12520   $as_echo_n "(cached) " >&6
12521 else
12522   case $DX_PDFLATEX in
12523   [\\/]* | ?:[\\/]*)
12524   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
12525   ;;
12526   *)
12527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528 for as_dir in $PATH
12529 do
12530   IFS=$as_save_IFS
12531   test -z "$as_dir" && as_dir=.
12532     for ac_exec_ext in '' $ac_executable_extensions; do
12533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12534     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
12535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536     break 2
12537   fi
12538 done
12539   done
12540 IFS=$as_save_IFS
12541
12542   ;;
12543 esac
12544 fi
12545 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
12546 if test -n "$DX_PDFLATEX"; then
12547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
12548 $as_echo "$DX_PDFLATEX" >&6; }
12549 else
12550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 $as_echo "no" >&6; }
12552 fi
12553
12554
12555 fi
12556 if test -z "$ac_cv_path_DX_PDFLATEX"; then
12557   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
12558   # Extract the first word of "pdflatex", so it can be a program name with args.
12559 set dummy pdflatex; ac_word=$2
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12561 $as_echo_n "checking for $ac_word... " >&6; }
12562 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
12563   $as_echo_n "(cached) " >&6
12564 else
12565   case $ac_pt_DX_PDFLATEX in
12566   [\\/]* | ?:[\\/]*)
12567   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
12568   ;;
12569   *)
12570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in $PATH
12572 do
12573   IFS=$as_save_IFS
12574   test -z "$as_dir" && as_dir=.
12575     for ac_exec_ext in '' $ac_executable_extensions; do
12576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12577     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
12578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579     break 2
12580   fi
12581 done
12582   done
12583 IFS=$as_save_IFS
12584
12585   ;;
12586 esac
12587 fi
12588 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
12589 if test -n "$ac_pt_DX_PDFLATEX"; then
12590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
12591 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
12592 else
12593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12595 fi
12596
12597   if test "x$ac_pt_DX_PDFLATEX" = x; then
12598     DX_PDFLATEX=""
12599   else
12600     case $cross_compiling:$ac_tool_warned in
12601 yes:)
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12604 ac_tool_warned=yes ;;
12605 esac
12606     DX_PDFLATEX=$ac_pt_DX_PDFLATEX
12607   fi
12608 else
12609   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
12610 fi
12611
12612 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
12613     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
12614 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
12615     DX_FLAG_pdf=0
12616
12617 fi
12618
12619
12620 if test -n "$ac_tool_prefix"; then
12621   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12622 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12624 $as_echo_n "checking for $ac_word... " >&6; }
12625 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
12626   $as_echo_n "(cached) " >&6
12627 else
12628   case $DX_MAKEINDEX in
12629   [\\/]* | ?:[\\/]*)
12630   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
12631   ;;
12632   *)
12633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12634 for as_dir in $PATH
12635 do
12636   IFS=$as_save_IFS
12637   test -z "$as_dir" && as_dir=.
12638     for ac_exec_ext in '' $ac_executable_extensions; do
12639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12640     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12642     break 2
12643   fi
12644 done
12645   done
12646 IFS=$as_save_IFS
12647
12648   ;;
12649 esac
12650 fi
12651 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
12652 if test -n "$DX_MAKEINDEX"; then
12653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
12654 $as_echo "$DX_MAKEINDEX" >&6; }
12655 else
12656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657 $as_echo "no" >&6; }
12658 fi
12659
12660
12661 fi
12662 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
12663   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
12664   # Extract the first word of "makeindex", so it can be a program name with args.
12665 set dummy makeindex; ac_word=$2
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667 $as_echo_n "checking for $ac_word... " >&6; }
12668 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
12669   $as_echo_n "(cached) " >&6
12670 else
12671   case $ac_pt_DX_MAKEINDEX in
12672   [\\/]* | ?:[\\/]*)
12673   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
12674   ;;
12675   *)
12676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12677 for as_dir in $PATH
12678 do
12679   IFS=$as_save_IFS
12680   test -z "$as_dir" && as_dir=.
12681     for ac_exec_ext in '' $ac_executable_extensions; do
12682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12683     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12685     break 2
12686   fi
12687 done
12688   done
12689 IFS=$as_save_IFS
12690
12691   ;;
12692 esac
12693 fi
12694 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
12695 if test -n "$ac_pt_DX_MAKEINDEX"; then
12696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
12697 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
12698 else
12699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 $as_echo "no" >&6; }
12701 fi
12702
12703   if test "x$ac_pt_DX_MAKEINDEX" = x; then
12704     DX_MAKEINDEX=""
12705   else
12706     case $cross_compiling:$ac_tool_warned in
12707 yes:)
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12710 ac_tool_warned=yes ;;
12711 esac
12712     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
12713   fi
12714 else
12715   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
12716 fi
12717
12718 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
12719     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
12720 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
12721     DX_FLAG_pdf=0
12722
12723 fi
12724
12725
12726 if test -n "$ac_tool_prefix"; then
12727   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
12728 set dummy ${ac_tool_prefix}egrep; ac_word=$2
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12730 $as_echo_n "checking for $ac_word... " >&6; }
12731 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
12732   $as_echo_n "(cached) " >&6
12733 else
12734   case $DX_EGREP in
12735   [\\/]* | ?:[\\/]*)
12736   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
12737   ;;
12738   *)
12739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12740 for as_dir in $PATH
12741 do
12742   IFS=$as_save_IFS
12743   test -z "$as_dir" && as_dir=.
12744     for ac_exec_ext in '' $ac_executable_extensions; do
12745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12746     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12748     break 2
12749   fi
12750 done
12751   done
12752 IFS=$as_save_IFS
12753
12754   ;;
12755 esac
12756 fi
12757 DX_EGREP=$ac_cv_path_DX_EGREP
12758 if test -n "$DX_EGREP"; then
12759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
12760 $as_echo "$DX_EGREP" >&6; }
12761 else
12762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763 $as_echo "no" >&6; }
12764 fi
12765
12766
12767 fi
12768 if test -z "$ac_cv_path_DX_EGREP"; then
12769   ac_pt_DX_EGREP=$DX_EGREP
12770   # Extract the first word of "egrep", so it can be a program name with args.
12771 set dummy egrep; ac_word=$2
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12773 $as_echo_n "checking for $ac_word... " >&6; }
12774 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
12775   $as_echo_n "(cached) " >&6
12776 else
12777   case $ac_pt_DX_EGREP in
12778   [\\/]* | ?:[\\/]*)
12779   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
12780   ;;
12781   *)
12782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH
12784 do
12785   IFS=$as_save_IFS
12786   test -z "$as_dir" && as_dir=.
12787     for ac_exec_ext in '' $ac_executable_extensions; do
12788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12789     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12791     break 2
12792   fi
12793 done
12794   done
12795 IFS=$as_save_IFS
12796
12797   ;;
12798 esac
12799 fi
12800 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
12801 if test -n "$ac_pt_DX_EGREP"; then
12802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
12803 $as_echo "$ac_pt_DX_EGREP" >&6; }
12804 else
12805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 $as_echo "no" >&6; }
12807 fi
12808
12809   if test "x$ac_pt_DX_EGREP" = x; then
12810     DX_EGREP=""
12811   else
12812     case $cross_compiling:$ac_tool_warned in
12813 yes:)
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12816 ac_tool_warned=yes ;;
12817 esac
12818     DX_EGREP=$ac_pt_DX_EGREP
12819   fi
12820 else
12821   DX_EGREP="$ac_cv_path_DX_EGREP"
12822 fi
12823
12824 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
12825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
12826 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
12827     DX_FLAG_pdf=0
12828
12829 fi
12830
12831     :
12832 fi
12833 if test "$DX_FLAG_pdf" = 1; then
12834      if :; then
12835   DX_COND_pdf_TRUE=
12836   DX_COND_pdf_FALSE='#'
12837 else
12838   DX_COND_pdf_TRUE='#'
12839   DX_COND_pdf_FALSE=
12840 fi
12841
12842
12843     :
12844 else
12845      if false; then
12846   DX_COND_pdf_TRUE=
12847   DX_COND_pdf_FALSE='#'
12848 else
12849   DX_COND_pdf_TRUE='#'
12850   DX_COND_pdf_FALSE=
12851 fi
12852
12853
12854     :
12855 fi
12856
12857
12858 # LaTeX generation for PS and/or PDF:
12859 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
12860      if :; then
12861   DX_COND_latex_TRUE=
12862   DX_COND_latex_FALSE='#'
12863 else
12864   DX_COND_latex_TRUE='#'
12865   DX_COND_latex_FALSE=
12866 fi
12867
12868     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
12869
12870 else
12871      if false; then
12872   DX_COND_latex_TRUE=
12873   DX_COND_latex_FALSE='#'
12874 else
12875   DX_COND_latex_TRUE='#'
12876   DX_COND_latex_FALSE=
12877 fi
12878
12879     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
12880
12881 fi
12882
12883 # Paper size for PS and/or PDF:
12884
12885 case "$DOXYGEN_PAPER_SIZE" in
12886 #(
12887 "")
12888     DOXYGEN_PAPER_SIZE=""
12889
12890 ;; #(
12891 a4wide|a4|letter|legal|executive)
12892     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
12893
12894 ;; #(
12895 *)
12896     as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
12897 ;;
12898 esac
12899
12900 #For debugging:
12901 #echo DX_FLAG_doc=$DX_FLAG_doc
12902 #echo DX_FLAG_dot=$DX_FLAG_dot
12903 #echo DX_FLAG_man=$DX_FLAG_man
12904 #echo DX_FLAG_html=$DX_FLAG_html
12905 #echo DX_FLAG_chm=$DX_FLAG_chm
12906 #echo DX_FLAG_chi=$DX_FLAG_chi
12907 #echo DX_FLAG_rtf=$DX_FLAG_rtf
12908 #echo DX_FLAG_xml=$DX_FLAG_xml
12909 #echo DX_FLAG_pdf=$DX_FLAG_pdf
12910 #echo DX_FLAG_ps=$DX_FLAG_ps
12911 #echo DX_ENV=$DX_ENV
12912
12913 DX_INCLUDE=
12914
12915 # Check whether --enable-debug was given.
12916 if test "${enable_debug+set}" = set; then :
12917   enableval=$enable_debug; enable_debug=$enableval
12918 else
12919   enable_debug=no
12920 fi
12921
12922
12923 if test "$enable_debug" = "yes" ; then
12924     GCC_CFLAGS="$CFLAGS -Wall -g -D_DEBUG"
12925     GCC_CXXFLAGS="$CXXFLAGS -Wall -g -D_DEBUG"
12926 else
12927     GCC_CFLAGS="$CFLAGS -Wall -O2 -DNDEBUG"
12928     GCC_CXXFLAGS="$CXXFLAGS -Wall -O2 -DNDEBUG"
12929 fi
12930
12931 ac_config_headers="$ac_config_headers config.h"
12932
12933 ac_config_files="$ac_config_files opensaml.spec"
12934
12935 ac_config_files="$ac_config_files Makefile saml/Makefile samltest/Makefile samlsign/Makefile schemas/Makefile doc/Makefile"
12936
12937
12938 ac_ext=c
12939 ac_cpp='$CPP $CPPFLAGS'
12940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12943 if test -n "$ac_tool_prefix"; then
12944   for ac_prog in gcc gcc3 cc
12945   do
12946     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949 $as_echo_n "checking for $ac_word... " >&6; }
12950 if test "${ac_cv_prog_CC+set}" = set; then :
12951   $as_echo_n "(cached) " >&6
12952 else
12953   if test -n "$CC"; then
12954   ac_cv_prog_CC="$CC" # Let the user override the test.
12955 else
12956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957 for as_dir in $PATH
12958 do
12959   IFS=$as_save_IFS
12960   test -z "$as_dir" && as_dir=.
12961     for ac_exec_ext in '' $ac_executable_extensions; do
12962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12963     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12965     break 2
12966   fi
12967 done
12968   done
12969 IFS=$as_save_IFS
12970
12971 fi
12972 fi
12973 CC=$ac_cv_prog_CC
12974 if test -n "$CC"; then
12975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12976 $as_echo "$CC" >&6; }
12977 else
12978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12980 fi
12981
12982
12983     test -n "$CC" && break
12984   done
12985 fi
12986 if test -z "$CC"; then
12987   ac_ct_CC=$CC
12988   for ac_prog in gcc gcc3 cc
12989 do
12990   # Extract the first word of "$ac_prog", so it can be a program name with args.
12991 set dummy $ac_prog; ac_word=$2
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12993 $as_echo_n "checking for $ac_word... " >&6; }
12994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12995   $as_echo_n "(cached) " >&6
12996 else
12997   if test -n "$ac_ct_CC"; then
12998   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12999 else
13000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001 for as_dir in $PATH
13002 do
13003   IFS=$as_save_IFS
13004   test -z "$as_dir" && as_dir=.
13005     for ac_exec_ext in '' $ac_executable_extensions; do
13006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13007     ac_cv_prog_ac_ct_CC="$ac_prog"
13008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13009     break 2
13010   fi
13011 done
13012   done
13013 IFS=$as_save_IFS
13014
13015 fi
13016 fi
13017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13018 if test -n "$ac_ct_CC"; then
13019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13020 $as_echo "$ac_ct_CC" >&6; }
13021 else
13022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023 $as_echo "no" >&6; }
13024 fi
13025
13026
13027   test -n "$ac_ct_CC" && break
13028 done
13029
13030   if test "x$ac_ct_CC" = x; then
13031     CC=""
13032   else
13033     case $cross_compiling:$ac_tool_warned in
13034 yes:)
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13037 ac_tool_warned=yes ;;
13038 esac
13039     CC=$ac_ct_CC
13040   fi
13041 fi
13042
13043
13044 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13046 as_fn_error $? "no acceptable C compiler found in \$PATH
13047 See \`config.log' for more details" "$LINENO" 5 ; }
13048
13049 # Provide some information about the compiler.
13050 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13051 set X $ac_compile
13052 ac_compiler=$2
13053 for ac_option in --version -v -V -qversion; do
13054   { { ac_try="$ac_compiler $ac_option >&5"
13055 case "(($ac_try" in
13056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13057   *) ac_try_echo=$ac_try;;
13058 esac
13059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13060 $as_echo "$ac_try_echo"; } >&5
13061   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13062   ac_status=$?
13063   if test -s conftest.err; then
13064     sed '10a\
13065 ... rest of stderr output deleted ...
13066          10q' conftest.err >conftest.er1
13067     cat conftest.er1 >&5
13068   fi
13069   rm -f conftest.er1 conftest.err
13070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13071   test $ac_status = 0; }
13072 done
13073
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13075 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13076 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
13077   $as_echo_n "(cached) " >&6
13078 else
13079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h.  */
13081
13082 int
13083 main ()
13084 {
13085 #ifndef __GNUC__
13086        choke me
13087 #endif
13088
13089   ;
13090   return 0;
13091 }
13092 _ACEOF
13093 if ac_fn_c_try_compile "$LINENO"; then :
13094   ac_compiler_gnu=yes
13095 else
13096   ac_compiler_gnu=no
13097 fi
13098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13099 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13100
13101 fi
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13103 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13104 if test $ac_compiler_gnu = yes; then
13105   GCC=yes
13106 else
13107   GCC=
13108 fi
13109 ac_test_CFLAGS=${CFLAGS+set}
13110 ac_save_CFLAGS=$CFLAGS
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13112 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13113 if test "${ac_cv_prog_cc_g+set}" = set; then :
13114   $as_echo_n "(cached) " >&6
13115 else
13116   ac_save_c_werror_flag=$ac_c_werror_flag
13117    ac_c_werror_flag=yes
13118    ac_cv_prog_cc_g=no
13119    CFLAGS="-g"
13120    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h.  */
13122
13123 int
13124 main ()
13125 {
13126
13127   ;
13128   return 0;
13129 }
13130 _ACEOF
13131 if ac_fn_c_try_compile "$LINENO"; then :
13132   ac_cv_prog_cc_g=yes
13133 else
13134   CFLAGS=""
13135       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h.  */
13137
13138 int
13139 main ()
13140 {
13141
13142   ;
13143   return 0;
13144 }
13145 _ACEOF
13146 if ac_fn_c_try_compile "$LINENO"; then :
13147
13148 else
13149   ac_c_werror_flag=$ac_save_c_werror_flag
13150          CFLAGS="-g"
13151          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152 /* end confdefs.h.  */
13153
13154 int
13155 main ()
13156 {
13157
13158   ;
13159   return 0;
13160 }
13161 _ACEOF
13162 if ac_fn_c_try_compile "$LINENO"; then :
13163   ac_cv_prog_cc_g=yes
13164 fi
13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166 fi
13167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168 fi
13169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170    ac_c_werror_flag=$ac_save_c_werror_flag
13171 fi
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13173 $as_echo "$ac_cv_prog_cc_g" >&6; }
13174 if test "$ac_test_CFLAGS" = set; then
13175   CFLAGS=$ac_save_CFLAGS
13176 elif test $ac_cv_prog_cc_g = yes; then
13177   if test "$GCC" = yes; then
13178     CFLAGS="-g -O2"
13179   else
13180     CFLAGS="-g"
13181   fi
13182 else
13183   if test "$GCC" = yes; then
13184     CFLAGS="-O2"
13185   else
13186     CFLAGS=
13187   fi
13188 fi
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13190 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13191 if test "${ac_cv_prog_cc_c89+set}" = set; then :
13192   $as_echo_n "(cached) " >&6
13193 else
13194   ac_cv_prog_cc_c89=no
13195 ac_save_CC=$CC
13196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197 /* end confdefs.h.  */
13198 #include <stdarg.h>
13199 #include <stdio.h>
13200 #include <sys/types.h>
13201 #include <sys/stat.h>
13202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13203 struct buf { int x; };
13204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13205 static char *e (p, i)
13206      char **p;
13207      int i;
13208 {
13209   return p[i];
13210 }
13211 static char *f (char * (*g) (char **, int), char **p, ...)
13212 {
13213   char *s;
13214   va_list v;
13215   va_start (v,p);
13216   s = g (p, va_arg (v,int));
13217   va_end (v);
13218   return s;
13219 }
13220
13221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13222    function prototypes and stuff, but not '\xHH' hex character constants.
13223    These don't provoke an error unfortunately, instead are silently treated
13224    as 'x'.  The following induces an error, until -std is added to get
13225    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13226    array size at least.  It's necessary to write '\x00'==0 to get something
13227    that's true only with -std.  */
13228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13229
13230 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13231    inside strings and character constants.  */
13232 #define FOO(x) 'x'
13233 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13234
13235 int test (int i, double x);
13236 struct s1 {int (*f) (int a);};
13237 struct s2 {int (*f) (double a);};
13238 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13239 int argc;
13240 char **argv;
13241 int
13242 main ()
13243 {
13244 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13245   ;
13246   return 0;
13247 }
13248 _ACEOF
13249 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13250         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13251 do
13252   CC="$ac_save_CC $ac_arg"
13253   if ac_fn_c_try_compile "$LINENO"; then :
13254   ac_cv_prog_cc_c89=$ac_arg
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext
13257   test "x$ac_cv_prog_cc_c89" != "xno" && break
13258 done
13259 rm -f conftest.$ac_ext
13260 CC=$ac_save_CC
13261
13262 fi
13263 # AC_CACHE_VAL
13264 case "x$ac_cv_prog_cc_c89" in
13265   x)
13266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13267 $as_echo "none needed" >&6; } ;;
13268   xno)
13269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13270 $as_echo "unsupported" >&6; } ;;
13271   *)
13272     CC="$CC $ac_cv_prog_cc_c89"
13273     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13274 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13275 esac
13276 if test "x$ac_cv_prog_cc_c89" != xno; then :
13277
13278 fi
13279
13280 ac_ext=c
13281 ac_cpp='$CPP $CPPFLAGS'
13282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13285
13286 depcc="$CC"   am_compiler_list=
13287
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13289 $as_echo_n "checking dependency style of $depcc... " >&6; }
13290 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
13291   $as_echo_n "(cached) " >&6
13292 else
13293   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13294   # We make a subdir and do the tests there.  Otherwise we can end up
13295   # making bogus files that we don't know about and never remove.  For
13296   # instance it was reported that on HP-UX the gcc test will end up
13297   # making a dummy file named `D' -- because `-MD' means `put the output
13298   # in D'.
13299   mkdir conftest.dir
13300   # Copy depcomp to subdir because otherwise we won't find it if we're
13301   # using a relative directory.
13302   cp "$am_depcomp" conftest.dir
13303   cd conftest.dir
13304   # We will build objects and dependencies in a subdirectory because
13305   # it helps to detect inapplicable dependency modes.  For instance
13306   # both Tru64's cc and ICC support -MD to output dependencies as a
13307   # side effect of compilation, but ICC will put the dependencies in
13308   # the current directory while Tru64 will put them in the object
13309   # directory.
13310   mkdir sub
13311
13312   am_cv_CC_dependencies_compiler_type=none
13313   if test "$am_compiler_list" = ""; then
13314      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13315   fi
13316   am__universal=false
13317   case " $depcc " in #(
13318      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13319      esac
13320
13321   for depmode in $am_compiler_list; do
13322     # Setup a source with many dependencies, because some compilers
13323     # like to wrap large dependency lists on column 80 (with \), and
13324     # we should not choose a depcomp mode which is confused by this.
13325     #
13326     # We need to recreate these files for each test, as the compiler may
13327     # overwrite some of them when testing with obscure command lines.
13328     # This happens at least with the AIX C compiler.
13329     : > sub/conftest.c
13330     for i in 1 2 3 4 5 6; do
13331       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13332       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13333       # Solaris 8's {/usr,}/bin/sh.
13334       touch sub/conftst$i.h
13335     done
13336     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13337
13338     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13339     # mode.  It turns out that the SunPro C++ compiler does not properly
13340     # handle `-M -o', and we need to detect this.  Also, some Intel
13341     # versions had trouble with output in subdirs
13342     am__obj=sub/conftest.${OBJEXT-o}
13343     am__minus_obj="-o $am__obj"
13344     case $depmode in
13345     gcc)
13346       # This depmode causes a compiler race in universal mode.
13347       test "$am__universal" = false || continue
13348       ;;
13349     nosideeffect)
13350       # after this tag, mechanisms are not by side-effect, so they'll
13351       # only be used when explicitly requested
13352       if test "x$enable_dependency_tracking" = xyes; then
13353         continue
13354       else
13355         break
13356       fi
13357       ;;
13358     msvisualcpp | msvcmsys)
13359       # This compiler won't grok `-c -o', but also, the minuso test has
13360       # not run yet.  These depmodes are late enough in the game, and
13361       # so weak that their functioning should not be impacted.
13362       am__obj=conftest.${OBJEXT-o}
13363       am__minus_obj=
13364       ;;
13365     none) break ;;
13366     esac
13367     if depmode=$depmode \
13368        source=sub/conftest.c object=$am__obj \
13369        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13370        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13371          >/dev/null 2>conftest.err &&
13372        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13373        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13374        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13375        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13376       # icc doesn't choke on unknown options, it will just issue warnings
13377       # or remarks (even with -Werror).  So we grep stderr for any message
13378       # that says an option was ignored or not supported.
13379       # When given -MP, icc 7.0 and 7.1 complain thusly:
13380       #   icc: Command line warning: ignoring option '-M'; no argument required
13381       # The diagnosis changed in icc 8.0:
13382       #   icc: Command line remark: option '-MP' not supported
13383       if (grep 'ignoring option' conftest.err ||
13384           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13385         am_cv_CC_dependencies_compiler_type=$depmode
13386         break
13387       fi
13388     fi
13389   done
13390
13391   cd ..
13392   rm -rf conftest.dir
13393 else
13394   am_cv_CC_dependencies_compiler_type=none
13395 fi
13396
13397 fi
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13399 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13400 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13401
13402  if
13403   test "x$enable_dependency_tracking" != xno \
13404   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13405   am__fastdepCC_TRUE=
13406   am__fastdepCC_FALSE='#'
13407 else
13408   am__fastdepCC_TRUE='#'
13409   am__fastdepCC_FALSE=
13410 fi
13411
13412
13413 ac_ext=cpp
13414 ac_cpp='$CXXCPP $CPPFLAGS'
13415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13418 if test -z "$CXX"; then
13419   if test -n "$CCC"; then
13420     CXX=$CCC
13421   else
13422     if test -n "$ac_tool_prefix"; then
13423   for ac_prog in g++ g++3 c++ CC
13424   do
13425     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13428 $as_echo_n "checking for $ac_word... " >&6; }
13429 if test "${ac_cv_prog_CXX+set}" = set; then :
13430   $as_echo_n "(cached) " >&6
13431 else
13432   if test -n "$CXX"; then
13433   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13434 else
13435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436 for as_dir in $PATH
13437 do
13438   IFS=$as_save_IFS
13439   test -z "$as_dir" && as_dir=.
13440     for ac_exec_ext in '' $ac_executable_extensions; do
13441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13442     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13444     break 2
13445   fi
13446 done
13447   done
13448 IFS=$as_save_IFS
13449
13450 fi
13451 fi
13452 CXX=$ac_cv_prog_CXX
13453 if test -n "$CXX"; then
13454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13455 $as_echo "$CXX" >&6; }
13456 else
13457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13458 $as_echo "no" >&6; }
13459 fi
13460
13461
13462     test -n "$CXX" && break
13463   done
13464 fi
13465 if test -z "$CXX"; then
13466   ac_ct_CXX=$CXX
13467   for ac_prog in g++ g++3 c++ CC
13468 do
13469   # Extract the first word of "$ac_prog", so it can be a program name with args.
13470 set dummy $ac_prog; ac_word=$2
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13472 $as_echo_n "checking for $ac_word... " >&6; }
13473 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13474   $as_echo_n "(cached) " >&6
13475 else
13476   if test -n "$ac_ct_CXX"; then
13477   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13478 else
13479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480 for as_dir in $PATH
13481 do
13482   IFS=$as_save_IFS
13483   test -z "$as_dir" && as_dir=.
13484     for ac_exec_ext in '' $ac_executable_extensions; do
13485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13486     ac_cv_prog_ac_ct_CXX="$ac_prog"
13487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13488     break 2
13489   fi
13490 done
13491   done
13492 IFS=$as_save_IFS
13493
13494 fi
13495 fi
13496 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13497 if test -n "$ac_ct_CXX"; then
13498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13499 $as_echo "$ac_ct_CXX" >&6; }
13500 else
13501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13502 $as_echo "no" >&6; }
13503 fi
13504
13505
13506   test -n "$ac_ct_CXX" && break
13507 done
13508
13509   if test "x$ac_ct_CXX" = x; then
13510     CXX="g++"
13511   else
13512     case $cross_compiling:$ac_tool_warned in
13513 yes:)
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13516 ac_tool_warned=yes ;;
13517 esac
13518     CXX=$ac_ct_CXX
13519   fi
13520 fi
13521
13522   fi
13523 fi
13524 # Provide some information about the compiler.
13525 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13526 set X $ac_compile
13527 ac_compiler=$2
13528 for ac_option in --version -v -V -qversion; do
13529   { { ac_try="$ac_compiler $ac_option >&5"
13530 case "(($ac_try" in
13531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532   *) ac_try_echo=$ac_try;;
13533 esac
13534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13535 $as_echo "$ac_try_echo"; } >&5
13536   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13537   ac_status=$?
13538   if test -s conftest.err; then
13539     sed '10a\
13540 ... rest of stderr output deleted ...
13541          10q' conftest.err >conftest.er1
13542     cat conftest.er1 >&5
13543   fi
13544   rm -f conftest.er1 conftest.err
13545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13546   test $ac_status = 0; }
13547 done
13548
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13550 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13551 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13552   $as_echo_n "(cached) " >&6
13553 else
13554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h.  */
13556
13557 int
13558 main ()
13559 {
13560 #ifndef __GNUC__
13561        choke me
13562 #endif
13563
13564   ;
13565   return 0;
13566 }
13567 _ACEOF
13568 if ac_fn_cxx_try_compile "$LINENO"; then :
13569   ac_compiler_gnu=yes
13570 else
13571   ac_compiler_gnu=no
13572 fi
13573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13574 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13575
13576 fi
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13578 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13579 if test $ac_compiler_gnu = yes; then
13580   GXX=yes
13581 else
13582   GXX=
13583 fi
13584 ac_test_CXXFLAGS=${CXXFLAGS+set}
13585 ac_save_CXXFLAGS=$CXXFLAGS
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13587 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13588 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13589   $as_echo_n "(cached) " >&6
13590 else
13591   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13592    ac_cxx_werror_flag=yes
13593    ac_cv_prog_cxx_g=no
13594    CXXFLAGS="-g"
13595    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h.  */
13597
13598 int
13599 main ()
13600 {
13601
13602   ;
13603   return 0;
13604 }
13605 _ACEOF
13606 if ac_fn_cxx_try_compile "$LINENO"; then :
13607   ac_cv_prog_cxx_g=yes
13608 else
13609   CXXFLAGS=""
13610       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h.  */
13612
13613 int
13614 main ()
13615 {
13616
13617   ;
13618   return 0;
13619 }
13620 _ACEOF
13621 if ac_fn_cxx_try_compile "$LINENO"; then :
13622
13623 else
13624   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13625          CXXFLAGS="-g"
13626          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h.  */
13628
13629 int
13630 main ()
13631 {
13632
13633   ;
13634   return 0;
13635 }
13636 _ACEOF
13637 if ac_fn_cxx_try_compile "$LINENO"; then :
13638   ac_cv_prog_cxx_g=yes
13639 fi
13640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13641 fi
13642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 fi
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13646 fi
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13648 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13649 if test "$ac_test_CXXFLAGS" = set; then
13650   CXXFLAGS=$ac_save_CXXFLAGS
13651 elif test $ac_cv_prog_cxx_g = yes; then
13652   if test "$GXX" = yes; then
13653     CXXFLAGS="-g -O2"
13654   else
13655     CXXFLAGS="-g"
13656   fi
13657 else
13658   if test "$GXX" = yes; then
13659     CXXFLAGS="-O2"
13660   else
13661     CXXFLAGS=
13662   fi
13663 fi
13664 ac_ext=c
13665 ac_cpp='$CPP $CPPFLAGS'
13666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13669
13670 depcc="$CXX"  am_compiler_list=
13671
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13673 $as_echo_n "checking dependency style of $depcc... " >&6; }
13674 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13675   $as_echo_n "(cached) " >&6
13676 else
13677   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13678   # We make a subdir and do the tests there.  Otherwise we can end up
13679   # making bogus files that we don't know about and never remove.  For
13680   # instance it was reported that on HP-UX the gcc test will end up
13681   # making a dummy file named `D' -- because `-MD' means `put the output
13682   # in D'.
13683   mkdir conftest.dir
13684   # Copy depcomp to subdir because otherwise we won't find it if we're
13685   # using a relative directory.
13686   cp "$am_depcomp" conftest.dir
13687   cd conftest.dir
13688   # We will build objects and dependencies in a subdirectory because
13689   # it helps to detect inapplicable dependency modes.  For instance
13690   # both Tru64's cc and ICC support -MD to output dependencies as a
13691   # side effect of compilation, but ICC will put the dependencies in
13692   # the current directory while Tru64 will put them in the object
13693   # directory.
13694   mkdir sub
13695
13696   am_cv_CXX_dependencies_compiler_type=none
13697   if test "$am_compiler_list" = ""; then
13698      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13699   fi
13700   am__universal=false
13701   case " $depcc " in #(
13702      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13703      esac
13704
13705   for depmode in $am_compiler_list; do
13706     # Setup a source with many dependencies, because some compilers
13707     # like to wrap large dependency lists on column 80 (with \), and
13708     # we should not choose a depcomp mode which is confused by this.
13709     #
13710     # We need to recreate these files for each test, as the compiler may
13711     # overwrite some of them when testing with obscure command lines.
13712     # This happens at least with the AIX C compiler.
13713     : > sub/conftest.c
13714     for i in 1 2 3 4 5 6; do
13715       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13716       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13717       # Solaris 8's {/usr,}/bin/sh.
13718       touch sub/conftst$i.h
13719     done
13720     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13721
13722     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13723     # mode.  It turns out that the SunPro C++ compiler does not properly
13724     # handle `-M -o', and we need to detect this.  Also, some Intel
13725     # versions had trouble with output in subdirs
13726     am__obj=sub/conftest.${OBJEXT-o}
13727     am__minus_obj="-o $am__obj"
13728     case $depmode in
13729     gcc)
13730       # This depmode causes a compiler race in universal mode.
13731       test "$am__universal" = false || continue
13732       ;;
13733     nosideeffect)
13734       # after this tag, mechanisms are not by side-effect, so they'll
13735       # only be used when explicitly requested
13736       if test "x$enable_dependency_tracking" = xyes; then
13737         continue
13738       else
13739         break
13740       fi
13741       ;;
13742     msvisualcpp | msvcmsys)
13743       # This compiler won't grok `-c -o', but also, the minuso test has
13744       # not run yet.  These depmodes are late enough in the game, and
13745       # so weak that their functioning should not be impacted.
13746       am__obj=conftest.${OBJEXT-o}
13747       am__minus_obj=
13748       ;;
13749     none) break ;;
13750     esac
13751     if depmode=$depmode \
13752        source=sub/conftest.c object=$am__obj \
13753        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13754        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13755          >/dev/null 2>conftest.err &&
13756        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13757        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13758        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13759        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13760       # icc doesn't choke on unknown options, it will just issue warnings
13761       # or remarks (even with -Werror).  So we grep stderr for any message
13762       # that says an option was ignored or not supported.
13763       # When given -MP, icc 7.0 and 7.1 complain thusly:
13764       #   icc: Command line warning: ignoring option '-M'; no argument required
13765       # The diagnosis changed in icc 8.0:
13766       #   icc: Command line remark: option '-MP' not supported
13767       if (grep 'ignoring option' conftest.err ||
13768           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13769         am_cv_CXX_dependencies_compiler_type=$depmode
13770         break
13771       fi
13772     fi
13773   done
13774
13775   cd ..
13776   rm -rf conftest.dir
13777 else
13778   am_cv_CXX_dependencies_compiler_type=none
13779 fi
13780
13781 fi
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13783 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13784 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13785
13786  if
13787   test "x$enable_dependency_tracking" != xno \
13788   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13789   am__fastdepCXX_TRUE=
13790   am__fastdepCXX_FALSE='#'
13791 else
13792   am__fastdepCXX_TRUE='#'
13793   am__fastdepCXX_FALSE=
13794 fi
13795
13796
13797
13798 ac_ext=cpp
13799 ac_cpp='$CXXCPP $CPPFLAGS'
13800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13803 if test -z "$CXX"; then
13804   if test -n "$CCC"; then
13805     CXX=$CCC
13806   else
13807     if test -n "$ac_tool_prefix"; then
13808   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13809   do
13810     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13813 $as_echo_n "checking for $ac_word... " >&6; }
13814 if test "${ac_cv_prog_CXX+set}" = set; then :
13815   $as_echo_n "(cached) " >&6
13816 else
13817   if test -n "$CXX"; then
13818   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13819 else
13820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13821 for as_dir in $PATH
13822 do
13823   IFS=$as_save_IFS
13824   test -z "$as_dir" && as_dir=.
13825     for ac_exec_ext in '' $ac_executable_extensions; do
13826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13827     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13829     break 2
13830   fi
13831 done
13832   done
13833 IFS=$as_save_IFS
13834
13835 fi
13836 fi
13837 CXX=$ac_cv_prog_CXX
13838 if test -n "$CXX"; then
13839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13840 $as_echo "$CXX" >&6; }
13841 else
13842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13844 fi
13845
13846
13847     test -n "$CXX" && break
13848   done
13849 fi
13850 if test -z "$CXX"; then
13851   ac_ct_CXX=$CXX
13852   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13853 do
13854   # Extract the first word of "$ac_prog", so it can be a program name with args.
13855 set dummy $ac_prog; ac_word=$2
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13857 $as_echo_n "checking for $ac_word... " >&6; }
13858 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13859   $as_echo_n "(cached) " >&6
13860 else
13861   if test -n "$ac_ct_CXX"; then
13862   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13863 else
13864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865 for as_dir in $PATH
13866 do
13867   IFS=$as_save_IFS
13868   test -z "$as_dir" && as_dir=.
13869     for ac_exec_ext in '' $ac_executable_extensions; do
13870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13871     ac_cv_prog_ac_ct_CXX="$ac_prog"
13872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13873     break 2
13874   fi
13875 done
13876   done
13877 IFS=$as_save_IFS
13878
13879 fi
13880 fi
13881 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13882 if test -n "$ac_ct_CXX"; then
13883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13884 $as_echo "$ac_ct_CXX" >&6; }
13885 else
13886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 $as_echo "no" >&6; }
13888 fi
13889
13890
13891   test -n "$ac_ct_CXX" && break
13892 done
13893
13894   if test "x$ac_ct_CXX" = x; then
13895     CXX="g++"
13896   else
13897     case $cross_compiling:$ac_tool_warned in
13898 yes:)
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13901 ac_tool_warned=yes ;;
13902 esac
13903     CXX=$ac_ct_CXX
13904   fi
13905 fi
13906
13907   fi
13908 fi
13909 # Provide some information about the compiler.
13910 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13911 set X $ac_compile
13912 ac_compiler=$2
13913 for ac_option in --version -v -V -qversion; do
13914   { { ac_try="$ac_compiler $ac_option >&5"
13915 case "(($ac_try" in
13916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917   *) ac_try_echo=$ac_try;;
13918 esac
13919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13920 $as_echo "$ac_try_echo"; } >&5
13921   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13922   ac_status=$?
13923   if test -s conftest.err; then
13924     sed '10a\
13925 ... rest of stderr output deleted ...
13926          10q' conftest.err >conftest.er1
13927     cat conftest.er1 >&5
13928   fi
13929   rm -f conftest.er1 conftest.err
13930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13931   test $ac_status = 0; }
13932 done
13933
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13935 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13936 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13937   $as_echo_n "(cached) " >&6
13938 else
13939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h.  */
13941
13942 int
13943 main ()
13944 {
13945 #ifndef __GNUC__
13946        choke me
13947 #endif
13948
13949   ;
13950   return 0;
13951 }
13952 _ACEOF
13953 if ac_fn_cxx_try_compile "$LINENO"; then :
13954   ac_compiler_gnu=yes
13955 else
13956   ac_compiler_gnu=no
13957 fi
13958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13959 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13960
13961 fi
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13963 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13964 if test $ac_compiler_gnu = yes; then
13965   GXX=yes
13966 else
13967   GXX=
13968 fi
13969 ac_test_CXXFLAGS=${CXXFLAGS+set}
13970 ac_save_CXXFLAGS=$CXXFLAGS
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13972 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13973 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13974   $as_echo_n "(cached) " >&6
13975 else
13976   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13977    ac_cxx_werror_flag=yes
13978    ac_cv_prog_cxx_g=no
13979    CXXFLAGS="-g"
13980    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981 /* end confdefs.h.  */
13982
13983 int
13984 main ()
13985 {
13986
13987   ;
13988   return 0;
13989 }
13990 _ACEOF
13991 if ac_fn_cxx_try_compile "$LINENO"; then :
13992   ac_cv_prog_cxx_g=yes
13993 else
13994   CXXFLAGS=""
13995       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h.  */
13997
13998 int
13999 main ()
14000 {
14001
14002   ;
14003   return 0;
14004 }
14005 _ACEOF
14006 if ac_fn_cxx_try_compile "$LINENO"; then :
14007
14008 else
14009   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14010          CXXFLAGS="-g"
14011          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h.  */
14013
14014 int
14015 main ()
14016 {
14017
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 if ac_fn_cxx_try_compile "$LINENO"; then :
14023   ac_cv_prog_cxx_g=yes
14024 fi
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 fi
14027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028 fi
14029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14031 fi
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14033 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14034 if test "$ac_test_CXXFLAGS" = set; then
14035   CXXFLAGS=$ac_save_CXXFLAGS
14036 elif test $ac_cv_prog_cxx_g = yes; then
14037   if test "$GXX" = yes; then
14038     CXXFLAGS="-g -O2"
14039   else
14040     CXXFLAGS="-g"
14041   fi
14042 else
14043   if test "$GXX" = yes; then
14044     CXXFLAGS="-O2"
14045   else
14046     CXXFLAGS=
14047   fi
14048 fi
14049 ac_ext=c
14050 ac_cpp='$CPP $CPPFLAGS'
14051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14054
14055 depcc="$CXX"  am_compiler_list=
14056
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14058 $as_echo_n "checking dependency style of $depcc... " >&6; }
14059 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
14060   $as_echo_n "(cached) " >&6
14061 else
14062   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14063   # We make a subdir and do the tests there.  Otherwise we can end up
14064   # making bogus files that we don't know about and never remove.  For
14065   # instance it was reported that on HP-UX the gcc test will end up
14066   # making a dummy file named `D' -- because `-MD' means `put the output
14067   # in D'.
14068   mkdir conftest.dir
14069   # Copy depcomp to subdir because otherwise we won't find it if we're
14070   # using a relative directory.
14071   cp "$am_depcomp" conftest.dir
14072   cd conftest.dir
14073   # We will build objects and dependencies in a subdirectory because
14074   # it helps to detect inapplicable dependency modes.  For instance
14075   # both Tru64's cc and ICC support -MD to output dependencies as a
14076   # side effect of compilation, but ICC will put the dependencies in
14077   # the current directory while Tru64 will put them in the object
14078   # directory.
14079   mkdir sub
14080
14081   am_cv_CXX_dependencies_compiler_type=none
14082   if test "$am_compiler_list" = ""; then
14083      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14084   fi
14085   am__universal=false
14086   case " $depcc " in #(
14087      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14088      esac
14089
14090   for depmode in $am_compiler_list; do
14091     # Setup a source with many dependencies, because some compilers
14092     # like to wrap large dependency lists on column 80 (with \), and
14093     # we should not choose a depcomp mode which is confused by this.
14094     #
14095     # We need to recreate these files for each test, as the compiler may
14096     # overwrite some of them when testing with obscure command lines.
14097     # This happens at least with the AIX C compiler.
14098     : > sub/conftest.c
14099     for i in 1 2 3 4 5 6; do
14100       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14101       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14102       # Solaris 8's {/usr,}/bin/sh.
14103       touch sub/conftst$i.h
14104     done
14105     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14106
14107     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14108     # mode.  It turns out that the SunPro C++ compiler does not properly
14109     # handle `-M -o', and we need to detect this.  Also, some Intel
14110     # versions had trouble with output in subdirs
14111     am__obj=sub/conftest.${OBJEXT-o}
14112     am__minus_obj="-o $am__obj"
14113     case $depmode in
14114     gcc)
14115       # This depmode causes a compiler race in universal mode.
14116       test "$am__universal" = false || continue
14117       ;;
14118     nosideeffect)
14119       # after this tag, mechanisms are not by side-effect, so they'll
14120       # only be used when explicitly requested
14121       if test "x$enable_dependency_tracking" = xyes; then
14122         continue
14123       else
14124         break
14125       fi
14126       ;;
14127     msvisualcpp | msvcmsys)
14128       # This compiler won't grok `-c -o', but also, the minuso test has
14129       # not run yet.  These depmodes are late enough in the game, and
14130       # so weak that their functioning should not be impacted.
14131       am__obj=conftest.${OBJEXT-o}
14132       am__minus_obj=
14133       ;;
14134     none) break ;;
14135     esac
14136     if depmode=$depmode \
14137        source=sub/conftest.c object=$am__obj \
14138        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14139        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14140          >/dev/null 2>conftest.err &&
14141        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14142        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14143        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14144        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14145       # icc doesn't choke on unknown options, it will just issue warnings
14146       # or remarks (even with -Werror).  So we grep stderr for any message
14147       # that says an option was ignored or not supported.
14148       # When given -MP, icc 7.0 and 7.1 complain thusly:
14149       #   icc: Command line warning: ignoring option '-M'; no argument required
14150       # The diagnosis changed in icc 8.0:
14151       #   icc: Command line remark: option '-MP' not supported
14152       if (grep 'ignoring option' conftest.err ||
14153           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14154         am_cv_CXX_dependencies_compiler_type=$depmode
14155         break
14156       fi
14157     fi
14158   done
14159
14160   cd ..
14161   rm -rf conftest.dir
14162 else
14163   am_cv_CXX_dependencies_compiler_type=none
14164 fi
14165
14166 fi
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14168 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14169 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14170
14171  if
14172   test "x$enable_dependency_tracking" != xno \
14173   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14174   am__fastdepCXX_TRUE=
14175   am__fastdepCXX_FALSE='#'
14176 else
14177   am__fastdepCXX_TRUE='#'
14178   am__fastdepCXX_FALSE=
14179 fi
14180
14181
14182 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14183     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14184     (test "X$CXX" != "Xg++"))) ; then
14185   ac_ext=cpp
14186 ac_cpp='$CXXCPP $CPPFLAGS'
14187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14191 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14192 if test -z "$CXXCPP"; then
14193   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
14194   $as_echo_n "(cached) " >&6
14195 else
14196       # Double quotes because CXXCPP needs to be expanded
14197     for CXXCPP in "$CXX -E" "/lib/cpp"
14198     do
14199       ac_preproc_ok=false
14200 for ac_cxx_preproc_warn_flag in '' yes
14201 do
14202   # Use a header file that comes with gcc, so configuring glibc
14203   # with a fresh cross-compiler works.
14204   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14205   # <limits.h> exists even on freestanding compilers.
14206   # On the NeXT, cc -E runs the code through the compiler's parser,
14207   # not just through cpp. "Syntax error" is here to catch this case.
14208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h.  */
14210 #ifdef __STDC__
14211 # include <limits.h>
14212 #else
14213 # include <assert.h>
14214 #endif
14215                      Syntax error
14216 _ACEOF
14217 if ac_fn_cxx_try_cpp "$LINENO"; then :
14218
14219 else
14220   # Broken: fails on valid input.
14221 continue
14222 fi
14223 rm -f conftest.err conftest.i conftest.$ac_ext
14224
14225   # OK, works on sane cases.  Now check whether nonexistent headers
14226   # can be detected and how.
14227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h.  */
14229 #include <ac_nonexistent.h>
14230 _ACEOF
14231 if ac_fn_cxx_try_cpp "$LINENO"; then :
14232   # Broken: success on invalid input.
14233 continue
14234 else
14235   # Passes both tests.
14236 ac_preproc_ok=:
14237 break
14238 fi
14239 rm -f conftest.err conftest.i conftest.$ac_ext
14240
14241 done
14242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14243 rm -f conftest.i conftest.err conftest.$ac_ext
14244 if $ac_preproc_ok; then :
14245   break
14246 fi
14247
14248     done
14249     ac_cv_prog_CXXCPP=$CXXCPP
14250
14251 fi
14252   CXXCPP=$ac_cv_prog_CXXCPP
14253 else
14254   ac_cv_prog_CXXCPP=$CXXCPP
14255 fi
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14257 $as_echo "$CXXCPP" >&6; }
14258 ac_preproc_ok=false
14259 for ac_cxx_preproc_warn_flag in '' yes
14260 do
14261   # Use a header file that comes with gcc, so configuring glibc
14262   # with a fresh cross-compiler works.
14263   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14264   # <limits.h> exists even on freestanding compilers.
14265   # On the NeXT, cc -E runs the code through the compiler's parser,
14266   # not just through cpp. "Syntax error" is here to catch this case.
14267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h.  */
14269 #ifdef __STDC__
14270 # include <limits.h>
14271 #else
14272 # include <assert.h>
14273 #endif
14274                      Syntax error
14275 _ACEOF
14276 if ac_fn_cxx_try_cpp "$LINENO"; then :
14277
14278 else
14279   # Broken: fails on valid input.
14280 continue
14281 fi
14282 rm -f conftest.err conftest.i conftest.$ac_ext
14283
14284   # OK, works on sane cases.  Now check whether nonexistent headers
14285   # can be detected and how.
14286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h.  */
14288 #include <ac_nonexistent.h>
14289 _ACEOF
14290 if ac_fn_cxx_try_cpp "$LINENO"; then :
14291   # Broken: success on invalid input.
14292 continue
14293 else
14294   # Passes both tests.
14295 ac_preproc_ok=:
14296 break
14297 fi
14298 rm -f conftest.err conftest.i conftest.$ac_ext
14299
14300 done
14301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14302 rm -f conftest.i conftest.err conftest.$ac_ext
14303 if $ac_preproc_ok; then :
14304
14305 else
14306   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14308 _lt_caught_CXX_error=yes; }
14309 fi
14310
14311 ac_ext=c
14312 ac_cpp='$CPP $CPPFLAGS'
14313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14316
14317 else
14318   _lt_caught_CXX_error=yes
14319 fi
14320
14321
14322
14323
14324 ac_ext=cpp
14325 ac_cpp='$CXXCPP $CPPFLAGS'
14326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14329
14330 archive_cmds_need_lc_CXX=no
14331 allow_undefined_flag_CXX=
14332 always_export_symbols_CXX=no
14333 archive_expsym_cmds_CXX=
14334 compiler_needs_object_CXX=no
14335 export_dynamic_flag_spec_CXX=
14336 hardcode_direct_CXX=no
14337 hardcode_direct_absolute_CXX=no
14338 hardcode_libdir_flag_spec_CXX=
14339 hardcode_libdir_flag_spec_ld_CXX=
14340 hardcode_libdir_separator_CXX=
14341 hardcode_minus_L_CXX=no
14342 hardcode_shlibpath_var_CXX=unsupported
14343 hardcode_automatic_CXX=no
14344 inherit_rpath_CXX=no
14345 module_cmds_CXX=
14346 module_expsym_cmds_CXX=
14347 link_all_deplibs_CXX=unknown
14348 old_archive_cmds_CXX=$old_archive_cmds
14349 no_undefined_flag_CXX=
14350 whole_archive_flag_spec_CXX=
14351 enable_shared_with_static_runtimes_CXX=no
14352
14353 # Source file extension for C++ test sources.
14354 ac_ext=cpp
14355
14356 # Object file extension for compiled C++ test sources.
14357 objext=o
14358 objext_CXX=$objext
14359
14360 # No sense in running all these tests if we already determined that
14361 # the CXX compiler isn't working.  Some variables (like enable_shared)
14362 # are currently assumed to apply to all compilers on this platform,
14363 # and will be corrupted by setting them based on a non-working compiler.
14364 if test "$_lt_caught_CXX_error" != yes; then
14365   # Code to be used in simple compile tests
14366   lt_simple_compile_test_code="int some_variable = 0;"
14367
14368   # Code to be used in simple link tests
14369   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14370
14371   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14372
14373
14374
14375
14376
14377
14378 # If no C compiler was specified, use CC.
14379 LTCC=${LTCC-"$CC"}
14380
14381 # If no C compiler flags were specified, use CFLAGS.
14382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14383
14384 # Allow CC to be a program name with arguments.
14385 compiler=$CC
14386
14387
14388   # save warnings/boilerplate of simple test code
14389   ac_outfile=conftest.$ac_objext
14390 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14392 _lt_compiler_boilerplate=`cat conftest.err`
14393 $RM conftest*
14394
14395   ac_outfile=conftest.$ac_objext
14396 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14398 _lt_linker_boilerplate=`cat conftest.err`
14399 $RM -r conftest*
14400
14401
14402   # Allow CC to be a program name with arguments.
14403   lt_save_CC=$CC
14404   lt_save_LD=$LD
14405   lt_save_GCC=$GCC
14406   GCC=$GXX
14407   lt_save_with_gnu_ld=$with_gnu_ld
14408   lt_save_path_LD=$lt_cv_path_LD
14409   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14410     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14411   else
14412     $as_unset lt_cv_prog_gnu_ld
14413   fi
14414   if test -n "${lt_cv_path_LDCXX+set}"; then
14415     lt_cv_path_LD=$lt_cv_path_LDCXX
14416   else
14417     $as_unset lt_cv_path_LD
14418   fi
14419   test -z "${LDCXX+set}" || LD=$LDCXX
14420   CC=${CXX-"c++"}
14421   compiler=$CC
14422   compiler_CXX=$CC
14423   for cc_temp in $compiler""; do
14424   case $cc_temp in
14425     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14426     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14427     \-*) ;;
14428     *) break;;
14429   esac
14430 done
14431 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14432
14433
14434   if test -n "$compiler"; then
14435     # We don't want -fno-exception when compiling C++ code, so set the
14436     # no_builtin_flag separately
14437     if test "$GXX" = yes; then
14438       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14439     else
14440       lt_prog_compiler_no_builtin_flag_CXX=
14441     fi
14442
14443     if test "$GXX" = yes; then
14444       # Set up default GNU C++ configuration
14445
14446
14447
14448 # Check whether --with-gnu-ld was given.
14449 if test "${with_gnu_ld+set}" = set; then :
14450   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14451 else
14452   with_gnu_ld=no
14453 fi
14454
14455 ac_prog=ld
14456 if test "$GCC" = yes; then
14457   # Check if gcc -print-prog-name=ld gives a path.
14458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14459 $as_echo_n "checking for ld used by $CC... " >&6; }
14460   case $host in
14461   *-*-mingw*)
14462     # gcc leaves a trailing carriage return which upsets mingw
14463     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14464   *)
14465     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14466   esac
14467   case $ac_prog in
14468     # Accept absolute paths.
14469     [\\/]* | ?:[\\/]*)
14470       re_direlt='/[^/][^/]*/\.\./'
14471       # Canonicalize the pathname of ld
14472       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14473       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14474         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14475       done
14476       test -z "$LD" && LD="$ac_prog"
14477       ;;
14478   "")
14479     # If it fails, then pretend we aren't using GCC.
14480     ac_prog=ld
14481     ;;
14482   *)
14483     # If it is relative, then search for the first ld in PATH.
14484     with_gnu_ld=unknown
14485     ;;
14486   esac
14487 elif test "$with_gnu_ld" = yes; then
14488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14489 $as_echo_n "checking for GNU ld... " >&6; }
14490 else
14491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14492 $as_echo_n "checking for non-GNU ld... " >&6; }
14493 fi
14494 if test "${lt_cv_path_LD+set}" = set; then :
14495   $as_echo_n "(cached) " >&6
14496 else
14497   if test -z "$LD"; then
14498   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14499   for ac_dir in $PATH; do
14500     IFS="$lt_save_ifs"
14501     test -z "$ac_dir" && ac_dir=.
14502     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14503       lt_cv_path_LD="$ac_dir/$ac_prog"
14504       # Check to see if the program is GNU ld.  I'd rather use --version,
14505       # but apparently some variants of GNU ld only accept -v.
14506       # Break only if it was the GNU/non-GNU ld that we prefer.
14507       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14508       *GNU* | *'with BFD'*)
14509         test "$with_gnu_ld" != no && break
14510         ;;
14511       *)
14512         test "$with_gnu_ld" != yes && break
14513         ;;
14514       esac
14515     fi
14516   done
14517   IFS="$lt_save_ifs"
14518 else
14519   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14520 fi
14521 fi
14522
14523 LD="$lt_cv_path_LD"
14524 if test -n "$LD"; then
14525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14526 $as_echo "$LD" >&6; }
14527 else
14528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14529 $as_echo "no" >&6; }
14530 fi
14531 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14533 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14534 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14535   $as_echo_n "(cached) " >&6
14536 else
14537   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14538 case `$LD -v 2>&1 </dev/null` in
14539 *GNU* | *'with BFD'*)
14540   lt_cv_prog_gnu_ld=yes
14541   ;;
14542 *)
14543   lt_cv_prog_gnu_ld=no
14544   ;;
14545 esac
14546 fi
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14548 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14549 with_gnu_ld=$lt_cv_prog_gnu_ld
14550
14551
14552
14553
14554
14555
14556
14557       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14558       # archiving commands below assume that GNU ld is being used.
14559       if test "$with_gnu_ld" = yes; then
14560         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14561         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'
14562
14563         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14564         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14565
14566         # If archive_cmds runs LD, not CC, wlarc should be empty
14567         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14568         #     investigate it a little bit more. (MM)
14569         wlarc='${wl}'
14570
14571         # ancient GNU ld didn't support --whole-archive et. al.
14572         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14573           $GREP 'no-whole-archive' > /dev/null; then
14574           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14575         else
14576           whole_archive_flag_spec_CXX=
14577         fi
14578       else
14579         with_gnu_ld=no
14580         wlarc=
14581
14582         # A generic and very simple default shared library creation
14583         # command for GNU C++ for the case where it uses the native
14584         # linker, instead of GNU ld.  If possible, this setting should
14585         # overridden to take advantage of the native linker features on
14586         # the platform it is being used on.
14587         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14588       fi
14589
14590       # Commands to make compiler produce verbose output that lists
14591       # what "hidden" libraries, object files and flags are used when
14592       # linking a shared library.
14593       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14594
14595     else
14596       GXX=no
14597       with_gnu_ld=no
14598       wlarc=
14599     fi
14600
14601     # PORTME: fill in a description of your system's C++ link characteristics
14602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14603 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14604     ld_shlibs_CXX=yes
14605     case $host_os in
14606       aix3*)
14607         # FIXME: insert proper C++ library support
14608         ld_shlibs_CXX=no
14609         ;;
14610       aix[4-9]*)
14611         if test "$host_cpu" = ia64; then
14612           # On IA64, the linker does run time linking by default, so we don't
14613           # have to do anything special.
14614           aix_use_runtimelinking=no
14615           exp_sym_flag='-Bexport'
14616           no_entry_flag=""
14617         else
14618           aix_use_runtimelinking=no
14619
14620           # Test if we are trying to use run time linking or normal
14621           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14622           # need to do runtime linking.
14623           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14624             for ld_flag in $LDFLAGS; do
14625               case $ld_flag in
14626               *-brtl*)
14627                 aix_use_runtimelinking=yes
14628                 break
14629                 ;;
14630               esac
14631             done
14632             ;;
14633           esac
14634
14635           exp_sym_flag='-bexport'
14636           no_entry_flag='-bnoentry'
14637         fi
14638
14639         # When large executables or shared objects are built, AIX ld can
14640         # have problems creating the table of contents.  If linking a library
14641         # or program results in "error TOC overflow" add -mminimal-toc to
14642         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14643         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14644
14645         archive_cmds_CXX=''
14646         hardcode_direct_CXX=yes
14647         hardcode_direct_absolute_CXX=yes
14648         hardcode_libdir_separator_CXX=':'
14649         link_all_deplibs_CXX=yes
14650         file_list_spec_CXX='${wl}-f,'
14651
14652         if test "$GXX" = yes; then
14653           case $host_os in aix4.[012]|aix4.[012].*)
14654           # We only want to do this on AIX 4.2 and lower, the check
14655           # below for broken collect2 doesn't work under 4.3+
14656           collect2name=`${CC} -print-prog-name=collect2`
14657           if test -f "$collect2name" &&
14658              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14659           then
14660             # We have reworked collect2
14661             :
14662           else
14663             # We have old collect2
14664             hardcode_direct_CXX=unsupported
14665             # It fails to find uninstalled libraries when the uninstalled
14666             # path is not listed in the libpath.  Setting hardcode_minus_L
14667             # to unsupported forces relinking
14668             hardcode_minus_L_CXX=yes
14669             hardcode_libdir_flag_spec_CXX='-L$libdir'
14670             hardcode_libdir_separator_CXX=
14671           fi
14672           esac
14673           shared_flag='-shared'
14674           if test "$aix_use_runtimelinking" = yes; then
14675             shared_flag="$shared_flag "'${wl}-G'
14676           fi
14677         else
14678           # not using gcc
14679           if test "$host_cpu" = ia64; then
14680           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14681           # chokes on -Wl,-G. The following line is correct:
14682           shared_flag='-G'
14683           else
14684             if test "$aix_use_runtimelinking" = yes; then
14685               shared_flag='${wl}-G'
14686             else
14687               shared_flag='${wl}-bM:SRE'
14688             fi
14689           fi
14690         fi
14691
14692         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14693         # It seems that -bexpall does not export symbols beginning with
14694         # underscore (_), so it is better to generate a list of symbols to
14695         # export.
14696         always_export_symbols_CXX=yes
14697         if test "$aix_use_runtimelinking" = yes; then
14698           # Warning - without using the other runtime loading flags (-brtl),
14699           # -berok will link without error, but may produce a broken library.
14700           allow_undefined_flag_CXX='-berok'
14701           # Determine the default libpath from the value encoded in an empty
14702           # executable.
14703           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h.  */
14705
14706 int
14707 main ()
14708 {
14709
14710   ;
14711   return 0;
14712 }
14713 _ACEOF
14714 if ac_fn_cxx_try_link "$LINENO"; then :
14715
14716 lt_aix_libpath_sed='
14717     /Import File Strings/,/^$/ {
14718         /^0/ {
14719             s/^0  *\(.*\)$/\1/
14720             p
14721         }
14722     }'
14723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14724 # Check for a 64-bit object if we didn't find anything.
14725 if test -z "$aix_libpath"; then
14726   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14727 fi
14728 fi
14729 rm -f core conftest.err conftest.$ac_objext \
14730     conftest$ac_exeext conftest.$ac_ext
14731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14732
14733           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14734
14735           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"
14736         else
14737           if test "$host_cpu" = ia64; then
14738             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14739             allow_undefined_flag_CXX="-z nodefs"
14740             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"
14741           else
14742             # Determine the default libpath from the value encoded in an
14743             # empty executable.
14744             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14745 /* end confdefs.h.  */
14746
14747 int
14748 main ()
14749 {
14750
14751   ;
14752   return 0;
14753 }
14754 _ACEOF
14755 if ac_fn_cxx_try_link "$LINENO"; then :
14756
14757 lt_aix_libpath_sed='
14758     /Import File Strings/,/^$/ {
14759         /^0/ {
14760             s/^0  *\(.*\)$/\1/
14761             p
14762         }
14763     }'
14764 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14765 # Check for a 64-bit object if we didn't find anything.
14766 if test -z "$aix_libpath"; then
14767   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14768 fi
14769 fi
14770 rm -f core conftest.err conftest.$ac_objext \
14771     conftest$ac_exeext conftest.$ac_ext
14772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14773
14774             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14775             # Warning - without using the other run time loading flags,
14776             # -berok will link without error, but may produce a broken library.
14777             no_undefined_flag_CXX=' ${wl}-bernotok'
14778             allow_undefined_flag_CXX=' ${wl}-berok'
14779             # Exported symbols can be pulled into shared objects from archives
14780             whole_archive_flag_spec_CXX='$convenience'
14781             archive_cmds_need_lc_CXX=yes
14782             # This is similar to how AIX traditionally builds its shared
14783             # libraries.
14784             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'
14785           fi
14786         fi
14787         ;;
14788
14789       beos*)
14790         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14791           allow_undefined_flag_CXX=unsupported
14792           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14793           # support --undefined.  This deserves some investigation.  FIXME
14794           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14795         else
14796           ld_shlibs_CXX=no
14797         fi
14798         ;;
14799
14800       chorus*)
14801         case $cc_basename in
14802           *)
14803           # FIXME: insert proper C++ library support
14804           ld_shlibs_CXX=no
14805           ;;
14806         esac
14807         ;;
14808
14809       cygwin* | mingw* | pw32* | cegcc*)
14810         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14811         # as there is no search path for DLLs.
14812         hardcode_libdir_flag_spec_CXX='-L$libdir'
14813         allow_undefined_flag_CXX=unsupported
14814         always_export_symbols_CXX=no
14815         enable_shared_with_static_runtimes_CXX=yes
14816
14817         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14818           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'
14819           # If the export-symbols file already is a .def file (1st line
14820           # is EXPORTS), use it as is; otherwise, prepend...
14821           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14822             cp $export_symbols $output_objdir/$soname.def;
14823           else
14824             echo EXPORTS > $output_objdir/$soname.def;
14825             cat $export_symbols >> $output_objdir/$soname.def;
14826           fi~
14827           $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'
14828         else
14829           ld_shlibs_CXX=no
14830         fi
14831         ;;
14832       darwin* | rhapsody*)
14833
14834
14835   archive_cmds_need_lc_CXX=no
14836   hardcode_direct_CXX=no
14837   hardcode_automatic_CXX=yes
14838   hardcode_shlibpath_var_CXX=unsupported
14839   whole_archive_flag_spec_CXX=''
14840   link_all_deplibs_CXX=yes
14841   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14842   case $cc_basename in
14843      ifort*) _lt_dar_can_shared=yes ;;
14844      *) _lt_dar_can_shared=$GCC ;;
14845   esac
14846   if test "$_lt_dar_can_shared" = "yes"; then
14847     output_verbose_link_cmd=echo
14848     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}"
14849     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14850     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}"
14851     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}"
14852        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14853       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}"
14854       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}"
14855     fi
14856
14857   else
14858   ld_shlibs_CXX=no
14859   fi
14860
14861         ;;
14862
14863       dgux*)
14864         case $cc_basename in
14865           ec++*)
14866             # FIXME: insert proper C++ library support
14867             ld_shlibs_CXX=no
14868             ;;
14869           ghcx*)
14870             # Green Hills C++ Compiler
14871             # FIXME: insert proper C++ library support
14872             ld_shlibs_CXX=no
14873             ;;
14874           *)
14875             # FIXME: insert proper C++ library support
14876             ld_shlibs_CXX=no
14877             ;;
14878         esac
14879         ;;
14880
14881       freebsd[12]*)
14882         # C++ shared libraries reported to be fairly broken before
14883         # switch to ELF
14884         ld_shlibs_CXX=no
14885         ;;
14886
14887       freebsd-elf*)
14888         archive_cmds_need_lc_CXX=no
14889         ;;
14890
14891       freebsd* | dragonfly*)
14892         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14893         # conventions
14894         ld_shlibs_CXX=yes
14895         ;;
14896
14897       gnu*)
14898         ;;
14899
14900       hpux9*)
14901         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14902         hardcode_libdir_separator_CXX=:
14903         export_dynamic_flag_spec_CXX='${wl}-E'
14904         hardcode_direct_CXX=yes
14905         hardcode_minus_L_CXX=yes # Not in the search PATH,
14906                                              # but as the default
14907                                              # location of the library.
14908
14909         case $cc_basename in
14910           CC*)
14911             # FIXME: insert proper C++ library support
14912             ld_shlibs_CXX=no
14913             ;;
14914           aCC*)
14915             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'
14916             # Commands to make compiler produce verbose output that lists
14917             # what "hidden" libraries, object files and flags are used when
14918             # linking a shared library.
14919             #
14920             # There doesn't appear to be a way to prevent this compiler from
14921             # explicitly linking system object files so we need to strip them
14922             # from the output so that they don't get included in the library
14923             # dependencies.
14924             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'
14925             ;;
14926           *)
14927             if test "$GXX" = yes; then
14928               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'
14929             else
14930               # FIXME: insert proper C++ library support
14931               ld_shlibs_CXX=no
14932             fi
14933             ;;
14934         esac
14935         ;;
14936
14937       hpux10*|hpux11*)
14938         if test $with_gnu_ld = no; then
14939           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14940           hardcode_libdir_separator_CXX=:
14941
14942           case $host_cpu in
14943             hppa*64*|ia64*)
14944               ;;
14945             *)
14946               export_dynamic_flag_spec_CXX='${wl}-E'
14947               ;;
14948           esac
14949         fi
14950         case $host_cpu in
14951           hppa*64*|ia64*)
14952             hardcode_direct_CXX=no
14953             hardcode_shlibpath_var_CXX=no
14954             ;;
14955           *)
14956             hardcode_direct_CXX=yes
14957             hardcode_direct_absolute_CXX=yes
14958             hardcode_minus_L_CXX=yes # Not in the search PATH,
14959                                                  # but as the default
14960                                                  # location of the library.
14961             ;;
14962         esac
14963
14964         case $cc_basename in
14965           CC*)
14966             # FIXME: insert proper C++ library support
14967             ld_shlibs_CXX=no
14968             ;;
14969           aCC*)
14970             case $host_cpu in
14971               hppa*64*)
14972                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14973                 ;;
14974               ia64*)
14975                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14976                 ;;
14977               *)
14978                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14979                 ;;
14980             esac
14981             # Commands to make compiler produce verbose output that lists
14982             # what "hidden" libraries, object files and flags are used when
14983             # linking a shared library.
14984             #
14985             # There doesn't appear to be a way to prevent this compiler from
14986             # explicitly linking system object files so we need to strip them
14987             # from the output so that they don't get included in the library
14988             # dependencies.
14989             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'
14990             ;;
14991           *)
14992             if test "$GXX" = yes; then
14993               if test $with_gnu_ld = no; then
14994                 case $host_cpu in
14995                   hppa*64*)
14996                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14997                     ;;
14998                   ia64*)
14999                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15000                     ;;
15001                   *)
15002                     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'
15003                     ;;
15004                 esac
15005               fi
15006             else
15007               # FIXME: insert proper C++ library support
15008               ld_shlibs_CXX=no
15009             fi
15010             ;;
15011         esac
15012         ;;
15013
15014       interix[3-9]*)
15015         hardcode_direct_CXX=no
15016         hardcode_shlibpath_var_CXX=no
15017         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15018         export_dynamic_flag_spec_CXX='${wl}-E'
15019         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15020         # Instead, shared libraries are loaded at an image base (0x10000000 by
15021         # default) and relocated if they conflict, which is a slow very memory
15022         # consuming and fragmenting process.  To avoid this, we pick a random,
15023         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15024         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15025         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'
15026         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'
15027         ;;
15028       irix5* | irix6*)
15029         case $cc_basename in
15030           CC*)
15031             # SGI C++
15032             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'
15033
15034             # Archives containing C++ object files must be created using
15035             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15036             # necessary to make sure instantiated templates are included
15037             # in the archive.
15038             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15039             ;;
15040           *)
15041             if test "$GXX" = yes; then
15042               if test "$with_gnu_ld" = no; then
15043                 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'
15044               else
15045                 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'
15046               fi
15047             fi
15048             link_all_deplibs_CXX=yes
15049             ;;
15050         esac
15051         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15052         hardcode_libdir_separator_CXX=:
15053         inherit_rpath_CXX=yes
15054         ;;
15055
15056       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15057         case $cc_basename in
15058           KCC*)
15059             # Kuck and Associates, Inc. (KAI) C++ Compiler
15060
15061             # KCC will only create a shared library if the output file
15062             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15063             # to its proper name (with version) after linking.
15064             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'
15065             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'
15066             # Commands to make compiler produce verbose output that lists
15067             # what "hidden" libraries, object files and flags are used when
15068             # linking a shared library.
15069             #
15070             # There doesn't appear to be a way to prevent this compiler from
15071             # explicitly linking system object files so we need to strip them
15072             # from the output so that they don't get included in the library
15073             # dependencies.
15074             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'
15075
15076             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15077             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15078
15079             # Archives containing C++ object files must be created using
15080             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15081             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15082             ;;
15083           icpc* | ecpc* )
15084             # Intel C++
15085             with_gnu_ld=yes
15086             # version 8.0 and above of icpc choke on multiply defined symbols
15087             # if we add $predep_objects and $postdep_objects, however 7.1 and
15088             # earlier do not add the objects themselves.
15089             case `$CC -V 2>&1` in
15090               *"Version 7."*)
15091                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092                 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'
15093                 ;;
15094               *)  # Version 8.0 or newer
15095                 tmp_idyn=
15096                 case $host_cpu in
15097                   ia64*) tmp_idyn=' -i_dynamic';;
15098                 esac
15099                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15100                 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'
15101                 ;;
15102             esac
15103             archive_cmds_need_lc_CXX=no
15104             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15105             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15106             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15107             ;;
15108           pgCC* | pgcpp*)
15109             # Portland Group C++ compiler
15110             case `$CC -V` in
15111             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15112               prelink_cmds_CXX='tpldir=Template.dir~
15113                 rm -rf $tpldir~
15114                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15115                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15116               old_archive_cmds_CXX='tpldir=Template.dir~
15117                 rm -rf $tpldir~
15118                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15119                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15120                 $RANLIB $oldlib'
15121               archive_cmds_CXX='tpldir=Template.dir~
15122                 rm -rf $tpldir~
15123                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15124                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15125               archive_expsym_cmds_CXX='tpldir=Template.dir~
15126                 rm -rf $tpldir~
15127                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15128                 $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'
15129               ;;
15130             *) # Version 6 will use weak symbols
15131               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15132               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'
15133               ;;
15134             esac
15135
15136             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15137             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15138             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'
15139             ;;
15140           cxx*)
15141             # Compaq C++
15142             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15143             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'
15144
15145             runpath_var=LD_RUN_PATH
15146             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15147             hardcode_libdir_separator_CXX=:
15148
15149             # Commands to make compiler produce verbose output that lists
15150             # what "hidden" libraries, object files and flags are used when
15151             # linking a shared library.
15152             #
15153             # There doesn't appear to be a way to prevent this compiler from
15154             # explicitly linking system object files so we need to strip them
15155             # from the output so that they don't get included in the library
15156             # dependencies.
15157             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'
15158             ;;
15159           xl*)
15160             # IBM XL 8.0 on PPC, with GNU ld
15161             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15162             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15163             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15164             if test "x$supports_anon_versioning" = xyes; then
15165               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15166                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15167                 echo "local: *; };" >> $output_objdir/$libname.ver~
15168                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15169             fi
15170             ;;
15171           *)
15172             case `$CC -V 2>&1 | sed 5q` in
15173             *Sun\ C*)
15174               # Sun C++ 5.9
15175               no_undefined_flag_CXX=' -zdefs'
15176               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15177               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'
15178               hardcode_libdir_flag_spec_CXX='-R$libdir'
15179               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'
15180               compiler_needs_object_CXX=yes
15181
15182               # Not sure whether something based on
15183               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15184               # would be better.
15185               output_verbose_link_cmd='echo'
15186
15187               # Archives containing C++ object files must be created using
15188               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15189               # necessary to make sure instantiated templates are included
15190               # in the archive.
15191               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15192               ;;
15193             esac
15194             ;;
15195         esac
15196         ;;
15197
15198       lynxos*)
15199         # FIXME: insert proper C++ library support
15200         ld_shlibs_CXX=no
15201         ;;
15202
15203       m88k*)
15204         # FIXME: insert proper C++ library support
15205         ld_shlibs_CXX=no
15206         ;;
15207
15208       mvs*)
15209         case $cc_basename in
15210           cxx*)
15211             # FIXME: insert proper C++ library support
15212             ld_shlibs_CXX=no
15213             ;;
15214           *)
15215             # FIXME: insert proper C++ library support
15216             ld_shlibs_CXX=no
15217             ;;
15218         esac
15219         ;;
15220
15221       netbsd*)
15222         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15223           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15224           wlarc=
15225           hardcode_libdir_flag_spec_CXX='-R$libdir'
15226           hardcode_direct_CXX=yes
15227           hardcode_shlibpath_var_CXX=no
15228         fi
15229         # Workaround some broken pre-1.5 toolchains
15230         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15231         ;;
15232
15233       *nto* | *qnx*)
15234         ld_shlibs_CXX=yes
15235         ;;
15236
15237       openbsd2*)
15238         # C++ shared libraries are fairly broken
15239         ld_shlibs_CXX=no
15240         ;;
15241
15242       openbsd*)
15243         if test -f /usr/libexec/ld.so; then
15244           hardcode_direct_CXX=yes
15245           hardcode_shlibpath_var_CXX=no
15246           hardcode_direct_absolute_CXX=yes
15247           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15248           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15249           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15250             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15251             export_dynamic_flag_spec_CXX='${wl}-E'
15252             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15253           fi
15254           output_verbose_link_cmd=echo
15255         else
15256           ld_shlibs_CXX=no
15257         fi
15258         ;;
15259
15260       osf3* | osf4* | osf5*)
15261         case $cc_basename in
15262           KCC*)
15263             # Kuck and Associates, Inc. (KAI) C++ Compiler
15264
15265             # KCC will only create a shared library if the output file
15266             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15267             # to its proper name (with version) after linking.
15268             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'
15269
15270             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15271             hardcode_libdir_separator_CXX=:
15272
15273             # Archives containing C++ object files must be created using
15274             # the KAI C++ compiler.
15275             case $host in
15276               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15277               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15278             esac
15279             ;;
15280           RCC*)
15281             # Rational C++ 2.4.1
15282             # FIXME: insert proper C++ library support
15283             ld_shlibs_CXX=no
15284             ;;
15285           cxx*)
15286             case $host in
15287               osf3*)
15288                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15289                 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'
15290                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15291                 ;;
15292               *)
15293                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15294                 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'
15295                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15296                   echo "-hidden">> $lib.exp~
15297                   $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~
15298                   $RM $lib.exp'
15299                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15300                 ;;
15301             esac
15302
15303             hardcode_libdir_separator_CXX=:
15304
15305             # Commands to make compiler produce verbose output that lists
15306             # what "hidden" libraries, object files and flags are used when
15307             # linking a shared library.
15308             #
15309             # There doesn't appear to be a way to prevent this compiler from
15310             # explicitly linking system object files so we need to strip them
15311             # from the output so that they don't get included in the library
15312             # dependencies.
15313             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'
15314             ;;
15315           *)
15316             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15317               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15318               case $host in
15319                 osf3*)
15320                   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'
15321                   ;;
15322                 *)
15323                   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'
15324                   ;;
15325               esac
15326
15327               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15328               hardcode_libdir_separator_CXX=:
15329
15330               # Commands to make compiler produce verbose output that lists
15331               # what "hidden" libraries, object files and flags are used when
15332               # linking a shared library.
15333               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15334
15335             else
15336               # FIXME: insert proper C++ library support
15337               ld_shlibs_CXX=no
15338             fi
15339             ;;
15340         esac
15341         ;;
15342
15343       psos*)
15344         # FIXME: insert proper C++ library support
15345         ld_shlibs_CXX=no
15346         ;;
15347
15348       sunos4*)
15349         case $cc_basename in
15350           CC*)
15351             # Sun C++ 4.x
15352             # FIXME: insert proper C++ library support
15353             ld_shlibs_CXX=no
15354             ;;
15355           lcc*)
15356             # Lucid
15357             # FIXME: insert proper C++ library support
15358             ld_shlibs_CXX=no
15359             ;;
15360           *)
15361             # FIXME: insert proper C++ library support
15362             ld_shlibs_CXX=no
15363             ;;
15364         esac
15365         ;;
15366
15367       solaris*)
15368         case $cc_basename in
15369           CC*)
15370             # Sun C++ 4.2, 5.x and Centerline C++
15371             archive_cmds_need_lc_CXX=yes
15372             no_undefined_flag_CXX=' -zdefs'
15373             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15374             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15375               $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'
15376
15377             hardcode_libdir_flag_spec_CXX='-R$libdir'
15378             hardcode_shlibpath_var_CXX=no
15379             case $host_os in
15380               solaris2.[0-5] | solaris2.[0-5].*) ;;
15381               *)
15382                 # The compiler driver will combine and reorder linker options,
15383                 # but understands `-z linker_flag'.
15384                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15385                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15386                 ;;
15387             esac
15388             link_all_deplibs_CXX=yes
15389
15390             output_verbose_link_cmd='echo'
15391
15392             # Archives containing C++ object files must be created using
15393             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15394             # necessary to make sure instantiated templates are included
15395             # in the archive.
15396             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15397             ;;
15398           gcx*)
15399             # Green Hills C++ Compiler
15400             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15401
15402             # The C++ compiler must be used to create the archive.
15403             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15404             ;;
15405           *)
15406             # GNU C++ compiler with Solaris linker
15407             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15408               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15409               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15410                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15411                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15412                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15413
15414                 # Commands to make compiler produce verbose output that lists
15415                 # what "hidden" libraries, object files and flags are used when
15416                 # linking a shared library.
15417                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15418               else
15419                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15420                 # platform.
15421                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15422                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15423                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
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 -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15429               fi
15430
15431               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15432               case $host_os in
15433                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15434                 *)
15435                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15436                   ;;
15437               esac
15438             fi
15439             ;;
15440         esac
15441         ;;
15442
15443     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15444       no_undefined_flag_CXX='${wl}-z,text'
15445       archive_cmds_need_lc_CXX=no
15446       hardcode_shlibpath_var_CXX=no
15447       runpath_var='LD_RUN_PATH'
15448
15449       case $cc_basename in
15450         CC*)
15451           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15452           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15453           ;;
15454         *)
15455           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15456           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15457           ;;
15458       esac
15459       ;;
15460
15461       sysv5* | sco3.2v5* | sco5v6*)
15462         # Note: We can NOT use -z defs as we might desire, because we do not
15463         # link with -lc, and that would cause any symbols used from libc to
15464         # always be unresolved, which means just about no library would
15465         # ever link correctly.  If we're not using GNU ld we use -z text
15466         # though, which does catch some bad symbols but isn't as heavy-handed
15467         # as -z defs.
15468         no_undefined_flag_CXX='${wl}-z,text'
15469         allow_undefined_flag_CXX='${wl}-z,nodefs'
15470         archive_cmds_need_lc_CXX=no
15471         hardcode_shlibpath_var_CXX=no
15472         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15473         hardcode_libdir_separator_CXX=':'
15474         link_all_deplibs_CXX=yes
15475         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15476         runpath_var='LD_RUN_PATH'
15477
15478         case $cc_basename in
15479           CC*)
15480             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15481             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15482             ;;
15483           *)
15484             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15485             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15486             ;;
15487         esac
15488       ;;
15489
15490       tandem*)
15491         case $cc_basename in
15492           NCC*)
15493             # NonStop-UX NCC 3.20
15494             # FIXME: insert proper C++ library support
15495             ld_shlibs_CXX=no
15496             ;;
15497           *)
15498             # FIXME: insert proper C++ library support
15499             ld_shlibs_CXX=no
15500             ;;
15501         esac
15502         ;;
15503
15504       vxworks*)
15505         # FIXME: insert proper C++ library support
15506         ld_shlibs_CXX=no
15507         ;;
15508
15509       *)
15510         # FIXME: insert proper C++ library support
15511         ld_shlibs_CXX=no
15512         ;;
15513     esac
15514
15515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15516 $as_echo "$ld_shlibs_CXX" >&6; }
15517     test "$ld_shlibs_CXX" = no && can_build_shared=no
15518
15519     GCC_CXX="$GXX"
15520     LD_CXX="$LD"
15521
15522     ## CAVEAT EMPTOR:
15523     ## There is no encapsulation within the following macros, do not change
15524     ## the running order or otherwise move them around unless you know exactly
15525     ## what you are doing...
15526     # Dependencies to place before and after the object being linked:
15527 predep_objects_CXX=
15528 postdep_objects_CXX=
15529 predeps_CXX=
15530 postdeps_CXX=
15531 compiler_lib_search_path_CXX=
15532
15533 cat > conftest.$ac_ext <<_LT_EOF
15534 class Foo
15535 {
15536 public:
15537   Foo (void) { a = 0; }
15538 private:
15539   int a;
15540 };
15541 _LT_EOF
15542
15543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15544   (eval $ac_compile) 2>&5
15545   ac_status=$?
15546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15547   test $ac_status = 0; }; then
15548   # Parse the compiler output and extract the necessary
15549   # objects, libraries and library flags.
15550
15551   # Sentinel used to keep track of whether or not we are before
15552   # the conftest object file.
15553   pre_test_object_deps_done=no
15554
15555   for p in `eval "$output_verbose_link_cmd"`; do
15556     case $p in
15557
15558     -L* | -R* | -l*)
15559        # Some compilers place space between "-{L,R}" and the path.
15560        # Remove the space.
15561        if test $p = "-L" ||
15562           test $p = "-R"; then
15563          prev=$p
15564          continue
15565        else
15566          prev=
15567        fi
15568
15569        if test "$pre_test_object_deps_done" = no; then
15570          case $p in
15571          -L* | -R*)
15572            # Internal compiler library paths should come after those
15573            # provided the user.  The postdeps already come after the
15574            # user supplied libs so there is no need to process them.
15575            if test -z "$compiler_lib_search_path_CXX"; then
15576              compiler_lib_search_path_CXX="${prev}${p}"
15577            else
15578              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15579            fi
15580            ;;
15581          # The "-l" case would never come before the object being
15582          # linked, so don't bother handling this case.
15583          esac
15584        else
15585          if test -z "$postdeps_CXX"; then
15586            postdeps_CXX="${prev}${p}"
15587          else
15588            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15589          fi
15590        fi
15591        ;;
15592
15593     *.$objext)
15594        # This assumes that the test object file only shows up
15595        # once in the compiler output.
15596        if test "$p" = "conftest.$objext"; then
15597          pre_test_object_deps_done=yes
15598          continue
15599        fi
15600
15601        if test "$pre_test_object_deps_done" = no; then
15602          if test -z "$predep_objects_CXX"; then
15603            predep_objects_CXX="$p"
15604          else
15605            predep_objects_CXX="$predep_objects_CXX $p"
15606          fi
15607        else
15608          if test -z "$postdep_objects_CXX"; then
15609            postdep_objects_CXX="$p"
15610          else
15611            postdep_objects_CXX="$postdep_objects_CXX $p"
15612          fi
15613        fi
15614        ;;
15615
15616     *) ;; # Ignore the rest.
15617
15618     esac
15619   done
15620
15621   # Clean up.
15622   rm -f a.out a.exe
15623 else
15624   echo "libtool.m4: error: problem compiling CXX test program"
15625 fi
15626
15627 $RM -f confest.$objext
15628
15629 # PORTME: override above test on systems where it is broken
15630 case $host_os in
15631 interix[3-9]*)
15632   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15633   # hack all around it, let's just trust "g++" to DTRT.
15634   predep_objects_CXX=
15635   postdep_objects_CXX=
15636   postdeps_CXX=
15637   ;;
15638
15639 linux*)
15640   case `$CC -V 2>&1 | sed 5q` in
15641   *Sun\ C*)
15642     # Sun C++ 5.9
15643
15644     # The more standards-conforming stlport4 library is
15645     # incompatible with the Cstd library. Avoid specifying
15646     # it if it's in CXXFLAGS. Ignore libCrun as
15647     # -library=stlport4 depends on it.
15648     case " $CXX $CXXFLAGS " in
15649     *" -library=stlport4 "*)
15650       solaris_use_stlport4=yes
15651       ;;
15652     esac
15653
15654     if test "$solaris_use_stlport4" != yes; then
15655       postdeps_CXX='-library=Cstd -library=Crun'
15656     fi
15657     ;;
15658   esac
15659   ;;
15660
15661 solaris*)
15662   case $cc_basename in
15663   CC*)
15664     # The more standards-conforming stlport4 library is
15665     # incompatible with the Cstd library. Avoid specifying
15666     # it if it's in CXXFLAGS. Ignore libCrun as
15667     # -library=stlport4 depends on it.
15668     case " $CXX $CXXFLAGS " in
15669     *" -library=stlport4 "*)
15670       solaris_use_stlport4=yes
15671       ;;
15672     esac
15673
15674     # Adding this requires a known-good setup of shared libraries for
15675     # Sun compiler versions before 5.6, else PIC objects from an old
15676     # archive will be linked into the output, leading to subtle bugs.
15677     if test "$solaris_use_stlport4" != yes; then
15678       postdeps_CXX='-library=Cstd -library=Crun'
15679     fi
15680     ;;
15681   esac
15682   ;;
15683 esac
15684
15685
15686 case " $postdeps_CXX " in
15687 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15688 esac
15689  compiler_lib_search_dirs_CXX=
15690 if test -n "${compiler_lib_search_path_CXX}"; then
15691  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15692 fi
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724     lt_prog_compiler_wl_CXX=
15725 lt_prog_compiler_pic_CXX=
15726 lt_prog_compiler_static_CXX=
15727
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15729 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15730
15731   # C++ specific cases for pic, static, wl, etc.
15732   if test "$GXX" = yes; then
15733     lt_prog_compiler_wl_CXX='-Wl,'
15734     lt_prog_compiler_static_CXX='-static'
15735
15736     case $host_os in
15737     aix*)
15738       # All AIX code is PIC.
15739       if test "$host_cpu" = ia64; then
15740         # AIX 5 now supports IA64 processor
15741         lt_prog_compiler_static_CXX='-Bstatic'
15742       fi
15743       ;;
15744
15745     amigaos*)
15746       case $host_cpu in
15747       powerpc)
15748             # see comment about AmigaOS4 .so support
15749             lt_prog_compiler_pic_CXX='-fPIC'
15750         ;;
15751       m68k)
15752             # FIXME: we need at least 68020 code to build shared libraries, but
15753             # adding the `-m68020' flag to GCC prevents building anything better,
15754             # like `-m68040'.
15755             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15756         ;;
15757       esac
15758       ;;
15759
15760     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15761       # PIC is the default for these OSes.
15762       ;;
15763     mingw* | cygwin* | os2* | pw32* | cegcc*)
15764       # This hack is so that the source file can tell whether it is being
15765       # built for inclusion in a dll (and should export symbols for example).
15766       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15767       # (--disable-auto-import) libraries
15768       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15769       ;;
15770     darwin* | rhapsody*)
15771       # PIC is the default on this platform
15772       # Common symbols not allowed in MH_DYLIB files
15773       lt_prog_compiler_pic_CXX='-fno-common'
15774       ;;
15775     *djgpp*)
15776       # DJGPP does not support shared libraries at all
15777       lt_prog_compiler_pic_CXX=
15778       ;;
15779     interix[3-9]*)
15780       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15781       # Instead, we relocate shared libraries at runtime.
15782       ;;
15783     sysv4*MP*)
15784       if test -d /usr/nec; then
15785         lt_prog_compiler_pic_CXX=-Kconform_pic
15786       fi
15787       ;;
15788     hpux*)
15789       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15790       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15791       # sets the default TLS model and affects inlining.
15792       case $host_cpu in
15793       hppa*64*)
15794         ;;
15795       *)
15796         lt_prog_compiler_pic_CXX='-fPIC'
15797         ;;
15798       esac
15799       ;;
15800     *qnx* | *nto*)
15801       # QNX uses GNU C++, but need to define -shared option too, otherwise
15802       # it will coredump.
15803       lt_prog_compiler_pic_CXX='-fPIC -shared'
15804       ;;
15805     *)
15806       lt_prog_compiler_pic_CXX='-fPIC'
15807       ;;
15808     esac
15809   else
15810     case $host_os in
15811       aix[4-9]*)
15812         # All AIX code is PIC.
15813         if test "$host_cpu" = ia64; then
15814           # AIX 5 now supports IA64 processor
15815           lt_prog_compiler_static_CXX='-Bstatic'
15816         else
15817           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15818         fi
15819         ;;
15820       chorus*)
15821         case $cc_basename in
15822         cxch68*)
15823           # Green Hills C++ Compiler
15824           # _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"
15825           ;;
15826         esac
15827         ;;
15828       dgux*)
15829         case $cc_basename in
15830           ec++*)
15831             lt_prog_compiler_pic_CXX='-KPIC'
15832             ;;
15833           ghcx*)
15834             # Green Hills C++ Compiler
15835             lt_prog_compiler_pic_CXX='-pic'
15836             ;;
15837           *)
15838             ;;
15839         esac
15840         ;;
15841       freebsd* | dragonfly*)
15842         # FreeBSD uses GNU C++
15843         ;;
15844       hpux9* | hpux10* | hpux11*)
15845         case $cc_basename in
15846           CC*)
15847             lt_prog_compiler_wl_CXX='-Wl,'
15848             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15849             if test "$host_cpu" != ia64; then
15850               lt_prog_compiler_pic_CXX='+Z'
15851             fi
15852             ;;
15853           aCC*)
15854             lt_prog_compiler_wl_CXX='-Wl,'
15855             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15856             case $host_cpu in
15857             hppa*64*|ia64*)
15858               # +Z the default
15859               ;;
15860             *)
15861               lt_prog_compiler_pic_CXX='+Z'
15862               ;;
15863             esac
15864             ;;
15865           *)
15866             ;;
15867         esac
15868         ;;
15869       interix*)
15870         # This is c89, which is MS Visual C++ (no shared libs)
15871         # Anyone wants to do a port?
15872         ;;
15873       irix5* | irix6* | nonstopux*)
15874         case $cc_basename in
15875           CC*)
15876             lt_prog_compiler_wl_CXX='-Wl,'
15877             lt_prog_compiler_static_CXX='-non_shared'
15878             # CC pic flag -KPIC is the default.
15879             ;;
15880           *)
15881             ;;
15882         esac
15883         ;;
15884       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15885         case $cc_basename in
15886           KCC*)
15887             # KAI C++ Compiler
15888             lt_prog_compiler_wl_CXX='--backend -Wl,'
15889             lt_prog_compiler_pic_CXX='-fPIC'
15890             ;;
15891           ecpc* )
15892             # old Intel C++ for x86_64 which still supported -KPIC.
15893             lt_prog_compiler_wl_CXX='-Wl,'
15894             lt_prog_compiler_pic_CXX='-KPIC'
15895             lt_prog_compiler_static_CXX='-static'
15896             ;;
15897           icpc* )
15898             # Intel C++, used to be incompatible with GCC.
15899             # ICC 10 doesn't accept -KPIC any more.
15900             lt_prog_compiler_wl_CXX='-Wl,'
15901             lt_prog_compiler_pic_CXX='-fPIC'
15902             lt_prog_compiler_static_CXX='-static'
15903             ;;
15904           pgCC* | pgcpp*)
15905             # Portland Group C++ compiler
15906             lt_prog_compiler_wl_CXX='-Wl,'
15907             lt_prog_compiler_pic_CXX='-fpic'
15908             lt_prog_compiler_static_CXX='-Bstatic'
15909             ;;
15910           cxx*)
15911             # Compaq C++
15912             # Make sure the PIC flag is empty.  It appears that all Alpha
15913             # Linux and Compaq Tru64 Unix objects are PIC.
15914             lt_prog_compiler_pic_CXX=
15915             lt_prog_compiler_static_CXX='-non_shared'
15916             ;;
15917           xlc* | xlC*)
15918             # IBM XL 8.0 on PPC
15919             lt_prog_compiler_wl_CXX='-Wl,'
15920             lt_prog_compiler_pic_CXX='-qpic'
15921             lt_prog_compiler_static_CXX='-qstaticlink'
15922             ;;
15923           *)
15924             case `$CC -V 2>&1 | sed 5q` in
15925             *Sun\ C*)
15926               # Sun C++ 5.9
15927               lt_prog_compiler_pic_CXX='-KPIC'
15928               lt_prog_compiler_static_CXX='-Bstatic'
15929               lt_prog_compiler_wl_CXX='-Qoption ld '
15930               ;;
15931             esac
15932             ;;
15933         esac
15934         ;;
15935       lynxos*)
15936         ;;
15937       m88k*)
15938         ;;
15939       mvs*)
15940         case $cc_basename in
15941           cxx*)
15942             lt_prog_compiler_pic_CXX='-W c,exportall'
15943             ;;
15944           *)
15945             ;;
15946         esac
15947         ;;
15948       netbsd* | netbsdelf*-gnu)
15949         ;;
15950       *qnx* | *nto*)
15951         # QNX uses GNU C++, but need to define -shared option too, otherwise
15952         # it will coredump.
15953         lt_prog_compiler_pic_CXX='-fPIC -shared'
15954         ;;
15955       osf3* | osf4* | osf5*)
15956         case $cc_basename in
15957           KCC*)
15958             lt_prog_compiler_wl_CXX='--backend -Wl,'
15959             ;;
15960           RCC*)
15961             # Rational C++ 2.4.1
15962             lt_prog_compiler_pic_CXX='-pic'
15963             ;;
15964           cxx*)
15965             # Digital/Compaq C++
15966             lt_prog_compiler_wl_CXX='-Wl,'
15967             # Make sure the PIC flag is empty.  It appears that all Alpha
15968             # Linux and Compaq Tru64 Unix objects are PIC.
15969             lt_prog_compiler_pic_CXX=
15970             lt_prog_compiler_static_CXX='-non_shared'
15971             ;;
15972           *)
15973             ;;
15974         esac
15975         ;;
15976       psos*)
15977         ;;
15978       solaris*)
15979         case $cc_basename in
15980           CC*)
15981             # Sun C++ 4.2, 5.x and Centerline C++
15982             lt_prog_compiler_pic_CXX='-KPIC'
15983             lt_prog_compiler_static_CXX='-Bstatic'
15984             lt_prog_compiler_wl_CXX='-Qoption ld '
15985             ;;
15986           gcx*)
15987             # Green Hills C++ Compiler
15988             lt_prog_compiler_pic_CXX='-PIC'
15989             ;;
15990           *)
15991             ;;
15992         esac
15993         ;;
15994       sunos4*)
15995         case $cc_basename in
15996           CC*)
15997             # Sun C++ 4.x
15998             lt_prog_compiler_pic_CXX='-pic'
15999             lt_prog_compiler_static_CXX='-Bstatic'
16000             ;;
16001           lcc*)
16002             # Lucid
16003             lt_prog_compiler_pic_CXX='-pic'
16004             ;;
16005           *)
16006             ;;
16007         esac
16008         ;;
16009       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16010         case $cc_basename in
16011           CC*)
16012             lt_prog_compiler_wl_CXX='-Wl,'
16013             lt_prog_compiler_pic_CXX='-KPIC'
16014             lt_prog_compiler_static_CXX='-Bstatic'
16015             ;;
16016         esac
16017         ;;
16018       tandem*)
16019         case $cc_basename in
16020           NCC*)
16021             # NonStop-UX NCC 3.20
16022             lt_prog_compiler_pic_CXX='-KPIC'
16023             ;;
16024           *)
16025             ;;
16026         esac
16027         ;;
16028       vxworks*)
16029         ;;
16030       *)
16031         lt_prog_compiler_can_build_shared_CXX=no
16032         ;;
16033     esac
16034   fi
16035
16036 case $host_os in
16037   # For platforms which do not support PIC, -DPIC is meaningless:
16038   *djgpp*)
16039     lt_prog_compiler_pic_CXX=
16040     ;;
16041   *)
16042     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16043     ;;
16044 esac
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16046 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16047
16048
16049
16050 #
16051 # Check to make sure the PIC flag actually works.
16052 #
16053 if test -n "$lt_prog_compiler_pic_CXX"; then
16054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16055 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16056 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16057   $as_echo_n "(cached) " >&6
16058 else
16059   lt_cv_prog_compiler_pic_works_CXX=no
16060    ac_outfile=conftest.$ac_objext
16061    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16062    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16063    # Insert the option either (1) after the last *FLAGS variable, or
16064    # (2) before a word containing "conftest.", or (3) at the end.
16065    # Note that $ac_compile itself does not contain backslashes and begins
16066    # with a dollar sign (not a hyphen), so the echo should work correctly.
16067    # The option is referenced via a variable to avoid confusing sed.
16068    lt_compile=`echo "$ac_compile" | $SED \
16069    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16071    -e 's:$: $lt_compiler_flag:'`
16072    (eval echo "\"\$as_me:16072: $lt_compile\"" >&5)
16073    (eval "$lt_compile" 2>conftest.err)
16074    ac_status=$?
16075    cat conftest.err >&5
16076    echo "$as_me:16076: \$? = $ac_status" >&5
16077    if (exit $ac_status) && test -s "$ac_outfile"; then
16078      # The compiler can only warn and ignore the option if not recognized
16079      # So say no if there are warnings other than the usual output.
16080      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16081      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16082      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16083        lt_cv_prog_compiler_pic_works_CXX=yes
16084      fi
16085    fi
16086    $RM conftest*
16087
16088 fi
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16090 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16091
16092 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16093     case $lt_prog_compiler_pic_CXX in
16094      "" | " "*) ;;
16095      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16096      esac
16097 else
16098     lt_prog_compiler_pic_CXX=
16099      lt_prog_compiler_can_build_shared_CXX=no
16100 fi
16101
16102 fi
16103
16104
16105
16106 #
16107 # Check to make sure the static flag actually works.
16108 #
16109 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16111 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16112 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16113   $as_echo_n "(cached) " >&6
16114 else
16115   lt_cv_prog_compiler_static_works_CXX=no
16116    save_LDFLAGS="$LDFLAGS"
16117    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16118    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16119    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16120      # The linker can only warn and ignore the option if not recognized
16121      # So say no if there are warnings
16122      if test -s conftest.err; then
16123        # Append any errors to the config.log.
16124        cat conftest.err 1>&5
16125        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16126        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16127        if diff conftest.exp conftest.er2 >/dev/null; then
16128          lt_cv_prog_compiler_static_works_CXX=yes
16129        fi
16130      else
16131        lt_cv_prog_compiler_static_works_CXX=yes
16132      fi
16133    fi
16134    $RM -r conftest*
16135    LDFLAGS="$save_LDFLAGS"
16136
16137 fi
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16139 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16140
16141 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16142     :
16143 else
16144     lt_prog_compiler_static_CXX=
16145 fi
16146
16147
16148
16149
16150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16151 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16152 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16153   $as_echo_n "(cached) " >&6
16154 else
16155   lt_cv_prog_compiler_c_o_CXX=no
16156    $RM -r conftest 2>/dev/null
16157    mkdir conftest
16158    cd conftest
16159    mkdir out
16160    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16161
16162    lt_compiler_flag="-o out/conftest2.$ac_objext"
16163    # Insert the option either (1) after the last *FLAGS variable, or
16164    # (2) before a word containing "conftest.", or (3) at the end.
16165    # Note that $ac_compile itself does not contain backslashes and begins
16166    # with a dollar sign (not a hyphen), so the echo should work correctly.
16167    lt_compile=`echo "$ac_compile" | $SED \
16168    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16169    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16170    -e 's:$: $lt_compiler_flag:'`
16171    (eval echo "\"\$as_me:16171: $lt_compile\"" >&5)
16172    (eval "$lt_compile" 2>out/conftest.err)
16173    ac_status=$?
16174    cat out/conftest.err >&5
16175    echo "$as_me:16175: \$? = $ac_status" >&5
16176    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16177    then
16178      # The compiler can only warn and ignore the option if not recognized
16179      # So say no if there are warnings
16180      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16181      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16182      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16183        lt_cv_prog_compiler_c_o_CXX=yes
16184      fi
16185    fi
16186    chmod u+w . 2>&5
16187    $RM conftest*
16188    # SGI C++ compiler will create directory out/ii_files/ for
16189    # template instantiation
16190    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16191    $RM out/* && rmdir out
16192    cd ..
16193    $RM -r conftest
16194    $RM conftest*
16195
16196 fi
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16198 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16199
16200
16201
16202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16203 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16204 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16205   $as_echo_n "(cached) " >&6
16206 else
16207   lt_cv_prog_compiler_c_o_CXX=no
16208    $RM -r conftest 2>/dev/null
16209    mkdir conftest
16210    cd conftest
16211    mkdir out
16212    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16213
16214    lt_compiler_flag="-o out/conftest2.$ac_objext"
16215    # Insert the option either (1) after the last *FLAGS variable, or
16216    # (2) before a word containing "conftest.", or (3) at the end.
16217    # Note that $ac_compile itself does not contain backslashes and begins
16218    # with a dollar sign (not a hyphen), so the echo should work correctly.
16219    lt_compile=`echo "$ac_compile" | $SED \
16220    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16221    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16222    -e 's:$: $lt_compiler_flag:'`
16223    (eval echo "\"\$as_me:16223: $lt_compile\"" >&5)
16224    (eval "$lt_compile" 2>out/conftest.err)
16225    ac_status=$?
16226    cat out/conftest.err >&5
16227    echo "$as_me:16227: \$? = $ac_status" >&5
16228    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16229    then
16230      # The compiler can only warn and ignore the option if not recognized
16231      # So say no if there are warnings
16232      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16233      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16234      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16235        lt_cv_prog_compiler_c_o_CXX=yes
16236      fi
16237    fi
16238    chmod u+w . 2>&5
16239    $RM conftest*
16240    # SGI C++ compiler will create directory out/ii_files/ for
16241    # template instantiation
16242    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16243    $RM out/* && rmdir out
16244    cd ..
16245    $RM -r conftest
16246    $RM conftest*
16247
16248 fi
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16250 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16251
16252
16253
16254
16255 hard_links="nottested"
16256 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16257   # do not overwrite the value of need_locks provided by the user
16258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16259 $as_echo_n "checking if we can lock with hard links... " >&6; }
16260   hard_links=yes
16261   $RM conftest*
16262   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16263   touch conftest.a
16264   ln conftest.a conftest.b 2>&5 || hard_links=no
16265   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16267 $as_echo "$hard_links" >&6; }
16268   if test "$hard_links" = no; then
16269     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16270 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16271     need_locks=warn
16272   fi
16273 else
16274   need_locks=no
16275 fi
16276
16277
16278
16279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16280 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16281
16282   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16283   case $host_os in
16284   aix[4-9]*)
16285     # If we're using GNU nm, then we don't want the "-C" option.
16286     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16287     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16288       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'
16289     else
16290       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'
16291     fi
16292     ;;
16293   pw32*)
16294     export_symbols_cmds_CXX="$ltdll_cmds"
16295   ;;
16296   cygwin* | mingw* | cegcc*)
16297     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'
16298   ;;
16299   linux* | k*bsd*-gnu)
16300     link_all_deplibs_CXX=no
16301   ;;
16302   *)
16303     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16304   ;;
16305   esac
16306   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16307
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16309 $as_echo "$ld_shlibs_CXX" >&6; }
16310 test "$ld_shlibs_CXX" = no && can_build_shared=no
16311
16312 with_gnu_ld_CXX=$with_gnu_ld
16313
16314
16315
16316
16317
16318
16319 #
16320 # Do we need to explicitly link libc?
16321 #
16322 case "x$archive_cmds_need_lc_CXX" in
16323 x|xyes)
16324   # Assume -lc should be added
16325   archive_cmds_need_lc_CXX=yes
16326
16327   if test "$enable_shared" = yes && test "$GCC" = yes; then
16328     case $archive_cmds_CXX in
16329     *'~'*)
16330       # FIXME: we may have to deal with multi-command sequences.
16331       ;;
16332     '$CC '*)
16333       # Test whether the compiler implicitly links with -lc since on some
16334       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16335       # to ld, don't add -lc before -lgcc.
16336       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16337 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16338       $RM conftest*
16339       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16340
16341       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16342   (eval $ac_compile) 2>&5
16343   ac_status=$?
16344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16345   test $ac_status = 0; } 2>conftest.err; then
16346         soname=conftest
16347         lib=conftest
16348         libobjs=conftest.$ac_objext
16349         deplibs=
16350         wl=$lt_prog_compiler_wl_CXX
16351         pic_flag=$lt_prog_compiler_pic_CXX
16352         compiler_flags=-v
16353         linker_flags=-v
16354         verstring=
16355         output_objdir=.
16356         libname=conftest
16357         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16358         allow_undefined_flag_CXX=
16359         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16360   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16361   ac_status=$?
16362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16363   test $ac_status = 0; }
16364         then
16365           archive_cmds_need_lc_CXX=no
16366         else
16367           archive_cmds_need_lc_CXX=yes
16368         fi
16369         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16370       else
16371         cat conftest.err 1>&5
16372       fi
16373       $RM conftest*
16374       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16375 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16376       ;;
16377     esac
16378   fi
16379   ;;
16380 esac
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16446 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16447
16448 library_names_spec=
16449 libname_spec='lib$name'
16450 soname_spec=
16451 shrext_cmds=".so"
16452 postinstall_cmds=
16453 postuninstall_cmds=
16454 finish_cmds=
16455 finish_eval=
16456 shlibpath_var=
16457 shlibpath_overrides_runpath=unknown
16458 version_type=none
16459 dynamic_linker="$host_os ld.so"
16460 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16461 need_lib_prefix=unknown
16462 hardcode_into_libs=no
16463
16464 # when you set need_version to no, make sure it does not cause -set_version
16465 # flags to be left without arguments
16466 need_version=unknown
16467
16468 case $host_os in
16469 aix3*)
16470   version_type=linux
16471   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16472   shlibpath_var=LIBPATH
16473
16474   # AIX 3 has no versioning support, so we append a major version to the name.
16475   soname_spec='${libname}${release}${shared_ext}$major'
16476   ;;
16477
16478 aix[4-9]*)
16479   version_type=linux
16480   need_lib_prefix=no
16481   need_version=no
16482   hardcode_into_libs=yes
16483   if test "$host_cpu" = ia64; then
16484     # AIX 5 supports IA64
16485     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16486     shlibpath_var=LD_LIBRARY_PATH
16487   else
16488     # With GCC up to 2.95.x, collect2 would create an import file
16489     # for dependence libraries.  The import file would start with
16490     # the line `#! .'.  This would cause the generated library to
16491     # depend on `.', always an invalid library.  This was fixed in
16492     # development snapshots of GCC prior to 3.0.
16493     case $host_os in
16494       aix4 | aix4.[01] | aix4.[01].*)
16495       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16496            echo ' yes '
16497            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16498         :
16499       else
16500         can_build_shared=no
16501       fi
16502       ;;
16503     esac
16504     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16505     # soname into executable. Probably we can add versioning support to
16506     # collect2, so additional links can be useful in future.
16507     if test "$aix_use_runtimelinking" = yes; then
16508       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16509       # instead of lib<name>.a to let people know that these are not
16510       # typical AIX shared libraries.
16511       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512     else
16513       # We preserve .a as extension for shared libraries through AIX4.2
16514       # and later when we are not doing run time linking.
16515       library_names_spec='${libname}${release}.a $libname.a'
16516       soname_spec='${libname}${release}${shared_ext}$major'
16517     fi
16518     shlibpath_var=LIBPATH
16519   fi
16520   ;;
16521
16522 amigaos*)
16523   case $host_cpu in
16524   powerpc)
16525     # Since July 2007 AmigaOS4 officially supports .so libraries.
16526     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16528     ;;
16529   m68k)
16530     library_names_spec='$libname.ixlibrary $libname.a'
16531     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16532     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'
16533     ;;
16534   esac
16535   ;;
16536
16537 beos*)
16538   library_names_spec='${libname}${shared_ext}'
16539   dynamic_linker="$host_os ld.so"
16540   shlibpath_var=LIBRARY_PATH
16541   ;;
16542
16543 bsdi[45]*)
16544   version_type=linux
16545   need_version=no
16546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16547   soname_spec='${libname}${release}${shared_ext}$major'
16548   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16549   shlibpath_var=LD_LIBRARY_PATH
16550   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16551   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16552   # the default ld.so.conf also contains /usr/contrib/lib and
16553   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16554   # libtool to hard-code these into programs
16555   ;;
16556
16557 cygwin* | mingw* | pw32* | cegcc*)
16558   version_type=windows
16559   shrext_cmds=".dll"
16560   need_version=no
16561   need_lib_prefix=no
16562
16563   case $GCC,$host_os in
16564   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16565     library_names_spec='$libname.dll.a'
16566     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16567     postinstall_cmds='base_file=`basename \${file}`~
16568       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16569       dldir=$destdir/`dirname \$dlpath`~
16570       test -d \$dldir || mkdir -p \$dldir~
16571       $install_prog $dir/$dlname \$dldir/$dlname~
16572       chmod a+x \$dldir/$dlname~
16573       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16574         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16575       fi'
16576     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16577       dlpath=$dir/\$dldll~
16578        $RM \$dlpath'
16579     shlibpath_overrides_runpath=yes
16580
16581     case $host_os in
16582     cygwin*)
16583       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16584       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16585       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16586       ;;
16587     mingw* | cegcc*)
16588       # MinGW DLLs use traditional 'lib' prefix
16589       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16590       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16591       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16592         # It is most probably a Windows format PATH printed by
16593         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16594         # path with ; separators, and with drive letters. We can handle the
16595         # drive letters (cygwin fileutils understands them), so leave them,
16596         # especially as we might pass files found there to a mingw objdump,
16597         # which wouldn't understand a cygwinified path. Ahh.
16598         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16599       else
16600         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16601       fi
16602       ;;
16603     pw32*)
16604       # pw32 DLLs use 'pw' prefix rather than 'lib'
16605       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16606       ;;
16607     esac
16608     ;;
16609
16610   *)
16611     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16612     ;;
16613   esac
16614   dynamic_linker='Win32 ld.exe'
16615   # FIXME: first we should search . and the directory the executable is in
16616   shlibpath_var=PATH
16617   ;;
16618
16619 darwin* | rhapsody*)
16620   dynamic_linker="$host_os dyld"
16621   version_type=darwin
16622   need_lib_prefix=no
16623   need_version=no
16624   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16625   soname_spec='${libname}${release}${major}$shared_ext'
16626   shlibpath_overrides_runpath=yes
16627   shlibpath_var=DYLD_LIBRARY_PATH
16628   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16629
16630   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16631   ;;
16632
16633 dgux*)
16634   version_type=linux
16635   need_lib_prefix=no
16636   need_version=no
16637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16638   soname_spec='${libname}${release}${shared_ext}$major'
16639   shlibpath_var=LD_LIBRARY_PATH
16640   ;;
16641
16642 freebsd1*)
16643   dynamic_linker=no
16644   ;;
16645
16646 freebsd* | dragonfly*)
16647   # DragonFly does not have aout.  When/if they implement a new
16648   # versioning mechanism, adjust this.
16649   if test -x /usr/bin/objformat; then
16650     objformat=`/usr/bin/objformat`
16651   else
16652     case $host_os in
16653     freebsd[123]*) objformat=aout ;;
16654     *) objformat=elf ;;
16655     esac
16656   fi
16657   version_type=freebsd-$objformat
16658   case $version_type in
16659     freebsd-elf*)
16660       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16661       need_version=no
16662       need_lib_prefix=no
16663       ;;
16664     freebsd-*)
16665       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16666       need_version=yes
16667       ;;
16668   esac
16669   shlibpath_var=LD_LIBRARY_PATH
16670   case $host_os in
16671   freebsd2*)
16672     shlibpath_overrides_runpath=yes
16673     ;;
16674   freebsd3.[01]* | freebsdelf3.[01]*)
16675     shlibpath_overrides_runpath=yes
16676     hardcode_into_libs=yes
16677     ;;
16678   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16679   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16680     shlibpath_overrides_runpath=no
16681     hardcode_into_libs=yes
16682     ;;
16683   *) # from 4.6 on, and DragonFly
16684     shlibpath_overrides_runpath=yes
16685     hardcode_into_libs=yes
16686     ;;
16687   esac
16688   ;;
16689
16690 gnu*)
16691   version_type=linux
16692   need_lib_prefix=no
16693   need_version=no
16694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16695   soname_spec='${libname}${release}${shared_ext}$major'
16696   shlibpath_var=LD_LIBRARY_PATH
16697   hardcode_into_libs=yes
16698   ;;
16699
16700 hpux9* | hpux10* | hpux11*)
16701   # Give a soname corresponding to the major version so that dld.sl refuses to
16702   # link against other versions.
16703   version_type=sunos
16704   need_lib_prefix=no
16705   need_version=no
16706   case $host_cpu in
16707   ia64*)
16708     shrext_cmds='.so'
16709     hardcode_into_libs=yes
16710     dynamic_linker="$host_os dld.so"
16711     shlibpath_var=LD_LIBRARY_PATH
16712     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16713     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16714     soname_spec='${libname}${release}${shared_ext}$major'
16715     if test "X$HPUX_IA64_MODE" = X32; then
16716       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16717     else
16718       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16719     fi
16720     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16721     ;;
16722   hppa*64*)
16723     shrext_cmds='.sl'
16724     hardcode_into_libs=yes
16725     dynamic_linker="$host_os dld.sl"
16726     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16727     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16728     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16729     soname_spec='${libname}${release}${shared_ext}$major'
16730     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16731     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16732     ;;
16733   *)
16734     shrext_cmds='.sl'
16735     dynamic_linker="$host_os dld.sl"
16736     shlibpath_var=SHLIB_PATH
16737     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16738     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16739     soname_spec='${libname}${release}${shared_ext}$major'
16740     ;;
16741   esac
16742   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16743   postinstall_cmds='chmod 555 $lib'
16744   ;;
16745
16746 interix[3-9]*)
16747   version_type=linux
16748   need_lib_prefix=no
16749   need_version=no
16750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16751   soname_spec='${libname}${release}${shared_ext}$major'
16752   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16753   shlibpath_var=LD_LIBRARY_PATH
16754   shlibpath_overrides_runpath=no
16755   hardcode_into_libs=yes
16756   ;;
16757
16758 irix5* | irix6* | nonstopux*)
16759   case $host_os in
16760     nonstopux*) version_type=nonstopux ;;
16761     *)
16762         if test "$lt_cv_prog_gnu_ld" = yes; then
16763                 version_type=linux
16764         else
16765                 version_type=irix
16766         fi ;;
16767   esac
16768   need_lib_prefix=no
16769   need_version=no
16770   soname_spec='${libname}${release}${shared_ext}$major'
16771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16772   case $host_os in
16773   irix5* | nonstopux*)
16774     libsuff= shlibsuff=
16775     ;;
16776   *)
16777     case $LD in # libtool.m4 will add one of these switches to LD
16778     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16779       libsuff= shlibsuff= libmagic=32-bit;;
16780     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16781       libsuff=32 shlibsuff=N32 libmagic=N32;;
16782     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16783       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16784     *) libsuff= shlibsuff= libmagic=never-match;;
16785     esac
16786     ;;
16787   esac
16788   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16789   shlibpath_overrides_runpath=no
16790   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16791   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16792   hardcode_into_libs=yes
16793   ;;
16794
16795 # No shared lib support for Linux oldld, aout, or coff.
16796 linux*oldld* | linux*aout* | linux*coff*)
16797   dynamic_linker=no
16798   ;;
16799
16800 # This must be Linux ELF.
16801 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16802   version_type=linux
16803   need_lib_prefix=no
16804   need_version=no
16805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16806   soname_spec='${libname}${release}${shared_ext}$major'
16807   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16808   shlibpath_var=LD_LIBRARY_PATH
16809   shlibpath_overrides_runpath=no
16810   # Some binutils ld are patched to set DT_RUNPATH
16811   save_LDFLAGS=$LDFLAGS
16812   save_libdir=$libdir
16813   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16814        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816 /* end confdefs.h.  */
16817
16818 int
16819 main ()
16820 {
16821
16822   ;
16823   return 0;
16824 }
16825 _ACEOF
16826 if ac_fn_cxx_try_link "$LINENO"; then :
16827   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16828   shlibpath_overrides_runpath=yes
16829 fi
16830 fi
16831 rm -f core conftest.err conftest.$ac_objext \
16832     conftest$ac_exeext conftest.$ac_ext
16833   LDFLAGS=$save_LDFLAGS
16834   libdir=$save_libdir
16835
16836   # This implies no fast_install, which is unacceptable.
16837   # Some rework will be needed to allow for fast_install
16838   # before this can be enabled.
16839   hardcode_into_libs=yes
16840
16841   # Append ld.so.conf contents to the search path
16842   if test -f /etc/ld.so.conf; then
16843     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' ' '`
16844     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16845   fi
16846
16847   # We used to test for /lib/ld.so.1 and disable shared libraries on
16848   # powerpc, because MkLinux only supported shared libraries with the
16849   # GNU dynamic linker.  Since this was broken with cross compilers,
16850   # most powerpc-linux boxes support dynamic linking these days and
16851   # people can always --disable-shared, the test was removed, and we
16852   # assume the GNU/Linux dynamic linker is in use.
16853   dynamic_linker='GNU/Linux ld.so'
16854   ;;
16855
16856 netbsdelf*-gnu)
16857   version_type=linux
16858   need_lib_prefix=no
16859   need_version=no
16860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16861   soname_spec='${libname}${release}${shared_ext}$major'
16862   shlibpath_var=LD_LIBRARY_PATH
16863   shlibpath_overrides_runpath=no
16864   hardcode_into_libs=yes
16865   dynamic_linker='NetBSD ld.elf_so'
16866   ;;
16867
16868 netbsd*)
16869   version_type=sunos
16870   need_lib_prefix=no
16871   need_version=no
16872   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16874     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16875     dynamic_linker='NetBSD (a.out) ld.so'
16876   else
16877     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16878     soname_spec='${libname}${release}${shared_ext}$major'
16879     dynamic_linker='NetBSD ld.elf_so'
16880   fi
16881   shlibpath_var=LD_LIBRARY_PATH
16882   shlibpath_overrides_runpath=yes
16883   hardcode_into_libs=yes
16884   ;;
16885
16886 newsos6)
16887   version_type=linux
16888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16889   shlibpath_var=LD_LIBRARY_PATH
16890   shlibpath_overrides_runpath=yes
16891   ;;
16892
16893 *nto* | *qnx*)
16894   version_type=qnx
16895   need_lib_prefix=no
16896   need_version=no
16897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16898   soname_spec='${libname}${release}${shared_ext}$major'
16899   shlibpath_var=LD_LIBRARY_PATH
16900   shlibpath_overrides_runpath=no
16901   hardcode_into_libs=yes
16902   dynamic_linker='ldqnx.so'
16903   ;;
16904
16905 openbsd*)
16906   version_type=sunos
16907   sys_lib_dlsearch_path_spec="/usr/lib"
16908   need_lib_prefix=no
16909   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16910   case $host_os in
16911     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16912     *)                          need_version=no  ;;
16913   esac
16914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16915   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16916   shlibpath_var=LD_LIBRARY_PATH
16917   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16918     case $host_os in
16919       openbsd2.[89] | openbsd2.[89].*)
16920         shlibpath_overrides_runpath=no
16921         ;;
16922       *)
16923         shlibpath_overrides_runpath=yes
16924         ;;
16925       esac
16926   else
16927     shlibpath_overrides_runpath=yes
16928   fi
16929   ;;
16930
16931 os2*)
16932   libname_spec='$name'
16933   shrext_cmds=".dll"
16934   need_lib_prefix=no
16935   library_names_spec='$libname${shared_ext} $libname.a'
16936   dynamic_linker='OS/2 ld.exe'
16937   shlibpath_var=LIBPATH
16938   ;;
16939
16940 osf3* | osf4* | osf5*)
16941   version_type=osf
16942   need_lib_prefix=no
16943   need_version=no
16944   soname_spec='${libname}${release}${shared_ext}$major'
16945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16946   shlibpath_var=LD_LIBRARY_PATH
16947   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16948   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16949   ;;
16950
16951 rdos*)
16952   dynamic_linker=no
16953   ;;
16954
16955 solaris*)
16956   version_type=linux
16957   need_lib_prefix=no
16958   need_version=no
16959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16960   soname_spec='${libname}${release}${shared_ext}$major'
16961   shlibpath_var=LD_LIBRARY_PATH
16962   shlibpath_overrides_runpath=yes
16963   hardcode_into_libs=yes
16964   # ldd complains unless libraries are executable
16965   postinstall_cmds='chmod +x $lib'
16966   ;;
16967
16968 sunos4*)
16969   version_type=sunos
16970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16971   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16972   shlibpath_var=LD_LIBRARY_PATH
16973   shlibpath_overrides_runpath=yes
16974   if test "$with_gnu_ld" = yes; then
16975     need_lib_prefix=no
16976   fi
16977   need_version=yes
16978   ;;
16979
16980 sysv4 | sysv4.3*)
16981   version_type=linux
16982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983   soname_spec='${libname}${release}${shared_ext}$major'
16984   shlibpath_var=LD_LIBRARY_PATH
16985   case $host_vendor in
16986     sni)
16987       shlibpath_overrides_runpath=no
16988       need_lib_prefix=no
16989       runpath_var=LD_RUN_PATH
16990       ;;
16991     siemens)
16992       need_lib_prefix=no
16993       ;;
16994     motorola)
16995       need_lib_prefix=no
16996       need_version=no
16997       shlibpath_overrides_runpath=no
16998       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16999       ;;
17000   esac
17001   ;;
17002
17003 sysv4*MP*)
17004   if test -d /usr/nec ;then
17005     version_type=linux
17006     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17007     soname_spec='$libname${shared_ext}.$major'
17008     shlibpath_var=LD_LIBRARY_PATH
17009   fi
17010   ;;
17011
17012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17013   version_type=freebsd-elf
17014   need_lib_prefix=no
17015   need_version=no
17016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17017   soname_spec='${libname}${release}${shared_ext}$major'
17018   shlibpath_var=LD_LIBRARY_PATH
17019   shlibpath_overrides_runpath=yes
17020   hardcode_into_libs=yes
17021   if test "$with_gnu_ld" = yes; then
17022     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17023   else
17024     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17025     case $host_os in
17026       sco3.2v5*)
17027         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17028         ;;
17029     esac
17030   fi
17031   sys_lib_dlsearch_path_spec='/usr/lib'
17032   ;;
17033
17034 tpf*)
17035   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17036   version_type=linux
17037   need_lib_prefix=no
17038   need_version=no
17039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040   shlibpath_var=LD_LIBRARY_PATH
17041   shlibpath_overrides_runpath=no
17042   hardcode_into_libs=yes
17043   ;;
17044
17045 uts4*)
17046   version_type=linux
17047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048   soname_spec='${libname}${release}${shared_ext}$major'
17049   shlibpath_var=LD_LIBRARY_PATH
17050   ;;
17051
17052 *)
17053   dynamic_linker=no
17054   ;;
17055 esac
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17057 $as_echo "$dynamic_linker" >&6; }
17058 test "$dynamic_linker" = no && can_build_shared=no
17059
17060 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17061 if test "$GCC" = yes; then
17062   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17063 fi
17064
17065 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17066   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17067 fi
17068 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17069   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17070 fi
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17108 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17109 hardcode_action_CXX=
17110 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17111    test -n "$runpath_var_CXX" ||
17112    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17113
17114   # We can hardcode non-existent directories.
17115   if test "$hardcode_direct_CXX" != no &&
17116      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17117      # have to relink, otherwise we might link with an installed library
17118      # when we should be linking with a yet-to-be-installed one
17119      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17120      test "$hardcode_minus_L_CXX" != no; then
17121     # Linking always hardcodes the temporary library directory.
17122     hardcode_action_CXX=relink
17123   else
17124     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17125     hardcode_action_CXX=immediate
17126   fi
17127 else
17128   # We cannot hardcode anything, or else we can only hardcode existing
17129   # directories.
17130   hardcode_action_CXX=unsupported
17131 fi
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17133 $as_echo "$hardcode_action_CXX" >&6; }
17134
17135 if test "$hardcode_action_CXX" = relink ||
17136    test "$inherit_rpath_CXX" = yes; then
17137   # Fast installation is not supported
17138   enable_fast_install=no
17139 elif test "$shlibpath_overrides_runpath" = yes ||
17140      test "$enable_shared" = no; then
17141   # Fast installation is not necessary
17142   enable_fast_install=needless
17143 fi
17144
17145
17146
17147
17148
17149
17150
17151   fi # test -n "$compiler"
17152
17153   CC=$lt_save_CC
17154   LDCXX=$LD
17155   LD=$lt_save_LD
17156   GCC=$lt_save_GCC
17157   with_gnu_ld=$lt_save_with_gnu_ld
17158   lt_cv_path_LDCXX=$lt_cv_path_LD
17159   lt_cv_path_LD=$lt_save_path_LD
17160   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17161   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17162 fi # test "$_lt_caught_CXX_error" != yes
17163
17164 ac_ext=c
17165 ac_cpp='$CPP $CPPFLAGS'
17166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17169
17170
17171
17172
17173 if test "$GCC" = "yes" ; then
17174 #    AC_HAVE_GCC_VERSION(4,0,0,0,
17175 #        [
17176 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
17177 #            [Define to enable class visibility control in gcc.])
17178 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17179 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17180 #        ])
17181     CFLAGS="$GCC_CFLAGS"
17182     CXXFLAGS="$GCC_CXXFLAGS"
17183 fi
17184
17185 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
17186 # Also enables POSIX semantics for some functions.
17187 case "${host_cpu}-${host_os}" in
17188     *solaris*)
17189         CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
17190         CXXFLAGS="$CXXFLAGS -D_POSIX_PTHREAD_SEMANTICS"
17191         if test "$CXX" = "CC" ; then
17192                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
17193         fi
17194     ;;
17195 esac
17196
17197 # Checks for typedefs, structures, and compiler characteristics.
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17199 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17200 if test "${ac_cv_c_const+set}" = set; then :
17201   $as_echo_n "(cached) " >&6
17202 else
17203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17204 /* end confdefs.h.  */
17205
17206 int
17207 main ()
17208 {
17209 /* FIXME: Include the comments suggested by Paul. */
17210 #ifndef __cplusplus
17211   /* Ultrix mips cc rejects this.  */
17212   typedef int charset[2];
17213   const charset cs;
17214   /* SunOS 4.1.1 cc rejects this.  */
17215   char const *const *pcpcc;
17216   char **ppc;
17217   /* NEC SVR4.0.2 mips cc rejects this.  */
17218   struct point {int x, y;};
17219   static struct point const zero = {0,0};
17220   /* AIX XL C 1.02.0.0 rejects this.
17221      It does not let you subtract one const X* pointer from another in
17222      an arm of an if-expression whose if-part is not a constant
17223      expression */
17224   const char *g = "string";
17225   pcpcc = &g + (g ? g-g : 0);
17226   /* HPUX 7.0 cc rejects these. */
17227   ++pcpcc;
17228   ppc = (char**) pcpcc;
17229   pcpcc = (char const *const *) ppc;
17230   { /* SCO 3.2v4 cc rejects this.  */
17231     char *t;
17232     char const *s = 0 ? (char *) 0 : (char const *) 0;
17233
17234     *t++ = 0;
17235     if (s) return 0;
17236   }
17237   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17238     int x[] = {25, 17};
17239     const int *foo = &x[0];
17240     ++foo;
17241   }
17242   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17243     typedef const int *iptr;
17244     iptr p = 0;
17245     ++p;
17246   }
17247   { /* AIX XL C 1.02.0.0 rejects this saying
17248        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17249     struct s { int j; const int *ap[3]; };
17250     struct s *b; b->j = 5;
17251   }
17252   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17253     const int foo = 10;
17254     if (!foo) return 0;
17255   }
17256   return !cs[0] && !zero.x;
17257 #endif
17258
17259   ;
17260   return 0;
17261 }
17262 _ACEOF
17263 if ac_fn_c_try_compile "$LINENO"; then :
17264   ac_cv_c_const=yes
17265 else
17266   ac_cv_c_const=no
17267 fi
17268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17269 fi
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17271 $as_echo "$ac_cv_c_const" >&6; }
17272 if test $ac_cv_c_const = no; then
17273
17274 $as_echo "#define const /**/" >>confdefs.h
17275
17276 fi
17277
17278 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17279 if test "x$ac_cv_type_size_t" = x""yes; then :
17280
17281 else
17282
17283 cat >>confdefs.h <<_ACEOF
17284 #define size_t unsigned int
17285 _ACEOF
17286
17287 fi
17288
17289 ac_header_dirent=no
17290 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17291   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17293 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17294 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
17295   $as_echo_n "(cached) " >&6
17296 else
17297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17298 /* end confdefs.h.  */
17299 #include <sys/types.h>
17300 #include <$ac_hdr>
17301
17302 int
17303 main ()
17304 {
17305 if ((DIR *) 0)
17306 return 0;
17307   ;
17308   return 0;
17309 }
17310 _ACEOF
17311 if ac_fn_c_try_compile "$LINENO"; then :
17312   eval "$as_ac_Header=yes"
17313 else
17314   eval "$as_ac_Header=no"
17315 fi
17316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17317 fi
17318 eval ac_res=\$$as_ac_Header
17319                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17320 $as_echo "$ac_res" >&6; }
17321 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17322   cat >>confdefs.h <<_ACEOF
17323 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17324 _ACEOF
17325
17326 ac_header_dirent=$ac_hdr; break
17327 fi
17328
17329 done
17330 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17331 if test $ac_header_dirent = dirent.h; then
17332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17333 $as_echo_n "checking for library containing opendir... " >&6; }
17334 if test "${ac_cv_search_opendir+set}" = set; then :
17335   $as_echo_n "(cached) " >&6
17336 else
17337   ac_func_search_save_LIBS=$LIBS
17338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17339 /* end confdefs.h.  */
17340
17341 /* Override any GCC internal prototype to avoid an error.
17342    Use char because int might match the return type of a GCC
17343    builtin and then its argument prototype would still apply.  */
17344 #ifdef __cplusplus
17345 extern "C"
17346 #endif
17347 char opendir ();
17348 int
17349 main ()
17350 {
17351 return opendir ();
17352   ;
17353   return 0;
17354 }
17355 _ACEOF
17356 for ac_lib in '' dir; do
17357   if test -z "$ac_lib"; then
17358     ac_res="none required"
17359   else
17360     ac_res=-l$ac_lib
17361     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17362   fi
17363   if ac_fn_c_try_link "$LINENO"; then :
17364   ac_cv_search_opendir=$ac_res
17365 fi
17366 rm -f core conftest.err conftest.$ac_objext \
17367     conftest$ac_exeext
17368   if test "${ac_cv_search_opendir+set}" = set; then :
17369   break
17370 fi
17371 done
17372 if test "${ac_cv_search_opendir+set}" = set; then :
17373
17374 else
17375   ac_cv_search_opendir=no
17376 fi
17377 rm conftest.$ac_ext
17378 LIBS=$ac_func_search_save_LIBS
17379 fi
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17381 $as_echo "$ac_cv_search_opendir" >&6; }
17382 ac_res=$ac_cv_search_opendir
17383 if test "$ac_res" != no; then :
17384   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17385
17386 fi
17387
17388 else
17389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17390 $as_echo_n "checking for library containing opendir... " >&6; }
17391 if test "${ac_cv_search_opendir+set}" = set; then :
17392   $as_echo_n "(cached) " >&6
17393 else
17394   ac_func_search_save_LIBS=$LIBS
17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396 /* end confdefs.h.  */
17397
17398 /* Override any GCC internal prototype to avoid an error.
17399    Use char because int might match the return type of a GCC
17400    builtin and then its argument prototype would still apply.  */
17401 #ifdef __cplusplus
17402 extern "C"
17403 #endif
17404 char opendir ();
17405 int
17406 main ()
17407 {
17408 return opendir ();
17409   ;
17410   return 0;
17411 }
17412 _ACEOF
17413 for ac_lib in '' x; do
17414   if test -z "$ac_lib"; then
17415     ac_res="none required"
17416   else
17417     ac_res=-l$ac_lib
17418     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17419   fi
17420   if ac_fn_c_try_link "$LINENO"; then :
17421   ac_cv_search_opendir=$ac_res
17422 fi
17423 rm -f core conftest.err conftest.$ac_objext \
17424     conftest$ac_exeext
17425   if test "${ac_cv_search_opendir+set}" = set; then :
17426   break
17427 fi
17428 done
17429 if test "${ac_cv_search_opendir+set}" = set; then :
17430
17431 else
17432   ac_cv_search_opendir=no
17433 fi
17434 rm conftest.$ac_ext
17435 LIBS=$ac_func_search_save_LIBS
17436 fi
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17438 $as_echo "$ac_cv_search_opendir" >&6; }
17439 ac_res=$ac_cv_search_opendir
17440 if test "$ac_res" != no; then :
17441   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17442
17443 fi
17444
17445 fi
17446
17447
17448 # Checks for library functions.
17449 for ac_func in strchr strdup strstr
17450 do :
17451   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17452 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17453 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17454   cat >>confdefs.h <<_ACEOF
17455 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17456 _ACEOF
17457
17458 fi
17459 done
17460
17461 # The cast to long int works around a bug in the HP C Compiler
17462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17464 # This bug is HP SR number 8606223364.
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
17466 $as_echo_n "checking size of time_t... " >&6; }
17467 if test "${ac_cv_sizeof_time_t+set}" = set; then :
17468   $as_echo_n "(cached) " >&6
17469 else
17470   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
17471
17472 else
17473   if test "$ac_cv_type_time_t" = yes; then
17474      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17476 as_fn_error 77 "cannot compute sizeof (time_t)
17477 See \`config.log' for more details" "$LINENO" 5 ; }
17478    else
17479      ac_cv_sizeof_time_t=0
17480    fi
17481 fi
17482
17483 fi
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
17485 $as_echo "$ac_cv_sizeof_time_t" >&6; }
17486
17487
17488
17489 cat >>confdefs.h <<_ACEOF
17490 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
17491 _ACEOF
17492
17493
17494
17495 # checks for pthreads
17496
17497
17498 ac_ext=c
17499 ac_cpp='$CPP $CPPFLAGS'
17500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17503
17504 acx_pthread_ok=no
17505
17506 # We used to check for pthread.h first, but this fails if pthread.h
17507 # requires special compiler flags (e.g. on True64 or Sequent).
17508 # It gets checked for in the link test anyway.
17509
17510 # First of all, check if the user has set any of the PTHREAD_LIBS,
17511 # etcetera environment variables, and if threads linking works using
17512 # them:
17513 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17514         save_CFLAGS="$CFLAGS"
17515         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17516         save_LIBS="$LIBS"
17517         LIBS="$PTHREAD_LIBS $LIBS"
17518         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17519 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17520         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h.  */
17522
17523 /* Override any GCC internal prototype to avoid an error.
17524    Use char because int might match the return type of a GCC
17525    builtin and then its argument prototype would still apply.  */
17526 #ifdef __cplusplus
17527 extern "C"
17528 #endif
17529 char pthread_join ();
17530 int
17531 main ()
17532 {
17533 return pthread_join ();
17534   ;
17535   return 0;
17536 }
17537 _ACEOF
17538 if ac_fn_c_try_link "$LINENO"; then :
17539   acx_pthread_ok=yes
17540 fi
17541 rm -f core conftest.err conftest.$ac_objext \
17542     conftest$ac_exeext conftest.$ac_ext
17543         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17544 $as_echo "$acx_pthread_ok" >&6; }
17545         if test x"$acx_pthread_ok" = xno; then
17546                 PTHREAD_LIBS=""
17547                 PTHREAD_CFLAGS=""
17548         fi
17549         LIBS="$save_LIBS"
17550         CFLAGS="$save_CFLAGS"
17551 fi
17552
17553 # We must check for the threads library under a number of different
17554 # names; the ordering is very important because some systems
17555 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17556 # libraries is broken (non-POSIX).
17557
17558 # Create a list of thread flags to try.  Items starting with a "-" are
17559 # C compiler flags, and other items are library names, except for "none"
17560 # which indicates that we try without any flags at all, and "pthread-config"
17561 # which is a program returning the flags for the Pth emulation library.
17562
17563 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17564
17565 # The ordering *is* (sometimes) important.  Some notes on the
17566 # individual items follow:
17567
17568 # pthreads: AIX (must check this before -lpthread)
17569 # none: in case threads are in libc; should be tried before -Kthread and
17570 #       other compiler flags to prevent continual compiler warnings
17571 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17572 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17573 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17574 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17575 # -pthreads: Solaris/gcc
17576 # -mthreads: Mingw32/gcc, Lynx/gcc
17577 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17578 #      doesn't hurt to check since this sometimes defines pthreads too;
17579 #      also defines -D_REENTRANT)
17580 #      ... -mt is also the pthreads flag for HP/aCC
17581 # pthread: Linux, etcetera
17582 # --thread-safe: KAI C++
17583 # pthread-config: use pthread-config program (for GNU Pth library)
17584
17585 case "${host_cpu}-${host_os}" in
17586         *solaris*)
17587
17588         # On Solaris (at least, for some versions), libc contains stubbed
17589         # (non-functional) versions of the pthreads routines, so link-based
17590         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
17591         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17592         # a function called by this macro, so we could check for that, but
17593         # who knows whether they'll stub that too in a future libc.)  So,
17594         # we'll just look for -pthreads and -lpthread first:
17595
17596         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17597         ;;
17598 esac
17599
17600 if test x"$acx_pthread_ok" = xno; then
17601 for flag in $acx_pthread_flags; do
17602
17603         case $flag in
17604                 none)
17605                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17606 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17607                 ;;
17608
17609                 -*)
17610                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17611 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17612                 PTHREAD_CFLAGS="$flag"
17613                 ;;
17614
17615                 pthread-config)
17616                 # Extract the first word of "pthread-config", so it can be a program name with args.
17617 set dummy pthread-config; ac_word=$2
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17619 $as_echo_n "checking for $ac_word... " >&6; }
17620 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
17621   $as_echo_n "(cached) " >&6
17622 else
17623   if test -n "$acx_pthread_config"; then
17624   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17625 else
17626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17627 for as_dir in $PATH
17628 do
17629   IFS=$as_save_IFS
17630   test -z "$as_dir" && as_dir=.
17631     for ac_exec_ext in '' $ac_executable_extensions; do
17632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17633     ac_cv_prog_acx_pthread_config="yes"
17634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17635     break 2
17636   fi
17637 done
17638   done
17639 IFS=$as_save_IFS
17640
17641   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17642 fi
17643 fi
17644 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17645 if test -n "$acx_pthread_config"; then
17646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17647 $as_echo "$acx_pthread_config" >&6; }
17648 else
17649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17650 $as_echo "no" >&6; }
17651 fi
17652
17653
17654                 if test x"$acx_pthread_config" = xno; then continue; fi
17655                 PTHREAD_CFLAGS="`pthread-config --cflags`"
17656                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17657                 ;;
17658
17659                 *)
17660                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17661 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17662                 PTHREAD_LIBS="-l$flag"
17663                 ;;
17664         esac
17665
17666         save_LIBS="$LIBS"
17667         save_CFLAGS="$CFLAGS"
17668         LIBS="$PTHREAD_LIBS $LIBS"
17669         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17670
17671         # Check for various functions.  We must include pthread.h,
17672         # since some functions may be macros.  (On the Sequent, we
17673         # need a special flag -Kthread to make this header compile.)
17674         # We check for pthread_join because it is in -lpthread on IRIX
17675         # while pthread_create is in libc.  We check for pthread_attr_init
17676         # due to DEC craziness with -lpthreads.  We check for
17677         # pthread_cleanup_push because it is one of the few pthread
17678         # functions on Solaris that doesn't have a non-functional libc stub.
17679         # We try pthread_create on general principles.
17680         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17681 /* end confdefs.h.  */
17682 #include <pthread.h>
17683 int
17684 main ()
17685 {
17686 pthread_t th; pthread_join(th, 0);
17687                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
17688                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17689   ;
17690   return 0;
17691 }
17692 _ACEOF
17693 if ac_fn_c_try_link "$LINENO"; then :
17694   acx_pthread_ok=yes
17695 fi
17696 rm -f core conftest.err conftest.$ac_objext \
17697     conftest$ac_exeext conftest.$ac_ext
17698
17699         LIBS="$save_LIBS"
17700         CFLAGS="$save_CFLAGS"
17701
17702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17703 $as_echo "$acx_pthread_ok" >&6; }
17704         if test "x$acx_pthread_ok" = xyes; then
17705                 break;
17706         fi
17707
17708         PTHREAD_LIBS=""
17709         PTHREAD_CFLAGS=""
17710 done
17711 fi
17712
17713 # Various other checks:
17714 if test "x$acx_pthread_ok" = xyes; then
17715         save_LIBS="$LIBS"
17716         LIBS="$PTHREAD_LIBS $LIBS"
17717         save_CFLAGS="$CFLAGS"
17718         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17719
17720         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17721         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17722 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17723         attr_name=unknown
17724         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17725             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17726 /* end confdefs.h.  */
17727 #include <pthread.h>
17728 int
17729 main ()
17730 {
17731 int attr=$attr; return attr;
17732   ;
17733   return 0;
17734 }
17735 _ACEOF
17736 if ac_fn_c_try_link "$LINENO"; then :
17737   attr_name=$attr; break
17738 fi
17739 rm -f core conftest.err conftest.$ac_objext \
17740     conftest$ac_exeext conftest.$ac_ext
17741         done
17742         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17743 $as_echo "$attr_name" >&6; }
17744         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17745
17746 cat >>confdefs.h <<_ACEOF
17747 #define PTHREAD_CREATE_JOINABLE $attr_name
17748 _ACEOF
17749
17750         fi
17751
17752         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17753 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17754         flag=no
17755         case "${host_cpu}-${host_os}" in
17756                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
17757                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
17758                 *solaris*)
17759                 if test "$GCC" = "yes"; then
17760                     flag="-D_REENTRANT"
17761                 else
17762                     flag="-mt -D_REENTRANT"
17763                 fi
17764                 ;;
17765         esac
17766         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17767 $as_echo "${flag}" >&6; }
17768         if test "x$flag" != xno; then
17769             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17770         fi
17771
17772         LIBS="$save_LIBS"
17773         CFLAGS="$save_CFLAGS"
17774
17775         # More AIX lossage: must compile with xlc_r or cc_r
17776         if test x"$GCC" != xyes; then
17777           for ac_prog in xlc_r cc_r
17778 do
17779   # Extract the first word of "$ac_prog", so it can be a program name with args.
17780 set dummy $ac_prog; ac_word=$2
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17782 $as_echo_n "checking for $ac_word... " >&6; }
17783 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
17784   $as_echo_n "(cached) " >&6
17785 else
17786   if test -n "$PTHREAD_CC"; then
17787   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17788 else
17789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17790 for as_dir in $PATH
17791 do
17792   IFS=$as_save_IFS
17793   test -z "$as_dir" && as_dir=.
17794     for ac_exec_ext in '' $ac_executable_extensions; do
17795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17796     ac_cv_prog_PTHREAD_CC="$ac_prog"
17797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17798     break 2
17799   fi
17800 done
17801   done
17802 IFS=$as_save_IFS
17803
17804 fi
17805 fi
17806 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17807 if test -n "$PTHREAD_CC"; then
17808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17809 $as_echo "$PTHREAD_CC" >&6; }
17810 else
17811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17812 $as_echo "no" >&6; }
17813 fi
17814
17815
17816   test -n "$PTHREAD_CC" && break
17817 done
17818 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17819
17820         else
17821           PTHREAD_CC=$CC
17822         fi
17823 else
17824         PTHREAD_CC="$CC"
17825 fi
17826
17827
17828
17829
17830
17831 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17832 if test x"$acx_pthread_ok" = xyes; then
17833         enable_threads="pthread"
17834         :
17835 else
17836         acx_pthread_ok=no
17837         enable_threads="no"
17838 fi
17839 ac_ext=c
17840 ac_cpp='$CPP $CPPFLAGS'
17841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17844
17845
17846 if test $enable_threads != "pthread"; then
17847     as_fn_error $? "unable to find pthreads, currently this is required" "$LINENO" 5
17848 else
17849
17850 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17851
17852     LIBS="$PTHREAD_LIBS $LIBS"
17853     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
17854     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
17855 fi
17856
17857 # zlib settings
17858
17859 # Check whether --with-zlib was given.
17860 if test "${with_zlib+set}" = set; then :
17861   withval=$with_zlib;
17862         if test -d "$withval" ; then
17863             CPPFLAGS="${CPPFLAGS} -I$withval/include"
17864             LDFLAGS="${LDFLAGS} -L$withval/lib"
17865         fi
17866
17867
17868 fi
17869
17870
17871
17872 # Check whether --with-zlib was given.
17873 if test "${with_zlib+set}" = set; then :
17874   withval=$with_zlib;
17875 else
17876   with_zlib=/usr
17877 fi
17878
17879 if test x_$with_zlib != x_/usr; then
17880     CPPFLAGS="-I${with_zlib}/include $CPPFLAGS"
17881     LIBS="-L${with_zlib}/lib -lz $LIBS"
17882 else
17883     LIBS="-lz $LIBS"
17884 fi
17885
17886 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17887 if test "x$ac_cv_header_zlib_h" = x""yes; then :
17888
17889 else
17890   as_fn_error $? "unable to find zlib header files" "$LINENO" 5
17891 fi
17892
17893
17894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17895 /* end confdefs.h.  */
17896 #include <zlib.h>
17897 int
17898 main ()
17899 {
17900 zlibVersion()
17901   ;
17902   return 0;
17903 }
17904 _ACEOF
17905 if ac_fn_c_try_link "$LINENO"; then :
17906
17907 else
17908   as_fn_error $? "unable to link with zlib" "$LINENO" 5
17909 fi
17910 rm -f core conftest.err conftest.$ac_objext \
17911     conftest$ac_exeext conftest.$ac_ext
17912
17913
17914 # OpenSSL settings
17915
17916 # Check whether --with-openssl was given.
17917 if test "${with_openssl+set}" = set; then :
17918   withval=$with_openssl; if test x_$with_openssl != x_/usr; then
17919         SSLFLAGS="-I${with_openssl}/include"
17920     fi
17921 fi
17922
17923
17924 if test "x$with_openssl" = "x" ; then
17925     # Extract the first word of "pkg-config", so it can be a program name with args.
17926 set dummy pkg-config; ac_word=$2
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17928 $as_echo_n "checking for $ac_word... " >&6; }
17929 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17930   $as_echo_n "(cached) " >&6
17931 else
17932   case $PKG_CONFIG in
17933   [\\/]* | ?:[\\/]*)
17934   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17935   ;;
17936   *)
17937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17938 for as_dir in $PATH
17939 do
17940   IFS=$as_save_IFS
17941   test -z "$as_dir" && as_dir=.
17942     for ac_exec_ext in '' $ac_executable_extensions; do
17943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17944     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17946     break 2
17947   fi
17948 done
17949   done
17950 IFS=$as_save_IFS
17951
17952   ;;
17953 esac
17954 fi
17955 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17956 if test -n "$PKG_CONFIG"; then
17957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17958 $as_echo "$PKG_CONFIG" >&6; }
17959 else
17960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17961 $as_echo "no" >&6; }
17962 fi
17963
17964
17965     if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
17966         if pkg-config openssl ; then
17967             SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
17968         else
17969             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
17970 $as_echo "$as_me: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
17971         fi
17972     fi
17973 fi
17974
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL cflags" >&5
17976 $as_echo_n "checking for OpenSSL cflags... " >&6; }
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLFLAGS" >&5
17978 $as_echo "$SSLFLAGS" >&6; }
17979 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
17980
17981 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
17982 if test "x$ac_cv_header_openssl_x509_h" = x""yes; then :
17983
17984 else
17985   as_fn_error $? "unable to find openssl header files" "$LINENO" 5
17986 fi
17987
17988
17989
17990 ac_ext=cpp
17991 ac_cpp='$CXXCPP $CPPFLAGS'
17992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17995
17996
17997 # C++ requirements
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
17999 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
18000 if test "${ac_cv_cxx_namespaces+set}" = set; then :
18001   $as_echo_n "(cached) " >&6
18002 else
18003
18004  ac_ext=cpp
18005 ac_cpp='$CXXCPP $CPPFLAGS'
18006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18009
18010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h.  */
18012 namespace Outer { namespace Inner { int i = 0; }}
18013 int
18014 main ()
18015 {
18016 using namespace Outer::Inner; return i;
18017   ;
18018   return 0;
18019 }
18020 _ACEOF
18021 if ac_fn_cxx_try_compile "$LINENO"; then :
18022   ac_cv_cxx_namespaces=yes
18023 else
18024   ac_cv_cxx_namespaces=no
18025 fi
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027  ac_ext=cpp
18028 ac_cpp='$CXXCPP $CPPFLAGS'
18029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18032
18033
18034 fi
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
18036 $as_echo "$ac_cv_cxx_namespaces" >&6; }
18037 if test "$ac_cv_cxx_namespaces" = yes; then
18038
18039 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
18040
18041 fi
18042
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5
18044 $as_echo_n "checking whether the compiler supports Standard Template Library... " >&6; }
18045 if test "${ac_cv_cxx_have_stl+set}" = set; then :
18046   $as_echo_n "(cached) " >&6
18047 else
18048
18049  ac_ext=cpp
18050 ac_cpp='$CXXCPP $CPPFLAGS'
18051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18054
18055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18056 /* end confdefs.h.  */
18057 #include <list>
18058 #include <deque>
18059 #ifdef HAVE_NAMESPACES
18060 using namespace std;
18061 #endif
18062 int
18063 main ()
18064 {
18065 list<int> x; x.push_back(5);
18066 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
18067   ;
18068   return 0;
18069 }
18070 _ACEOF
18071 if ac_fn_cxx_try_compile "$LINENO"; then :
18072   ac_cv_cxx_have_stl=yes
18073 else
18074   ac_cv_cxx_have_stl=no
18075 fi
18076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18077  ac_ext=cpp
18078 ac_cpp='$CXXCPP $CPPFLAGS'
18079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18082
18083
18084 fi
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5
18086 $as_echo "$ac_cv_cxx_have_stl" >&6; }
18087 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
18088   as_fn_error $? "C++ Standard Template Libary unsupported" "$LINENO" 5
18089 fi
18090
18091
18092 # Boost
18093
18094 echo "$as_me: this is boost.m4 serial 16" >&5
18095 boost_save_IFS=$IFS
18096 boost_version_req=
18097 IFS=.
18098 set x $boost_version_req 0 0 0
18099 IFS=$boost_save_IFS
18100 shift
18101 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
18102 boost_version_req_string=$1.$2.$3
18103
18104 # Check whether --with-boost was given.
18105 if test "${with_boost+set}" = set; then :
18106   withval=$with_boost;
18107 fi
18108 # If BOOST_ROOT is set and the user has not provided a value to
18109 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
18110 if test x"$BOOST_ROOT" != x; then
18111   if test x"$with_boost" = x; then
18112     { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
18113 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
18114     with_boost=$BOOST_ROOT
18115   else
18116     { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
18117 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
18118   fi
18119 fi
18120 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
18121 boost_save_CPPFLAGS=$CPPFLAGS
18122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
18123 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
18124 if test "${boost_cv_inc_path+set}" = set; then :
18125   $as_echo_n "(cached) " >&6
18126 else
18127   boost_cv_inc_path=no
18128 ac_ext=cpp
18129 ac_cpp='$CXXCPP $CPPFLAGS'
18130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134 /* end confdefs.h.  */
18135 #include <boost/version.hpp>
18136 #if !defined BOOST_VERSION
18137 # error BOOST_VERSION is not defined
18138 #elif BOOST_VERSION < $boost_version_req
18139 # error Boost headers version < $boost_version_req
18140 #endif
18141
18142 int
18143 main ()
18144 {
18145
18146   ;
18147   return 0;
18148 }
18149 _ACEOF
18150     # If the user provided a value to --with-boost, use it and only it.
18151     case $with_boost in #(
18152       ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
18153                  /usr/include C:/Boost/include;; #(
18154       *)      set x "$with_boost/include" "$with_boost";;
18155     esac
18156     shift
18157     for boost_dir
18158     do
18159     # Without --layout=system, Boost (or at least some versions) installs
18160     # itself in <prefix>/include/boost-<version>.  This inner loop helps to
18161     # find headers in such directories.
18162     #
18163     # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
18164     # order followed by ${boost_dir}.  The final '.' is a sentinel for
18165     # searching $boost_dir" itself.  Entries are whitespace separated.
18166     #
18167     # I didn't indent this loop on purpose (to avoid over-indented code)
18168     boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
18169         && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
18170         && echo .`
18171     for boost_inc in $boost_layout_system_search_list
18172     do
18173       if test x"$boost_inc" != x.; then
18174         boost_inc="$boost_dir/$boost_inc"
18175       else
18176         boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
18177       fi
18178       if test x"$boost_inc" != x; then
18179         # We are going to check whether the version of Boost installed
18180         # in $boost_inc is usable by running a compilation that
18181         # #includes it.  But if we pass a -I/some/path in which Boost
18182         # is not installed, the compiler will just skip this -I and
18183         # use other locations (either from CPPFLAGS, or from its list
18184         # of system include directories).  As a result we would use
18185         # header installed on the machine instead of the /some/path
18186         # specified by the user.  So in that precise case (trying
18187         # $boost_inc), make sure the version.hpp exists.
18188         #
18189         # Use test -e as there can be symlinks.
18190         test -e "$boost_inc/boost/version.hpp" || continue
18191         CPPFLAGS="$CPPFLAGS -I$boost_inc"
18192       fi
18193       if ac_fn_cxx_try_compile "$LINENO"; then :
18194   boost_cv_inc_path=yes
18195 else
18196   boost_cv_version=no
18197 fi
18198 rm -f core conftest.err conftest.$ac_objext
18199       if test x"$boost_cv_inc_path" = xyes; then
18200         if test x"$boost_inc" != x; then
18201           boost_cv_inc_path=$boost_inc
18202         fi
18203         break 2
18204       fi
18205     done
18206     done
18207 ac_ext=cpp
18208 ac_cpp='$CXXCPP $CPPFLAGS'
18209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18212
18213 fi
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
18215 $as_echo "$boost_cv_inc_path" >&6; }
18216     case $boost_cv_inc_path in #(
18217       no)
18218         boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
18219         as_fn_error $? "$boost_errmsg" "$LINENO" 5
18220
18221         ;;#(
18222       yes)
18223         BOOST_CPPFLAGS=
18224         ;;#(
18225       *)
18226         BOOST_CPPFLAGS="-I$boost_cv_inc_path"
18227         ;;
18228     esac
18229   if test x"$boost_cv_inc_path" != xno; then
18230
18231 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
18232
18233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
18234 $as_echo_n "checking for Boost's header version... " >&6; }
18235 if test "${boost_cv_lib_version+set}" = set; then :
18236   $as_echo_n "(cached) " >&6
18237 else
18238        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239 /* end confdefs.h.  */
18240 #include <boost/version.hpp>
18241 boost_lib_version = BOOST_LIB_VERSION
18242 _ACEOF
18243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18244   tr -d '\r' |
18245   $SED -n -e "/^boost_lib_version = /{s///;s/\"//g;p;q;}" >conftest.i 2>&1; then :
18246   boost_cv_lib_version=`cat conftest.i`
18247 fi
18248 rm -rf conftest*
18249
18250 fi
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
18252 $as_echo "$boost_cv_lib_version" >&6; }
18253     # e.g. "134" for 1_34_1 or "135" for 1_35
18254     boost_major_version=`echo "$boost_cv_lib_version" | $SED 's/_//;s/_.*//;s/ //'`
18255     case $boost_major_version in #(
18256       '' | *[!0-9]*)
18257         as_fn_error $? "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5
18258         ;;
18259     esac
18260 fi
18261 CPPFLAGS=$boost_save_CPPFLAGS
18262
18263 if test x"$boost_cv_inc_path" = xno; then
18264   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/bind.hpp" >&5
18265 $as_echo "$as_me: Boost not available, not searching for boost/bind.hpp" >&6;}
18266 else
18267 ac_ext=cpp
18268 ac_cpp='$CXXCPP $CPPFLAGS'
18269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18272 boost_save_CPPFLAGS=$CPPFLAGS
18273 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18274 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/bind.hpp" "ac_cv_header_boost_bind_hpp" "$ac_includes_default"
18275 if test "x$ac_cv_header_boost_bind_hpp" = x""yes; then :
18276
18277 $as_echo "#define HAVE_BOOST_BIND_HPP 1" >>confdefs.h
18278
18279 else
18280   as_fn_error $? "cannot find boost/bind.hpp" "$LINENO" 5
18281 fi
18282
18283
18284 CPPFLAGS=$boost_save_CPPFLAGS
18285 ac_ext=cpp
18286 ac_cpp='$CXXCPP $CPPFLAGS'
18287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18290 fi
18291
18292
18293 if test x"$boost_cv_inc_path" = xno; then
18294   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/lambda/lambda.hpp" >&5
18295 $as_echo "$as_me: Boost not available, not searching for boost/lambda/lambda.hpp" >&6;}
18296 else
18297 ac_ext=cpp
18298 ac_cpp='$CXXCPP $CPPFLAGS'
18299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18302 boost_save_CPPFLAGS=$CPPFLAGS
18303 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18304 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/lambda/lambda.hpp" "ac_cv_header_boost_lambda_lambda_hpp" "$ac_includes_default"
18305 if test "x$ac_cv_header_boost_lambda_lambda_hpp" = x""yes; then :
18306
18307 $as_echo "#define HAVE_BOOST_LAMBDA_LAMBDA_HPP 1" >>confdefs.h
18308
18309 else
18310   as_fn_error $? "cannot find boost/lambda/lambda.hpp" "$LINENO" 5
18311 fi
18312
18313
18314 CPPFLAGS=$boost_save_CPPFLAGS
18315 ac_ext=cpp
18316 ac_cpp='$CXXCPP $CPPFLAGS'
18317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18320 fi
18321
18322
18323 if test x"$boost_cv_inc_path" = xno; then
18324   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/ptr_container/ptr_vector.hpp" >&5
18325 $as_echo "$as_me: Boost not available, not searching for boost/ptr_container/ptr_vector.hpp" >&6;}
18326 else
18327 ac_ext=cpp
18328 ac_cpp='$CXXCPP $CPPFLAGS'
18329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18332 boost_save_CPPFLAGS=$CPPFLAGS
18333 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18334 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/ptr_container/ptr_vector.hpp" "ac_cv_header_boost_ptr_container_ptr_vector_hpp" "$ac_includes_default"
18335 if test "x$ac_cv_header_boost_ptr_container_ptr_vector_hpp" = x""yes; then :
18336
18337 $as_echo "#define HAVE_BOOST_PTR_CONTAINER_PTR_VECTOR_HPP 1" >>confdefs.h
18338
18339 else
18340   as_fn_error $? "cannot find boost/ptr_container/ptr_vector.hpp" "$LINENO" 5
18341 fi
18342
18343
18344 CPPFLAGS=$boost_save_CPPFLAGS
18345 ac_ext=cpp
18346 ac_cpp='$CXXCPP $CPPFLAGS'
18347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18350 fi
18351
18352
18353 if test x"$boost_cv_inc_path" = xno; then
18354   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/scoped_ptr.hpp" >&5
18355 $as_echo "$as_me: Boost not available, not searching for boost/scoped_ptr.hpp" >&6;}
18356 else
18357 ac_ext=cpp
18358 ac_cpp='$CXXCPP $CPPFLAGS'
18359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18362 boost_save_CPPFLAGS=$CPPFLAGS
18363 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18364 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/scoped_ptr.hpp" "ac_cv_header_boost_scoped_ptr_hpp" "$ac_includes_default"
18365 if test "x$ac_cv_header_boost_scoped_ptr_hpp" = x""yes; then :
18366
18367 $as_echo "#define HAVE_BOOST_SCOPED_PTR_HPP 1" >>confdefs.h
18368
18369 else
18370   as_fn_error $? "cannot find boost/scoped_ptr.hpp" "$LINENO" 5
18371 fi
18372
18373
18374 CPPFLAGS=$boost_save_CPPFLAGS
18375 ac_ext=cpp
18376 ac_cpp='$CXXCPP $CPPFLAGS'
18377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18380 fi
18381
18382 if test x"$boost_cv_inc_path" = xno; then
18383   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/shared_ptr.hpp" >&5
18384 $as_echo "$as_me: Boost not available, not searching for boost/shared_ptr.hpp" >&6;}
18385 else
18386 ac_ext=cpp
18387 ac_cpp='$CXXCPP $CPPFLAGS'
18388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18391 boost_save_CPPFLAGS=$CPPFLAGS
18392 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18393 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/shared_ptr.hpp" "ac_cv_header_boost_shared_ptr_hpp" "$ac_includes_default"
18394 if test "x$ac_cv_header_boost_shared_ptr_hpp" = x""yes; then :
18395
18396 $as_echo "#define HAVE_BOOST_SHARED_PTR_HPP 1" >>confdefs.h
18397
18398 else
18399   as_fn_error $? "cannot find boost/shared_ptr.hpp" "$LINENO" 5
18400 fi
18401
18402
18403 CPPFLAGS=$boost_save_CPPFLAGS
18404 ac_ext=cpp
18405 ac_cpp='$CXXCPP $CPPFLAGS'
18406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18409 fi
18410
18411
18412
18413 if test x"$boost_cv_inc_path" = xno; then
18414   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/algorithm/string.hpp" >&5
18415 $as_echo "$as_me: Boost not available, not searching for boost/algorithm/string.hpp" >&6;}
18416 else
18417 ac_ext=cpp
18418 ac_cpp='$CXXCPP $CPPFLAGS'
18419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18422 boost_save_CPPFLAGS=$CPPFLAGS
18423 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18424 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/algorithm/string.hpp" "ac_cv_header_boost_algorithm_string_hpp" "$ac_includes_default"
18425 if test "x$ac_cv_header_boost_algorithm_string_hpp" = x""yes; then :
18426
18427 $as_echo "#define HAVE_BOOST_ALGORITHM_STRING_HPP 1" >>confdefs.h
18428
18429 else
18430   as_fn_error $? "cannot find boost/algorithm/string.hpp" "$LINENO" 5
18431 fi
18432
18433
18434 CPPFLAGS=$boost_save_CPPFLAGS
18435 ac_ext=cpp
18436 ac_cpp='$CXXCPP $CPPFLAGS'
18437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18440 fi
18441
18442
18443
18444 CPPFLAGS="$BOOST_CPPFLAGS $CPPFLAGS"
18445
18446 # log4shib settings (favor this version over the log4cpp code)
18447 # Extract the first word of "log4shib-config", so it can be a program name with args.
18448 set dummy log4shib-config; ac_word=$2
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18450 $as_echo_n "checking for $ac_word... " >&6; }
18451 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then :
18452   $as_echo_n "(cached) " >&6
18453 else
18454   case $LOG4SHIB_CONFIG in
18455   [\\/]* | ?:[\\/]*)
18456   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
18457   ;;
18458   *)
18459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18460 for as_dir in $PATH
18461 do
18462   IFS=$as_save_IFS
18463   test -z "$as_dir" && as_dir=.
18464     for ac_exec_ext in '' $ac_executable_extensions; do
18465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18466     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18468     break 2
18469   fi
18470 done
18471   done
18472 IFS=$as_save_IFS
18473
18474   ;;
18475 esac
18476 fi
18477 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
18478 if test -n "$LOG4SHIB_CONFIG"; then
18479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4SHIB_CONFIG" >&5
18480 $as_echo "$LOG4SHIB_CONFIG" >&6; }
18481 else
18482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18483 $as_echo "no" >&6; }
18484 fi
18485
18486
18487
18488 # Check whether --with-log4shib was given.
18489 if test "${with_log4shib+set}" = set; then :
18490   withval=$with_log4shib;
18491     LOG4SHIB_CONFIG="${with_log4shib}"
18492     if ! test -f "${LOG4SHIB_CONFIG}"; then
18493         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
18494     fi
18495
18496 fi
18497
18498 if test -f "${LOG4SHIB_CONFIG}" ; then
18499     LIBS="`${LOG4SHIB_CONFIG} --libs` $LIBS"
18500     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
18501         ac_fn_cxx_check_header_mongrel "$LINENO" "log4shib/CategoryStream.hh" "ac_cv_header_log4shib_CategoryStream_hh" "$ac_includes_default"
18502 if test "x$ac_cv_header_log4shib_CategoryStream_hh" = x""yes; then :
18503
18504 else
18505   as_fn_error $? "unable to find log4shib header files" "$LINENO" 5
18506 fi
18507
18508
18509     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18510 /* end confdefs.h.  */
18511 #include <log4shib/Category.hh>
18512 #include <log4shib/CategoryStream.hh>
18513 int
18514 main ()
18515 {
18516 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
18517   ;
18518   return 0;
18519 }
18520 _ACEOF
18521 if ac_fn_cxx_try_link "$LINENO"; then :
18522
18523 $as_echo "#define OPENSAML_LOG4SHIB 1" >>confdefs.h
18524
18525 else
18526   as_fn_error $? "unable to link with log4shib" "$LINENO" 5
18527 fi
18528 rm -f core conftest.err conftest.$ac_objext \
18529     conftest$ac_exeext conftest.$ac_ext
18530 else
18531     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
18532 $as_echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
18533     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will look for original log4cpp library" >&5
18534 $as_echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
18535
18536     # log4cpp settings
18537     # Extract the first word of "log4cpp-config", so it can be a program name with args.
18538 set dummy log4cpp-config; ac_word=$2
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18540 $as_echo_n "checking for $ac_word... " >&6; }
18541 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then :
18542   $as_echo_n "(cached) " >&6
18543 else
18544   case $LOG4CPP_CONFIG in
18545   [\\/]* | ?:[\\/]*)
18546   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
18547   ;;
18548   *)
18549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18550 for as_dir in $PATH
18551 do
18552   IFS=$as_save_IFS
18553   test -z "$as_dir" && as_dir=.
18554     for ac_exec_ext in '' $ac_executable_extensions; do
18555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18556     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18558     break 2
18559   fi
18560 done
18561   done
18562 IFS=$as_save_IFS
18563
18564   ;;
18565 esac
18566 fi
18567 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
18568 if test -n "$LOG4CPP_CONFIG"; then
18569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4CPP_CONFIG" >&5
18570 $as_echo "$LOG4CPP_CONFIG" >&6; }
18571 else
18572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18573 $as_echo "no" >&6; }
18574 fi
18575
18576
18577
18578 # Check whether --with-log4cpp was given.
18579 if test "${with_log4cpp+set}" = set; then :
18580   withval=$with_log4cpp;
18581         LOG4CPP_CONFIG="${with_log4cpp}"
18582         if ! test -f "${LOG4CPP_CONFIG}"; then
18583                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
18584         fi
18585
18586 fi
18587
18588     if test -f "${LOG4CPP_CONFIG}"; then
18589         { $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
18590 $as_echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
18591         LIBS="`${LOG4CPP_CONFIG} --libs` $LIBS"
18592         CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
18593         ac_fn_cxx_check_header_mongrel "$LINENO" "log4cpp/CategoryStream.hh" "ac_cv_header_log4cpp_CategoryStream_hh" "$ac_includes_default"
18594 if test "x$ac_cv_header_log4cpp_CategoryStream_hh" = x""yes; then :
18595
18596 else
18597   as_fn_error $? "unable to find log4cpp header files" "$LINENO" 5
18598 fi
18599
18600
18601         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18602 /* end confdefs.h.  */
18603 #include <log4cpp/Category.hh>
18604 #include <log4cpp/CategoryStream.hh>
18605 int
18606 main ()
18607 {
18608 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
18609   ;
18610   return 0;
18611 }
18612 _ACEOF
18613 if ac_fn_cxx_try_link "$LINENO"; then :
18614
18615 $as_echo "#define OPENSAML_LOG4CPP 1" >>confdefs.h
18616
18617 else
18618   as_fn_error $? "unable to link with log4cpp, need version 1.0 or later" "$LINENO" 5
18619 fi
18620 rm -f core conftest.err conftest.$ac_objext \
18621     conftest$ac_exeext conftest.$ac_ext
18622     else
18623         as_fn_error $? "log4cpp-config not found, may need to use --with-log4cpp option" "$LINENO" 5
18624     fi
18625 fi
18626
18627 # Xerces settings
18628
18629 # Check whether --with-xerces was given.
18630 if test "${with_xerces+set}" = set; then :
18631   withval=$with_xerces;
18632 else
18633   with_xerces=/usr
18634 fi
18635
18636 if test x_$with_xerces != x_/usr; then
18637     CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
18638     LIBS="-L${with_xerces}/lib -lxerces-c $LIBS"
18639 else
18640     LIBS="-lxerces-c $LIBS"
18641 fi
18642
18643 ac_fn_cxx_check_header_mongrel "$LINENO" "xercesc/dom/DOM.hpp" "ac_cv_header_xercesc_dom_DOM_hpp" "$ac_includes_default"
18644 if test "x$ac_cv_header_xercesc_dom_DOM_hpp" = x""yes; then :
18645
18646 else
18647   as_fn_error $? "unable to find xerces header files" "$LINENO" 5
18648 fi
18649
18650
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Xerces version" >&5
18652 $as_echo_n "checking Xerces version... " >&6; }
18653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18654 /* end confdefs.h.  */
18655 #include <xercesc/util/XercesVersion.hpp>
18656 int
18657 main ()
18658 {
18659 #if  _XERCES_VERSION != 20600
18660 int i = 0;
18661 #else
18662 #error cannot use version 2.6.0
18663 #endif
18664   ;
18665   return 0;
18666 }
18667 _ACEOF
18668 if ac_fn_cxx_try_cpp "$LINENO"; then :
18669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
18670 $as_echo "OK" >&6; }
18671 else
18672   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18674 as_fn_error $? "Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
18675 See \`config.log' for more details" "$LINENO" 5 ; }
18676 fi
18677 rm -f conftest.err conftest.i conftest.$ac_ext
18678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h.  */
18680 #include <xercesc/util/PlatformUtils.hpp>
18681 int
18682 main ()
18683 {
18684 xercesc::XMLPlatformUtils::Initialize()
18685   ;
18686   return 0;
18687 }
18688 _ACEOF
18689 if ac_fn_cxx_try_link "$LINENO"; then :
18690
18691 else
18692   as_fn_error $? "unable to link with Xerces" "$LINENO" 5
18693 fi
18694 rm -f core conftest.err conftest.$ac_objext \
18695     conftest$ac_exeext conftest.$ac_ext
18696
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
18698 $as_echo_n "checking whether Xerces XMLString::release(XMLByte**) exists... " >&6; }
18699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h.  */
18701 #include <xercesc/util/XMLString.hpp>
18702 int
18703 main ()
18704 {
18705 using namespace XERCES_CPP_NAMESPACE; XMLByte* buf=NULL; XMLString::release(&buf);
18706   ;
18707   return 0;
18708 }
18709 _ACEOF
18710 if ac_fn_cxx_try_compile "$LINENO"; then :
18711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18712 $as_echo "yes" >&6; }
18713 $as_echo "#define OPENSAML_XERCESC_HAS_XMLBYTE_RELEASE 1" >>confdefs.h
18714
18715 else
18716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18717 $as_echo "no" >&6; }
18718 fi
18719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18720
18721 # XML-Security settings
18722
18723 # Check whether --with-xmlsec was given.
18724 if test "${with_xmlsec+set}" = set; then :
18725   withval=$with_xmlsec;
18726 else
18727   with_xmlsec=/usr
18728 fi
18729
18730 if test x_$with_xmlsec != x_/usr; then
18731     CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
18732     LIBS="-L${with_xmlsec}/lib -lxml-security-c $LIBS"
18733 else
18734     LIBS="-lxml-security-c $LIBS"
18735 fi
18736 ac_fn_cxx_check_header_mongrel "$LINENO" "xsec/utils/XSECPlatformUtils.hpp" "ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" "$ac_includes_default"
18737 if test "x$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" = x""yes; then :
18738
18739 else
18740   as_fn_error $? "unable to find xmlsec header files" "$LINENO" 5
18741 fi
18742
18743
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML-Security version" >&5
18745 $as_echo_n "checking XML-Security version... " >&6; }
18746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18747 /* end confdefs.h.  */
18748 #include <xsec/utils/XSECPlatformUtils.hpp>
18749 int
18750 main ()
18751 {
18752 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
18753 int i = 0;
18754 #else
18755 #error need version 1.4.0 or later
18756 #endif
18757   ;
18758   return 0;
18759 }
18760 _ACEOF
18761 if ac_fn_cxx_try_cpp "$LINENO"; then :
18762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
18763 $as_echo "OK" >&6; }
18764 else
18765   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18767 as_fn_error $? "XML-Security version 1.4.0 or greater is required.
18768 See \`config.log' for more details" "$LINENO" 5 ; }
18769 fi
18770 rm -f conftest.err conftest.i conftest.$ac_ext
18771     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18772 /* end confdefs.h.  */
18773 #include <xsec/utils/XSECPlatformUtils.hpp>
18774 int
18775 main ()
18776 {
18777 XSECPlatformUtils::Initialise()
18778   ;
18779   return 0;
18780 }
18781 _ACEOF
18782 if ac_fn_cxx_try_link "$LINENO"; then :
18783
18784 else
18785   as_fn_error $? "unable to link with XML-Security" "$LINENO" 5
18786 fi
18787 rm -f core conftest.err conftest.$ac_objext \
18788     conftest$ac_exeext conftest.$ac_ext
18789
18790 # XML-Tooling settings
18791
18792 # Check whether --with-xmltooling was given.
18793 if test "${with_xmltooling+set}" = set; then :
18794   withval=$with_xmltooling;
18795 else
18796   with_xmltooling=/usr
18797 fi
18798
18799 if test x_$with_xmltooling != x_/usr; then
18800     CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
18801     DX_INCLUDE="${with_xmltooling}/include"
18802     LIBS="-L${with_xmltooling}/lib -lxmltooling $LIBS"
18803 else
18804     LIBS="-lxmltooling $LIBS"
18805 fi
18806
18807 ac_fn_cxx_check_header_mongrel "$LINENO" "xmltooling/XMLToolingConfig.h" "ac_cv_header_xmltooling_XMLToolingConfig_h" "$ac_includes_default"
18808 if test "x$ac_cv_header_xmltooling_XMLToolingConfig_h" = x""yes; then :
18809
18810 else
18811   as_fn_error $? "unable to find xmltooling header files" "$LINENO" 5
18812 fi
18813
18814
18815
18816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18817 /* end confdefs.h.  */
18818 #include <xmltooling/XMLToolingConfig.h>
18819 #include <xmltooling/version.h>
18820 int
18821 main ()
18822 {
18823 #if _XMLTOOLING_VERSION >= 10400
18824 xmltooling::XMLToolingConfig::getConfig();
18825 #else
18826 #error Need XMLTooling version 1.4 or higher
18827 #endif
18828   ;
18829   return 0;
18830 }
18831 _ACEOF
18832 if ac_fn_cxx_try_link "$LINENO"; then :
18833
18834 else
18835   as_fn_error $? "unable to link with XMLTooling, or version was too old" "$LINENO" 5
18836 fi
18837 rm -f core conftest.err conftest.$ac_objext \
18838     conftest$ac_exeext conftest.$ac_ext
18839
18840 # Check for unit test support
18841 CXXTEST="/usr/bin/cxxtestgen.pl"
18842 CXXTESTFLAGS=""
18843
18844 # Check whether --with-cxxtest was given.
18845 if test "${with_cxxtest+set}" = set; then :
18846   withval=$with_cxxtest; if test x_$with_cxxtest != x_/usr; then
18847         CXXTEST="${with_cxxtest}/cxxtestgen.pl"
18848         CXXTESTFLAGS="-I${with_cxxtest}"
18849     fi
18850 fi
18851
18852 if ! test -f "${CXXTEST}"; then
18853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cxxtestgen not found, won't build unit tests" >&5
18854 $as_echo "$as_me: WARNING: cxxtestgen not found, won't build unit tests" >&2;}
18855 fi
18856
18857
18858
18859  if test -f ${CXXTEST}; then
18860   BUILD_UNITTEST_TRUE=
18861   BUILD_UNITTEST_FALSE='#'
18862 else
18863   BUILD_UNITTEST_TRUE='#'
18864   BUILD_UNITTEST_FALSE=
18865 fi
18866
18867
18868
18869 # we need the expanded forms...
18870 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18872
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
18874 $as_echo_n "checking our pkgconfig libname... " >&6; }
18875 test ".$ax_create_pkgconfig_libname" != "." || \
18876 ax_create_pkgconfig_libname="${PACKAGE_NAME}"
18877 test ".$ax_create_pkgconfig_libname" != "." || \
18878 ax_create_pkgconfig_libname="$PACKAGE"
18879 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
18880 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
18882 $as_echo "$ax_create_pkgconfig_libname" >&6; }
18883
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
18885 $as_echo_n "checking our pkgconfig version... " >&6; }
18886 test ".$ax_create_pkgconfig_version" != "." || \
18887 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
18888 test ".$ax_create_pkgconfig_version" != "." || \
18889 ax_create_pkgconfig_version="$VERSION"
18890 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
18891 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
18893 $as_echo "$ax_create_pkgconfig_version" >&6; }
18894
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
18896 $as_echo_n "checking our pkgconfig_libdir... " >&6; }
18897 test ".$pkgconfig_libdir" = "." && \
18898 pkgconfig_libdir='${libdir}/pkgconfig'
18899 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
18900 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
18901 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
18903 $as_echo "$pkgconfig_libdir" >&6; }
18904 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
18906 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
18907
18908
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
18910 $as_echo_n "checking our pkgconfig_libfile... " >&6; }
18911 test ".$pkgconfig_libfile" != "." || \
18912 pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
18913 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
18914 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
18916 $as_echo "$pkgconfig_libfile" >&6; }
18917 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
18919 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
18920
18921
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
18923 $as_echo_n "checking our package / suffix... " >&6; }
18924 ax_create_pkgconfig_suffix="$program_suffix"
18925 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
18927 $as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
18928
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
18930 $as_echo_n "checking our pkgconfig description... " >&6; }
18931 ax_create_pkgconfig_description="OpenSAML library"
18932 test ".$ax_create_pkgconfig_description" != "." || \
18933 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
18934 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
18935 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
18937 $as_echo "$ax_create_pkgconfig_description" >&6; }
18938
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
18940 $as_echo_n "checking our pkgconfig requires... " >&6; }
18941 ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
18942 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
18943 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
18945 $as_echo "$ax_create_pkgconfig_requires" >&6; }
18946
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
18948 $as_echo_n "checking our pkgconfig ext libs... " >&6; }
18949 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
18950 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
18951 ax_create_pkgconfig_libs="$LIBS -lsaml"
18952 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
18953 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
18955 $as_echo "$ax_create_pkgconfig_libs" >&6; }
18956
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
18958 $as_echo_n "checking our pkgconfig cppflags... " >&6; }
18959 ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS"
18960 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
18961 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
18963 $as_echo "$ax_create_pkgconfig_cppflags" >&6; }
18964
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
18966 $as_echo_n "checking our pkgconfig ldflags... " >&6; }
18967 ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS"
18968 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
18969 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
18971 $as_echo "$ax_create_pkgconfig_ldflags" >&6; }
18972
18973 test ".$ax_create_pkgconfig_generate" != "." || \
18974 ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
18975 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
18976 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
18977 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
18979 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
18980
18981 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
18982 ax_create_pkgconfig_src_libdir=`pwd`
18983 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
18984 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18985          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
18986          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
18987          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
18988 $as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
18989     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18990             s//\1/
18991             q
18992           }
18993           /^X\(\/\/\)[^/].*/{
18994             s//\1/
18995             q
18996           }
18997           /^X\(\/\/\)$/{
18998             s//\1/
18999             q
19000           }
19001           /^X\(\/\).*/{
19002             s//\1/
19003             q
19004           }
19005           s/.*/./; q'`
19006 test ! -d $ax_create_pkgconfig_src_libdir/src || \
19007 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
19008 case ".$objdir" in
19009 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
19011 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
19012 fi
19013
19014 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
19015 ax_create_pkgconfig_src_headers=`pwd`
19016 v="$ac_top_srcdir" ;
19017 test ".$v" != "." || v="$ax_spec_dir"
19018 test ".$v" != "." || v="$srcdir"
19019 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
19020 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
19021 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19022          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
19023          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
19024          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
19025 $as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
19026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19027             s//\1/
19028             q
19029           }
19030           /^X\(\/\/\)[^/].*/{
19031             s//\1/
19032             q
19033           }
19034           /^X\(\/\/\)$/{
19035             s//\1/
19036             q
19037           }
19038           /^X\(\/\).*/{
19039             s//\1/
19040             q
19041           }
19042           s/.*/./; q'`
19043 test ! -d $ax_create_pkgconfig_src_headers/include || \
19044 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
19046 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
19047 fi
19048
19049
19050 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
19051
19052
19053
19054 LIBTOOL="$LIBTOOL --silent"
19055
19056 # output packaging and makefiles
19057 cat >confcache <<\_ACEOF
19058 # This file is a shell script that caches the results of configure
19059 # tests run on this system so they can be shared between configure
19060 # scripts and configure runs, see configure's option --config-cache.
19061 # It is not useful on other systems.  If it contains results you don't
19062 # want to keep, you may remove or edit it.
19063 #
19064 # config.status only pays attention to the cache file if you give it
19065 # the --recheck option to rerun configure.
19066 #
19067 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19068 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19069 # following values.
19070
19071 _ACEOF
19072
19073 # The following way of writing the cache mishandles newlines in values,
19074 # but we know of no workaround that is simple, portable, and efficient.
19075 # So, we kill variables containing newlines.
19076 # Ultrix sh set writes to stderr and can't be redirected directly,
19077 # and sets the high bit in the cache file unless we assign to the vars.
19078 (
19079   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19080     eval ac_val=\$$ac_var
19081     case $ac_val in #(
19082     *${as_nl}*)
19083       case $ac_var in #(
19084       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19086       esac
19087       case $ac_var in #(
19088       _ | IFS | as_nl) ;; #(
19089       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19090       *) { eval $ac_var=; unset $ac_var;} ;;
19091       esac ;;
19092     esac
19093   done
19094
19095   (set) 2>&1 |
19096     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19097     *${as_nl}ac_space=\ *)
19098       # `set' does not quote correctly, so add quotes: double-quote
19099       # substitution turns \\\\ into \\, and sed turns \\ into \.
19100       sed -n \
19101         "s/'/'\\\\''/g;
19102           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19103       ;; #(
19104     *)
19105       # `set' quotes correctly as required by POSIX, so do not add quotes.
19106       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19107       ;;
19108     esac |
19109     sort
19110 ) |
19111   sed '
19112      /^ac_cv_env_/b end
19113      t clear
19114      :clear
19115      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19116      t end
19117      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19118      :end' >>confcache
19119 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19120   if test -w "$cache_file"; then
19121     test "x$cache_file" != "x/dev/null" &&
19122       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19123 $as_echo "$as_me: updating cache $cache_file" >&6;}
19124     cat confcache >$cache_file
19125   else
19126     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19127 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19128   fi
19129 fi
19130 rm -f confcache
19131
19132 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19133 # Let make expand exec_prefix.
19134 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19135
19136 DEFS=-DHAVE_CONFIG_H
19137
19138 ac_libobjs=
19139 ac_ltlibobjs=
19140 U=
19141 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19142   # 1. Remove the extension, and $U if already installed.
19143   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19144   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19145   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19146   #    will be set to the directory where LIBOBJS objects are built.
19147   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19148   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19149 done
19150 LIBOBJS=$ac_libobjs
19151
19152 LTLIBOBJS=$ac_ltlibobjs
19153
19154
19155  if test -n "$EXEEXT"; then
19156   am__EXEEXT_TRUE=
19157   am__EXEEXT_FALSE='#'
19158 else
19159   am__EXEEXT_TRUE='#'
19160   am__EXEEXT_FALSE=
19161 fi
19162
19163 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19164   as_fn_error $? "conditional \"AMDEP\" was never defined.
19165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19166 fi
19167 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19168   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19170 fi
19171 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19172   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19174 fi
19175 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19176   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19178 fi
19179 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19180   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19182 fi
19183 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19184   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19186 fi
19187 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19188   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19190 fi
19191 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19192   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19194 fi
19195 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19196   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19198 fi
19199 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19200   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19202 fi
19203 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19204   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19206 fi
19207 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19208   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19210 fi
19211 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19212   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19214 fi
19215 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19216   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19218 fi
19219 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19220   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19222 fi
19223 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19224   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19226 fi
19227 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19228   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19230 fi
19231 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19232   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19234 fi
19235 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19236   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19238 fi
19239 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19240   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19242 fi
19243 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19244   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19246 fi
19247 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19248   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19250 fi
19251 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19252   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19254 fi
19255 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19256   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19258 fi
19259 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19260   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19262 fi
19263 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19264   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19266 fi
19267 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19268   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19270 fi
19271 if test -z "${BUILD_UNITTEST_TRUE}" && test -z "${BUILD_UNITTEST_FALSE}"; then
19272   as_fn_error $? "conditional \"BUILD_UNITTEST\" was never defined.
19273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19274 fi
19275
19276 : ${CONFIG_STATUS=./config.status}
19277 ac_write_fail=0
19278 ac_clean_files_save=$ac_clean_files
19279 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19281 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19282 as_write_fail=0
19283 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19284 #! $SHELL
19285 # Generated by $as_me.
19286 # Run this file to recreate the current configuration.
19287 # Compiler output produced by configure, useful for debugging
19288 # configure, is in config.log if it exists.
19289
19290 debug=false
19291 ac_cs_recheck=false
19292 ac_cs_silent=false
19293
19294 SHELL=\${CONFIG_SHELL-$SHELL}
19295 export SHELL
19296 _ASEOF
19297 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19298 ## -------------------- ##
19299 ## M4sh Initialization. ##
19300 ## -------------------- ##
19301
19302 # Be more Bourne compatible
19303 DUALCASE=1; export DUALCASE # for MKS sh
19304 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19305   emulate sh
19306   NULLCMD=:
19307   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19308   # is contrary to our usage.  Disable this feature.
19309   alias -g '${1+"$@"}'='"$@"'
19310   setopt NO_GLOB_SUBST
19311 else
19312   case `(set -o) 2>/dev/null` in #(
19313   *posix*) :
19314     set -o posix ;; #(
19315   *) :
19316      ;;
19317 esac
19318 fi
19319
19320
19321 as_nl='
19322 '
19323 export as_nl
19324 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19325 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19326 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19327 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19328 # Prefer a ksh shell builtin over an external printf program on Solaris,
19329 # but without wasting forks for bash or zsh.
19330 if test -z "$BASH_VERSION$ZSH_VERSION" \
19331     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19332   as_echo='print -r --'
19333   as_echo_n='print -rn --'
19334 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19335   as_echo='printf %s\n'
19336   as_echo_n='printf %s'
19337 else
19338   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19339     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19340     as_echo_n='/usr/ucb/echo -n'
19341   else
19342     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19343     as_echo_n_body='eval
19344       arg=$1;
19345       case $arg in #(
19346       *"$as_nl"*)
19347         expr "X$arg" : "X\\(.*\\)$as_nl";
19348         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19349       esac;
19350       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19351     '
19352     export as_echo_n_body
19353     as_echo_n='sh -c $as_echo_n_body as_echo'
19354   fi
19355   export as_echo_body
19356   as_echo='sh -c $as_echo_body as_echo'
19357 fi
19358
19359 # The user is always right.
19360 if test "${PATH_SEPARATOR+set}" != set; then
19361   PATH_SEPARATOR=:
19362   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19363     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19364       PATH_SEPARATOR=';'
19365   }
19366 fi
19367
19368
19369 # IFS
19370 # We need space, tab and new line, in precisely that order.  Quoting is
19371 # there to prevent editors from complaining about space-tab.
19372 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19373 # splitting by setting IFS to empty value.)
19374 IFS=" ""        $as_nl"
19375
19376 # Find who we are.  Look in the path if we contain no directory separator.
19377 case $0 in #((
19378   *[\\/]* ) as_myself=$0 ;;
19379   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19380 for as_dir in $PATH
19381 do
19382   IFS=$as_save_IFS
19383   test -z "$as_dir" && as_dir=.
19384     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19385   done
19386 IFS=$as_save_IFS
19387
19388      ;;
19389 esac
19390 # We did not find ourselves, most probably we were run as `sh COMMAND'
19391 # in which case we are not to be found in the path.
19392 if test "x$as_myself" = x; then
19393   as_myself=$0
19394 fi
19395 if test ! -f "$as_myself"; then
19396   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19397   exit 1
19398 fi
19399
19400 # Unset variables that we do not need and which cause bugs (e.g. in
19401 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19402 # suppresses any "Segmentation fault" message there.  '((' could
19403 # trigger a bug in pdksh 5.2.14.
19404 for as_var in BASH_ENV ENV MAIL MAILPATH
19405 do eval test x\${$as_var+set} = xset \
19406   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19407 done
19408 PS1='$ '
19409 PS2='> '
19410 PS4='+ '
19411
19412 # NLS nuisances.
19413 LC_ALL=C
19414 export LC_ALL
19415 LANGUAGE=C
19416 export LANGUAGE
19417
19418 # CDPATH.
19419 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19420
19421
19422 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19423 # ----------------------------------------
19424 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19425 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19426 # script with STATUS, using 1 if that was 0.
19427 as_fn_error ()
19428 {
19429   as_status=$1; test $as_status -eq 0 && as_status=1
19430   if test "$4"; then
19431     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19432     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19433   fi
19434   $as_echo "$as_me: error: $2" >&2
19435   as_fn_exit $as_status
19436 } # as_fn_error
19437
19438
19439 # as_fn_set_status STATUS
19440 # -----------------------
19441 # Set $? to STATUS, without forking.
19442 as_fn_set_status ()
19443 {
19444   return $1
19445 } # as_fn_set_status
19446
19447 # as_fn_exit STATUS
19448 # -----------------
19449 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19450 as_fn_exit ()
19451 {
19452   set +e
19453   as_fn_set_status $1
19454   exit $1
19455 } # as_fn_exit
19456
19457 # as_fn_unset VAR
19458 # ---------------
19459 # Portably unset VAR.
19460 as_fn_unset ()
19461 {
19462   { eval $1=; unset $1;}
19463 }
19464 as_unset=as_fn_unset
19465 # as_fn_append VAR VALUE
19466 # ----------------------
19467 # Append the text in VALUE to the end of the definition contained in VAR. Take
19468 # advantage of any shell optimizations that allow amortized linear growth over
19469 # repeated appends, instead of the typical quadratic growth present in naive
19470 # implementations.
19471 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19472   eval 'as_fn_append ()
19473   {
19474     eval $1+=\$2
19475   }'
19476 else
19477   as_fn_append ()
19478   {
19479     eval $1=\$$1\$2
19480   }
19481 fi # as_fn_append
19482
19483 # as_fn_arith ARG...
19484 # ------------------
19485 # Perform arithmetic evaluation on the ARGs, and store the result in the
19486 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19487 # must be portable across $(()) and expr.
19488 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19489   eval 'as_fn_arith ()
19490   {
19491     as_val=$(( $* ))
19492   }'
19493 else
19494   as_fn_arith ()
19495   {
19496     as_val=`expr "$@" || test $? -eq 1`
19497   }
19498 fi # as_fn_arith
19499
19500
19501 if expr a : '\(a\)' >/dev/null 2>&1 &&
19502    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19503   as_expr=expr
19504 else
19505   as_expr=false
19506 fi
19507
19508 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19509   as_basename=basename
19510 else
19511   as_basename=false
19512 fi
19513
19514 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19515   as_dirname=dirname
19516 else
19517   as_dirname=false
19518 fi
19519
19520 as_me=`$as_basename -- "$0" ||
19521 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19522          X"$0" : 'X\(//\)$' \| \
19523          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19524 $as_echo X/"$0" |
19525     sed '/^.*\/\([^/][^/]*\)\/*$/{
19526             s//\1/
19527             q
19528           }
19529           /^X\/\(\/\/\)$/{
19530             s//\1/
19531             q
19532           }
19533           /^X\/\(\/\).*/{
19534             s//\1/
19535             q
19536           }
19537           s/.*/./; q'`
19538
19539 # Avoid depending upon Character Ranges.
19540 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19541 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19542 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19543 as_cr_digits='0123456789'
19544 as_cr_alnum=$as_cr_Letters$as_cr_digits
19545
19546 ECHO_C= ECHO_N= ECHO_T=
19547 case `echo -n x` in #(((((
19548 -n*)
19549   case `echo 'xy\c'` in
19550   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19551   xy)  ECHO_C='\c';;
19552   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19553        ECHO_T=' ';;
19554   esac;;
19555 *)
19556   ECHO_N='-n';;
19557 esac
19558
19559 rm -f conf$$ conf$$.exe conf$$.file
19560 if test -d conf$$.dir; then
19561   rm -f conf$$.dir/conf$$.file
19562 else
19563   rm -f conf$$.dir
19564   mkdir conf$$.dir 2>/dev/null
19565 fi
19566 if (echo >conf$$.file) 2>/dev/null; then
19567   if ln -s conf$$.file conf$$ 2>/dev/null; then
19568     as_ln_s='ln -s'
19569     # ... but there are two gotchas:
19570     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19571     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19572     # In both cases, we have to default to `cp -p'.
19573     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19574       as_ln_s='cp -p'
19575   elif ln conf$$.file conf$$ 2>/dev/null; then
19576     as_ln_s=ln
19577   else
19578     as_ln_s='cp -p'
19579   fi
19580 else
19581   as_ln_s='cp -p'
19582 fi
19583 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19584 rmdir conf$$.dir 2>/dev/null
19585
19586
19587 # as_fn_mkdir_p
19588 # -------------
19589 # Create "$as_dir" as a directory, including parents if necessary.
19590 as_fn_mkdir_p ()
19591 {
19592
19593   case $as_dir in #(
19594   -*) as_dir=./$as_dir;;
19595   esac
19596   test -d "$as_dir" || eval $as_mkdir_p || {
19597     as_dirs=
19598     while :; do
19599       case $as_dir in #(
19600       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19601       *) as_qdir=$as_dir;;
19602       esac
19603       as_dirs="'$as_qdir' $as_dirs"
19604       as_dir=`$as_dirname -- "$as_dir" ||
19605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19606          X"$as_dir" : 'X\(//\)[^/]' \| \
19607          X"$as_dir" : 'X\(//\)$' \| \
19608          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19609 $as_echo X"$as_dir" |
19610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19611             s//\1/
19612             q
19613           }
19614           /^X\(\/\/\)[^/].*/{
19615             s//\1/
19616             q
19617           }
19618           /^X\(\/\/\)$/{
19619             s//\1/
19620             q
19621           }
19622           /^X\(\/\).*/{
19623             s//\1/
19624             q
19625           }
19626           s/.*/./; q'`
19627       test -d "$as_dir" && break
19628     done
19629     test -z "$as_dirs" || eval "mkdir $as_dirs"
19630   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19631
19632
19633 } # as_fn_mkdir_p
19634 if mkdir -p . 2>/dev/null; then
19635   as_mkdir_p='mkdir -p "$as_dir"'
19636 else
19637   test -d ./-p && rmdir ./-p
19638   as_mkdir_p=false
19639 fi
19640
19641 if test -x / >/dev/null 2>&1; then
19642   as_test_x='test -x'
19643 else
19644   if ls -dL / >/dev/null 2>&1; then
19645     as_ls_L_option=L
19646   else
19647     as_ls_L_option=
19648   fi
19649   as_test_x='
19650     eval sh -c '\''
19651       if test -d "$1"; then
19652         test -d "$1/.";
19653       else
19654         case $1 in #(
19655         -*)set "./$1";;
19656         esac;
19657         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19658         ???[sx]*):;;*)false;;esac;fi
19659     '\'' sh
19660   '
19661 fi
19662 as_executable_p=$as_test_x
19663
19664 # Sed expression to map a string onto a valid CPP name.
19665 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19666
19667 # Sed expression to map a string onto a valid variable name.
19668 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19669
19670
19671 exec 6>&1
19672 ## ----------------------------------- ##
19673 ## Main body of $CONFIG_STATUS script. ##
19674 ## ----------------------------------- ##
19675 _ASEOF
19676 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19677
19678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19679 # Save the log message, to keep $0 and so on meaningful, and to
19680 # report actual input values of CONFIG_FILES etc. instead of their
19681 # values after options handling.
19682 ac_log="
19683 This file was extended by opensaml $as_me 2.5.0, which was
19684 generated by GNU Autoconf 2.67.  Invocation command line was
19685
19686   CONFIG_FILES    = $CONFIG_FILES
19687   CONFIG_HEADERS  = $CONFIG_HEADERS
19688   CONFIG_LINKS    = $CONFIG_LINKS
19689   CONFIG_COMMANDS = $CONFIG_COMMANDS
19690   $ $0 $@
19691
19692 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19693 "
19694
19695 _ACEOF
19696
19697 case $ac_config_files in *"
19698 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19699 esac
19700
19701 case $ac_config_headers in *"
19702 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19703 esac
19704
19705
19706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19707 # Files that config.status was made for.
19708 config_files="$ac_config_files"
19709 config_headers="$ac_config_headers"
19710 config_commands="$ac_config_commands"
19711
19712 _ACEOF
19713
19714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19715 ac_cs_usage="\
19716 \`$as_me' instantiates files and other configuration actions
19717 from templates according to the current configuration.  Unless the files
19718 and actions are specified as TAGs, all are instantiated by default.
19719
19720 Usage: $0 [OPTION]... [TAG]...
19721
19722   -h, --help       print this help, then exit
19723   -V, --version    print version number and configuration settings, then exit
19724       --config     print configuration, then exit
19725   -q, --quiet, --silent
19726                    do not print progress messages
19727   -d, --debug      don't remove temporary files
19728       --recheck    update $as_me by reconfiguring in the same conditions
19729       --file=FILE[:TEMPLATE]
19730                    instantiate the configuration file FILE
19731       --header=FILE[:TEMPLATE]
19732                    instantiate the configuration header FILE
19733
19734 Configuration files:
19735 $config_files
19736
19737 Configuration headers:
19738 $config_headers
19739
19740 Configuration commands:
19741 $config_commands
19742
19743 Report bugs to <https://issues.shibboleth.net/>."
19744
19745 _ACEOF
19746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19747 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19748 ac_cs_version="\\
19749 opensaml config.status 2.5.0
19750 configured by $0, generated by GNU Autoconf 2.67,
19751   with options \\"\$ac_cs_config\\"
19752
19753 Copyright (C) 2010 Free Software Foundation, Inc.
19754 This config.status script is free software; the Free Software Foundation
19755 gives unlimited permission to copy, distribute and modify it."
19756
19757 ac_pwd='$ac_pwd'
19758 srcdir='$srcdir'
19759 INSTALL='$INSTALL'
19760 MKDIR_P='$MKDIR_P'
19761 AWK='$AWK'
19762 test -n "\$AWK" || AWK=awk
19763 _ACEOF
19764
19765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19766 # The default lists apply if the user does not specify any file.
19767 ac_need_defaults=:
19768 while test $# != 0
19769 do
19770   case $1 in
19771   --*=?*)
19772     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19773     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19774     ac_shift=:
19775     ;;
19776   --*=)
19777     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19778     ac_optarg=
19779     ac_shift=:
19780     ;;
19781   *)
19782     ac_option=$1
19783     ac_optarg=$2
19784     ac_shift=shift
19785     ;;
19786   esac
19787
19788   case $ac_option in
19789   # Handling of the options.
19790   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19791     ac_cs_recheck=: ;;
19792   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19793     $as_echo "$ac_cs_version"; exit ;;
19794   --config | --confi | --conf | --con | --co | --c )
19795     $as_echo "$ac_cs_config"; exit ;;
19796   --debug | --debu | --deb | --de | --d | -d )
19797     debug=: ;;
19798   --file | --fil | --fi | --f )
19799     $ac_shift
19800     case $ac_optarg in
19801     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19802     '') as_fn_error $? "missing file argument" ;;
19803     esac
19804     as_fn_append CONFIG_FILES " '$ac_optarg'"
19805     ac_need_defaults=false;;
19806   --header | --heade | --head | --hea )
19807     $ac_shift
19808     case $ac_optarg in
19809     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19810     esac
19811     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19812     ac_need_defaults=false;;
19813   --he | --h)
19814     # Conflict between --help and --header
19815     as_fn_error $? "ambiguous option: \`$1'
19816 Try \`$0 --help' for more information.";;
19817   --help | --hel | -h )
19818     $as_echo "$ac_cs_usage"; exit ;;
19819   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19820   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19821     ac_cs_silent=: ;;
19822
19823   # This is an error.
19824   -*) as_fn_error $? "unrecognized option: \`$1'
19825 Try \`$0 --help' for more information." ;;
19826
19827   *) as_fn_append ac_config_targets " $1"
19828      ac_need_defaults=false ;;
19829
19830   esac
19831   shift
19832 done
19833
19834 ac_configure_extra_args=
19835
19836 if $ac_cs_silent; then
19837   exec 6>/dev/null
19838   ac_configure_extra_args="$ac_configure_extra_args --silent"
19839 fi
19840
19841 _ACEOF
19842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19843 if \$ac_cs_recheck; then
19844   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19845   shift
19846   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19847   CONFIG_SHELL='$SHELL'
19848   export CONFIG_SHELL
19849   exec "\$@"
19850 fi
19851
19852 _ACEOF
19853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19854 exec 5>>config.log
19855 {
19856   echo
19857   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19858 ## Running $as_me. ##
19859 _ASBOX
19860   $as_echo "$ac_log"
19861 } >&5
19862
19863 _ACEOF
19864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19865 #
19866 # INIT-COMMANDS
19867 #
19868 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19869
19870
19871 # The HP-UX ksh and POSIX shell print the target directory to stdout
19872 # if CDPATH is set.
19873 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19874
19875 sed_quote_subst='$sed_quote_subst'
19876 double_quote_subst='$double_quote_subst'
19877 delay_variable_subst='$delay_variable_subst'
19878 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19879 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19880 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19881 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19882 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19883 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19884 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19885 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19886 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19887 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19888 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19889 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19890 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19891 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19892 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19893 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19894 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19895 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19896 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19897 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19898 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19899 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19900 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19901 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19902 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19903 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19904 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19905 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19906 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19907 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19908 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19909 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19910 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19911 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19912 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19913 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19914 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19915 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19916 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19917 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19918 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19919 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19920 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19921 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19922 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"`'
19923 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"`'
19924 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19925 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19926 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19927 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19928 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19929 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19930 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19931 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19932 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19933 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19934 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19935 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19936 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19937 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19938 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19939 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19940 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19941 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19942 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19943 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19944 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19945 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19946 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19947 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19948 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19949 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19950 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19951 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19952 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19953 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19954 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19955 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19956 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19957 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19958 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19959 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19960 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19961 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19962 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19963 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19964 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19965 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19966 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19967 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19968 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19969 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19970 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19971 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19972 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19973 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19974 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19975 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19976 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19977 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19978 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19979 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19980 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19981 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19982 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19983 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19984 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19985 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19986 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19987 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19988 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19989 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19990 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19991 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19992 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19993 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19994 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19995 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19996 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19997 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19998 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19999 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20000 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20001 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20002 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20003 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20004 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20005 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20006 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20007 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20008 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20009 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20010 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20011 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20012 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20013 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20014 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20015 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20016 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20017 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20018 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20019 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20020 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20021 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20022 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20023 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20024 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20025 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20026 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20027 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20028 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20029 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20030 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20031 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20032 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20033 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20034 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20035 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20036 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20037 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20038 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20039 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20040 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20041 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20042 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20043 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20044 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20045 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20046 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20047 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20048 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20049
20050 LTCC='$LTCC'
20051 LTCFLAGS='$LTCFLAGS'
20052 compiler='$compiler_DEFAULT'
20053
20054 # Quote evaled strings.
20055 for var in SED \
20056 GREP \
20057 EGREP \
20058 FGREP \
20059 LD \
20060 NM \
20061 LN_S \
20062 lt_SP2NL \
20063 lt_NL2SP \
20064 reload_flag \
20065 OBJDUMP \
20066 deplibs_check_method \
20067 file_magic_cmd \
20068 AR \
20069 AR_FLAGS \
20070 STRIP \
20071 RANLIB \
20072 CC \
20073 CFLAGS \
20074 compiler \
20075 lt_cv_sys_global_symbol_pipe \
20076 lt_cv_sys_global_symbol_to_cdecl \
20077 lt_cv_sys_global_symbol_to_c_name_address \
20078 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20079 SHELL \
20080 ECHO \
20081 lt_prog_compiler_no_builtin_flag \
20082 lt_prog_compiler_wl \
20083 lt_prog_compiler_pic \
20084 lt_prog_compiler_static \
20085 lt_cv_prog_compiler_c_o \
20086 need_locks \
20087 DSYMUTIL \
20088 NMEDIT \
20089 LIPO \
20090 OTOOL \
20091 OTOOL64 \
20092 shrext_cmds \
20093 export_dynamic_flag_spec \
20094 whole_archive_flag_spec \
20095 compiler_needs_object \
20096 with_gnu_ld \
20097 allow_undefined_flag \
20098 no_undefined_flag \
20099 hardcode_libdir_flag_spec \
20100 hardcode_libdir_flag_spec_ld \
20101 hardcode_libdir_separator \
20102 fix_srcfile_path \
20103 exclude_expsyms \
20104 include_expsyms \
20105 file_list_spec \
20106 variables_saved_for_relink \
20107 libname_spec \
20108 library_names_spec \
20109 soname_spec \
20110 finish_eval \
20111 old_striplib \
20112 striplib \
20113 compiler_lib_search_dirs \
20114 predep_objects \
20115 postdep_objects \
20116 predeps \
20117 postdeps \
20118 compiler_lib_search_path \
20119 LD_CXX \
20120 compiler_CXX \
20121 lt_prog_compiler_no_builtin_flag_CXX \
20122 lt_prog_compiler_wl_CXX \
20123 lt_prog_compiler_pic_CXX \
20124 lt_prog_compiler_static_CXX \
20125 lt_cv_prog_compiler_c_o_CXX \
20126 export_dynamic_flag_spec_CXX \
20127 whole_archive_flag_spec_CXX \
20128 compiler_needs_object_CXX \
20129 with_gnu_ld_CXX \
20130 allow_undefined_flag_CXX \
20131 no_undefined_flag_CXX \
20132 hardcode_libdir_flag_spec_CXX \
20133 hardcode_libdir_flag_spec_ld_CXX \
20134 hardcode_libdir_separator_CXX \
20135 fix_srcfile_path_CXX \
20136 exclude_expsyms_CXX \
20137 include_expsyms_CXX \
20138 file_list_spec_CXX \
20139 compiler_lib_search_dirs_CXX \
20140 predep_objects_CXX \
20141 postdep_objects_CXX \
20142 predeps_CXX \
20143 postdeps_CXX \
20144 compiler_lib_search_path_CXX; do
20145     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20146     *[\\\\\\\`\\"\\\$]*)
20147       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20148       ;;
20149     *)
20150       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20151       ;;
20152     esac
20153 done
20154
20155 # Double-quote double-evaled strings.
20156 for var in reload_cmds \
20157 old_postinstall_cmds \
20158 old_postuninstall_cmds \
20159 old_archive_cmds \
20160 extract_expsyms_cmds \
20161 old_archive_from_new_cmds \
20162 old_archive_from_expsyms_cmds \
20163 archive_cmds \
20164 archive_expsym_cmds \
20165 module_cmds \
20166 module_expsym_cmds \
20167 export_symbols_cmds \
20168 prelink_cmds \
20169 postinstall_cmds \
20170 postuninstall_cmds \
20171 finish_cmds \
20172 sys_lib_search_path_spec \
20173 sys_lib_dlsearch_path_spec \
20174 old_archive_cmds_CXX \
20175 old_archive_from_new_cmds_CXX \
20176 old_archive_from_expsyms_cmds_CXX \
20177 archive_cmds_CXX \
20178 archive_expsym_cmds_CXX \
20179 module_cmds_CXX \
20180 module_expsym_cmds_CXX \
20181 export_symbols_cmds_CXX \
20182 prelink_cmds_CXX; do
20183     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20184     *[\\\\\\\`\\"\\\$]*)
20185       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20186       ;;
20187     *)
20188       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20189       ;;
20190     esac
20191 done
20192
20193 # Fix-up fallback echo if it was mangled by the above quoting rules.
20194 case \$lt_ECHO in
20195 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20196   ;;
20197 esac
20198
20199 ac_aux_dir='$ac_aux_dir'
20200 xsi_shell='$xsi_shell'
20201 lt_shell_append='$lt_shell_append'
20202
20203 # See if we are running on zsh, and set the options which allow our
20204 # commands through without removal of \ escapes INIT.
20205 if test -n "\${ZSH_VERSION+set}" ; then
20206    setopt NO_GLOB_SUBST
20207 fi
20208
20209
20210     PACKAGE='$PACKAGE'
20211     VERSION='$VERSION'
20212     TIMESTAMP='$TIMESTAMP'
20213     RM='$RM'
20214     ofile='$ofile'
20215
20216
20217
20218
20219
20220
20221 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
20222 pkgconfig_prefix='$prefix'
20223 pkgconfig_execprefix='$exec_prefix'
20224 pkgconfig_bindir='$bindir'
20225 pkgconfig_libdir='$libdir'
20226 pkgconfig_includedir='$includedir'
20227 pkgconfig_datarootdir='$datarootdir'
20228 pkgconfig_datadir='$datadir'
20229 pkgconfig_sysconfdir='$sysconfdir'
20230 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
20231 pkgconfig_package='$PACKAGE_NAME'
20232 pkgconfig_libname='$ax_create_pkgconfig_libname'
20233 pkgconfig_description='$ax_create_pkgconfig_description'
20234 pkgconfig_version='$ax_create_pkgconfig_version'
20235 pkgconfig_requires='$ax_create_pkgconfig_requires'
20236 pkgconfig_libs='$ax_create_pkgconfig_libs'
20237 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
20238 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
20239 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
20240 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
20241
20242
20243 _ACEOF
20244
20245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20246
20247 # Handling of arguments.
20248 for ac_config_target in $ac_config_targets
20249 do
20250   case $ac_config_target in
20251     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20252     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20253     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20254     "opensaml.spec") CONFIG_FILES="$CONFIG_FILES opensaml.spec" ;;
20255     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20256     "saml/Makefile") CONFIG_FILES="$CONFIG_FILES saml/Makefile" ;;
20257     "samltest/Makefile") CONFIG_FILES="$CONFIG_FILES samltest/Makefile" ;;
20258     "samlsign/Makefile") CONFIG_FILES="$CONFIG_FILES samlsign/Makefile" ;;
20259     "schemas/Makefile") CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
20260     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20261     "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
20262
20263   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
20264   esac
20265 done
20266
20267
20268 # If the user did not use the arguments to specify the items to instantiate,
20269 # then the envvar interface is used.  Set only those that are not.
20270 # We use the long form for the default assignment because of an extremely
20271 # bizarre bug on SunOS 4.1.3.
20272 if $ac_need_defaults; then
20273   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20274   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20275   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20276 fi
20277
20278 # Have a temporary directory for convenience.  Make it in the build tree
20279 # simply because there is no reason against having it here, and in addition,
20280 # creating and moving files from /tmp can sometimes cause problems.
20281 # Hook for its removal unless debugging.
20282 # Note that there is a small window in which the directory will not be cleaned:
20283 # after its creation but before its name has been assigned to `$tmp'.
20284 $debug ||
20285 {
20286   tmp=
20287   trap 'exit_status=$?
20288   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20289 ' 0
20290   trap 'as_fn_exit 1' 1 2 13 15
20291 }
20292 # Create a (secure) tmp directory for tmp files.
20293
20294 {
20295   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20296   test -n "$tmp" && test -d "$tmp"
20297 }  ||
20298 {
20299   tmp=./conf$$-$RANDOM
20300   (umask 077 && mkdir "$tmp")
20301 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20302
20303 # Set up the scripts for CONFIG_FILES section.
20304 # No need to generate them if there are no CONFIG_FILES.
20305 # This happens for instance with `./config.status config.h'.
20306 if test -n "$CONFIG_FILES"; then
20307
20308
20309 ac_cr=`echo X | tr X '\015'`
20310 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20311 # But we know of no other shell where ac_cr would be empty at this
20312 # point, so we can use a bashism as a fallback.
20313 if test "x$ac_cr" = x; then
20314   eval ac_cr=\$\'\\r\'
20315 fi
20316 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20317 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20318   ac_cs_awk_cr='\\r'
20319 else
20320   ac_cs_awk_cr=$ac_cr
20321 fi
20322
20323 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20324 _ACEOF
20325
20326
20327 {
20328   echo "cat >conf$$subs.awk <<_ACEOF" &&
20329   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20330   echo "_ACEOF"
20331 } >conf$$subs.sh ||
20332   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20333 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20334 ac_delim='%!_!# '
20335 for ac_last_try in false false false false false :; do
20336   . ./conf$$subs.sh ||
20337     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20338
20339   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20340   if test $ac_delim_n = $ac_delim_num; then
20341     break
20342   elif $ac_last_try; then
20343     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20344   else
20345     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20346   fi
20347 done
20348 rm -f conf$$subs.sh
20349
20350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20351 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20352 _ACEOF
20353 sed -n '
20354 h
20355 s/^/S["/; s/!.*/"]=/
20356 p
20357 g
20358 s/^[^!]*!//
20359 :repl
20360 t repl
20361 s/'"$ac_delim"'$//
20362 t delim
20363 :nl
20364 h
20365 s/\(.\{148\}\)..*/\1/
20366 t more1
20367 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20368 p
20369 n
20370 b repl
20371 :more1
20372 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20373 p
20374 g
20375 s/.\{148\}//
20376 t nl
20377 :delim
20378 h
20379 s/\(.\{148\}\)..*/\1/
20380 t more2
20381 s/["\\]/\\&/g; s/^/"/; s/$/"/
20382 p
20383 b
20384 :more2
20385 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20386 p
20387 g
20388 s/.\{148\}//
20389 t delim
20390 ' <conf$$subs.awk | sed '
20391 /^[^""]/{
20392   N
20393   s/\n//
20394 }
20395 ' >>$CONFIG_STATUS || ac_write_fail=1
20396 rm -f conf$$subs.awk
20397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20398 _ACAWK
20399 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20400   for (key in S) S_is_set[key] = 1
20401   FS = "\a"
20402
20403 }
20404 {
20405   line = $ 0
20406   nfields = split(line, field, "@")
20407   substed = 0
20408   len = length(field[1])
20409   for (i = 2; i < nfields; i++) {
20410     key = field[i]
20411     keylen = length(key)
20412     if (S_is_set[key]) {
20413       value = S[key]
20414       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20415       len += length(value) + length(field[++i])
20416       substed = 1
20417     } else
20418       len += 1 + keylen
20419   }
20420
20421   print line
20422 }
20423
20424 _ACAWK
20425 _ACEOF
20426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20427 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20428   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20429 else
20430   cat
20431 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20432   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20433 _ACEOF
20434
20435 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20436 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20437 # trailing colons and then remove the whole line if VPATH becomes empty
20438 # (actually we leave an empty line to preserve line numbers).
20439 if test "x$srcdir" = x.; then
20440   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20441 h
20442 s///
20443 s/^/:/
20444 s/[      ]*$/:/
20445 s/:\$(srcdir):/:/g
20446 s/:\${srcdir}:/:/g
20447 s/:@srcdir@:/:/g
20448 s/^:*//
20449 s/:*$//
20450 x
20451 s/\(=[   ]*\).*/\1/
20452 G
20453 s/\n//
20454 s/^[^=]*=[       ]*$//
20455 }'
20456 fi
20457
20458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20459 fi # test -n "$CONFIG_FILES"
20460
20461 # Set up the scripts for CONFIG_HEADERS section.
20462 # No need to generate them if there are no CONFIG_HEADERS.
20463 # This happens for instance with `./config.status Makefile'.
20464 if test -n "$CONFIG_HEADERS"; then
20465 cat >"$tmp/defines.awk" <<\_ACAWK ||
20466 BEGIN {
20467 _ACEOF
20468
20469 # Transform confdefs.h into an awk script `defines.awk', embedded as
20470 # here-document in config.status, that substitutes the proper values into
20471 # config.h.in to produce config.h.
20472
20473 # Create a delimiter string that does not exist in confdefs.h, to ease
20474 # handling of long lines.
20475 ac_delim='%!_!# '
20476 for ac_last_try in false false :; do
20477   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20478   if test -z "$ac_t"; then
20479     break
20480   elif $ac_last_try; then
20481     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20482   else
20483     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20484   fi
20485 done
20486
20487 # For the awk script, D is an array of macro values keyed by name,
20488 # likewise P contains macro parameters if any.  Preserve backslash
20489 # newline sequences.
20490
20491 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20492 sed -n '
20493 s/.\{148\}/&'"$ac_delim"'/g
20494 t rset
20495 :rset
20496 s/^[     ]*#[    ]*define[       ][      ]*/ /
20497 t def
20498 d
20499 :def
20500 s/\\$//
20501 t bsnl
20502 s/["\\]/\\&/g
20503 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20504 D["\1"]=" \3"/p
20505 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20506 d
20507 :bsnl
20508 s/["\\]/\\&/g
20509 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20510 D["\1"]=" \3\\\\\\n"\\/p
20511 t cont
20512 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20513 t cont
20514 d
20515 :cont
20516 n
20517 s/.\{148\}/&'"$ac_delim"'/g
20518 t clear
20519 :clear
20520 s/\\$//
20521 t bsnlc
20522 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20523 d
20524 :bsnlc
20525 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20526 b cont
20527 ' <confdefs.h | sed '
20528 s/'"$ac_delim"'/"\\\
20529 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20530
20531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20532   for (key in D) D_is_set[key] = 1
20533   FS = "\a"
20534 }
20535 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20536   line = \$ 0
20537   split(line, arg, " ")
20538   if (arg[1] == "#") {
20539     defundef = arg[2]
20540     mac1 = arg[3]
20541   } else {
20542     defundef = substr(arg[1], 2)
20543     mac1 = arg[2]
20544   }
20545   split(mac1, mac2, "(") #)
20546   macro = mac2[1]
20547   prefix = substr(line, 1, index(line, defundef) - 1)
20548   if (D_is_set[macro]) {
20549     # Preserve the white space surrounding the "#".
20550     print prefix "define", macro P[macro] D[macro]
20551     next
20552   } else {
20553     # Replace #undef with comments.  This is necessary, for example,
20554     # in the case of _POSIX_SOURCE, which is predefined and required
20555     # on some systems where configure will not decide to define it.
20556     if (defundef == "undef") {
20557       print "/*", prefix defundef, macro, "*/"
20558       next
20559     }
20560   }
20561 }
20562 { print }
20563 _ACAWK
20564 _ACEOF
20565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20566   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20567 fi # test -n "$CONFIG_HEADERS"
20568
20569
20570 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20571 shift
20572 for ac_tag
20573 do
20574   case $ac_tag in
20575   :[FHLC]) ac_mode=$ac_tag; continue;;
20576   esac
20577   case $ac_mode$ac_tag in
20578   :[FHL]*:*);;
20579   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
20580   :[FH]-) ac_tag=-:-;;
20581   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20582   esac
20583   ac_save_IFS=$IFS
20584   IFS=:
20585   set x $ac_tag
20586   IFS=$ac_save_IFS
20587   shift
20588   ac_file=$1
20589   shift
20590
20591   case $ac_mode in
20592   :L) ac_source=$1;;
20593   :[FH])
20594     ac_file_inputs=
20595     for ac_f
20596     do
20597       case $ac_f in
20598       -) ac_f="$tmp/stdin";;
20599       *) # Look for the file first in the build tree, then in the source tree
20600          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20601          # because $ac_f cannot contain `:'.
20602          test -f "$ac_f" ||
20603            case $ac_f in
20604            [\\/$]*) false;;
20605            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20606            esac ||
20607            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
20608       esac
20609       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20610       as_fn_append ac_file_inputs " '$ac_f'"
20611     done
20612
20613     # Let's still pretend it is `configure' which instantiates (i.e., don't
20614     # use $as_me), people would be surprised to read:
20615     #    /* config.h.  Generated by config.status.  */
20616     configure_input='Generated from '`
20617           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20618         `' by configure.'
20619     if test x"$ac_file" != x-; then
20620       configure_input="$ac_file.  $configure_input"
20621       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20622 $as_echo "$as_me: creating $ac_file" >&6;}
20623     fi
20624     # Neutralize special characters interpreted by sed in replacement strings.
20625     case $configure_input in #(
20626     *\&* | *\|* | *\\* )
20627        ac_sed_conf_input=`$as_echo "$configure_input" |
20628        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20629     *) ac_sed_conf_input=$configure_input;;
20630     esac
20631
20632     case $ac_tag in
20633     *:-:* | *:-) cat >"$tmp/stdin" \
20634       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
20635     esac
20636     ;;
20637   esac
20638
20639   ac_dir=`$as_dirname -- "$ac_file" ||
20640 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20641          X"$ac_file" : 'X\(//\)[^/]' \| \
20642          X"$ac_file" : 'X\(//\)$' \| \
20643          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20644 $as_echo X"$ac_file" |
20645     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20646             s//\1/
20647             q
20648           }
20649           /^X\(\/\/\)[^/].*/{
20650             s//\1/
20651             q
20652           }
20653           /^X\(\/\/\)$/{
20654             s//\1/
20655             q
20656           }
20657           /^X\(\/\).*/{
20658             s//\1/
20659             q
20660           }
20661           s/.*/./; q'`
20662   as_dir="$ac_dir"; as_fn_mkdir_p
20663   ac_builddir=.
20664
20665 case "$ac_dir" in
20666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20667 *)
20668   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20669   # A ".." for each directory in $ac_dir_suffix.
20670   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20671   case $ac_top_builddir_sub in
20672   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20673   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20674   esac ;;
20675 esac
20676 ac_abs_top_builddir=$ac_pwd
20677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20678 # for backward compatibility:
20679 ac_top_builddir=$ac_top_build_prefix
20680
20681 case $srcdir in
20682   .)  # We are building in place.
20683     ac_srcdir=.
20684     ac_top_srcdir=$ac_top_builddir_sub
20685     ac_abs_top_srcdir=$ac_pwd ;;
20686   [\\/]* | ?:[\\/]* )  # Absolute name.
20687     ac_srcdir=$srcdir$ac_dir_suffix;
20688     ac_top_srcdir=$srcdir
20689     ac_abs_top_srcdir=$srcdir ;;
20690   *) # Relative name.
20691     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20692     ac_top_srcdir=$ac_top_build_prefix$srcdir
20693     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20694 esac
20695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20696
20697
20698   case $ac_mode in
20699   :F)
20700   #
20701   # CONFIG_FILE
20702   #
20703
20704   case $INSTALL in
20705   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20706   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20707   esac
20708   ac_MKDIR_P=$MKDIR_P
20709   case $MKDIR_P in
20710   [\\/$]* | ?:[\\/]* ) ;;
20711   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20712   esac
20713 _ACEOF
20714
20715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20716 # If the template does not know about datarootdir, expand it.
20717 # FIXME: This hack should be removed a few years after 2.60.
20718 ac_datarootdir_hack=; ac_datarootdir_seen=
20719 ac_sed_dataroot='
20720 /datarootdir/ {
20721   p
20722   q
20723 }
20724 /@datadir@/p
20725 /@docdir@/p
20726 /@infodir@/p
20727 /@localedir@/p
20728 /@mandir@/p'
20729 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20730 *datarootdir*) ac_datarootdir_seen=yes;;
20731 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20732   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20733 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20734 _ACEOF
20735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20736   ac_datarootdir_hack='
20737   s&@datadir@&$datadir&g
20738   s&@docdir@&$docdir&g
20739   s&@infodir@&$infodir&g
20740   s&@localedir@&$localedir&g
20741   s&@mandir@&$mandir&g
20742   s&\\\${datarootdir}&$datarootdir&g' ;;
20743 esac
20744 _ACEOF
20745
20746 # Neutralize VPATH when `$srcdir' = `.'.
20747 # Shell code in configure.ac might set extrasub.
20748 # FIXME: do we really want to maintain this feature?
20749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20750 ac_sed_extra="$ac_vpsub
20751 $extrasub
20752 _ACEOF
20753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20754 :t
20755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20756 s|@configure_input@|$ac_sed_conf_input|;t t
20757 s&@top_builddir@&$ac_top_builddir_sub&;t t
20758 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20759 s&@srcdir@&$ac_srcdir&;t t
20760 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20761 s&@top_srcdir@&$ac_top_srcdir&;t t
20762 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20763 s&@builddir@&$ac_builddir&;t t
20764 s&@abs_builddir@&$ac_abs_builddir&;t t
20765 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20766 s&@INSTALL@&$ac_INSTALL&;t t
20767 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20768 $ac_datarootdir_hack
20769 "
20770 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20771   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20772
20773 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20774   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20775   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20776   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20777 which seems to be undefined.  Please make sure it is defined" >&5
20778 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20779 which seems to be undefined.  Please make sure it is defined" >&2;}
20780
20781   rm -f "$tmp/stdin"
20782   case $ac_file in
20783   -) cat "$tmp/out" && rm -f "$tmp/out";;
20784   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20785   esac \
20786   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20787  ;;
20788   :H)
20789   #
20790   # CONFIG_HEADER
20791   #
20792   if test x"$ac_file" != x-; then
20793     {
20794       $as_echo "/* $configure_input  */" \
20795       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20796     } >"$tmp/config.h" \
20797       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20798     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20799       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20800 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20801     else
20802       rm -f "$ac_file"
20803       mv "$tmp/config.h" "$ac_file" \
20804         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20805     fi
20806   else
20807     $as_echo "/* $configure_input  */" \
20808       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20809       || as_fn_error $? "could not create -" "$LINENO" 5
20810   fi
20811 # Compute "$ac_file"'s index in $config_headers.
20812 _am_arg="$ac_file"
20813 _am_stamp_count=1
20814 for _am_header in $config_headers :; do
20815   case $_am_header in
20816     $_am_arg | $_am_arg:* )
20817       break ;;
20818     * )
20819       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20820   esac
20821 done
20822 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20823 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20824          X"$_am_arg" : 'X\(//\)[^/]' \| \
20825          X"$_am_arg" : 'X\(//\)$' \| \
20826          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20827 $as_echo X"$_am_arg" |
20828     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20829             s//\1/
20830             q
20831           }
20832           /^X\(\/\/\)[^/].*/{
20833             s//\1/
20834             q
20835           }
20836           /^X\(\/\/\)$/{
20837             s//\1/
20838             q
20839           }
20840           /^X\(\/\).*/{
20841             s//\1/
20842             q
20843           }
20844           s/.*/./; q'`/stamp-h$_am_stamp_count
20845  ;;
20846
20847   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20848 $as_echo "$as_me: executing $ac_file commands" >&6;}
20849  ;;
20850   esac
20851
20852
20853   case $ac_file$ac_mode in
20854     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20855   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20856   # are listed without --file.  Let's play safe and only enable the eval
20857   # if we detect the quoting.
20858   case $CONFIG_FILES in
20859   *\'*) eval set x "$CONFIG_FILES" ;;
20860   *)   set x $CONFIG_FILES ;;
20861   esac
20862   shift
20863   for mf
20864   do
20865     # Strip MF so we end up with the name of the file.
20866     mf=`echo "$mf" | sed -e 's/:.*$//'`
20867     # Check whether this is an Automake generated Makefile or not.
20868     # We used to match only the files named `Makefile.in', but
20869     # some people rename them; so instead we look at the file content.
20870     # Grep'ing the first line is not enough: some people post-process
20871     # each Makefile.in and add a new line on top of each file to say so.
20872     # Grep'ing the whole file is not good either: AIX grep has a line
20873     # limit of 2048, but all sed's we know have understand at least 4000.
20874     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20875       dirpart=`$as_dirname -- "$mf" ||
20876 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20877          X"$mf" : 'X\(//\)[^/]' \| \
20878          X"$mf" : 'X\(//\)$' \| \
20879          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20880 $as_echo X"$mf" |
20881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20882             s//\1/
20883             q
20884           }
20885           /^X\(\/\/\)[^/].*/{
20886             s//\1/
20887             q
20888           }
20889           /^X\(\/\/\)$/{
20890             s//\1/
20891             q
20892           }
20893           /^X\(\/\).*/{
20894             s//\1/
20895             q
20896           }
20897           s/.*/./; q'`
20898     else
20899       continue
20900     fi
20901     # Extract the definition of DEPDIR, am__include, and am__quote
20902     # from the Makefile without running `make'.
20903     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20904     test -z "$DEPDIR" && continue
20905     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20906     test -z "am__include" && continue
20907     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20908     # When using ansi2knr, U may be empty or an underscore; expand it
20909     U=`sed -n 's/^U = //p' < "$mf"`
20910     # Find all dependency output files, they are included files with
20911     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20912     # simplest approach to changing $(DEPDIR) to its actual value in the
20913     # expansion.
20914     for file in `sed -n "
20915       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20916          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20917       # Make sure the directory exists.
20918       test -f "$dirpart/$file" && continue
20919       fdir=`$as_dirname -- "$file" ||
20920 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20921          X"$file" : 'X\(//\)[^/]' \| \
20922          X"$file" : 'X\(//\)$' \| \
20923          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20924 $as_echo X"$file" |
20925     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20926             s//\1/
20927             q
20928           }
20929           /^X\(\/\/\)[^/].*/{
20930             s//\1/
20931             q
20932           }
20933           /^X\(\/\/\)$/{
20934             s//\1/
20935             q
20936           }
20937           /^X\(\/\).*/{
20938             s//\1/
20939             q
20940           }
20941           s/.*/./; q'`
20942       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20943       # echo "creating $dirpart/$file"
20944       echo '# dummy' > "$dirpart/$file"
20945     done
20946   done
20947 }
20948  ;;
20949     "libtool":C)
20950
20951     # See if we are running on zsh, and set the options which allow our
20952     # commands through without removal of \ escapes.
20953     if test -n "${ZSH_VERSION+set}" ; then
20954       setopt NO_GLOB_SUBST
20955     fi
20956
20957     cfgfile="${ofile}T"
20958     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20959     $RM "$cfgfile"
20960
20961     cat <<_LT_EOF >> "$cfgfile"
20962 #! $SHELL
20963
20964 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20965 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20966 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20967 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20968 #
20969 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20970 #                 2006, 2007, 2008 Free Software Foundation, Inc.
20971 #   Written by Gordon Matzigkeit, 1996
20972 #
20973 #   This file is part of GNU Libtool.
20974 #
20975 # GNU Libtool is free software; you can redistribute it and/or
20976 # modify it under the terms of the GNU General Public License as
20977 # published by the Free Software Foundation; either version 2 of
20978 # the License, or (at your option) any later version.
20979 #
20980 # As a special exception to the GNU General Public License,
20981 # if you distribute this file as part of a program or library that
20982 # is built using GNU Libtool, you may include this file under the
20983 # same distribution terms that you use for the rest of that program.
20984 #
20985 # GNU Libtool is distributed in the hope that it will be useful,
20986 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20987 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20988 # GNU General Public License for more details.
20989 #
20990 # You should have received a copy of the GNU General Public License
20991 # along with GNU Libtool; see the file COPYING.  If not, a copy
20992 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20993 # obtained by writing to the Free Software Foundation, Inc.,
20994 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20995
20996
20997 # The names of the tagged configurations supported by this script.
20998 available_tags="CXX "
20999
21000 # ### BEGIN LIBTOOL CONFIG
21001
21002 # Whether or not to build static libraries.
21003 build_old_libs=$enable_static
21004
21005 # Which release of libtool.m4 was used?
21006 macro_version=$macro_version
21007 macro_revision=$macro_revision
21008
21009 # Whether or not to build shared libraries.
21010 build_libtool_libs=$enable_shared
21011
21012 # What type of objects to build.
21013 pic_mode=$pic_mode
21014
21015 # Whether or not to optimize for fast installation.
21016 fast_install=$enable_fast_install
21017
21018 # The host system.
21019 host_alias=$host_alias
21020 host=$host
21021 host_os=$host_os
21022
21023 # The build system.
21024 build_alias=$build_alias
21025 build=$build
21026 build_os=$build_os
21027
21028 # A sed program that does not truncate output.
21029 SED=$lt_SED
21030
21031 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21032 Xsed="\$SED -e 1s/^X//"
21033
21034 # A grep program that handles long lines.
21035 GREP=$lt_GREP
21036
21037 # An ERE matcher.
21038 EGREP=$lt_EGREP
21039
21040 # A literal string matcher.
21041 FGREP=$lt_FGREP
21042
21043 # A BSD- or MS-compatible name lister.
21044 NM=$lt_NM
21045
21046 # Whether we need soft or hard links.
21047 LN_S=$lt_LN_S
21048
21049 # What is the maximum length of a command?
21050 max_cmd_len=$max_cmd_len
21051
21052 # Object file suffix (normally "o").
21053 objext=$ac_objext
21054
21055 # Executable file suffix (normally "").
21056 exeext=$exeext
21057
21058 # whether the shell understands "unset".
21059 lt_unset=$lt_unset
21060
21061 # turn spaces into newlines.
21062 SP2NL=$lt_lt_SP2NL
21063
21064 # turn newlines into spaces.
21065 NL2SP=$lt_lt_NL2SP
21066
21067 # How to create reloadable object files.
21068 reload_flag=$lt_reload_flag
21069 reload_cmds=$lt_reload_cmds
21070
21071 # An object symbol dumper.
21072 OBJDUMP=$lt_OBJDUMP
21073
21074 # Method to check whether dependent libraries are shared objects.
21075 deplibs_check_method=$lt_deplibs_check_method
21076
21077 # Command to use when deplibs_check_method == "file_magic".
21078 file_magic_cmd=$lt_file_magic_cmd
21079
21080 # The archiver.
21081 AR=$lt_AR
21082 AR_FLAGS=$lt_AR_FLAGS
21083
21084 # A symbol stripping program.
21085 STRIP=$lt_STRIP
21086
21087 # Commands used to install an old-style archive.
21088 RANLIB=$lt_RANLIB
21089 old_postinstall_cmds=$lt_old_postinstall_cmds
21090 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21091
21092 # A C compiler.
21093 LTCC=$lt_CC
21094
21095 # LTCC compiler flags.
21096 LTCFLAGS=$lt_CFLAGS
21097
21098 # Take the output of nm and produce a listing of raw symbols and C names.
21099 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21100
21101 # Transform the output of nm in a proper C declaration.
21102 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21103
21104 # Transform the output of nm in a C name address pair.
21105 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21106
21107 # Transform the output of nm in a C name address pair when lib prefix is needed.
21108 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21109
21110 # The name of the directory that contains temporary libtool files.
21111 objdir=$objdir
21112
21113 # Shell to use when invoking shell scripts.
21114 SHELL=$lt_SHELL
21115
21116 # An echo program that does not interpret backslashes.
21117 ECHO=$lt_ECHO
21118
21119 # Used to examine libraries when file_magic_cmd begins with "file".
21120 MAGIC_CMD=$MAGIC_CMD
21121
21122 # Must we lock files when doing compilation?
21123 need_locks=$lt_need_locks
21124
21125 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21126 DSYMUTIL=$lt_DSYMUTIL
21127
21128 # Tool to change global to local symbols on Mac OS X.
21129 NMEDIT=$lt_NMEDIT
21130
21131 # Tool to manipulate fat objects and archives on Mac OS X.
21132 LIPO=$lt_LIPO
21133
21134 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21135 OTOOL=$lt_OTOOL
21136
21137 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21138 OTOOL64=$lt_OTOOL64
21139
21140 # Old archive suffix (normally "a").
21141 libext=$libext
21142
21143 # Shared library suffix (normally ".so").
21144 shrext_cmds=$lt_shrext_cmds
21145
21146 # The commands to extract the exported symbol list from a shared archive.
21147 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21148
21149 # Variables whose values should be saved in libtool wrapper scripts and
21150 # restored at link time.
21151 variables_saved_for_relink=$lt_variables_saved_for_relink
21152
21153 # Do we need the "lib" prefix for modules?
21154 need_lib_prefix=$need_lib_prefix
21155
21156 # Do we need a version for libraries?
21157 need_version=$need_version
21158
21159 # Library versioning type.
21160 version_type=$version_type
21161
21162 # Shared library runtime path variable.
21163 runpath_var=$runpath_var
21164
21165 # Shared library path variable.
21166 shlibpath_var=$shlibpath_var
21167
21168 # Is shlibpath searched before the hard-coded library search path?
21169 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21170
21171 # Format of library name prefix.
21172 libname_spec=$lt_libname_spec
21173
21174 # List of archive names.  First name is the real one, the rest are links.
21175 # The last name is the one that the linker finds with -lNAME
21176 library_names_spec=$lt_library_names_spec
21177
21178 # The coded name of the library, if different from the real name.
21179 soname_spec=$lt_soname_spec
21180
21181 # Command to use after installation of a shared archive.
21182 postinstall_cmds=$lt_postinstall_cmds
21183
21184 # Command to use after uninstallation of a shared archive.
21185 postuninstall_cmds=$lt_postuninstall_cmds
21186
21187 # Commands used to finish a libtool library installation in a directory.
21188 finish_cmds=$lt_finish_cmds
21189
21190 # As "finish_cmds", except a single script fragment to be evaled but
21191 # not shown.
21192 finish_eval=$lt_finish_eval
21193
21194 # Whether we should hardcode library paths into libraries.
21195 hardcode_into_libs=$hardcode_into_libs
21196
21197 # Compile-time system search path for libraries.
21198 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21199
21200 # Run-time system search path for libraries.
21201 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21202
21203 # Whether dlopen is supported.
21204 dlopen_support=$enable_dlopen
21205
21206 # Whether dlopen of programs is supported.
21207 dlopen_self=$enable_dlopen_self
21208
21209 # Whether dlopen of statically linked programs is supported.
21210 dlopen_self_static=$enable_dlopen_self_static
21211
21212 # Commands to strip libraries.
21213 old_striplib=$lt_old_striplib
21214 striplib=$lt_striplib
21215
21216
21217 # The linker used to build libraries.
21218 LD=$lt_LD
21219
21220 # Commands used to build an old-style archive.
21221 old_archive_cmds=$lt_old_archive_cmds
21222
21223 # A language specific compiler.
21224 CC=$lt_compiler
21225
21226 # Is the compiler the GNU compiler?
21227 with_gcc=$GCC
21228
21229 # Compiler flag to turn off builtin functions.
21230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21231
21232 # How to pass a linker flag through the compiler.
21233 wl=$lt_lt_prog_compiler_wl
21234
21235 # Additional compiler flags for building library objects.
21236 pic_flag=$lt_lt_prog_compiler_pic
21237
21238 # Compiler flag to prevent dynamic linking.
21239 link_static_flag=$lt_lt_prog_compiler_static
21240
21241 # Does compiler simultaneously support -c and -o options?
21242 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21243
21244 # Whether or not to add -lc for building shared libraries.
21245 build_libtool_need_lc=$archive_cmds_need_lc
21246
21247 # Whether or not to disallow shared libs when runtime libs are static.
21248 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21249
21250 # Compiler flag to allow reflexive dlopens.
21251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21252
21253 # Compiler flag to generate shared objects directly from archives.
21254 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21255
21256 # Whether the compiler copes with passing no objects directly.
21257 compiler_needs_object=$lt_compiler_needs_object
21258
21259 # Create an old-style archive from a shared archive.
21260 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21261
21262 # Create a temporary old-style archive to link instead of a shared archive.
21263 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21264
21265 # Commands used to build a shared archive.
21266 archive_cmds=$lt_archive_cmds
21267 archive_expsym_cmds=$lt_archive_expsym_cmds
21268
21269 # Commands used to build a loadable module if different from building
21270 # a shared archive.
21271 module_cmds=$lt_module_cmds
21272 module_expsym_cmds=$lt_module_expsym_cmds
21273
21274 # Whether we are building with GNU ld or not.
21275 with_gnu_ld=$lt_with_gnu_ld
21276
21277 # Flag that allows shared libraries with undefined symbols to be built.
21278 allow_undefined_flag=$lt_allow_undefined_flag
21279
21280 # Flag that enforces no undefined symbols.
21281 no_undefined_flag=$lt_no_undefined_flag
21282
21283 # Flag to hardcode \$libdir into a binary during linking.
21284 # This must work even if \$libdir does not exist
21285 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21286
21287 # If ld is used when linking, flag to hardcode \$libdir into a binary
21288 # during linking.  This must work even if \$libdir does not exist.
21289 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21290
21291 # Whether we need a single "-rpath" flag with a separated argument.
21292 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21293
21294 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21295 # DIR into the resulting binary.
21296 hardcode_direct=$hardcode_direct
21297
21298 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21299 # DIR into the resulting binary and the resulting library dependency is
21300 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21301 # library is relocated.
21302 hardcode_direct_absolute=$hardcode_direct_absolute
21303
21304 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21305 # into the resulting binary.
21306 hardcode_minus_L=$hardcode_minus_L
21307
21308 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21309 # into the resulting binary.
21310 hardcode_shlibpath_var=$hardcode_shlibpath_var
21311
21312 # Set to "yes" if building a shared library automatically hardcodes DIR
21313 # into the library and all subsequent libraries and executables linked
21314 # against it.
21315 hardcode_automatic=$hardcode_automatic
21316
21317 # Set to yes if linker adds runtime paths of dependent libraries
21318 # to runtime path list.
21319 inherit_rpath=$inherit_rpath
21320
21321 # Whether libtool must link a program against all its dependency libraries.
21322 link_all_deplibs=$link_all_deplibs
21323
21324 # Fix the shell variable \$srcfile for the compiler.
21325 fix_srcfile_path=$lt_fix_srcfile_path
21326
21327 # Set to "yes" if exported symbols are required.
21328 always_export_symbols=$always_export_symbols
21329
21330 # The commands to list exported symbols.
21331 export_symbols_cmds=$lt_export_symbols_cmds
21332
21333 # Symbols that should not be listed in the preloaded symbols.
21334 exclude_expsyms=$lt_exclude_expsyms
21335
21336 # Symbols that must always be exported.
21337 include_expsyms=$lt_include_expsyms
21338
21339 # Commands necessary for linking programs (against libraries) with templates.
21340 prelink_cmds=$lt_prelink_cmds
21341
21342 # Specify filename containing input files.
21343 file_list_spec=$lt_file_list_spec
21344
21345 # How to hardcode a shared library path into an executable.
21346 hardcode_action=$hardcode_action
21347
21348 # The directories searched by this compiler when creating a shared library.
21349 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21350
21351 # Dependencies to place before and after the objects being linked to
21352 # create a shared library.
21353 predep_objects=$lt_predep_objects
21354 postdep_objects=$lt_postdep_objects
21355 predeps=$lt_predeps
21356 postdeps=$lt_postdeps
21357
21358 # The library search path used internally by the compiler when linking
21359 # a shared library.
21360 compiler_lib_search_path=$lt_compiler_lib_search_path
21361
21362 # ### END LIBTOOL CONFIG
21363
21364 _LT_EOF
21365
21366   case $host_os in
21367   aix3*)
21368     cat <<\_LT_EOF >> "$cfgfile"
21369 # AIX sometimes has problems with the GCC collect2 program.  For some
21370 # reason, if we set the COLLECT_NAMES environment variable, the problems
21371 # vanish in a puff of smoke.
21372 if test "X${COLLECT_NAMES+set}" != Xset; then
21373   COLLECT_NAMES=
21374   export COLLECT_NAMES
21375 fi
21376 _LT_EOF
21377     ;;
21378   esac
21379
21380
21381 ltmain="$ac_aux_dir/ltmain.sh"
21382
21383
21384   # We use sed instead of cat because bash on DJGPP gets confused if
21385   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21386   # text mode, it properly converts lines to CR/LF.  This bash problem
21387   # is reportedly fixed, but why not run on old versions too?
21388   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21389     || (rm -f "$cfgfile"; exit 1)
21390
21391   case $xsi_shell in
21392   yes)
21393     cat << \_LT_EOF >> "$cfgfile"
21394
21395 # func_dirname file append nondir_replacement
21396 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21397 # otherwise set result to NONDIR_REPLACEMENT.
21398 func_dirname ()
21399 {
21400   case ${1} in
21401     */*) func_dirname_result="${1%/*}${2}" ;;
21402     *  ) func_dirname_result="${3}" ;;
21403   esac
21404 }
21405
21406 # func_basename file
21407 func_basename ()
21408 {
21409   func_basename_result="${1##*/}"
21410 }
21411
21412 # func_dirname_and_basename file append nondir_replacement
21413 # perform func_basename and func_dirname in a single function
21414 # call:
21415 #   dirname:  Compute the dirname of FILE.  If nonempty,
21416 #             add APPEND to the result, otherwise set result
21417 #             to NONDIR_REPLACEMENT.
21418 #             value returned in "$func_dirname_result"
21419 #   basename: Compute filename of FILE.
21420 #             value retuned in "$func_basename_result"
21421 # Implementation must be kept synchronized with func_dirname
21422 # and func_basename. For efficiency, we do not delegate to
21423 # those functions but instead duplicate the functionality here.
21424 func_dirname_and_basename ()
21425 {
21426   case ${1} in
21427     */*) func_dirname_result="${1%/*}${2}" ;;
21428     *  ) func_dirname_result="${3}" ;;
21429   esac
21430   func_basename_result="${1##*/}"
21431 }
21432
21433 # func_stripname prefix suffix name
21434 # strip PREFIX and SUFFIX off of NAME.
21435 # PREFIX and SUFFIX must not contain globbing or regex special
21436 # characters, hashes, percent signs, but SUFFIX may contain a leading
21437 # dot (in which case that matches only a dot).
21438 func_stripname ()
21439 {
21440   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21441   # positional parameters, so assign one to ordinary parameter first.
21442   func_stripname_result=${3}
21443   func_stripname_result=${func_stripname_result#"${1}"}
21444   func_stripname_result=${func_stripname_result%"${2}"}
21445 }
21446
21447 # func_opt_split
21448 func_opt_split ()
21449 {
21450   func_opt_split_opt=${1%%=*}
21451   func_opt_split_arg=${1#*=}
21452 }
21453
21454 # func_lo2o object
21455 func_lo2o ()
21456 {
21457   case ${1} in
21458     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21459     *)    func_lo2o_result=${1} ;;
21460   esac
21461 }
21462
21463 # func_xform libobj-or-source
21464 func_xform ()
21465 {
21466   func_xform_result=${1%.*}.lo
21467 }
21468
21469 # func_arith arithmetic-term...
21470 func_arith ()
21471 {
21472   func_arith_result=$(( $* ))
21473 }
21474
21475 # func_len string
21476 # STRING may not start with a hyphen.
21477 func_len ()
21478 {
21479   func_len_result=${#1}
21480 }
21481
21482 _LT_EOF
21483     ;;
21484   *) # Bourne compatible functions.
21485     cat << \_LT_EOF >> "$cfgfile"
21486
21487 # func_dirname file append nondir_replacement
21488 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
21489 # otherwise set result to NONDIR_REPLACEMENT.
21490 func_dirname ()
21491 {
21492   # Extract subdirectory from the argument.
21493   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21494   if test "X$func_dirname_result" = "X${1}"; then
21495     func_dirname_result="${3}"
21496   else
21497     func_dirname_result="$func_dirname_result${2}"
21498   fi
21499 }
21500
21501 # func_basename file
21502 func_basename ()
21503 {
21504   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21505 }
21506
21507
21508 # func_stripname prefix suffix name
21509 # strip PREFIX and SUFFIX off of NAME.
21510 # PREFIX and SUFFIX must not contain globbing or regex special
21511 # characters, hashes, percent signs, but SUFFIX may contain a leading
21512 # dot (in which case that matches only a dot).
21513 # func_strip_suffix prefix name
21514 func_stripname ()
21515 {
21516   case ${2} in
21517     .*) func_stripname_result=`$ECHO "X${3}" \
21518            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21519     *)  func_stripname_result=`$ECHO "X${3}" \
21520            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21521   esac
21522 }
21523
21524 # sed scripts:
21525 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21526 my_sed_long_arg='1s/^-[^=]*=//'
21527
21528 # func_opt_split
21529 func_opt_split ()
21530 {
21531   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21532   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21533 }
21534
21535 # func_lo2o object
21536 func_lo2o ()
21537 {
21538   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21539 }
21540
21541 # func_xform libobj-or-source
21542 func_xform ()
21543 {
21544   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21545 }
21546
21547 # func_arith arithmetic-term...
21548 func_arith ()
21549 {
21550   func_arith_result=`expr "$@"`
21551 }
21552
21553 # func_len string
21554 # STRING may not start with a hyphen.
21555 func_len ()
21556 {
21557   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21558 }
21559
21560 _LT_EOF
21561 esac
21562
21563 case $lt_shell_append in
21564   yes)
21565     cat << \_LT_EOF >> "$cfgfile"
21566
21567 # func_append var value
21568 # Append VALUE to the end of shell variable VAR.
21569 func_append ()
21570 {
21571   eval "$1+=\$2"
21572 }
21573 _LT_EOF
21574     ;;
21575   *)
21576     cat << \_LT_EOF >> "$cfgfile"
21577
21578 # func_append var value
21579 # Append VALUE to the end of shell variable VAR.
21580 func_append ()
21581 {
21582   eval "$1=\$$1\$2"
21583 }
21584
21585 _LT_EOF
21586     ;;
21587   esac
21588
21589
21590   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21591     || (rm -f "$cfgfile"; exit 1)
21592
21593   mv -f "$cfgfile" "$ofile" ||
21594     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21595   chmod +x "$ofile"
21596
21597
21598     cat <<_LT_EOF >> "$ofile"
21599
21600 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21601
21602 # The linker used to build libraries.
21603 LD=$lt_LD_CXX
21604
21605 # Commands used to build an old-style archive.
21606 old_archive_cmds=$lt_old_archive_cmds_CXX
21607
21608 # A language specific compiler.
21609 CC=$lt_compiler_CXX
21610
21611 # Is the compiler the GNU compiler?
21612 with_gcc=$GCC_CXX
21613
21614 # Compiler flag to turn off builtin functions.
21615 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21616
21617 # How to pass a linker flag through the compiler.
21618 wl=$lt_lt_prog_compiler_wl_CXX
21619
21620 # Additional compiler flags for building library objects.
21621 pic_flag=$lt_lt_prog_compiler_pic_CXX
21622
21623 # Compiler flag to prevent dynamic linking.
21624 link_static_flag=$lt_lt_prog_compiler_static_CXX
21625
21626 # Does compiler simultaneously support -c and -o options?
21627 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21628
21629 # Whether or not to add -lc for building shared libraries.
21630 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21631
21632 # Whether or not to disallow shared libs when runtime libs are static.
21633 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21634
21635 # Compiler flag to allow reflexive dlopens.
21636 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21637
21638 # Compiler flag to generate shared objects directly from archives.
21639 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21640
21641 # Whether the compiler copes with passing no objects directly.
21642 compiler_needs_object=$lt_compiler_needs_object_CXX
21643
21644 # Create an old-style archive from a shared archive.
21645 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21646
21647 # Create a temporary old-style archive to link instead of a shared archive.
21648 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21649
21650 # Commands used to build a shared archive.
21651 archive_cmds=$lt_archive_cmds_CXX
21652 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21653
21654 # Commands used to build a loadable module if different from building
21655 # a shared archive.
21656 module_cmds=$lt_module_cmds_CXX
21657 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21658
21659 # Whether we are building with GNU ld or not.
21660 with_gnu_ld=$lt_with_gnu_ld_CXX
21661
21662 # Flag that allows shared libraries with undefined symbols to be built.
21663 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21664
21665 # Flag that enforces no undefined symbols.
21666 no_undefined_flag=$lt_no_undefined_flag_CXX
21667
21668 # Flag to hardcode \$libdir into a binary during linking.
21669 # This must work even if \$libdir does not exist
21670 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21671
21672 # If ld is used when linking, flag to hardcode \$libdir into a binary
21673 # during linking.  This must work even if \$libdir does not exist.
21674 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21675
21676 # Whether we need a single "-rpath" flag with a separated argument.
21677 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21678
21679 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21680 # DIR into the resulting binary.
21681 hardcode_direct=$hardcode_direct_CXX
21682
21683 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21684 # DIR into the resulting binary and the resulting library dependency is
21685 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21686 # library is relocated.
21687 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21688
21689 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21690 # into the resulting binary.
21691 hardcode_minus_L=$hardcode_minus_L_CXX
21692
21693 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21694 # into the resulting binary.
21695 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21696
21697 # Set to "yes" if building a shared library automatically hardcodes DIR
21698 # into the library and all subsequent libraries and executables linked
21699 # against it.
21700 hardcode_automatic=$hardcode_automatic_CXX
21701
21702 # Set to yes if linker adds runtime paths of dependent libraries
21703 # to runtime path list.
21704 inherit_rpath=$inherit_rpath_CXX
21705
21706 # Whether libtool must link a program against all its dependency libraries.
21707 link_all_deplibs=$link_all_deplibs_CXX
21708
21709 # Fix the shell variable \$srcfile for the compiler.
21710 fix_srcfile_path=$lt_fix_srcfile_path_CXX
21711
21712 # Set to "yes" if exported symbols are required.
21713 always_export_symbols=$always_export_symbols_CXX
21714
21715 # The commands to list exported symbols.
21716 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21717
21718 # Symbols that should not be listed in the preloaded symbols.
21719 exclude_expsyms=$lt_exclude_expsyms_CXX
21720
21721 # Symbols that must always be exported.
21722 include_expsyms=$lt_include_expsyms_CXX
21723
21724 # Commands necessary for linking programs (against libraries) with templates.
21725 prelink_cmds=$lt_prelink_cmds_CXX
21726
21727 # Specify filename containing input files.
21728 file_list_spec=$lt_file_list_spec_CXX
21729
21730 # How to hardcode a shared library path into an executable.
21731 hardcode_action=$hardcode_action_CXX
21732
21733 # The directories searched by this compiler when creating a shared library.
21734 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21735
21736 # Dependencies to place before and after the objects being linked to
21737 # create a shared library.
21738 predep_objects=$lt_predep_objects_CXX
21739 postdep_objects=$lt_postdep_objects_CXX
21740 predeps=$lt_predeps_CXX
21741 postdeps=$lt_postdeps_CXX
21742
21743 # The library search path used internally by the compiler when linking
21744 # a shared library.
21745 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21746
21747 # ### END LIBTOOL TAG CONFIG: CXX
21748 _LT_EOF
21749
21750  ;;
21751     "$ax_create_pkgconfig_generate":C)
21752 pkgconfig_generate="$ax_create_pkgconfig_generate"
21753 if test ! -f "$pkgconfig_generate.in"
21754 then generate="true"
21755 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
21756 then generate="true"
21757 else generate="false";
21758 fi
21759 if $generate ; then
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
21761 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
21762 cat > $pkgconfig_generate.in <<AXEOF
21763 # generated by configure / remove this line to disable regeneration
21764 prefix=@prefix@
21765 exec_prefix=@exec_prefix@
21766 bindir=@bindir@
21767 libdir=@libdir@
21768 datarootdir=@datarootdir@
21769 datadir=@datadir@
21770 sysconfdir=@sysconfdir@
21771 includedir=@includedir@
21772 package=@PACKAGE@
21773 suffix=@suffix@
21774
21775 Name: @PACKAGE_NAME@
21776 Description: @PACKAGE_DESCRIPTION@
21777 Version: @PACKAGE_VERSION@
21778 Requires: @PACKAGE_REQUIRES@
21779 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
21780 Cflags: -I\${includedir} @CPPFLAGS@
21781 AXEOF
21782 fi # DONE generate $pkgconfig_generate.in
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
21784 $as_echo "$as_me: creating $pkgconfig_generate" >&6;}
21785 cat >conftest.sed <<AXEOF
21786 s|@prefix@|${pkgconfig_prefix}|
21787 s|@exec_prefix@|${pkgconfig_execprefix}|
21788 s|@bindir@|${pkgconfig_bindir}|
21789 s|@libdir@|${pkgconfig_libdir}|
21790 s|@datarootdir@|${pkgconfig_datarootdir}|
21791 s|@datadir@|${pkgconfig_datadir}|
21792 s|@sysconfdir@|${pkgconfig_sysconfdir}|
21793 s|@includedir@|${pkgconfig_includedir}|
21794 s|@suffix@|${pkgconfig_suffix}|
21795 s|@PACKAGE@|${pkgconfig_package}|
21796 s|@PACKAGE_NAME@|${pkgconfig_libname}|
21797 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
21798 s|@PACKAGE_VERSION@|${pkgconfig_version}|
21799 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
21800 s|@LIBS@|${pkgconfig_libs}|
21801 s|@LDFLAGS@|${pkgconfig_ldflags}|
21802 s|@CPPFLAGS@|${pkgconfig_cppflags}|
21803 AXEOF
21804 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_generate
21805 if test ! -s $pkgconfig_generate ; then
21806     as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
21807 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
21808 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
21810 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
21811 cat >conftest.sed <<AXEOF
21812 s|@prefix@|${pkgconfig_prefix}|
21813 s|@exec_prefix@|${pkgconfig_execprefix}|
21814 s|@bindir@|${pkgconfig_bindir}|
21815 s|@libdir@|${pkgconfig_src_libdir}|
21816 s|@datarootdir@|${pkgconfig_datarootdir}|
21817 s|@datadir@|${pkgconfig_datadir}|
21818 s|@sysconfdir@|${pkgconfig_sysconfdir}|
21819 s|@includedir@|${pkgconfig_src_headers}|
21820 s|@suffix@|${pkgconfig_suffix}|
21821 s|@PACKAGE@|${pkgconfig_package}|
21822 s|@PACKAGE_NAME@|${pkgconfig_libname}|
21823 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
21824 s|@PACKAGE_VERSION@|${pkgconfig_version}|
21825 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
21826 s|@LIBS@|${pkgconfig_libs}|
21827 s|@LDFLAGS@|${pkgconfig_ldflags}|
21828 s|@CPPFLAGS@|${pkgconfig_cppflags}|
21829 AXEOF
21830 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
21831 if test ! -s $pkgconfig_uninstalled ; then
21832     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
21833 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
21834            pkgconfig_requires_add=`echo ${pkgconfig_requires}`
21835 if test ".$pkgconfig_requires_add" != "." ; then
21836            pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
21837     else   pkgconfig_requires_add=":" ; fi
21838 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
21840 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
21841 cat >conftest.sed <<AXEOF
21842 s|@prefix@|\"${pkgconfig_prefix}\"|
21843 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
21844 s|@bindir@|\"${pkgconfig_bindir}\"|
21845 s|@libdir@|\"${pkgconfig_src_libdir}\"|
21846 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
21847 s|@datadir@|\"${pkgconfig_datadir}\"|
21848 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
21849 s|@includedir@|\"${pkgconfig_src_headers}\"|
21850 s|@suffix@|\"${pkgconfig_suffix}\"|
21851 s|@PACKAGE@|\"${pkgconfig_package}\"|
21852 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
21853 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
21854 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
21855 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
21856 s|@LIBS@|\"${pkgconfig_libs}\"|
21857 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
21858 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
21859 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
21860 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
21861 s>Version: *>\\;\\; --modversion|--version) echo >
21862 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
21863 s>Libs: *>\\;\\; --libs) echo >
21864 s>Cflags: *>\\;\\; --cflags) echo >
21865 /--libs)/a\\
21866        $pkgconfig_requires_add
21867 /--cflags)/a\\
21868        $pkgconfig_requires_add\\
21869 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
21870 ;; --uninstalled) exit 0 \\
21871 ;; *) ;; esac done
21872 AXEOF
21873 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_uninstalled
21874 if test ! -s $pkgconfig_uninstalled ; then
21875     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
21876 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
21877  ;;
21878
21879   esac
21880 done # for ac_tag
21881
21882
21883 as_fn_exit 0
21884 _ACEOF
21885 ac_clean_files=$ac_clean_files_save
21886
21887 test $ac_write_fail = 0 ||
21888   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21889
21890
21891 # configure is writing to config.log, and then calls config.status.
21892 # config.status does its own redirection, appending to config.log.
21893 # Unfortunately, on DOS this fails, as config.log is still kept open
21894 # by configure, so config.status won't be able to write to it; its
21895 # output is simply discarded.  So we exec the FD to /dev/null,
21896 # effectively closing config.log, so it can be properly (re)opened and
21897 # appended to by config.status.  When coming back to configure, we
21898 # need to make the FD available again.
21899 if test "$no_create" != yes; then
21900   ac_cs_success=:
21901   ac_config_status_args=
21902   test "$silent" = yes &&
21903     ac_config_status_args="$ac_config_status_args --quiet"
21904   exec 5>/dev/null
21905   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21906   exec 5>>config.log
21907   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21908   # would make configure fail if this is the last instruction.
21909   $ac_cs_success || as_fn_exit 1
21910 fi
21911 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21912   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21913 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21914 fi
21915