merge patched-debian into debian
[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.4.
4 #
5 # Report bugs to <https://bugs.internet2.edu/>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: https://bugs.internet2.edu/ about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='opensaml'
703 PACKAGE_TARNAME='opensaml'
704 PACKAGE_VERSION='2.4'
705 PACKAGE_STRING='opensaml 2.4'
706 PACKAGE_BUGREPORT='https://bugs.internet2.edu/'
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 PKG_CONFIG
760 PTHREAD_CFLAGS
761 PTHREAD_LIBS
762 PTHREAD_CC
763 acx_pthread_config
764 CXXCPP
765 am__fastdepCXX_FALSE
766 am__fastdepCXX_TRUE
767 CXXDEPMODE
768 ac_ct_CXX
769 CXXFLAGS
770 CXX
771 DOXYGEN_PAPER_SIZE
772 DX_COND_latex_FALSE
773 DX_COND_latex_TRUE
774 DX_COND_pdf_FALSE
775 DX_COND_pdf_TRUE
776 DX_PDFLATEX
777 DX_FLAG_pdf
778 DX_COND_ps_FALSE
779 DX_COND_ps_TRUE
780 DX_EGREP
781 DX_DVIPS
782 DX_MAKEINDEX
783 DX_LATEX
784 DX_FLAG_ps
785 DX_COND_html_FALSE
786 DX_COND_html_TRUE
787 DX_FLAG_html
788 DX_COND_chi_FALSE
789 DX_COND_chi_TRUE
790 DX_FLAG_chi
791 DX_COND_chm_FALSE
792 DX_COND_chm_TRUE
793 DX_HHC
794 DX_FLAG_chm
795 DX_COND_xml_FALSE
796 DX_COND_xml_TRUE
797 DX_FLAG_xml
798 DX_COND_rtf_FALSE
799 DX_COND_rtf_TRUE
800 DX_FLAG_rtf
801 DX_COND_man_FALSE
802 DX_COND_man_TRUE
803 DX_FLAG_man
804 DX_COND_dot_FALSE
805 DX_COND_dot_TRUE
806 DX_DOT
807 DX_FLAG_dot
808 DX_COND_doc_FALSE
809 DX_COND_doc_TRUE
810 DX_PERL
811 DX_DOXYGEN
812 DX_FLAG_doc
813 DX_ENV
814 DX_DOCDIR
815 DX_CONFIG
816 DX_PROJECT
817 CPP
818 OTOOL64
819 OTOOL
820 LIPO
821 NMEDIT
822 DSYMUTIL
823 lt_ECHO
824 RANLIB
825 AR
826 OBJDUMP
827 LN_S
828 NM
829 ac_ct_DUMPBIN
830 DUMPBIN
831 LD
832 FGREP
833 EGREP
834 GREP
835 SED
836 am__fastdepCC_FALSE
837 am__fastdepCC_TRUE
838 CCDEPMODE
839 AMDEPBACKSLASH
840 AMDEP_FALSE
841 AMDEP_TRUE
842 am__quote
843 am__include
844 DEPDIR
845 OBJEXT
846 EXEEXT
847 ac_ct_CC
848 CPPFLAGS
849 LDFLAGS
850 CFLAGS
851 CC
852 host_os
853 host_vendor
854 host_cpu
855 host
856 build_os
857 build_vendor
858 build_cpu
859 build
860 LIBTOOL
861 am__untar
862 am__tar
863 AMTAR
864 am__leading_dot
865 SET_MAKE
866 AWK
867 mkdir_p
868 MKDIR_P
869 INSTALL_STRIP_PROGRAM
870 STRIP
871 install_sh
872 MAKEINFO
873 AUTOHEADER
874 AUTOMAKE
875 AUTOCONF
876 ACLOCAL
877 VERSION
878 PACKAGE
879 CYGPATH_W
880 am__isrc
881 INSTALL_DATA
882 INSTALL_SCRIPT
883 INSTALL_PROGRAM
884 target_alias
885 host_alias
886 build_alias
887 LIBS
888 ECHO_T
889 ECHO_N
890 ECHO_C
891 DEFS
892 mandir
893 localedir
894 libdir
895 psdir
896 pdfdir
897 dvidir
898 htmldir
899 infodir
900 docdir
901 oldincludedir
902 includedir
903 localstatedir
904 sharedstatedir
905 sysconfdir
906 datadir
907 datarootdir
908 libexecdir
909 sbindir
910 bindir
911 program_transform_name
912 prefix
913 exec_prefix
914 PACKAGE_URL
915 PACKAGE_BUGREPORT
916 PACKAGE_STRING
917 PACKAGE_VERSION
918 PACKAGE_TARNAME
919 PACKAGE_NAME
920 PATH_SEPARATOR
921 SHELL'
922 ac_subst_files=''
923 ac_user_opts='
924 enable_option_checking
925 enable_static
926 enable_shared
927 with_pic
928 enable_fast_install
929 enable_dependency_tracking
930 with_gnu_ld
931 enable_libtool_lock
932 enable_doxygen_doc
933 enable_doxygen_dot
934 enable_doxygen_man
935 enable_doxygen_rtf
936 enable_doxygen_xml
937 enable_doxygen_chm
938 enable_doxygen_chi
939 enable_doxygen_html
940 enable_doxygen_ps
941 enable_doxygen_pdf
942 enable_debug
943 with_zlib
944 with_openssl
945 with_log4shib
946 with_log4cpp
947 with_xerces
948 with_xmlsec
949 with_xmltooling
950 with_cxxtest
951 '
952       ac_precious_vars='build_alias
953 host_alias
954 target_alias
955 CC
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
960 CPP
961 DOXYGEN_PAPER_SIZE
962 CXX
963 CXXFLAGS
964 CCC
965 CXXCPP'
966
967
968 # Initialize some variables set by options.
969 ac_init_help=
970 ac_init_version=false
971 ac_unrecognized_opts=
972 ac_unrecognized_sep=
973 # The variables have the same names as the options, with
974 # dashes changed to underlines.
975 cache_file=/dev/null
976 exec_prefix=NONE
977 no_create=
978 no_recursion=
979 prefix=NONE
980 program_prefix=NONE
981 program_suffix=NONE
982 program_transform_name=s,x,x,
983 silent=
984 site=
985 srcdir=
986 verbose=
987 x_includes=NONE
988 x_libraries=NONE
989
990 # Installation directory options.
991 # These are left unexpanded so users can "make install exec_prefix=/foo"
992 # and all the variables that are supposed to be based on exec_prefix
993 # by default will actually change.
994 # Use braces instead of parens because sh, perl, etc. also accept them.
995 # (The list follows the same order as the GNU Coding Standards.)
996 bindir='${exec_prefix}/bin'
997 sbindir='${exec_prefix}/sbin'
998 libexecdir='${exec_prefix}/libexec'
999 datarootdir='${prefix}/share'
1000 datadir='${datarootdir}'
1001 sysconfdir='${prefix}/etc'
1002 sharedstatedir='${prefix}/com'
1003 localstatedir='${prefix}/var'
1004 includedir='${prefix}/include'
1005 oldincludedir='/usr/include'
1006 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1007 infodir='${datarootdir}/info'
1008 htmldir='${docdir}'
1009 dvidir='${docdir}'
1010 pdfdir='${docdir}'
1011 psdir='${docdir}'
1012 libdir='${exec_prefix}/lib'
1013 localedir='${datarootdir}/locale'
1014 mandir='${datarootdir}/man'
1015
1016 ac_prev=
1017 ac_dashdash=
1018 for ac_option
1019 do
1020   # If the previous option needs an argument, assign it.
1021   if test -n "$ac_prev"; then
1022     eval $ac_prev=\$ac_option
1023     ac_prev=
1024     continue
1025   fi
1026
1027   case $ac_option in
1028   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1029   *=)   ac_optarg= ;;
1030   *)    ac_optarg=yes ;;
1031   esac
1032
1033   # Accept the important Cygnus configure options, so we can diagnose typos.
1034
1035   case $ac_dashdash$ac_option in
1036   --)
1037     ac_dashdash=yes ;;
1038
1039   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1040     ac_prev=bindir ;;
1041   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042     bindir=$ac_optarg ;;
1043
1044   -build | --build | --buil | --bui | --bu)
1045     ac_prev=build_alias ;;
1046   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047     build_alias=$ac_optarg ;;
1048
1049   -cache-file | --cache-file | --cache-fil | --cache-fi \
1050   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051     ac_prev=cache_file ;;
1052   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054     cache_file=$ac_optarg ;;
1055
1056   --config-cache | -C)
1057     cache_file=config.cache ;;
1058
1059   -datadir | --datadir | --datadi | --datad)
1060     ac_prev=datadir ;;
1061   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062     datadir=$ac_optarg ;;
1063
1064   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065   | --dataroo | --dataro | --datar)
1066     ac_prev=datarootdir ;;
1067   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069     datarootdir=$ac_optarg ;;
1070
1071   -disable-* | --disable-*)
1072     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075       as_fn_error $? "invalid feature name: $ac_useropt"
1076     ac_useropt_orig=$ac_useropt
1077     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078     case $ac_user_opts in
1079       *"
1080 "enable_$ac_useropt"
1081 "*) ;;
1082       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1083          ac_unrecognized_sep=', ';;
1084     esac
1085     eval enable_$ac_useropt=no ;;
1086
1087   -docdir | --docdir | --docdi | --doc | --do)
1088     ac_prev=docdir ;;
1089   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1090     docdir=$ac_optarg ;;
1091
1092   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1093     ac_prev=dvidir ;;
1094   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1095     dvidir=$ac_optarg ;;
1096
1097   -enable-* | --enable-*)
1098     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1099     # Reject names that are not valid shell variable names.
1100     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101       as_fn_error $? "invalid feature name: $ac_useropt"
1102     ac_useropt_orig=$ac_useropt
1103     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104     case $ac_user_opts in
1105       *"
1106 "enable_$ac_useropt"
1107 "*) ;;
1108       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1109          ac_unrecognized_sep=', ';;
1110     esac
1111     eval enable_$ac_useropt=\$ac_optarg ;;
1112
1113   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1114   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1115   | --exec | --exe | --ex)
1116     ac_prev=exec_prefix ;;
1117   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1118   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1119   | --exec=* | --exe=* | --ex=*)
1120     exec_prefix=$ac_optarg ;;
1121
1122   -gas | --gas | --ga | --g)
1123     # Obsolete; use --with-gas.
1124     with_gas=yes ;;
1125
1126   -help | --help | --hel | --he | -h)
1127     ac_init_help=long ;;
1128   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1129     ac_init_help=recursive ;;
1130   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1131     ac_init_help=short ;;
1132
1133   -host | --host | --hos | --ho)
1134     ac_prev=host_alias ;;
1135   -host=* | --host=* | --hos=* | --ho=*)
1136     host_alias=$ac_optarg ;;
1137
1138   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1139     ac_prev=htmldir ;;
1140   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1141   | --ht=*)
1142     htmldir=$ac_optarg ;;
1143
1144   -includedir | --includedir | --includedi | --included | --include \
1145   | --includ | --inclu | --incl | --inc)
1146     ac_prev=includedir ;;
1147   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1148   | --includ=* | --inclu=* | --incl=* | --inc=*)
1149     includedir=$ac_optarg ;;
1150
1151   -infodir | --infodir | --infodi | --infod | --info | --inf)
1152     ac_prev=infodir ;;
1153   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1154     infodir=$ac_optarg ;;
1155
1156   -libdir | --libdir | --libdi | --libd)
1157     ac_prev=libdir ;;
1158   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1159     libdir=$ac_optarg ;;
1160
1161   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1162   | --libexe | --libex | --libe)
1163     ac_prev=libexecdir ;;
1164   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1165   | --libexe=* | --libex=* | --libe=*)
1166     libexecdir=$ac_optarg ;;
1167
1168   -localedir | --localedir | --localedi | --localed | --locale)
1169     ac_prev=localedir ;;
1170   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1171     localedir=$ac_optarg ;;
1172
1173   -localstatedir | --localstatedir | --localstatedi | --localstated \
1174   | --localstate | --localstat | --localsta | --localst | --locals)
1175     ac_prev=localstatedir ;;
1176   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1177   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1178     localstatedir=$ac_optarg ;;
1179
1180   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1181     ac_prev=mandir ;;
1182   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1183     mandir=$ac_optarg ;;
1184
1185   -nfp | --nfp | --nf)
1186     # Obsolete; use --without-fp.
1187     with_fp=no ;;
1188
1189   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1190   | --no-cr | --no-c | -n)
1191     no_create=yes ;;
1192
1193   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1194   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1195     no_recursion=yes ;;
1196
1197   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1198   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1199   | --oldin | --oldi | --old | --ol | --o)
1200     ac_prev=oldincludedir ;;
1201   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1202   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1203   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1204     oldincludedir=$ac_optarg ;;
1205
1206   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1207     ac_prev=prefix ;;
1208   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1209     prefix=$ac_optarg ;;
1210
1211   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1212   | --program-pre | --program-pr | --program-p)
1213     ac_prev=program_prefix ;;
1214   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1215   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1216     program_prefix=$ac_optarg ;;
1217
1218   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1219   | --program-suf | --program-su | --program-s)
1220     ac_prev=program_suffix ;;
1221   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1222   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1223     program_suffix=$ac_optarg ;;
1224
1225   -program-transform-name | --program-transform-name \
1226   | --program-transform-nam | --program-transform-na \
1227   | --program-transform-n | --program-transform- \
1228   | --program-transform | --program-transfor \
1229   | --program-transfo | --program-transf \
1230   | --program-trans | --program-tran \
1231   | --progr-tra | --program-tr | --program-t)
1232     ac_prev=program_transform_name ;;
1233   -program-transform-name=* | --program-transform-name=* \
1234   | --program-transform-nam=* | --program-transform-na=* \
1235   | --program-transform-n=* | --program-transform-=* \
1236   | --program-transform=* | --program-transfor=* \
1237   | --program-transfo=* | --program-transf=* \
1238   | --program-trans=* | --program-tran=* \
1239   | --progr-tra=* | --program-tr=* | --program-t=*)
1240     program_transform_name=$ac_optarg ;;
1241
1242   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1243     ac_prev=pdfdir ;;
1244   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1245     pdfdir=$ac_optarg ;;
1246
1247   -psdir | --psdir | --psdi | --psd | --ps)
1248     ac_prev=psdir ;;
1249   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1250     psdir=$ac_optarg ;;
1251
1252   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1253   | -silent | --silent | --silen | --sile | --sil)
1254     silent=yes ;;
1255
1256   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1257     ac_prev=sbindir ;;
1258   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1259   | --sbi=* | --sb=*)
1260     sbindir=$ac_optarg ;;
1261
1262   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1263   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1264   | --sharedst | --shareds | --shared | --share | --shar \
1265   | --sha | --sh)
1266     ac_prev=sharedstatedir ;;
1267   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1268   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1269   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1270   | --sha=* | --sh=*)
1271     sharedstatedir=$ac_optarg ;;
1272
1273   -site | --site | --sit)
1274     ac_prev=site ;;
1275   -site=* | --site=* | --sit=*)
1276     site=$ac_optarg ;;
1277
1278   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1279     ac_prev=srcdir ;;
1280   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1281     srcdir=$ac_optarg ;;
1282
1283   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1284   | --syscon | --sysco | --sysc | --sys | --sy)
1285     ac_prev=sysconfdir ;;
1286   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1287   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1288     sysconfdir=$ac_optarg ;;
1289
1290   -target | --target | --targe | --targ | --tar | --ta | --t)
1291     ac_prev=target_alias ;;
1292   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1293     target_alias=$ac_optarg ;;
1294
1295   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1296     verbose=yes ;;
1297
1298   -version | --version | --versio | --versi | --vers | -V)
1299     ac_init_version=: ;;
1300
1301   -with-* | --with-*)
1302     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1303     # Reject names that are not valid shell variable names.
1304     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305       as_fn_error $? "invalid package name: $ac_useropt"
1306     ac_useropt_orig=$ac_useropt
1307     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308     case $ac_user_opts in
1309       *"
1310 "with_$ac_useropt"
1311 "*) ;;
1312       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1313          ac_unrecognized_sep=', ';;
1314     esac
1315     eval with_$ac_useropt=\$ac_optarg ;;
1316
1317   -without-* | --without-*)
1318     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1319     # Reject names that are not valid shell variable names.
1320     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321       as_fn_error $? "invalid package name: $ac_useropt"
1322     ac_useropt_orig=$ac_useropt
1323     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324     case $ac_user_opts in
1325       *"
1326 "with_$ac_useropt"
1327 "*) ;;
1328       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329          ac_unrecognized_sep=', ';;
1330     esac
1331     eval with_$ac_useropt=no ;;
1332
1333   --x)
1334     # Obsolete; use --with-x.
1335     with_x=yes ;;
1336
1337   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1338   | --x-incl | --x-inc | --x-in | --x-i)
1339     ac_prev=x_includes ;;
1340   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1341   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1342     x_includes=$ac_optarg ;;
1343
1344   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1345   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1346     ac_prev=x_libraries ;;
1347   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1348   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1349     x_libraries=$ac_optarg ;;
1350
1351   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1352 Try \`$0 --help' for more information"
1353     ;;
1354
1355   *=*)
1356     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1357     # Reject names that are not valid shell variable names.
1358     case $ac_envvar in #(
1359       '' | [0-9]* | *[!_$as_cr_alnum]* )
1360       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1361     esac
1362     eval $ac_envvar=\$ac_optarg
1363     export $ac_envvar ;;
1364
1365   *)
1366     # FIXME: should be removed in autoconf 3.0.
1367     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1369       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1371     ;;
1372
1373   esac
1374 done
1375
1376 if test -n "$ac_prev"; then
1377   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1378   as_fn_error $? "missing argument to $ac_option"
1379 fi
1380
1381 if test -n "$ac_unrecognized_opts"; then
1382   case $enable_option_checking in
1383     no) ;;
1384     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1385     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1386   esac
1387 fi
1388
1389 # Check all directory arguments for consistency.
1390 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1391                 datadir sysconfdir sharedstatedir localstatedir includedir \
1392                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1393                 libdir localedir mandir
1394 do
1395   eval ac_val=\$$ac_var
1396   # Remove trailing slashes.
1397   case $ac_val in
1398     */ )
1399       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1400       eval $ac_var=\$ac_val;;
1401   esac
1402   # Be sure to have absolute directory names.
1403   case $ac_val in
1404     [\\/$]* | ?:[\\/]* )  continue;;
1405     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1406   esac
1407   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1408 done
1409
1410 # There might be people who depend on the old broken behavior: `$host'
1411 # used to hold the argument of --host etc.
1412 # FIXME: To remove some day.
1413 build=$build_alias
1414 host=$host_alias
1415 target=$target_alias
1416
1417 # FIXME: To remove some day.
1418 if test "x$host_alias" != x; then
1419   if test "x$build_alias" = x; then
1420     cross_compiling=maybe
1421     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1422     If a cross compiler is detected then cross compile mode will be used" >&2
1423   elif test "x$build_alias" != "x$host_alias"; then
1424     cross_compiling=yes
1425   fi
1426 fi
1427
1428 ac_tool_prefix=
1429 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1430
1431 test "$silent" = yes && exec 6>/dev/null
1432
1433
1434 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435 ac_ls_di=`ls -di .` &&
1436 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437   as_fn_error $? "working directory cannot be determined"
1438 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1439   as_fn_error $? "pwd does not report name of working directory"
1440
1441
1442 # Find the source files, if location was not specified.
1443 if test -z "$srcdir"; then
1444   ac_srcdir_defaulted=yes
1445   # Try the directory containing this script, then the parent directory.
1446   ac_confdir=`$as_dirname -- "$as_myself" ||
1447 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1448          X"$as_myself" : 'X\(//\)[^/]' \| \
1449          X"$as_myself" : 'X\(//\)$' \| \
1450          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1451 $as_echo X"$as_myself" |
1452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1453             s//\1/
1454             q
1455           }
1456           /^X\(\/\/\)[^/].*/{
1457             s//\1/
1458             q
1459           }
1460           /^X\(\/\/\)$/{
1461             s//\1/
1462             q
1463           }
1464           /^X\(\/\).*/{
1465             s//\1/
1466             q
1467           }
1468           s/.*/./; q'`
1469   srcdir=$ac_confdir
1470   if test ! -r "$srcdir/$ac_unique_file"; then
1471     srcdir=..
1472   fi
1473 else
1474   ac_srcdir_defaulted=no
1475 fi
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1477   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1478   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1479 fi
1480 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1481 ac_abs_confdir=`(
1482         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1483         pwd)`
1484 # When building in place, set srcdir=.
1485 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486   srcdir=.
1487 fi
1488 # Remove unnecessary trailing slashes from srcdir.
1489 # Double slashes in file names in object file debugging info
1490 # mess up M-x gdb in Emacs.
1491 case $srcdir in
1492 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1493 esac
1494 for ac_var in $ac_precious_vars; do
1495   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1496   eval ac_env_${ac_var}_value=\$${ac_var}
1497   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1498   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1499 done
1500
1501 #
1502 # Report the --help message.
1503 #
1504 if test "$ac_init_help" = "long"; then
1505   # Omit some internal or obsolete options to make the list less imposing.
1506   # This message is too long to be a string in the A/UX 3.1 sh.
1507   cat <<_ACEOF
1508 \`configure' configures opensaml 2.4 to adapt to many kinds of systems.
1509
1510 Usage: $0 [OPTION]... [VAR=VALUE]...
1511
1512 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1513 VAR=VALUE.  See below for descriptions of some of the useful variables.
1514
1515 Defaults for the options are specified in brackets.
1516
1517 Configuration:
1518   -h, --help              display this help and exit
1519       --help=short        display options specific to this package
1520       --help=recursive    display the short help of all the included packages
1521   -V, --version           display version information and exit
1522   -q, --quiet, --silent   do not print \`checking ...' messages
1523       --cache-file=FILE   cache test results in FILE [disabled]
1524   -C, --config-cache      alias for \`--cache-file=config.cache'
1525   -n, --no-create         do not create output files
1526       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1527
1528 Installation directories:
1529   --prefix=PREFIX         install architecture-independent files in PREFIX
1530                           [$ac_default_prefix]
1531   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1532                           [PREFIX]
1533
1534 By default, \`make install' will install all the files in
1535 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1536 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1537 for instance \`--prefix=\$HOME'.
1538
1539 For better control, use the options below.
1540
1541 Fine tuning of the installation directories:
1542   --bindir=DIR            user executables [EPREFIX/bin]
1543   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1544   --libexecdir=DIR        program executables [EPREFIX/libexec]
1545   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1546   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1547   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1548   --libdir=DIR            object code libraries [EPREFIX/lib]
1549   --includedir=DIR        C header files [PREFIX/include]
1550   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1551   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1552   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1553   --infodir=DIR           info documentation [DATAROOTDIR/info]
1554   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1555   --mandir=DIR            man documentation [DATAROOTDIR/man]
1556   --docdir=DIR            documentation root [DATAROOTDIR/doc/opensaml]
1557   --htmldir=DIR           html documentation [DOCDIR]
1558   --dvidir=DIR            dvi documentation [DOCDIR]
1559   --pdfdir=DIR            pdf documentation [DOCDIR]
1560   --psdir=DIR             ps documentation [DOCDIR]
1561 _ACEOF
1562
1563   cat <<\_ACEOF
1564
1565 Program names:
1566   --program-prefix=PREFIX            prepend PREFIX to installed program names
1567   --program-suffix=SUFFIX            append SUFFIX to installed program names
1568   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1569
1570 System types:
1571   --build=BUILD     configure for building on BUILD [guessed]
1572   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1573 _ACEOF
1574 fi
1575
1576 if test -n "$ac_init_help"; then
1577   case $ac_init_help in
1578      short | recursive ) echo "Configuration of opensaml 2.4:";;
1579    esac
1580   cat <<\_ACEOF
1581
1582 Optional Features:
1583   --disable-option-checking  ignore unrecognized --enable/--with options
1584   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1585   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1586   --enable-static[=PKGS]  build static libraries [default=no]
1587   --enable-shared[=PKGS]  build shared libraries [default=yes]
1588   --enable-fast-install[=PKGS]
1589                           optimize for fast installation [default=yes]
1590   --disable-dependency-tracking  speeds up one-time build
1591   --enable-dependency-tracking   do not reject slow dependency extractors
1592   --disable-libtool-lock  avoid locking (might break parallel builds)
1593   --disable-doxygen-doc   don't generate any doxygen documentation
1594   --disable-doxygen-dot   don't generate graphics for doxygen documentation
1595   --enable-doxygen-man    generate doxygen manual pages
1596   --enable-doxygen-rtf    generate doxygen RTF documentation
1597   --enable-doxygen-xml    generate doxygen XML documentation
1598   --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1599   --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1600                           file
1601   --disable-doxygen-html  don't generate doxygen plain HTML documentation
1602   --enable-doxygen-ps     generate doxygen PostScript documentation
1603   --enable-doxygen-pdf    generate doxygen PDF documentation
1604   --enable-debug          Have GCC compile with symbols (Default = no)
1605
1606 Optional Packages:
1607   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1608   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1609   --with-pic              try to use only PIC/non-PIC objects [default=use
1610                           both]
1611   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1612   --with-zlib=PATH        where zlib is installed
1613   --with-openssl=PATH     where openssl is installed
1614   --with-log4shib=PATH    where log4shib-config is installed
1615   --with-log4cpp=PATH     where log4cpp-config is installed
1616   --with-xerces=PATH      where xerces-c is installed
1617   --with-xmlsec=PATH      where xmlsec is installed
1618   --with-xmltooling=PATH  where xmltooling is installed
1619   --with-cxxtest=PATH     where cxxtest is installed
1620
1621 Some influential environment variables:
1622   CC          C compiler command
1623   CFLAGS      C compiler flags
1624   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1625               nonstandard directory <lib dir>
1626   LIBS        libraries to pass to the linker, e.g. -l<library>
1627   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1628               you have headers in a nonstandard directory <include dir>
1629   CPP         C preprocessor
1630   DOXYGEN_PAPER_SIZE
1631               a4wide (default), a4, letter, legal or executive
1632   CXX         C++ compiler command
1633   CXXFLAGS    C++ compiler flags
1634   CXXCPP      C++ preprocessor
1635
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1638
1639 Report bugs to <https://bugs.internet2.edu/>.
1640 _ACEOF
1641 ac_status=$?
1642 fi
1643
1644 if test "$ac_init_help" = "recursive"; then
1645   # If there are subdirs, report their specific --help.
1646   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647     test -d "$ac_dir" ||
1648       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649       continue
1650     ac_builddir=.
1651
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *)
1655   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656   # A ".." for each directory in $ac_dir_suffix.
1657   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658   case $ac_top_builddir_sub in
1659   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661   esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1667
1668 case $srcdir in
1669   .)  # We are building in place.
1670     ac_srcdir=.
1671     ac_top_srcdir=$ac_top_builddir_sub
1672     ac_abs_top_srcdir=$ac_pwd ;;
1673   [\\/]* | ?:[\\/]* )  # Absolute name.
1674     ac_srcdir=$srcdir$ac_dir_suffix;
1675     ac_top_srcdir=$srcdir
1676     ac_abs_top_srcdir=$srcdir ;;
1677   *) # Relative name.
1678     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679     ac_top_srcdir=$ac_top_build_prefix$srcdir
1680     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684     cd "$ac_dir" || { ac_status=$?; continue; }
1685     # Check for guested configure.
1686     if test -f "$ac_srcdir/configure.gnu"; then
1687       echo &&
1688       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689     elif test -f "$ac_srcdir/configure"; then
1690       echo &&
1691       $SHELL "$ac_srcdir/configure" --help=recursive
1692     else
1693       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694     fi || ac_status=$?
1695     cd "$ac_pwd" || { ac_status=$?; break; }
1696   done
1697 fi
1698
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701   cat <<\_ACEOF
1702 opensaml configure 2.4
1703 generated by GNU Autoconf 2.67
1704
1705 Copyright (C) 2010 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1708 _ACEOF
1709   exit
1710 fi
1711
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1715
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1720 {
1721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722   rm -f conftest.$ac_objext
1723   if { { ac_try="$ac_compile"
1724 case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_compile") 2>conftest.err
1731   ac_status=$?
1732   if test -s conftest.err; then
1733     grep -v '^ *+' conftest.err >conftest.er1
1734     cat conftest.er1 >&5
1735     mv -f conftest.er1 conftest.err
1736   fi
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; } && {
1739          test -z "$ac_c_werror_flag" ||
1740          test ! -s conftest.err
1741        } && test -s conftest.$ac_objext; then :
1742   ac_retval=0
1743 else
1744   $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747         ac_retval=1
1748 fi
1749   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750   as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_compile
1753
1754 # ac_fn_c_try_link LINENO
1755 # -----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_link ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   rm -f conftest.$ac_objext conftest$ac_exeext
1761   if { { ac_try="$ac_link"
1762 case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_link") 2>conftest.err
1769   ac_status=$?
1770   if test -s conftest.err; then
1771     grep -v '^ *+' conftest.err >conftest.er1
1772     cat conftest.er1 >&5
1773     mv -f conftest.er1 conftest.err
1774   fi
1775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776   test $ac_status = 0; } && {
1777          test -z "$ac_c_werror_flag" ||
1778          test ! -s conftest.err
1779        } && test -s conftest$ac_exeext && {
1780          test "$cross_compiling" = yes ||
1781          $as_test_x conftest$ac_exeext
1782        }; then :
1783   ac_retval=0
1784 else
1785   $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788         ac_retval=1
1789 fi
1790   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1791   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1792   # interfere with the next link command; also delete a directory that is
1793   # left behind by Apple's compiler.  We do this before executing the actions.
1794   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796   as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_link
1799
1800 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists and can be compiled using the include files in
1803 # INCLUDES, setting the cache variable VAR accordingly.
1804 ac_fn_c_check_header_compile ()
1805 {
1806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval "test \"\${$3+set}\"" = set; then :
1810   $as_echo_n "(cached) " >&6
1811 else
1812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h.  */
1814 $4
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818   eval "$3=yes"
1819 else
1820   eval "$3=no"
1821 fi
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 fi
1824 eval ac_res=\$$3
1825                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828
1829 } # ac_fn_c_check_header_compile
1830
1831 # ac_fn_c_try_cpp LINENO
1832 # ----------------------
1833 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_cpp ()
1835 {
1836   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837   if { { ac_try="$ac_cpp conftest.$ac_ext"
1838 case "(($ac_try" in
1839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840   *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1845   ac_status=$?
1846   if test -s conftest.err; then
1847     grep -v '^ *+' conftest.err >conftest.er1
1848     cat conftest.er1 >&5
1849     mv -f conftest.er1 conftest.err
1850   fi
1851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852   test $ac_status = 0; } > conftest.i && {
1853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1854          test ! -s conftest.err
1855        }; then :
1856   ac_retval=0
1857 else
1858   $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1860
1861     ac_retval=1
1862 fi
1863   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864   as_fn_set_status $ac_retval
1865
1866 } # ac_fn_c_try_cpp
1867
1868 # ac_fn_c_try_run LINENO
1869 # ----------------------
1870 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1871 # that executables *can* be run.
1872 ac_fn_c_try_run ()
1873 {
1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875   if { { ac_try="$ac_link"
1876 case "(($ac_try" in
1877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878   *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882   (eval "$ac_link") 2>&5
1883   ac_status=$?
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1886   { { case "(($ac_try" in
1887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888   *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892   (eval "$ac_try") 2>&5
1893   ac_status=$?
1894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895   test $ac_status = 0; }; }; then :
1896   ac_retval=0
1897 else
1898   $as_echo "$as_me: program exited with status $ac_status" >&5
1899        $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1901
1902        ac_retval=$ac_status
1903 fi
1904   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906   as_fn_set_status $ac_retval
1907
1908 } # ac_fn_c_try_run
1909
1910 # ac_fn_c_check_func LINENO FUNC VAR
1911 # ----------------------------------
1912 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1913 ac_fn_c_check_func ()
1914 {
1915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval "test \"\${$3+set}\"" = set; then :
1919   $as_echo_n "(cached) " >&6
1920 else
1921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h.  */
1923 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1925 #define $2 innocuous_$2
1926
1927 /* System header to define __stub macros and hopefully few prototypes,
1928     which can conflict with char $2 (); below.
1929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1930     <limits.h> exists even on freestanding compilers.  */
1931
1932 #ifdef __STDC__
1933 # include <limits.h>
1934 #else
1935 # include <assert.h>
1936 #endif
1937
1938 #undef $2
1939
1940 /* Override any GCC internal prototype to avoid an error.
1941    Use char because int might match the return type of a GCC
1942    builtin and then its argument prototype would still apply.  */
1943 #ifdef __cplusplus
1944 extern "C"
1945 #endif
1946 char $2 ();
1947 /* The GNU C library defines this for functions which it implements
1948     to always fail with ENOSYS.  Some functions are actually named
1949     something starting with __ and the normal name is an alias.  */
1950 #if defined __stub_$2 || defined __stub___$2
1951 choke me
1952 #endif
1953
1954 int
1955 main ()
1956 {
1957 return $2 ();
1958   ;
1959   return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_link "$LINENO"; then :
1963   eval "$3=yes"
1964 else
1965   eval "$3=no"
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext \
1968     conftest$ac_exeext conftest.$ac_ext
1969 fi
1970 eval ac_res=\$$3
1971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974
1975 } # ac_fn_c_check_func
1976
1977 # ac_fn_cxx_try_compile LINENO
1978 # ----------------------------
1979 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_cxx_try_compile ()
1981 {
1982   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983   rm -f conftest.$ac_objext
1984   if { { ac_try="$ac_compile"
1985 case "(($ac_try" in
1986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987   *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991   (eval "$ac_compile") 2>conftest.err
1992   ac_status=$?
1993   if test -s conftest.err; then
1994     grep -v '^ *+' conftest.err >conftest.er1
1995     cat conftest.er1 >&5
1996     mv -f conftest.er1 conftest.err
1997   fi
1998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999   test $ac_status = 0; } && {
2000          test -z "$ac_cxx_werror_flag" ||
2001          test ! -s conftest.err
2002        } && test -s conftest.$ac_objext; then :
2003   ac_retval=0
2004 else
2005   $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008         ac_retval=1
2009 fi
2010   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011   as_fn_set_status $ac_retval
2012
2013 } # ac_fn_cxx_try_compile
2014
2015 # ac_fn_cxx_try_cpp LINENO
2016 # ------------------------
2017 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2018 ac_fn_cxx_try_cpp ()
2019 {
2020   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021   if { { ac_try="$ac_cpp conftest.$ac_ext"
2022 case "(($ac_try" in
2023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024   *) ac_try_echo=$ac_try;;
2025 esac
2026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027 $as_echo "$ac_try_echo"; } >&5
2028   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2029   ac_status=$?
2030   if test -s conftest.err; then
2031     grep -v '^ *+' conftest.err >conftest.er1
2032     cat conftest.er1 >&5
2033     mv -f conftest.er1 conftest.err
2034   fi
2035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2036   test $ac_status = 0; } > conftest.i && {
2037          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2038          test ! -s conftest.err
2039        }; then :
2040   ac_retval=0
2041 else
2042   $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2044
2045     ac_retval=1
2046 fi
2047   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048   as_fn_set_status $ac_retval
2049
2050 } # ac_fn_cxx_try_cpp
2051
2052 # ac_fn_cxx_try_link LINENO
2053 # -------------------------
2054 # Try to link conftest.$ac_ext, and return whether this succeeded.
2055 ac_fn_cxx_try_link ()
2056 {
2057   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058   rm -f conftest.$ac_objext conftest$ac_exeext
2059   if { { ac_try="$ac_link"
2060 case "(($ac_try" in
2061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062   *) ac_try_echo=$ac_try;;
2063 esac
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066   (eval "$ac_link") 2>conftest.err
2067   ac_status=$?
2068   if test -s conftest.err; then
2069     grep -v '^ *+' conftest.err >conftest.er1
2070     cat conftest.er1 >&5
2071     mv -f conftest.er1 conftest.err
2072   fi
2073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074   test $ac_status = 0; } && {
2075          test -z "$ac_cxx_werror_flag" ||
2076          test ! -s conftest.err
2077        } && test -s conftest$ac_exeext && {
2078          test "$cross_compiling" = yes ||
2079          $as_test_x conftest$ac_exeext
2080        }; then :
2081   ac_retval=0
2082 else
2083   $as_echo "$as_me: failed program was:" >&5
2084 sed 's/^/| /' conftest.$ac_ext >&5
2085
2086         ac_retval=1
2087 fi
2088   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2089   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2090   # interfere with the next link command; also delete a directory that is
2091   # left behind by Apple's compiler.  We do this before executing the actions.
2092   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2093   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094   as_fn_set_status $ac_retval
2095
2096 } # ac_fn_cxx_try_link
2097
2098 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2099 # -------------------------------------------
2100 # Tests whether TYPE exists after having included INCLUDES, setting cache
2101 # variable VAR accordingly.
2102 ac_fn_c_check_type ()
2103 {
2104   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106 $as_echo_n "checking for $2... " >&6; }
2107 if eval "test \"\${$3+set}\"" = set; then :
2108   $as_echo_n "(cached) " >&6
2109 else
2110   eval "$3=no"
2111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h.  */
2113 $4
2114 int
2115 main ()
2116 {
2117 if (sizeof ($2))
2118          return 0;
2119   ;
2120   return 0;
2121 }
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h.  */
2126 $4
2127 int
2128 main ()
2129 {
2130 if (sizeof (($2)))
2131             return 0;
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137
2138 else
2139   eval "$3=yes"
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 fi
2145 eval ac_res=\$$3
2146                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2148   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149
2150 } # ac_fn_c_check_type
2151
2152 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2153 # --------------------------------------------
2154 # Tries to find the compile-time value of EXPR in a program that includes
2155 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2156 # computed
2157 ac_fn_c_compute_int ()
2158 {
2159   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160   if test "$cross_compiling" = yes; then
2161     # Depending upon the size, compute the lo and hi bounds.
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h.  */
2164 $4
2165 int
2166 main ()
2167 {
2168 static int test_array [1 - 2 * !(($2) >= 0)];
2169 test_array [0] = 0
2170
2171   ;
2172   return 0;
2173 }
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176   ac_lo=0 ac_mid=0
2177   while :; do
2178     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h.  */
2180 $4
2181 int
2182 main ()
2183 {
2184 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2185 test_array [0] = 0
2186
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192   ac_hi=$ac_mid; break
2193 else
2194   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2195                         if test $ac_lo -le $ac_mid; then
2196                           ac_lo= ac_hi=
2197                           break
2198                         fi
2199                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2200 fi
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202   done
2203 else
2204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h.  */
2206 $4
2207 int
2208 main ()
2209 {
2210 static int test_array [1 - 2 * !(($2) < 0)];
2211 test_array [0] = 0
2212
2213   ;
2214   return 0;
2215 }
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"; then :
2218   ac_hi=-1 ac_mid=-1
2219   while :; do
2220     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h.  */
2222 $4
2223 int
2224 main ()
2225 {
2226 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2227 test_array [0] = 0
2228
2229   ;
2230   return 0;
2231 }
2232 _ACEOF
2233 if ac_fn_c_try_compile "$LINENO"; then :
2234   ac_lo=$ac_mid; break
2235 else
2236   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2237                         if test $ac_mid -le $ac_hi; then
2238                           ac_lo= ac_hi=
2239                           break
2240                         fi
2241                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244   done
2245 else
2246   ac_lo= ac_hi=
2247 fi
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 fi
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 # Binary search between lo and hi bounds.
2252 while test "x$ac_lo" != "x$ac_hi"; do
2253   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h.  */
2256 $4
2257 int
2258 main ()
2259 {
2260 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2261 test_array [0] = 0
2262
2263   ;
2264   return 0;
2265 }
2266 _ACEOF
2267 if ac_fn_c_try_compile "$LINENO"; then :
2268   ac_hi=$ac_mid
2269 else
2270   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2271 fi
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 done
2274 case $ac_lo in #((
2275 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2276 '') ac_retval=1 ;;
2277 esac
2278   else
2279     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h.  */
2281 $4
2282 static long int longval () { return $2; }
2283 static unsigned long int ulongval () { return $2; }
2284 #include <stdio.h>
2285 #include <stdlib.h>
2286 int
2287 main ()
2288 {
2289
2290   FILE *f = fopen ("conftest.val", "w");
2291   if (! f)
2292     return 1;
2293   if (($2) < 0)
2294     {
2295       long int i = longval ();
2296       if (i != ($2))
2297         return 1;
2298       fprintf (f, "%ld", i);
2299     }
2300   else
2301     {
2302       unsigned long int i = ulongval ();
2303       if (i != ($2))
2304         return 1;
2305       fprintf (f, "%lu", i);
2306     }
2307   /* Do not output a trailing newline, as this causes \r\n confusion
2308      on some platforms.  */
2309   return ferror (f) || fclose (f) != 0;
2310
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 if ac_fn_c_try_run "$LINENO"; then :
2316   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2317 else
2318   ac_retval=1
2319 fi
2320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2321   conftest.$ac_objext conftest.beam conftest.$ac_ext
2322 rm -f conftest.val
2323
2324   fi
2325   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2326   as_fn_set_status $ac_retval
2327
2328 } # ac_fn_c_compute_int
2329
2330 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2331 # -------------------------------------------------------
2332 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2333 # the include files in INCLUDES and setting the cache variable VAR
2334 # accordingly.
2335 ac_fn_c_check_header_mongrel ()
2336 {
2337   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338   if eval "test \"\${$3+set}\"" = set; then :
2339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if eval "test \"\${$3+set}\"" = set; then :
2342   $as_echo_n "(cached) " >&6
2343 fi
2344 eval ac_res=\$$3
2345                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347 else
2348   # Is the header compilable?
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2350 $as_echo_n "checking $2 usability... " >&6; }
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h.  */
2353 $4
2354 #include <$2>
2355 _ACEOF
2356 if ac_fn_c_try_compile "$LINENO"; then :
2357   ac_header_compiler=yes
2358 else
2359   ac_header_compiler=no
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2363 $as_echo "$ac_header_compiler" >&6; }
2364
2365 # Is the header present?
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2367 $as_echo_n "checking $2 presence... " >&6; }
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h.  */
2370 #include <$2>
2371 _ACEOF
2372 if ac_fn_c_try_cpp "$LINENO"; then :
2373   ac_header_preproc=yes
2374 else
2375   ac_header_preproc=no
2376 fi
2377 rm -f conftest.err conftest.i conftest.$ac_ext
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2379 $as_echo "$ac_header_preproc" >&6; }
2380
2381 # So?  What about this header?
2382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2383   yes:no: )
2384     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2385 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2386     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2387 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2388     ;;
2389   no:yes:* )
2390     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2391 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2392     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2393 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2394     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2395 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2396     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2397 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2398     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2399 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2400 ( $as_echo "## ------------------------------------------ ##
2401 ## Report this to https://bugs.internet2.edu/ ##
2402 ## ------------------------------------------ ##"
2403      ) | sed "s/^/$as_me: WARNING:     /" >&2
2404     ;;
2405 esac
2406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2407 $as_echo_n "checking for $2... " >&6; }
2408 if eval "test \"\${$3+set}\"" = set; then :
2409   $as_echo_n "(cached) " >&6
2410 else
2411   eval "$3=\$ac_header_compiler"
2412 fi
2413 eval ac_res=\$$3
2414                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2415 $as_echo "$ac_res" >&6; }
2416 fi
2417   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2418
2419 } # ac_fn_c_check_header_mongrel
2420
2421 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2422 # ---------------------------------------------------------
2423 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2424 # the include files in INCLUDES and setting the cache variable VAR
2425 # accordingly.
2426 ac_fn_cxx_check_header_mongrel ()
2427 {
2428   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2429   if eval "test \"\${$3+set}\"" = set; then :
2430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2431 $as_echo_n "checking for $2... " >&6; }
2432 if eval "test \"\${$3+set}\"" = set; then :
2433   $as_echo_n "(cached) " >&6
2434 fi
2435 eval ac_res=\$$3
2436                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2437 $as_echo "$ac_res" >&6; }
2438 else
2439   # Is the header compilable?
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2441 $as_echo_n "checking $2 usability... " >&6; }
2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443 /* end confdefs.h.  */
2444 $4
2445 #include <$2>
2446 _ACEOF
2447 if ac_fn_cxx_try_compile "$LINENO"; then :
2448   ac_header_compiler=yes
2449 else
2450   ac_header_compiler=no
2451 fi
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2454 $as_echo "$ac_header_compiler" >&6; }
2455
2456 # Is the header present?
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2458 $as_echo_n "checking $2 presence... " >&6; }
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h.  */
2461 #include <$2>
2462 _ACEOF
2463 if ac_fn_cxx_try_cpp "$LINENO"; then :
2464   ac_header_preproc=yes
2465 else
2466   ac_header_preproc=no
2467 fi
2468 rm -f conftest.err conftest.i conftest.$ac_ext
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2470 $as_echo "$ac_header_preproc" >&6; }
2471
2472 # So?  What about this header?
2473 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2474   yes:no: )
2475     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2476 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2477     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2478 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2479     ;;
2480   no:yes:* )
2481     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2482 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2483     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2484 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2485     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2486 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2487     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2488 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2489     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2490 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2491 ( $as_echo "## ------------------------------------------ ##
2492 ## Report this to https://bugs.internet2.edu/ ##
2493 ## ------------------------------------------ ##"
2494      ) | sed "s/^/$as_me: WARNING:     /" >&2
2495     ;;
2496 esac
2497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2498 $as_echo_n "checking for $2... " >&6; }
2499 if eval "test \"\${$3+set}\"" = set; then :
2500   $as_echo_n "(cached) " >&6
2501 else
2502   eval "$3=\$ac_header_compiler"
2503 fi
2504 eval ac_res=\$$3
2505                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506 $as_echo "$ac_res" >&6; }
2507 fi
2508   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509
2510 } # ac_fn_cxx_check_header_mongrel
2511 cat >config.log <<_ACEOF
2512 This file contains any messages produced by compilers while
2513 running configure, to aid debugging if configure makes a mistake.
2514
2515 It was created by opensaml $as_me 2.4, which was
2516 generated by GNU Autoconf 2.67.  Invocation command line was
2517
2518   $ $0 $@
2519
2520 _ACEOF
2521 exec 5>>config.log
2522 {
2523 cat <<_ASUNAME
2524 ## --------- ##
2525 ## Platform. ##
2526 ## --------- ##
2527
2528 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2529 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2530 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2531 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2532 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2533
2534 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2535 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2536
2537 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2538 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2539 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2540 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2541 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2542 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2543 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2544
2545 _ASUNAME
2546
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552     $as_echo "PATH: $as_dir"
2553   done
2554 IFS=$as_save_IFS
2555
2556 } >&5
2557
2558 cat >&5 <<_ACEOF
2559
2560
2561 ## ----------- ##
2562 ## Core tests. ##
2563 ## ----------- ##
2564
2565 _ACEOF
2566
2567
2568 # Keep a trace of the command line.
2569 # Strip out --no-create and --no-recursion so they do not pile up.
2570 # Strip out --silent because we don't want to record it for future runs.
2571 # Also quote any args containing shell meta-characters.
2572 # Make two passes to allow for proper duplicate-argument suppression.
2573 ac_configure_args=
2574 ac_configure_args0=
2575 ac_configure_args1=
2576 ac_must_keep_next=false
2577 for ac_pass in 1 2
2578 do
2579   for ac_arg
2580   do
2581     case $ac_arg in
2582     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2583     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2584     | -silent | --silent | --silen | --sile | --sil)
2585       continue ;;
2586     *\'*)
2587       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2588     esac
2589     case $ac_pass in
2590     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2591     2)
2592       as_fn_append ac_configure_args1 " '$ac_arg'"
2593       if test $ac_must_keep_next = true; then
2594         ac_must_keep_next=false # Got value, back to normal.
2595       else
2596         case $ac_arg in
2597           *=* | --config-cache | -C | -disable-* | --disable-* \
2598           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2599           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2600           | -with-* | --with-* | -without-* | --without-* | --x)
2601             case "$ac_configure_args0 " in
2602               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2603             esac
2604             ;;
2605           -* ) ac_must_keep_next=true ;;
2606         esac
2607       fi
2608       as_fn_append ac_configure_args " '$ac_arg'"
2609       ;;
2610     esac
2611   done
2612 done
2613 { ac_configure_args0=; unset ac_configure_args0;}
2614 { ac_configure_args1=; unset ac_configure_args1;}
2615
2616 # When interrupted or exit'd, cleanup temporary files, and complete
2617 # config.log.  We remove comments because anyway the quotes in there
2618 # would cause problems or look ugly.
2619 # WARNING: Use '\'' to represent an apostrophe within the trap.
2620 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2621 trap 'exit_status=$?
2622   # Save into config.log some information that might help in debugging.
2623   {
2624     echo
2625
2626     $as_echo "## ---------------- ##
2627 ## Cache variables. ##
2628 ## ---------------- ##"
2629     echo
2630     # The following way of writing the cache mishandles newlines in values,
2631 (
2632   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2633     eval ac_val=\$$ac_var
2634     case $ac_val in #(
2635     *${as_nl}*)
2636       case $ac_var in #(
2637       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2638 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2639       esac
2640       case $ac_var in #(
2641       _ | IFS | as_nl) ;; #(
2642       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2643       *) { eval $ac_var=; unset $ac_var;} ;;
2644       esac ;;
2645     esac
2646   done
2647   (set) 2>&1 |
2648     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2649     *${as_nl}ac_space=\ *)
2650       sed -n \
2651         "s/'\''/'\''\\\\'\'''\''/g;
2652           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2653       ;; #(
2654     *)
2655       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2656       ;;
2657     esac |
2658     sort
2659 )
2660     echo
2661
2662     $as_echo "## ----------------- ##
2663 ## Output variables. ##
2664 ## ----------------- ##"
2665     echo
2666     for ac_var in $ac_subst_vars
2667     do
2668       eval ac_val=\$$ac_var
2669       case $ac_val in
2670       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2671       esac
2672       $as_echo "$ac_var='\''$ac_val'\''"
2673     done | sort
2674     echo
2675
2676     if test -n "$ac_subst_files"; then
2677       $as_echo "## ------------------- ##
2678 ## File substitutions. ##
2679 ## ------------------- ##"
2680       echo
2681       for ac_var in $ac_subst_files
2682       do
2683         eval ac_val=\$$ac_var
2684         case $ac_val in
2685         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2686         esac
2687         $as_echo "$ac_var='\''$ac_val'\''"
2688       done | sort
2689       echo
2690     fi
2691
2692     if test -s confdefs.h; then
2693       $as_echo "## ----------- ##
2694 ## confdefs.h. ##
2695 ## ----------- ##"
2696       echo
2697       cat confdefs.h
2698       echo
2699     fi
2700     test "$ac_signal" != 0 &&
2701       $as_echo "$as_me: caught signal $ac_signal"
2702     $as_echo "$as_me: exit $exit_status"
2703   } >&5
2704   rm -f core *.core core.conftest.* &&
2705     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2706     exit $exit_status
2707 ' 0
2708 for ac_signal in 1 2 13 15; do
2709   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2710 done
2711 ac_signal=0
2712
2713 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2714 rm -f -r conftest* confdefs.h
2715
2716 $as_echo "/* confdefs.h */" > confdefs.h
2717
2718 # Predefined preprocessor variables.
2719
2720 cat >>confdefs.h <<_ACEOF
2721 #define PACKAGE_NAME "$PACKAGE_NAME"
2722 _ACEOF
2723
2724 cat >>confdefs.h <<_ACEOF
2725 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2726 _ACEOF
2727
2728 cat >>confdefs.h <<_ACEOF
2729 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2730 _ACEOF
2731
2732 cat >>confdefs.h <<_ACEOF
2733 #define PACKAGE_STRING "$PACKAGE_STRING"
2734 _ACEOF
2735
2736 cat >>confdefs.h <<_ACEOF
2737 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2738 _ACEOF
2739
2740 cat >>confdefs.h <<_ACEOF
2741 #define PACKAGE_URL "$PACKAGE_URL"
2742 _ACEOF
2743
2744
2745 # Let the site file select an alternate cache file if it wants to.
2746 # Prefer an explicitly selected file to automatically selected ones.
2747 ac_site_file1=NONE
2748 ac_site_file2=NONE
2749 if test -n "$CONFIG_SITE"; then
2750   # We do not want a PATH search for config.site.
2751   case $CONFIG_SITE in #((
2752     -*)  ac_site_file1=./$CONFIG_SITE;;
2753     */*) ac_site_file1=$CONFIG_SITE;;
2754     *)   ac_site_file1=./$CONFIG_SITE;;
2755   esac
2756 elif test "x$prefix" != xNONE; then
2757   ac_site_file1=$prefix/share/config.site
2758   ac_site_file2=$prefix/etc/config.site
2759 else
2760   ac_site_file1=$ac_default_prefix/share/config.site
2761   ac_site_file2=$ac_default_prefix/etc/config.site
2762 fi
2763 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2764 do
2765   test "x$ac_site_file" = xNONE && continue
2766   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2767     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2768 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2769     sed 's/^/| /' "$ac_site_file" >&5
2770     . "$ac_site_file" \
2771       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2773 as_fn_error $? "failed to load site script $ac_site_file
2774 See \`config.log' for more details" "$LINENO" 5 ; }
2775   fi
2776 done
2777
2778 if test -r "$cache_file"; then
2779   # Some versions of bash will fail to source /dev/null (special files
2780   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2781   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2782     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2783 $as_echo "$as_me: loading cache $cache_file" >&6;}
2784     case $cache_file in
2785       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2786       *)                      . "./$cache_file";;
2787     esac
2788   fi
2789 else
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2791 $as_echo "$as_me: creating cache $cache_file" >&6;}
2792   >$cache_file
2793 fi
2794
2795 # Check that the precious variables saved in the cache have kept the same
2796 # value.
2797 ac_cache_corrupted=false
2798 for ac_var in $ac_precious_vars; do
2799   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2800   eval ac_new_set=\$ac_env_${ac_var}_set
2801   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2802   eval ac_new_val=\$ac_env_${ac_var}_value
2803   case $ac_old_set,$ac_new_set in
2804     set,)
2805       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2806 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2807       ac_cache_corrupted=: ;;
2808     ,set)
2809       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2810 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2811       ac_cache_corrupted=: ;;
2812     ,);;
2813     *)
2814       if test "x$ac_old_val" != "x$ac_new_val"; then
2815         # differences in whitespace do not lead to failure.
2816         ac_old_val_w=`echo x $ac_old_val`
2817         ac_new_val_w=`echo x $ac_new_val`
2818         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2819           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2820 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2821           ac_cache_corrupted=:
2822         else
2823           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2824 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2825           eval $ac_var=\$ac_old_val
2826         fi
2827         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2828 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2829         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2830 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2831       fi;;
2832   esac
2833   # Pass precious variables to config.status.
2834   if test "$ac_new_set" = set; then
2835     case $ac_new_val in
2836     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2837     *) ac_arg=$ac_var=$ac_new_val ;;
2838     esac
2839     case " $ac_configure_args " in
2840       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2841       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2842     esac
2843   fi
2844 done
2845 if $ac_cache_corrupted; then
2846   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2848   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2849 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2850   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2851 fi
2852 ## -------------------- ##
2853 ## Main body of script. ##
2854 ## -------------------- ##
2855
2856 ac_ext=c
2857 ac_cpp='$CPP $CPPFLAGS'
2858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2861
2862
2863
2864 ac_aux_dir=
2865 for ac_dir in build-aux "$srcdir"/build-aux; do
2866   if test -f "$ac_dir/install-sh"; then
2867     ac_aux_dir=$ac_dir
2868     ac_install_sh="$ac_aux_dir/install-sh -c"
2869     break
2870   elif test -f "$ac_dir/install.sh"; then
2871     ac_aux_dir=$ac_dir
2872     ac_install_sh="$ac_aux_dir/install.sh -c"
2873     break
2874   elif test -f "$ac_dir/shtool"; then
2875     ac_aux_dir=$ac_dir
2876     ac_install_sh="$ac_aux_dir/shtool install -c"
2877     break
2878   fi
2879 done
2880 if test -z "$ac_aux_dir"; then
2881   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2882 fi
2883
2884 # These three variables are undocumented and unsupported,
2885 # and are intended to be withdrawn in a future Autoconf release.
2886 # They can cause serious problems if a builder's source tree is in a directory
2887 # whose full name contains unusual characters.
2888 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2889 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2890 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2891
2892
2893
2894 am__api_version='1.11'
2895
2896 # Find a good install program.  We prefer a C program (faster),
2897 # so one script is as good as another.  But avoid the broken or
2898 # incompatible versions:
2899 # SysV /etc/install, /usr/sbin/install
2900 # SunOS /usr/etc/install
2901 # IRIX /sbin/install
2902 # AIX /bin/install
2903 # AmigaOS /C/install, which installs bootblocks on floppy discs
2904 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2905 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2906 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2907 # OS/2's system install, which has a completely different semantic
2908 # ./install, which can be erroneously created by make from ./install.sh.
2909 # Reject install programs that cannot install multiple files.
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2911 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2912 if test -z "$INSTALL"; then
2913 if test "${ac_cv_path_install+set}" = set; then :
2914   $as_echo_n "(cached) " >&6
2915 else
2916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919   IFS=$as_save_IFS
2920   test -z "$as_dir" && as_dir=.
2921     # Account for people who put trailing slashes in PATH elements.
2922 case $as_dir/ in #((
2923   ./ | .// | /[cC]/* | \
2924   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2925   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2926   /usr/ucb/* ) ;;
2927   *)
2928     # OSF1 and SCO ODT 3.0 have their own names for install.
2929     # Don't use installbsd from OSF since it installs stuff as root
2930     # by default.
2931     for ac_prog in ginstall scoinst install; do
2932       for ac_exec_ext in '' $ac_executable_extensions; do
2933         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2934           if test $ac_prog = install &&
2935             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2936             # AIX install.  It has an incompatible calling convention.
2937             :
2938           elif test $ac_prog = install &&
2939             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2940             # program-specific install script used by HP pwplus--don't use.
2941             :
2942           else
2943             rm -rf conftest.one conftest.two conftest.dir
2944             echo one > conftest.one
2945             echo two > conftest.two
2946             mkdir conftest.dir
2947             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2948               test -s conftest.one && test -s conftest.two &&
2949               test -s conftest.dir/conftest.one &&
2950               test -s conftest.dir/conftest.two
2951             then
2952               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2953               break 3
2954             fi
2955           fi
2956         fi
2957       done
2958     done
2959     ;;
2960 esac
2961
2962   done
2963 IFS=$as_save_IFS
2964
2965 rm -rf conftest.one conftest.two conftest.dir
2966
2967 fi
2968   if test "${ac_cv_path_install+set}" = set; then
2969     INSTALL=$ac_cv_path_install
2970   else
2971     # As a last resort, use the slow shell script.  Don't cache a
2972     # value for INSTALL within a source directory, because that will
2973     # break other packages using the cache if that directory is
2974     # removed, or if the value is a relative name.
2975     INSTALL=$ac_install_sh
2976   fi
2977 fi
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2979 $as_echo "$INSTALL" >&6; }
2980
2981 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2982 # It thinks the first close brace ends the variable substitution.
2983 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2984
2985 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2986
2987 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2988
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2990 $as_echo_n "checking whether build environment is sane... " >&6; }
2991 # Just in case
2992 sleep 1
2993 echo timestamp > conftest.file
2994 # Reject unsafe characters in $srcdir or the absolute working directory
2995 # name.  Accept space and tab only in the latter.
2996 am_lf='
2997 '
2998 case `pwd` in
2999   *[\\\"\#\$\&\'\`$am_lf]*)
3000     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3001 esac
3002 case $srcdir in
3003   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3004     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3005 esac
3006
3007 # Do `set' in a subshell so we don't clobber the current shell's
3008 # arguments.  Must try -L first in case configure is actually a
3009 # symlink; some systems play weird games with the mod time of symlinks
3010 # (eg FreeBSD returns the mod time of the symlink's containing
3011 # directory).
3012 if (
3013    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3014    if test "$*" = "X"; then
3015       # -L didn't work.
3016       set X `ls -t "$srcdir/configure" conftest.file`
3017    fi
3018    rm -f conftest.file
3019    if test "$*" != "X $srcdir/configure conftest.file" \
3020       && test "$*" != "X conftest.file $srcdir/configure"; then
3021
3022       # If neither matched, then we have a broken ls.  This can happen
3023       # if, for instance, CONFIG_SHELL is bash and it inherits a
3024       # broken ls alias from the environment.  This has actually
3025       # happened.  Such a system could not be considered "sane".
3026       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3027 alias in your environment" "$LINENO" 5
3028    fi
3029
3030    test "$2" = conftest.file
3031    )
3032 then
3033    # Ok.
3034    :
3035 else
3036    as_fn_error $? "newly created file is older than distributed files!
3037 Check your system clock" "$LINENO" 5
3038 fi
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3040 $as_echo "yes" >&6; }
3041 test "$program_prefix" != NONE &&
3042   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3043 # Use a double $ so make ignores it.
3044 test "$program_suffix" != NONE &&
3045   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3046 # Double any \ or $.
3047 # By default was `s,x,x', remove it if useless.
3048 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3049 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3050
3051 # expand $ac_aux_dir to an absolute path
3052 am_aux_dir=`cd $ac_aux_dir && pwd`
3053
3054 if test x"${MISSING+set}" != xset; then
3055   case $am_aux_dir in
3056   *\ * | *\     *)
3057     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3058   *)
3059     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3060   esac
3061 fi
3062 # Use eval to expand $SHELL
3063 if eval "$MISSING --run true"; then
3064   am_missing_run="$MISSING --run "
3065 else
3066   am_missing_run=
3067   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3068 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3069 fi
3070
3071 if test x"${install_sh}" != xset; then
3072   case $am_aux_dir in
3073   *\ * | *\     *)
3074     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3075   *)
3076     install_sh="\${SHELL} $am_aux_dir/install-sh"
3077   esac
3078 fi
3079
3080 # Installed binaries are usually stripped using `strip' when the user
3081 # run `make install-strip'.  However `strip' might not be the right
3082 # tool to use in cross-compilation environments, therefore Automake
3083 # will honor the `STRIP' environment variable to overrule this program.
3084 if test "$cross_compiling" != no; then
3085   if test -n "$ac_tool_prefix"; then
3086   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3087 set dummy ${ac_tool_prefix}strip; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_STRIP+set}" = set; then :
3091   $as_echo_n "(cached) " >&6
3092 else
3093   if test -n "$STRIP"; then
3094   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099   IFS=$as_save_IFS
3100   test -z "$as_dir" && as_dir=.
3101     for ac_exec_ext in '' $ac_executable_extensions; do
3102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105     break 2
3106   fi
3107 done
3108   done
3109 IFS=$as_save_IFS
3110
3111 fi
3112 fi
3113 STRIP=$ac_cv_prog_STRIP
3114 if test -n "$STRIP"; then
3115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3116 $as_echo "$STRIP" >&6; }
3117 else
3118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3120 fi
3121
3122
3123 fi
3124 if test -z "$ac_cv_prog_STRIP"; then
3125   ac_ct_STRIP=$STRIP
3126   # Extract the first word of "strip", so it can be a program name with args.
3127 set dummy strip; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3131   $as_echo_n "(cached) " >&6
3132 else
3133   if test -n "$ac_ct_STRIP"; then
3134   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139   IFS=$as_save_IFS
3140   test -z "$as_dir" && as_dir=.
3141     for ac_exec_ext in '' $ac_executable_extensions; do
3142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143     ac_cv_prog_ac_ct_STRIP="strip"
3144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145     break 2
3146   fi
3147 done
3148   done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3154 if test -n "$ac_ct_STRIP"; then
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3156 $as_echo "$ac_ct_STRIP" >&6; }
3157 else
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162   if test "x$ac_ct_STRIP" = x; then
3163     STRIP=":"
3164   else
3165     case $cross_compiling:$ac_tool_warned in
3166 yes:)
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169 ac_tool_warned=yes ;;
3170 esac
3171     STRIP=$ac_ct_STRIP
3172   fi
3173 else
3174   STRIP="$ac_cv_prog_STRIP"
3175 fi
3176
3177 fi
3178 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3179
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3181 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3182 if test -z "$MKDIR_P"; then
3183   if test "${ac_cv_path_mkdir+set}" = set; then :
3184   $as_echo_n "(cached) " >&6
3185 else
3186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3188 do
3189   IFS=$as_save_IFS
3190   test -z "$as_dir" && as_dir=.
3191     for ac_prog in mkdir gmkdir; do
3192          for ac_exec_ext in '' $ac_executable_extensions; do
3193            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3194            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3195              'mkdir (GNU coreutils) '* | \
3196              'mkdir (coreutils) '* | \
3197              'mkdir (fileutils) '4.1*)
3198                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3199                break 3;;
3200            esac
3201          done
3202        done
3203   done
3204 IFS=$as_save_IFS
3205
3206 fi
3207
3208   test -d ./--version && rmdir ./--version
3209   if test "${ac_cv_path_mkdir+set}" = set; then
3210     MKDIR_P="$ac_cv_path_mkdir -p"
3211   else
3212     # As a last resort, use the slow shell script.  Don't cache a
3213     # value for MKDIR_P within a source directory, because that will
3214     # break other packages using the cache if that directory is
3215     # removed, or if the value is a relative name.
3216     MKDIR_P="$ac_install_sh -d"
3217   fi
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3220 $as_echo "$MKDIR_P" >&6; }
3221
3222 mkdir_p="$MKDIR_P"
3223 case $mkdir_p in
3224   [\\/$]* | ?:[\\/]*) ;;
3225   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3226 esac
3227
3228 for ac_prog in gawk mawk nawk awk
3229 do
3230   # Extract the first word of "$ac_prog", so it can be a program name with args.
3231 set dummy $ac_prog; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if test "${ac_cv_prog_AWK+set}" = set; then :
3235   $as_echo_n "(cached) " >&6
3236 else
3237   if test -n "$AWK"; then
3238   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243   IFS=$as_save_IFS
3244   test -z "$as_dir" && as_dir=.
3245     for ac_exec_ext in '' $ac_executable_extensions; do
3246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247     ac_cv_prog_AWK="$ac_prog"
3248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3249     break 2
3250   fi
3251 done
3252   done
3253 IFS=$as_save_IFS
3254
3255 fi
3256 fi
3257 AWK=$ac_cv_prog_AWK
3258 if test -n "$AWK"; then
3259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3260 $as_echo "$AWK" >&6; }
3261 else
3262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 fi
3265
3266
3267   test -n "$AWK" && break
3268 done
3269
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3271 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3272 set x ${MAKE-make}
3273 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3274 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3275   $as_echo_n "(cached) " >&6
3276 else
3277   cat >conftest.make <<\_ACEOF
3278 SHELL = /bin/sh
3279 all:
3280         @echo '@@@%%%=$(MAKE)=@@@%%%'
3281 _ACEOF
3282 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3283 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3284   *@@@%%%=?*=@@@%%%*)
3285     eval ac_cv_prog_make_${ac_make}_set=yes;;
3286   *)
3287     eval ac_cv_prog_make_${ac_make}_set=no;;
3288 esac
3289 rm -f conftest.make
3290 fi
3291 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3293 $as_echo "yes" >&6; }
3294   SET_MAKE=
3295 else
3296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298   SET_MAKE="MAKE=${MAKE-make}"
3299 fi
3300
3301 rm -rf .tst 2>/dev/null
3302 mkdir .tst 2>/dev/null
3303 if test -d .tst; then
3304   am__leading_dot=.
3305 else
3306   am__leading_dot=_
3307 fi
3308 rmdir .tst 2>/dev/null
3309
3310 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3311   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3312   # is not polluted with repeated "-I."
3313   am__isrc=' -I$(srcdir)'
3314   # test to see if srcdir already configured
3315   if test -f $srcdir/config.status; then
3316     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3317   fi
3318 fi
3319
3320 # test whether we have cygpath
3321 if test -z "$CYGPATH_W"; then
3322   if (cygpath --version) >/dev/null 2>/dev/null; then
3323     CYGPATH_W='cygpath -w'
3324   else
3325     CYGPATH_W=echo
3326   fi
3327 fi
3328
3329
3330 # Define the identity of the package.
3331  PACKAGE='opensaml'
3332  VERSION='2.4'
3333
3334
3335 cat >>confdefs.h <<_ACEOF
3336 #define PACKAGE "$PACKAGE"
3337 _ACEOF
3338
3339
3340 cat >>confdefs.h <<_ACEOF
3341 #define VERSION "$VERSION"
3342 _ACEOF
3343
3344 # Some tools Automake needs.
3345
3346 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3347
3348
3349 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3350
3351
3352 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3353
3354
3355 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3356
3357
3358 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3359
3360 # We need awk for the "check" target.  The system "awk" is bad on
3361 # some platforms.
3362 # Always define AMTAR for backward compatibility.
3363
3364 AMTAR=${AMTAR-"${am_missing_run}tar"}
3365
3366 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3367
3368
3369
3370
3371
3372 # Check whether --enable-static was given.
3373 if test "${enable_static+set}" = set; then :
3374   enableval=$enable_static; p=${PACKAGE-default}
3375     case $enableval in
3376     yes) enable_static=yes ;;
3377     no) enable_static=no ;;
3378     *)
3379      enable_static=no
3380       # Look at the argument we got.  We use all the common list separators.
3381       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3382       for pkg in $enableval; do
3383         IFS="$lt_save_ifs"
3384         if test "X$pkg" = "X$p"; then
3385           enable_static=yes
3386         fi
3387       done
3388       IFS="$lt_save_ifs"
3389       ;;
3390     esac
3391 else
3392   enable_static=no
3393 fi
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403 case `pwd` in
3404   *\ * | *\     *)
3405     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3406 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3407 esac
3408
3409
3410
3411 macro_version='2.2.6b'
3412 macro_revision='1.3017'
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426 ltmain="$ac_aux_dir/ltmain.sh"
3427
3428 # Make sure we can run config.sub.
3429 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3430   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3431
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3433 $as_echo_n "checking build system type... " >&6; }
3434 if test "${ac_cv_build+set}" = set; then :
3435   $as_echo_n "(cached) " >&6
3436 else
3437   ac_build_alias=$build_alias
3438 test "x$ac_build_alias" = x &&
3439   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3440 test "x$ac_build_alias" = x &&
3441   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3442 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3443   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3444
3445 fi
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3447 $as_echo "$ac_cv_build" >&6; }
3448 case $ac_cv_build in
3449 *-*-*) ;;
3450 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3451 esac
3452 build=$ac_cv_build
3453 ac_save_IFS=$IFS; IFS='-'
3454 set x $ac_cv_build
3455 shift
3456 build_cpu=$1
3457 build_vendor=$2
3458 shift; shift
3459 # Remember, the first character of IFS is used to create $*,
3460 # except with old shells:
3461 build_os=$*
3462 IFS=$ac_save_IFS
3463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3464
3465
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3467 $as_echo_n "checking host system type... " >&6; }
3468 if test "${ac_cv_host+set}" = set; then :
3469   $as_echo_n "(cached) " >&6
3470 else
3471   if test "x$host_alias" = x; then
3472   ac_cv_host=$ac_cv_build
3473 else
3474   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3475     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3476 fi
3477
3478 fi
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3480 $as_echo "$ac_cv_host" >&6; }
3481 case $ac_cv_host in
3482 *-*-*) ;;
3483 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3484 esac
3485 host=$ac_cv_host
3486 ac_save_IFS=$IFS; IFS='-'
3487 set x $ac_cv_host
3488 shift
3489 host_cpu=$1
3490 host_vendor=$2
3491 shift; shift
3492 # Remember, the first character of IFS is used to create $*,
3493 # except with old shells:
3494 host_os=$*
3495 IFS=$ac_save_IFS
3496 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3497
3498
3499 DEPDIR="${am__leading_dot}deps"
3500
3501 ac_config_commands="$ac_config_commands depfiles"
3502
3503
3504 am_make=${MAKE-make}
3505 cat > confinc << 'END'
3506 am__doit:
3507         @echo this is the am__doit target
3508 .PHONY: am__doit
3509 END
3510 # If we don't find an include directive, just comment out the code.
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3512 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3513 am__include="#"
3514 am__quote=
3515 _am_result=none
3516 # First try GNU make style include.
3517 echo "include confinc" > confmf
3518 # Ignore all kinds of additional output from `make'.
3519 case `$am_make -s -f confmf 2> /dev/null` in #(
3520 *the\ am__doit\ target*)
3521   am__include=include
3522   am__quote=
3523   _am_result=GNU
3524   ;;
3525 esac
3526 # Now try BSD make style include.
3527 if test "$am__include" = "#"; then
3528    echo '.include "confinc"' > confmf
3529    case `$am_make -s -f confmf 2> /dev/null` in #(
3530    *the\ am__doit\ target*)
3531      am__include=.include
3532      am__quote="\""
3533      _am_result=BSD
3534      ;;
3535    esac
3536 fi
3537
3538
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3540 $as_echo "$_am_result" >&6; }
3541 rm -f confinc confmf
3542
3543 # Check whether --enable-dependency-tracking was given.
3544 if test "${enable_dependency_tracking+set}" = set; then :
3545   enableval=$enable_dependency_tracking;
3546 fi
3547
3548 if test "x$enable_dependency_tracking" != xno; then
3549   am_depcomp="$ac_aux_dir/depcomp"
3550   AMDEPBACKSLASH='\'
3551 fi
3552  if test "x$enable_dependency_tracking" != xno; then
3553   AMDEP_TRUE=
3554   AMDEP_FALSE='#'
3555 else
3556   AMDEP_TRUE='#'
3557   AMDEP_FALSE=
3558 fi
3559
3560
3561 ac_ext=c
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566 if test -n "$ac_tool_prefix"; then
3567   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3568 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if test "${ac_cv_prog_CC+set}" = set; then :
3572   $as_echo_n "(cached) " >&6
3573 else
3574   if test -n "$CC"; then
3575   ac_cv_prog_CC="$CC" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3579 do
3580   IFS=$as_save_IFS
3581   test -z "$as_dir" && as_dir=.
3582     for ac_exec_ext in '' $ac_executable_extensions; do
3583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586     break 2
3587   fi
3588 done
3589   done
3590 IFS=$as_save_IFS
3591
3592 fi
3593 fi
3594 CC=$ac_cv_prog_CC
3595 if test -n "$CC"; then
3596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597 $as_echo "$CC" >&6; }
3598 else
3599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3601 fi
3602
3603
3604 fi
3605 if test -z "$ac_cv_prog_CC"; then
3606   ac_ct_CC=$CC
3607   # Extract the first word of "gcc", so it can be a program name with args.
3608 set dummy gcc; ac_word=$2
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 $as_echo_n "checking for $ac_word... " >&6; }
3611 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3612   $as_echo_n "(cached) " >&6
3613 else
3614   if test -n "$ac_ct_CC"; then
3615   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3616 else
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3619 do
3620   IFS=$as_save_IFS
3621   test -z "$as_dir" && as_dir=.
3622     for ac_exec_ext in '' $ac_executable_extensions; do
3623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3624     ac_cv_prog_ac_ct_CC="gcc"
3625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3626     break 2
3627   fi
3628 done
3629   done
3630 IFS=$as_save_IFS
3631
3632 fi
3633 fi
3634 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3635 if test -n "$ac_ct_CC"; then
3636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3637 $as_echo "$ac_ct_CC" >&6; }
3638 else
3639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3641 fi
3642
3643   if test "x$ac_ct_CC" = x; then
3644     CC=""
3645   else
3646     case $cross_compiling:$ac_tool_warned in
3647 yes:)
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3650 ac_tool_warned=yes ;;
3651 esac
3652     CC=$ac_ct_CC
3653   fi
3654 else
3655   CC="$ac_cv_prog_CC"
3656 fi
3657
3658 if test -z "$CC"; then
3659           if test -n "$ac_tool_prefix"; then
3660     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3661 set dummy ${ac_tool_prefix}cc; ac_word=$2
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663 $as_echo_n "checking for $ac_word... " >&6; }
3664 if test "${ac_cv_prog_CC+set}" = set; then :
3665   $as_echo_n "(cached) " >&6
3666 else
3667   if test -n "$CC"; then
3668   ac_cv_prog_CC="$CC" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675     for ac_exec_ext in '' $ac_executable_extensions; do
3676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3677     ac_cv_prog_CC="${ac_tool_prefix}cc"
3678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682   done
3683 IFS=$as_save_IFS
3684
3685 fi
3686 fi
3687 CC=$ac_cv_prog_CC
3688 if test -n "$CC"; then
3689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3690 $as_echo "$CC" >&6; }
3691 else
3692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3694 fi
3695
3696
3697   fi
3698 fi
3699 if test -z "$CC"; then
3700   # Extract the first word of "cc", so it can be a program name with args.
3701 set dummy cc; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if test "${ac_cv_prog_CC+set}" = set; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   if test -n "$CC"; then
3708   ac_cv_prog_CC="$CC" # Let the user override the test.
3709 else
3710   ac_prog_rejected=no
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714   IFS=$as_save_IFS
3715   test -z "$as_dir" && as_dir=.
3716     for ac_exec_ext in '' $ac_executable_extensions; do
3717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3719        ac_prog_rejected=yes
3720        continue
3721      fi
3722     ac_cv_prog_CC="cc"
3723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724     break 2
3725   fi
3726 done
3727   done
3728 IFS=$as_save_IFS
3729
3730 if test $ac_prog_rejected = yes; then
3731   # We found a bogon in the path, so make sure we never use it.
3732   set dummy $ac_cv_prog_CC
3733   shift
3734   if test $# != 0; then
3735     # We chose a different compiler from the bogus one.
3736     # However, it has the same basename, so the bogon will be chosen
3737     # first if we set CC to just the basename; use the full file name.
3738     shift
3739     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3740   fi
3741 fi
3742 fi
3743 fi
3744 CC=$ac_cv_prog_CC
3745 if test -n "$CC"; then
3746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747 $as_echo "$CC" >&6; }
3748 else
3749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3751 fi
3752
3753
3754 fi
3755 if test -z "$CC"; then
3756   if test -n "$ac_tool_prefix"; then
3757   for ac_prog in cl.exe
3758   do
3759     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3760 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if test "${ac_cv_prog_CC+set}" = set; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   if test -n "$CC"; then
3767   ac_cv_prog_CC="$CC" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774     for ac_exec_ext in '' $ac_executable_extensions; do
3775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778     break 2
3779   fi
3780 done
3781   done
3782 IFS=$as_save_IFS
3783
3784 fi
3785 fi
3786 CC=$ac_cv_prog_CC
3787 if test -n "$CC"; then
3788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3789 $as_echo "$CC" >&6; }
3790 else
3791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3793 fi
3794
3795
3796     test -n "$CC" && break
3797   done
3798 fi
3799 if test -z "$CC"; then
3800   ac_ct_CC=$CC
3801   for ac_prog in cl.exe
3802 do
3803   # Extract the first word of "$ac_prog", so it can be a program name with args.
3804 set dummy $ac_prog; ac_word=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3808   $as_echo_n "(cached) " >&6
3809 else
3810   if test -n "$ac_ct_CC"; then
3811   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818     for ac_exec_ext in '' $ac_executable_extensions; do
3819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3820     ac_cv_prog_ac_ct_CC="$ac_prog"
3821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822     break 2
3823   fi
3824 done
3825   done
3826 IFS=$as_save_IFS
3827
3828 fi
3829 fi
3830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3831 if test -n "$ac_ct_CC"; then
3832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3833 $as_echo "$ac_ct_CC" >&6; }
3834 else
3835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3837 fi
3838
3839
3840   test -n "$ac_ct_CC" && break
3841 done
3842
3843   if test "x$ac_ct_CC" = x; then
3844     CC=""
3845   else
3846     case $cross_compiling:$ac_tool_warned in
3847 yes:)
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3850 ac_tool_warned=yes ;;
3851 esac
3852     CC=$ac_ct_CC
3853   fi
3854 fi
3855
3856 fi
3857
3858
3859 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error $? "no acceptable C compiler found in \$PATH
3862 See \`config.log' for more details" "$LINENO" 5 ; }
3863
3864 # Provide some information about the compiler.
3865 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3866 set X $ac_compile
3867 ac_compiler=$2
3868 for ac_option in --version -v -V -qversion; do
3869   { { ac_try="$ac_compiler $ac_option >&5"
3870 case "(($ac_try" in
3871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872   *) ac_try_echo=$ac_try;;
3873 esac
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3877   ac_status=$?
3878   if test -s conftest.err; then
3879     sed '10a\
3880 ... rest of stderr output deleted ...
3881          10q' conftest.err >conftest.er1
3882     cat conftest.er1 >&5
3883   fi
3884   rm -f conftest.er1 conftest.err
3885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3886   test $ac_status = 0; }
3887 done
3888
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h.  */
3891
3892 int
3893 main ()
3894 {
3895
3896   ;
3897   return 0;
3898 }
3899 _ACEOF
3900 ac_clean_files_save=$ac_clean_files
3901 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3902 # Try to create an executable without -o first, disregard a.out.
3903 # It will help us diagnose broken compilers, and finding out an intuition
3904 # of exeext.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3906 $as_echo_n "checking whether the C compiler works... " >&6; }
3907 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3908
3909 # The possible output files:
3910 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3911
3912 ac_rmfiles=
3913 for ac_file in $ac_files
3914 do
3915   case $ac_file in
3916     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3917     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3918   esac
3919 done
3920 rm -f $ac_rmfiles
3921
3922 if { { ac_try="$ac_link_default"
3923 case "(($ac_try" in
3924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925   *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929   (eval "$ac_link_default") 2>&5
3930   ac_status=$?
3931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932   test $ac_status = 0; }; then :
3933   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3934 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3935 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3936 # so that the user can short-circuit this test for compilers unknown to
3937 # Autoconf.
3938 for ac_file in $ac_files ''
3939 do
3940   test -f "$ac_file" || continue
3941   case $ac_file in
3942     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3943         ;;
3944     [ab].out )
3945         # We found the default executable, but exeext='' is most
3946         # certainly right.
3947         break;;
3948     *.* )
3949         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3950         then :; else
3951            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3952         fi
3953         # We set ac_cv_exeext here because the later test for it is not
3954         # safe: cross compilers may not add the suffix if given an `-o'
3955         # argument, so we may need to know it at that point already.
3956         # Even if this section looks crufty: it has the advantage of
3957         # actually working.
3958         break;;
3959     * )
3960         break;;
3961   esac
3962 done
3963 test "$ac_cv_exeext" = no && ac_cv_exeext=
3964
3965 else
3966   ac_file=''
3967 fi
3968 if test -z "$ac_file"; then :
3969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3971 $as_echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3973
3974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3976 as_fn_error 77 "C compiler cannot create executables
3977 See \`config.log' for more details" "$LINENO" 5 ; }
3978 else
3979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3980 $as_echo "yes" >&6; }
3981 fi
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3983 $as_echo_n "checking for C compiler default output file name... " >&6; }
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3985 $as_echo "$ac_file" >&6; }
3986 ac_exeext=$ac_cv_exeext
3987
3988 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3989 ac_clean_files=$ac_clean_files_save
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3991 $as_echo_n "checking for suffix of executables... " >&6; }
3992 if { { ac_try="$ac_link"
3993 case "(($ac_try" in
3994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995   *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999   (eval "$ac_link") 2>&5
4000   ac_status=$?
4001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002   test $ac_status = 0; }; then :
4003   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4004 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4005 # work properly (i.e., refer to `conftest.exe'), while it won't with
4006 # `rm'.
4007 for ac_file in conftest.exe conftest conftest.*; do
4008   test -f "$ac_file" || continue
4009   case $ac_file in
4010     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4011     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4012           break;;
4013     * ) break;;
4014   esac
4015 done
4016 else
4017   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4020 See \`config.log' for more details" "$LINENO" 5 ; }
4021 fi
4022 rm -f conftest conftest$ac_cv_exeext
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4024 $as_echo "$ac_cv_exeext" >&6; }
4025
4026 rm -f conftest.$ac_ext
4027 EXEEXT=$ac_cv_exeext
4028 ac_exeext=$EXEEXT
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h.  */
4031 #include <stdio.h>
4032 int
4033 main ()
4034 {
4035 FILE *f = fopen ("conftest.out", "w");
4036  return ferror (f) || fclose (f) != 0;
4037
4038   ;
4039   return 0;
4040 }
4041 _ACEOF
4042 ac_clean_files="$ac_clean_files conftest.out"
4043 # Check that the compiler produces executables we can run.  If not, either
4044 # the compiler is broken, or we cross compile.
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4046 $as_echo_n "checking whether we are cross compiling... " >&6; }
4047 if test "$cross_compiling" != yes; then
4048   { { ac_try="$ac_link"
4049 case "(($ac_try" in
4050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051   *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055   (eval "$ac_link") 2>&5
4056   ac_status=$?
4057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058   test $ac_status = 0; }
4059   if { ac_try='./conftest$ac_cv_exeext'
4060   { { case "(($ac_try" in
4061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062   *) ac_try_echo=$ac_try;;
4063 esac
4064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4065 $as_echo "$ac_try_echo"; } >&5
4066   (eval "$ac_try") 2>&5
4067   ac_status=$?
4068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4069   test $ac_status = 0; }; }; then
4070     cross_compiling=no
4071   else
4072     if test "$cross_compiling" = maybe; then
4073         cross_compiling=yes
4074     else
4075         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4077 as_fn_error $? "cannot run C compiled programs.
4078 If you meant to cross compile, use \`--host'.
4079 See \`config.log' for more details" "$LINENO" 5 ; }
4080     fi
4081   fi
4082 fi
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4084 $as_echo "$cross_compiling" >&6; }
4085
4086 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4087 ac_clean_files=$ac_clean_files_save
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4089 $as_echo_n "checking for suffix of object files... " >&6; }
4090 if test "${ac_cv_objext+set}" = set; then :
4091   $as_echo_n "(cached) " >&6
4092 else
4093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h.  */
4095
4096 int
4097 main ()
4098 {
4099
4100   ;
4101   return 0;
4102 }
4103 _ACEOF
4104 rm -f conftest.o conftest.obj
4105 if { { ac_try="$ac_compile"
4106 case "(($ac_try" in
4107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108   *) ac_try_echo=$ac_try;;
4109 esac
4110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4111 $as_echo "$ac_try_echo"; } >&5
4112   (eval "$ac_compile") 2>&5
4113   ac_status=$?
4114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4115   test $ac_status = 0; }; then :
4116   for ac_file in conftest.o conftest.obj conftest.*; do
4117   test -f "$ac_file" || continue;
4118   case $ac_file in
4119     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4120     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4121        break;;
4122   esac
4123 done
4124 else
4125   $as_echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4127
4128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4130 as_fn_error $? "cannot compute suffix of object files: cannot compile
4131 See \`config.log' for more details" "$LINENO" 5 ; }
4132 fi
4133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4136 $as_echo "$ac_cv_objext" >&6; }
4137 OBJEXT=$ac_cv_objext
4138 ac_objext=$OBJEXT
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4141 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4142   $as_echo_n "(cached) " >&6
4143 else
4144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h.  */
4146
4147 int
4148 main ()
4149 {
4150 #ifndef __GNUC__
4151        choke me
4152 #endif
4153
4154   ;
4155   return 0;
4156 }
4157 _ACEOF
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159   ac_compiler_gnu=yes
4160 else
4161   ac_compiler_gnu=no
4162 fi
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4165
4166 fi
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4168 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4169 if test $ac_compiler_gnu = yes; then
4170   GCC=yes
4171 else
4172   GCC=
4173 fi
4174 ac_test_CFLAGS=${CFLAGS+set}
4175 ac_save_CFLAGS=$CFLAGS
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4177 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4178 if test "${ac_cv_prog_cc_g+set}" = set; then :
4179   $as_echo_n "(cached) " >&6
4180 else
4181   ac_save_c_werror_flag=$ac_c_werror_flag
4182    ac_c_werror_flag=yes
4183    ac_cv_prog_cc_g=no
4184    CFLAGS="-g"
4185    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h.  */
4187
4188 int
4189 main ()
4190 {
4191
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197   ac_cv_prog_cc_g=yes
4198 else
4199   CFLAGS=""
4200       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h.  */
4202
4203 int
4204 main ()
4205 {
4206
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212
4213 else
4214   ac_c_werror_flag=$ac_save_c_werror_flag
4215          CFLAGS="-g"
4216          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h.  */
4218
4219 int
4220 main ()
4221 {
4222
4223   ;
4224   return 0;
4225 }
4226 _ACEOF
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228   ac_cv_prog_cc_g=yes
4229 fi
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 fi
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 fi
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235    ac_c_werror_flag=$ac_save_c_werror_flag
4236 fi
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4238 $as_echo "$ac_cv_prog_cc_g" >&6; }
4239 if test "$ac_test_CFLAGS" = set; then
4240   CFLAGS=$ac_save_CFLAGS
4241 elif test $ac_cv_prog_cc_g = yes; then
4242   if test "$GCC" = yes; then
4243     CFLAGS="-g -O2"
4244   else
4245     CFLAGS="-g"
4246   fi
4247 else
4248   if test "$GCC" = yes; then
4249     CFLAGS="-O2"
4250   else
4251     CFLAGS=
4252   fi
4253 fi
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4255 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4256 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4257   $as_echo_n "(cached) " >&6
4258 else
4259   ac_cv_prog_cc_c89=no
4260 ac_save_CC=$CC
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h.  */
4263 #include <stdarg.h>
4264 #include <stdio.h>
4265 #include <sys/types.h>
4266 #include <sys/stat.h>
4267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4268 struct buf { int x; };
4269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4270 static char *e (p, i)
4271      char **p;
4272      int i;
4273 {
4274   return p[i];
4275 }
4276 static char *f (char * (*g) (char **, int), char **p, ...)
4277 {
4278   char *s;
4279   va_list v;
4280   va_start (v,p);
4281   s = g (p, va_arg (v,int));
4282   va_end (v);
4283   return s;
4284 }
4285
4286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4287    function prototypes and stuff, but not '\xHH' hex character constants.
4288    These don't provoke an error unfortunately, instead are silently treated
4289    as 'x'.  The following induces an error, until -std is added to get
4290    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4291    array size at least.  It's necessary to write '\x00'==0 to get something
4292    that's true only with -std.  */
4293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4294
4295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4296    inside strings and character constants.  */
4297 #define FOO(x) 'x'
4298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4299
4300 int test (int i, double x);
4301 struct s1 {int (*f) (int a);};
4302 struct s2 {int (*f) (double a);};
4303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4304 int argc;
4305 char **argv;
4306 int
4307 main ()
4308 {
4309 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4310   ;
4311   return 0;
4312 }
4313 _ACEOF
4314 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4315         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4316 do
4317   CC="$ac_save_CC $ac_arg"
4318   if ac_fn_c_try_compile "$LINENO"; then :
4319   ac_cv_prog_cc_c89=$ac_arg
4320 fi
4321 rm -f core conftest.err conftest.$ac_objext
4322   test "x$ac_cv_prog_cc_c89" != "xno" && break
4323 done
4324 rm -f conftest.$ac_ext
4325 CC=$ac_save_CC
4326
4327 fi
4328 # AC_CACHE_VAL
4329 case "x$ac_cv_prog_cc_c89" in
4330   x)
4331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4332 $as_echo "none needed" >&6; } ;;
4333   xno)
4334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4335 $as_echo "unsupported" >&6; } ;;
4336   *)
4337     CC="$CC $ac_cv_prog_cc_c89"
4338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4339 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4340 esac
4341 if test "x$ac_cv_prog_cc_c89" != xno; then :
4342
4343 fi
4344
4345 ac_ext=c
4346 ac_cpp='$CPP $CPPFLAGS'
4347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350
4351 depcc="$CC"   am_compiler_list=
4352
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4354 $as_echo_n "checking dependency style of $depcc... " >&6; }
4355 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4356   $as_echo_n "(cached) " >&6
4357 else
4358   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4359   # We make a subdir and do the tests there.  Otherwise we can end up
4360   # making bogus files that we don't know about and never remove.  For
4361   # instance it was reported that on HP-UX the gcc test will end up
4362   # making a dummy file named `D' -- because `-MD' means `put the output
4363   # in D'.
4364   mkdir conftest.dir
4365   # Copy depcomp to subdir because otherwise we won't find it if we're
4366   # using a relative directory.
4367   cp "$am_depcomp" conftest.dir
4368   cd conftest.dir
4369   # We will build objects and dependencies in a subdirectory because
4370   # it helps to detect inapplicable dependency modes.  For instance
4371   # both Tru64's cc and ICC support -MD to output dependencies as a
4372   # side effect of compilation, but ICC will put the dependencies in
4373   # the current directory while Tru64 will put them in the object
4374   # directory.
4375   mkdir sub
4376
4377   am_cv_CC_dependencies_compiler_type=none
4378   if test "$am_compiler_list" = ""; then
4379      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4380   fi
4381   am__universal=false
4382   case " $depcc " in #(
4383      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4384      esac
4385
4386   for depmode in $am_compiler_list; do
4387     # Setup a source with many dependencies, because some compilers
4388     # like to wrap large dependency lists on column 80 (with \), and
4389     # we should not choose a depcomp mode which is confused by this.
4390     #
4391     # We need to recreate these files for each test, as the compiler may
4392     # overwrite some of them when testing with obscure command lines.
4393     # This happens at least with the AIX C compiler.
4394     : > sub/conftest.c
4395     for i in 1 2 3 4 5 6; do
4396       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4397       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4398       # Solaris 8's {/usr,}/bin/sh.
4399       touch sub/conftst$i.h
4400     done
4401     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4402
4403     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4404     # mode.  It turns out that the SunPro C++ compiler does not properly
4405     # handle `-M -o', and we need to detect this.  Also, some Intel
4406     # versions had trouble with output in subdirs
4407     am__obj=sub/conftest.${OBJEXT-o}
4408     am__minus_obj="-o $am__obj"
4409     case $depmode in
4410     gcc)
4411       # This depmode causes a compiler race in universal mode.
4412       test "$am__universal" = false || continue
4413       ;;
4414     nosideeffect)
4415       # after this tag, mechanisms are not by side-effect, so they'll
4416       # only be used when explicitly requested
4417       if test "x$enable_dependency_tracking" = xyes; then
4418         continue
4419       else
4420         break
4421       fi
4422       ;;
4423     msvisualcpp | msvcmsys)
4424       # This compiler won't grok `-c -o', but also, the minuso test has
4425       # not run yet.  These depmodes are late enough in the game, and
4426       # so weak that their functioning should not be impacted.
4427       am__obj=conftest.${OBJEXT-o}
4428       am__minus_obj=
4429       ;;
4430     none) break ;;
4431     esac
4432     if depmode=$depmode \
4433        source=sub/conftest.c object=$am__obj \
4434        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4435        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4436          >/dev/null 2>conftest.err &&
4437        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4438        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4439        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4440        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4441       # icc doesn't choke on unknown options, it will just issue warnings
4442       # or remarks (even with -Werror).  So we grep stderr for any message
4443       # that says an option was ignored or not supported.
4444       # When given -MP, icc 7.0 and 7.1 complain thusly:
4445       #   icc: Command line warning: ignoring option '-M'; no argument required
4446       # The diagnosis changed in icc 8.0:
4447       #   icc: Command line remark: option '-MP' not supported
4448       if (grep 'ignoring option' conftest.err ||
4449           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4450         am_cv_CC_dependencies_compiler_type=$depmode
4451         break
4452       fi
4453     fi
4454   done
4455
4456   cd ..
4457   rm -rf conftest.dir
4458 else
4459   am_cv_CC_dependencies_compiler_type=none
4460 fi
4461
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4464 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4465 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4466
4467  if
4468   test "x$enable_dependency_tracking" != xno \
4469   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4470   am__fastdepCC_TRUE=
4471   am__fastdepCC_FALSE='#'
4472 else
4473   am__fastdepCC_TRUE='#'
4474   am__fastdepCC_FALSE=
4475 fi
4476
4477
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4479 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4480 if test "${ac_cv_path_SED+set}" = set; then :
4481   $as_echo_n "(cached) " >&6
4482 else
4483             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4484      for ac_i in 1 2 3 4 5 6 7; do
4485        ac_script="$ac_script$as_nl$ac_script"
4486      done
4487      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4488      { ac_script=; unset ac_script;}
4489      if test -z "$SED"; then
4490   ac_path_SED_found=false
4491   # Loop through the user's path and test for each of PROGNAME-LIST
4492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495   IFS=$as_save_IFS
4496   test -z "$as_dir" && as_dir=.
4497     for ac_prog in sed gsed; do
4498     for ac_exec_ext in '' $ac_executable_extensions; do
4499       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4500       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4501 # Check for GNU ac_path_SED and select it if it is found.
4502   # Check for GNU $ac_path_SED
4503 case `"$ac_path_SED" --version 2>&1` in
4504 *GNU*)
4505   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4506 *)
4507   ac_count=0
4508   $as_echo_n 0123456789 >"conftest.in"
4509   while :
4510   do
4511     cat "conftest.in" "conftest.in" >"conftest.tmp"
4512     mv "conftest.tmp" "conftest.in"
4513     cp "conftest.in" "conftest.nl"
4514     $as_echo '' >> "conftest.nl"
4515     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4516     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4517     as_fn_arith $ac_count + 1 && ac_count=$as_val
4518     if test $ac_count -gt ${ac_path_SED_max-0}; then
4519       # Best one so far, save it but keep looking for a better one
4520       ac_cv_path_SED="$ac_path_SED"
4521       ac_path_SED_max=$ac_count
4522     fi
4523     # 10*(2^10) chars as input seems more than enough
4524     test $ac_count -gt 10 && break
4525   done
4526   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4527 esac
4528
4529       $ac_path_SED_found && break 3
4530     done
4531   done
4532   done
4533 IFS=$as_save_IFS
4534   if test -z "$ac_cv_path_SED"; then
4535     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4536   fi
4537 else
4538   ac_cv_path_SED=$SED
4539 fi
4540
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4543 $as_echo "$ac_cv_path_SED" >&6; }
4544  SED="$ac_cv_path_SED"
4545   rm -f conftest.sed
4546
4547 test -z "$SED" && SED=sed
4548 Xsed="$SED -e 1s/^X//"
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4561 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4562 if test "${ac_cv_path_GREP+set}" = set; then :
4563   $as_echo_n "(cached) " >&6
4564 else
4565   if test -z "$GREP"; then
4566   ac_path_GREP_found=false
4567   # Loop through the user's path and test for each of PROGNAME-LIST
4568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4570 do
4571   IFS=$as_save_IFS
4572   test -z "$as_dir" && as_dir=.
4573     for ac_prog in grep ggrep; do
4574     for ac_exec_ext in '' $ac_executable_extensions; do
4575       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4576       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4577 # Check for GNU ac_path_GREP and select it if it is found.
4578   # Check for GNU $ac_path_GREP
4579 case `"$ac_path_GREP" --version 2>&1` in
4580 *GNU*)
4581   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4582 *)
4583   ac_count=0
4584   $as_echo_n 0123456789 >"conftest.in"
4585   while :
4586   do
4587     cat "conftest.in" "conftest.in" >"conftest.tmp"
4588     mv "conftest.tmp" "conftest.in"
4589     cp "conftest.in" "conftest.nl"
4590     $as_echo 'GREP' >> "conftest.nl"
4591     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4592     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4593     as_fn_arith $ac_count + 1 && ac_count=$as_val
4594     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4595       # Best one so far, save it but keep looking for a better one
4596       ac_cv_path_GREP="$ac_path_GREP"
4597       ac_path_GREP_max=$ac_count
4598     fi
4599     # 10*(2^10) chars as input seems more than enough
4600     test $ac_count -gt 10 && break
4601   done
4602   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4603 esac
4604
4605       $ac_path_GREP_found && break 3
4606     done
4607   done
4608   done
4609 IFS=$as_save_IFS
4610   if test -z "$ac_cv_path_GREP"; then
4611     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4612   fi
4613 else
4614   ac_cv_path_GREP=$GREP
4615 fi
4616
4617 fi
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4619 $as_echo "$ac_cv_path_GREP" >&6; }
4620  GREP="$ac_cv_path_GREP"
4621
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4624 $as_echo_n "checking for egrep... " >&6; }
4625 if test "${ac_cv_path_EGREP+set}" = set; then :
4626   $as_echo_n "(cached) " >&6
4627 else
4628   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4629    then ac_cv_path_EGREP="$GREP -E"
4630    else
4631      if test -z "$EGREP"; then
4632   ac_path_EGREP_found=false
4633   # Loop through the user's path and test for each of PROGNAME-LIST
4634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4636 do
4637   IFS=$as_save_IFS
4638   test -z "$as_dir" && as_dir=.
4639     for ac_prog in egrep; do
4640     for ac_exec_ext in '' $ac_executable_extensions; do
4641       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4642       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4643 # Check for GNU ac_path_EGREP and select it if it is found.
4644   # Check for GNU $ac_path_EGREP
4645 case `"$ac_path_EGREP" --version 2>&1` in
4646 *GNU*)
4647   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4648 *)
4649   ac_count=0
4650   $as_echo_n 0123456789 >"conftest.in"
4651   while :
4652   do
4653     cat "conftest.in" "conftest.in" >"conftest.tmp"
4654     mv "conftest.tmp" "conftest.in"
4655     cp "conftest.in" "conftest.nl"
4656     $as_echo 'EGREP' >> "conftest.nl"
4657     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4658     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4659     as_fn_arith $ac_count + 1 && ac_count=$as_val
4660     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4661       # Best one so far, save it but keep looking for a better one
4662       ac_cv_path_EGREP="$ac_path_EGREP"
4663       ac_path_EGREP_max=$ac_count
4664     fi
4665     # 10*(2^10) chars as input seems more than enough
4666     test $ac_count -gt 10 && break
4667   done
4668   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4669 esac
4670
4671       $ac_path_EGREP_found && break 3
4672     done
4673   done
4674   done
4675 IFS=$as_save_IFS
4676   if test -z "$ac_cv_path_EGREP"; then
4677     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4678   fi
4679 else
4680   ac_cv_path_EGREP=$EGREP
4681 fi
4682
4683    fi
4684 fi
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4686 $as_echo "$ac_cv_path_EGREP" >&6; }
4687  EGREP="$ac_cv_path_EGREP"
4688
4689
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4691 $as_echo_n "checking for fgrep... " >&6; }
4692 if test "${ac_cv_path_FGREP+set}" = set; then :
4693   $as_echo_n "(cached) " >&6
4694 else
4695   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4696    then ac_cv_path_FGREP="$GREP -F"
4697    else
4698      if test -z "$FGREP"; then
4699   ac_path_FGREP_found=false
4700   # Loop through the user's path and test for each of PROGNAME-LIST
4701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706     for ac_prog in fgrep; do
4707     for ac_exec_ext in '' $ac_executable_extensions; do
4708       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4709       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4710 # Check for GNU ac_path_FGREP and select it if it is found.
4711   # Check for GNU $ac_path_FGREP
4712 case `"$ac_path_FGREP" --version 2>&1` in
4713 *GNU*)
4714   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4715 *)
4716   ac_count=0
4717   $as_echo_n 0123456789 >"conftest.in"
4718   while :
4719   do
4720     cat "conftest.in" "conftest.in" >"conftest.tmp"
4721     mv "conftest.tmp" "conftest.in"
4722     cp "conftest.in" "conftest.nl"
4723     $as_echo 'FGREP' >> "conftest.nl"
4724     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4725     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4726     as_fn_arith $ac_count + 1 && ac_count=$as_val
4727     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4728       # Best one so far, save it but keep looking for a better one
4729       ac_cv_path_FGREP="$ac_path_FGREP"
4730       ac_path_FGREP_max=$ac_count
4731     fi
4732     # 10*(2^10) chars as input seems more than enough
4733     test $ac_count -gt 10 && break
4734   done
4735   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4736 esac
4737
4738       $ac_path_FGREP_found && break 3
4739     done
4740   done
4741   done
4742 IFS=$as_save_IFS
4743   if test -z "$ac_cv_path_FGREP"; then
4744     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4745   fi
4746 else
4747   ac_cv_path_FGREP=$FGREP
4748 fi
4749
4750    fi
4751 fi
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4753 $as_echo "$ac_cv_path_FGREP" >&6; }
4754  FGREP="$ac_cv_path_FGREP"
4755
4756
4757 test -z "$GREP" && GREP=grep
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777 # Check whether --with-gnu-ld was given.
4778 if test "${with_gnu_ld+set}" = set; then :
4779   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4780 else
4781   with_gnu_ld=no
4782 fi
4783
4784 ac_prog=ld
4785 if test "$GCC" = yes; then
4786   # Check if gcc -print-prog-name=ld gives a path.
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4788 $as_echo_n "checking for ld used by $CC... " >&6; }
4789   case $host in
4790   *-*-mingw*)
4791     # gcc leaves a trailing carriage return which upsets mingw
4792     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4793   *)
4794     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4795   esac
4796   case $ac_prog in
4797     # Accept absolute paths.
4798     [\\/]* | ?:[\\/]*)
4799       re_direlt='/[^/][^/]*/\.\./'
4800       # Canonicalize the pathname of ld
4801       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4802       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4803         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4804       done
4805       test -z "$LD" && LD="$ac_prog"
4806       ;;
4807   "")
4808     # If it fails, then pretend we aren't using GCC.
4809     ac_prog=ld
4810     ;;
4811   *)
4812     # If it is relative, then search for the first ld in PATH.
4813     with_gnu_ld=unknown
4814     ;;
4815   esac
4816 elif test "$with_gnu_ld" = yes; then
4817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4818 $as_echo_n "checking for GNU ld... " >&6; }
4819 else
4820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4821 $as_echo_n "checking for non-GNU ld... " >&6; }
4822 fi
4823 if test "${lt_cv_path_LD+set}" = set; then :
4824   $as_echo_n "(cached) " >&6
4825 else
4826   if test -z "$LD"; then
4827   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4828   for ac_dir in $PATH; do
4829     IFS="$lt_save_ifs"
4830     test -z "$ac_dir" && ac_dir=.
4831     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4832       lt_cv_path_LD="$ac_dir/$ac_prog"
4833       # Check to see if the program is GNU ld.  I'd rather use --version,
4834       # but apparently some variants of GNU ld only accept -v.
4835       # Break only if it was the GNU/non-GNU ld that we prefer.
4836       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4837       *GNU* | *'with BFD'*)
4838         test "$with_gnu_ld" != no && break
4839         ;;
4840       *)
4841         test "$with_gnu_ld" != yes && break
4842         ;;
4843       esac
4844     fi
4845   done
4846   IFS="$lt_save_ifs"
4847 else
4848   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4849 fi
4850 fi
4851
4852 LD="$lt_cv_path_LD"
4853 if test -n "$LD"; then
4854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4855 $as_echo "$LD" >&6; }
4856 else
4857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4859 fi
4860 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4862 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4863 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4864   $as_echo_n "(cached) " >&6
4865 else
4866   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4867 case `$LD -v 2>&1 </dev/null` in
4868 *GNU* | *'with BFD'*)
4869   lt_cv_prog_gnu_ld=yes
4870   ;;
4871 *)
4872   lt_cv_prog_gnu_ld=no
4873   ;;
4874 esac
4875 fi
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4877 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4878 with_gnu_ld=$lt_cv_prog_gnu_ld
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4889 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4890 if test "${lt_cv_path_NM+set}" = set; then :
4891   $as_echo_n "(cached) " >&6
4892 else
4893   if test -n "$NM"; then
4894   # Let the user override the test.
4895   lt_cv_path_NM="$NM"
4896 else
4897   lt_nm_to_check="${ac_tool_prefix}nm"
4898   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4899     lt_nm_to_check="$lt_nm_to_check nm"
4900   fi
4901   for lt_tmp_nm in $lt_nm_to_check; do
4902     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4903     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4904       IFS="$lt_save_ifs"
4905       test -z "$ac_dir" && ac_dir=.
4906       tmp_nm="$ac_dir/$lt_tmp_nm"
4907       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4908         # Check to see if the nm accepts a BSD-compat flag.
4909         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4910         #   nm: unknown option "B" ignored
4911         # Tru64's nm complains that /dev/null is an invalid object file
4912         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4913         */dev/null* | *'Invalid file or object type'*)
4914           lt_cv_path_NM="$tmp_nm -B"
4915           break
4916           ;;
4917         *)
4918           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4919           */dev/null*)
4920             lt_cv_path_NM="$tmp_nm -p"
4921             break
4922             ;;
4923           *)
4924             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4925             continue # so that we can try to find one that supports BSD flags
4926             ;;
4927           esac
4928           ;;
4929         esac
4930       fi
4931     done
4932     IFS="$lt_save_ifs"
4933   done
4934   : ${lt_cv_path_NM=no}
4935 fi
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4938 $as_echo "$lt_cv_path_NM" >&6; }
4939 if test "$lt_cv_path_NM" != "no"; then
4940   NM="$lt_cv_path_NM"
4941 else
4942   # Didn't find any BSD compatible name lister, look for dumpbin.
4943   if test -n "$ac_tool_prefix"; then
4944   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4945   do
4946     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953   if test -n "$DUMPBIN"; then
4954   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4958 do
4959   IFS=$as_save_IFS
4960   test -z "$as_dir" && as_dir=.
4961     for ac_exec_ext in '' $ac_executable_extensions; do
4962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965     break 2
4966   fi
4967 done
4968   done
4969 IFS=$as_save_IFS
4970
4971 fi
4972 fi
4973 DUMPBIN=$ac_cv_prog_DUMPBIN
4974 if test -n "$DUMPBIN"; then
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4976 $as_echo "$DUMPBIN" >&6; }
4977 else
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4980 fi
4981
4982
4983     test -n "$DUMPBIN" && break
4984   done
4985 fi
4986 if test -z "$DUMPBIN"; then
4987   ac_ct_DUMPBIN=$DUMPBIN
4988   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4989 do
4990   # Extract the first word of "$ac_prog", so it can be a program name with args.
4991 set dummy $ac_prog; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4995   $as_echo_n "(cached) " >&6
4996 else
4997   if test -n "$ac_ct_DUMPBIN"; then
4998   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003   IFS=$as_save_IFS
5004   test -z "$as_dir" && as_dir=.
5005     for ac_exec_ext in '' $ac_executable_extensions; do
5006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009     break 2
5010   fi
5011 done
5012   done
5013 IFS=$as_save_IFS
5014
5015 fi
5016 fi
5017 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5018 if test -n "$ac_ct_DUMPBIN"; then
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5020 $as_echo "$ac_ct_DUMPBIN" >&6; }
5021 else
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5024 fi
5025
5026
5027   test -n "$ac_ct_DUMPBIN" && break
5028 done
5029
5030   if test "x$ac_ct_DUMPBIN" = x; then
5031     DUMPBIN=":"
5032   else
5033     case $cross_compiling:$ac_tool_warned in
5034 yes:)
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5037 ac_tool_warned=yes ;;
5038 esac
5039     DUMPBIN=$ac_ct_DUMPBIN
5040   fi
5041 fi
5042
5043
5044   if test "$DUMPBIN" != ":"; then
5045     NM="$DUMPBIN"
5046   fi
5047 fi
5048 test -z "$NM" && NM=nm
5049
5050
5051
5052
5053
5054
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5056 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5057 if test "${lt_cv_nm_interface+set}" = set; then :
5058   $as_echo_n "(cached) " >&6
5059 else
5060   lt_cv_nm_interface="BSD nm"
5061   echo "int some_variable = 0;" > conftest.$ac_ext
5062   (eval echo "\"\$as_me:5062: $ac_compile\"" >&5)
5063   (eval "$ac_compile" 2>conftest.err)
5064   cat conftest.err >&5
5065   (eval echo "\"\$as_me:5065: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5066   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5067   cat conftest.err >&5
5068   (eval echo "\"\$as_me:5068: output\"" >&5)
5069   cat conftest.out >&5
5070   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5071     lt_cv_nm_interface="MS dumpbin"
5072   fi
5073   rm -f conftest*
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5076 $as_echo "$lt_cv_nm_interface" >&6; }
5077
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5079 $as_echo_n "checking whether ln -s works... " >&6; }
5080 LN_S=$as_ln_s
5081 if test "$LN_S" = "ln -s"; then
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5083 $as_echo "yes" >&6; }
5084 else
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5086 $as_echo "no, using $LN_S" >&6; }
5087 fi
5088
5089 # find the maximum length of command line arguments
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5091 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5092 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5093   $as_echo_n "(cached) " >&6
5094 else
5095     i=0
5096   teststring="ABCD"
5097
5098   case $build_os in
5099   msdosdjgpp*)
5100     # On DJGPP, this test can blow up pretty badly due to problems in libc
5101     # (any single argument exceeding 2000 bytes causes a buffer overrun
5102     # during glob expansion).  Even if it were fixed, the result of this
5103     # check would be larger than it should be.
5104     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5105     ;;
5106
5107   gnu*)
5108     # Under GNU Hurd, this test is not required because there is
5109     # no limit to the length of command line arguments.
5110     # Libtool will interpret -1 as no limit whatsoever
5111     lt_cv_sys_max_cmd_len=-1;
5112     ;;
5113
5114   cygwin* | mingw* | cegcc*)
5115     # On Win9x/ME, this test blows up -- it succeeds, but takes
5116     # about 5 minutes as the teststring grows exponentially.
5117     # Worse, since 9x/ME are not pre-emptively multitasking,
5118     # you end up with a "frozen" computer, even though with patience
5119     # the test eventually succeeds (with a max line length of 256k).
5120     # Instead, let's just punt: use the minimum linelength reported by
5121     # all of the supported platforms: 8192 (on NT/2K/XP).
5122     lt_cv_sys_max_cmd_len=8192;
5123     ;;
5124
5125   amigaos*)
5126     # On AmigaOS with pdksh, this test takes hours, literally.
5127     # So we just punt and use a minimum line length of 8192.
5128     lt_cv_sys_max_cmd_len=8192;
5129     ;;
5130
5131   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5132     # This has been around since 386BSD, at least.  Likely further.
5133     if test -x /sbin/sysctl; then
5134       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5135     elif test -x /usr/sbin/sysctl; then
5136       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5137     else
5138       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5139     fi
5140     # And add a safety zone
5141     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5142     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5143     ;;
5144
5145   interix*)
5146     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5147     lt_cv_sys_max_cmd_len=196608
5148     ;;
5149
5150   osf*)
5151     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5152     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5153     # nice to cause kernel panics so lets avoid the loop below.
5154     # First set a reasonable default.
5155     lt_cv_sys_max_cmd_len=16384
5156     #
5157     if test -x /sbin/sysconfig; then
5158       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5159         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5160       esac
5161     fi
5162     ;;
5163   sco3.2v5*)
5164     lt_cv_sys_max_cmd_len=102400
5165     ;;
5166   sysv5* | sco5v6* | sysv4.2uw2*)
5167     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5168     if test -n "$kargmax"; then
5169       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5170     else
5171       lt_cv_sys_max_cmd_len=32768
5172     fi
5173     ;;
5174   *)
5175     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5176     if test -n "$lt_cv_sys_max_cmd_len"; then
5177       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5178       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5179     else
5180       # Make teststring a little bigger before we do anything with it.
5181       # a 1K string should be a reasonable start.
5182       for i in 1 2 3 4 5 6 7 8 ; do
5183         teststring=$teststring$teststring
5184       done
5185       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5186       # If test is not a shell built-in, we'll probably end up computing a
5187       # maximum length that is only half of the actual maximum length, but
5188       # we can't tell.
5189       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5190                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5191               test $i != 17 # 1/2 MB should be enough
5192       do
5193         i=`expr $i + 1`
5194         teststring=$teststring$teststring
5195       done
5196       # Only check the string length outside the loop.
5197       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5198       teststring=
5199       # Add a significant safety factor because C++ compilers can tack on
5200       # massive amounts of additional arguments before passing them to the
5201       # linker.  It appears as though 1/2 is a usable value.
5202       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5203     fi
5204     ;;
5205   esac
5206
5207 fi
5208
5209 if test -n $lt_cv_sys_max_cmd_len ; then
5210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5211 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5212 else
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5214 $as_echo "none" >&6; }
5215 fi
5216 max_cmd_len=$lt_cv_sys_max_cmd_len
5217
5218
5219
5220
5221
5222
5223 : ${CP="cp -f"}
5224 : ${MV="mv -f"}
5225 : ${RM="rm -f"}
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5228 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5229 # Try some XSI features
5230 xsi_shell=no
5231 ( _lt_dummy="a/b/c"
5232   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5233       = c,a/b,, \
5234     && eval 'test $(( 1 + 1 )) -eq 2 \
5235     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5236   && xsi_shell=yes
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5238 $as_echo "$xsi_shell" >&6; }
5239
5240
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5242 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5243 lt_shell_append=no
5244 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5245     >/dev/null 2>&1 \
5246   && lt_shell_append=yes
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5248 $as_echo "$lt_shell_append" >&6; }
5249
5250
5251 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5252   lt_unset=unset
5253 else
5254   lt_unset=false
5255 fi
5256
5257
5258
5259
5260
5261 # test EBCDIC or ASCII
5262 case `echo X|tr X '\101'` in
5263  A) # ASCII based system
5264     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5265   lt_SP2NL='tr \040 \012'
5266   lt_NL2SP='tr \015\012 \040\040'
5267   ;;
5268  *) # EBCDIC based system
5269   lt_SP2NL='tr \100 \n'
5270   lt_NL2SP='tr \r\n \100\100'
5271   ;;
5272 esac
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5283 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5284 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5285   $as_echo_n "(cached) " >&6
5286 else
5287   lt_cv_ld_reload_flag='-r'
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5290 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5291 reload_flag=$lt_cv_ld_reload_flag
5292 case $reload_flag in
5293 "" | " "*) ;;
5294 *) reload_flag=" $reload_flag" ;;
5295 esac
5296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5297 case $host_os in
5298   darwin*)
5299     if test "$GCC" = yes; then
5300       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5301     else
5302       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5303     fi
5304     ;;
5305 esac
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315 if test -n "$ac_tool_prefix"; then
5316   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5317 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5321   $as_echo_n "(cached) " >&6
5322 else
5323   if test -n "$OBJDUMP"; then
5324   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5328 do
5329   IFS=$as_save_IFS
5330   test -z "$as_dir" && as_dir=.
5331     for ac_exec_ext in '' $ac_executable_extensions; do
5332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335     break 2
5336   fi
5337 done
5338   done
5339 IFS=$as_save_IFS
5340
5341 fi
5342 fi
5343 OBJDUMP=$ac_cv_prog_OBJDUMP
5344 if test -n "$OBJDUMP"; then
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5346 $as_echo "$OBJDUMP" >&6; }
5347 else
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5350 fi
5351
5352
5353 fi
5354 if test -z "$ac_cv_prog_OBJDUMP"; then
5355   ac_ct_OBJDUMP=$OBJDUMP
5356   # Extract the first word of "objdump", so it can be a program name with args.
5357 set dummy objdump; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   if test -n "$ac_ct_OBJDUMP"; then
5364   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369   IFS=$as_save_IFS
5370   test -z "$as_dir" && as_dir=.
5371     for ac_exec_ext in '' $ac_executable_extensions; do
5372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375     break 2
5376   fi
5377 done
5378   done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5384 if test -n "$ac_ct_OBJDUMP"; then
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5386 $as_echo "$ac_ct_OBJDUMP" >&6; }
5387 else
5388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5390 fi
5391
5392   if test "x$ac_ct_OBJDUMP" = x; then
5393     OBJDUMP="false"
5394   else
5395     case $cross_compiling:$ac_tool_warned in
5396 yes:)
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5399 ac_tool_warned=yes ;;
5400 esac
5401     OBJDUMP=$ac_ct_OBJDUMP
5402   fi
5403 else
5404   OBJDUMP="$ac_cv_prog_OBJDUMP"
5405 fi
5406
5407 test -z "$OBJDUMP" && OBJDUMP=objdump
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5418 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5419 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5420   $as_echo_n "(cached) " >&6
5421 else
5422   lt_cv_file_magic_cmd='$MAGIC_CMD'
5423 lt_cv_file_magic_test_file=
5424 lt_cv_deplibs_check_method='unknown'
5425 # Need to set the preceding variable on all platforms that support
5426 # interlibrary dependencies.
5427 # 'none' -- dependencies not supported.
5428 # `unknown' -- same as none, but documents that we really don't know.
5429 # 'pass_all' -- all dependencies passed with no checks.
5430 # 'test_compile' -- check by making test program.
5431 # 'file_magic [[regex]]' -- check by looking for files in library path
5432 # which responds to the $file_magic_cmd with a given extended regex.
5433 # If you have `file' or equivalent on your system and you're not sure
5434 # whether `pass_all' will *always* work, you probably want this one.
5435
5436 case $host_os in
5437 aix[4-9]*)
5438   lt_cv_deplibs_check_method=pass_all
5439   ;;
5440
5441 beos*)
5442   lt_cv_deplibs_check_method=pass_all
5443   ;;
5444
5445 bsdi[45]*)
5446   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5447   lt_cv_file_magic_cmd='/usr/bin/file -L'
5448   lt_cv_file_magic_test_file=/shlib/libc.so
5449   ;;
5450
5451 cygwin*)
5452   # func_win32_libid is a shell function defined in ltmain.sh
5453   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5454   lt_cv_file_magic_cmd='func_win32_libid'
5455   ;;
5456
5457 mingw* | pw32*)
5458   # Base MSYS/MinGW do not provide the 'file' command needed by
5459   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5460   # unless we find 'file', for example because we are cross-compiling.
5461   if ( file / ) >/dev/null 2>&1; then
5462     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5463     lt_cv_file_magic_cmd='func_win32_libid'
5464   else
5465     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5466     lt_cv_file_magic_cmd='$OBJDUMP -f'
5467   fi
5468   ;;
5469
5470 cegcc)
5471   # use the weaker test based on 'objdump'. See mingw*.
5472   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5473   lt_cv_file_magic_cmd='$OBJDUMP -f'
5474   ;;
5475
5476 darwin* | rhapsody*)
5477   lt_cv_deplibs_check_method=pass_all
5478   ;;
5479
5480 freebsd* | dragonfly*)
5481   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5482     case $host_cpu in
5483     i*86 )
5484       # Not sure whether the presence of OpenBSD here was a mistake.
5485       # Let's accept both of them until this is cleared up.
5486       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5487       lt_cv_file_magic_cmd=/usr/bin/file
5488       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5489       ;;
5490     esac
5491   else
5492     lt_cv_deplibs_check_method=pass_all
5493   fi
5494   ;;
5495
5496 gnu*)
5497   lt_cv_deplibs_check_method=pass_all
5498   ;;
5499
5500 hpux10.20* | hpux11*)
5501   lt_cv_file_magic_cmd=/usr/bin/file
5502   case $host_cpu in
5503   ia64*)
5504     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5505     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5506     ;;
5507   hppa*64*)
5508     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]'
5509     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5510     ;;
5511   *)
5512     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5513     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5514     ;;
5515   esac
5516   ;;
5517
5518 interix[3-9]*)
5519   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5520   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5521   ;;
5522
5523 irix5* | irix6* | nonstopux*)
5524   case $LD in
5525   *-32|*"-32 ") libmagic=32-bit;;
5526   *-n32|*"-n32 ") libmagic=N32;;
5527   *-64|*"-64 ") libmagic=64-bit;;
5528   *) libmagic=never-match;;
5529   esac
5530   lt_cv_deplibs_check_method=pass_all
5531   ;;
5532
5533 # This must be Linux ELF.
5534 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5535   lt_cv_deplibs_check_method=pass_all
5536   ;;
5537
5538 netbsd* | netbsdelf*-gnu)
5539   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5540     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5541   else
5542     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5543   fi
5544   ;;
5545
5546 newos6*)
5547   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5548   lt_cv_file_magic_cmd=/usr/bin/file
5549   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5550   ;;
5551
5552 *nto* | *qnx*)
5553   lt_cv_deplibs_check_method=pass_all
5554   ;;
5555
5556 openbsd*)
5557   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5558     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5559   else
5560     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5561   fi
5562   ;;
5563
5564 osf3* | osf4* | osf5*)
5565   lt_cv_deplibs_check_method=pass_all
5566   ;;
5567
5568 rdos*)
5569   lt_cv_deplibs_check_method=pass_all
5570   ;;
5571
5572 solaris*)
5573   lt_cv_deplibs_check_method=pass_all
5574   ;;
5575
5576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5577   lt_cv_deplibs_check_method=pass_all
5578   ;;
5579
5580 sysv4 | sysv4.3*)
5581   case $host_vendor in
5582   motorola)
5583     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]'
5584     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5585     ;;
5586   ncr)
5587     lt_cv_deplibs_check_method=pass_all
5588     ;;
5589   sequent)
5590     lt_cv_file_magic_cmd='/bin/file'
5591     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5592     ;;
5593   sni)
5594     lt_cv_file_magic_cmd='/bin/file'
5595     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5596     lt_cv_file_magic_test_file=/lib/libc.so
5597     ;;
5598   siemens)
5599     lt_cv_deplibs_check_method=pass_all
5600     ;;
5601   pc)
5602     lt_cv_deplibs_check_method=pass_all
5603     ;;
5604   esac
5605   ;;
5606
5607 tpf*)
5608   lt_cv_deplibs_check_method=pass_all
5609   ;;
5610 esac
5611
5612 fi
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5614 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5615 file_magic_cmd=$lt_cv_file_magic_cmd
5616 deplibs_check_method=$lt_cv_deplibs_check_method
5617 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630 if test -n "$ac_tool_prefix"; then
5631   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5632 set dummy ${ac_tool_prefix}ar; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if test "${ac_cv_prog_AR+set}" = set; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   if test -n "$AR"; then
5639   ac_cv_prog_AR="$AR" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644   IFS=$as_save_IFS
5645   test -z "$as_dir" && as_dir=.
5646     for ac_exec_ext in '' $ac_executable_extensions; do
5647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648     ac_cv_prog_AR="${ac_tool_prefix}ar"
5649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650     break 2
5651   fi
5652 done
5653   done
5654 IFS=$as_save_IFS
5655
5656 fi
5657 fi
5658 AR=$ac_cv_prog_AR
5659 if test -n "$AR"; then
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5661 $as_echo "$AR" >&6; }
5662 else
5663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5665 fi
5666
5667
5668 fi
5669 if test -z "$ac_cv_prog_AR"; then
5670   ac_ct_AR=$AR
5671   # Extract the first word of "ar", so it can be a program name with args.
5672 set dummy ar; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5676   $as_echo_n "(cached) " >&6
5677 else
5678   if test -n "$ac_ct_AR"; then
5679   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684   IFS=$as_save_IFS
5685   test -z "$as_dir" && as_dir=.
5686     for ac_exec_ext in '' $ac_executable_extensions; do
5687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688     ac_cv_prog_ac_ct_AR="ar"
5689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690     break 2
5691   fi
5692 done
5693   done
5694 IFS=$as_save_IFS
5695
5696 fi
5697 fi
5698 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5699 if test -n "$ac_ct_AR"; then
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5701 $as_echo "$ac_ct_AR" >&6; }
5702 else
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5705 fi
5706
5707   if test "x$ac_ct_AR" = x; then
5708     AR="false"
5709   else
5710     case $cross_compiling:$ac_tool_warned in
5711 yes:)
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714 ac_tool_warned=yes ;;
5715 esac
5716     AR=$ac_ct_AR
5717   fi
5718 else
5719   AR="$ac_cv_prog_AR"
5720 fi
5721
5722 test -z "$AR" && AR=ar
5723 test -z "$AR_FLAGS" && AR_FLAGS=cru
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735 if test -n "$ac_tool_prefix"; then
5736   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5737 set dummy ${ac_tool_prefix}strip; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if test "${ac_cv_prog_STRIP+set}" = set; then :
5741   $as_echo_n "(cached) " >&6
5742 else
5743   if test -n "$STRIP"; then
5744   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749   IFS=$as_save_IFS
5750   test -z "$as_dir" && as_dir=.
5751     for ac_exec_ext in '' $ac_executable_extensions; do
5752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5753     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755     break 2
5756   fi
5757 done
5758   done
5759 IFS=$as_save_IFS
5760
5761 fi
5762 fi
5763 STRIP=$ac_cv_prog_STRIP
5764 if test -n "$STRIP"; then
5765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5766 $as_echo "$STRIP" >&6; }
5767 else
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5770 fi
5771
5772
5773 fi
5774 if test -z "$ac_cv_prog_STRIP"; then
5775   ac_ct_STRIP=$STRIP
5776   # Extract the first word of "strip", so it can be a program name with args.
5777 set dummy strip; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5781   $as_echo_n "(cached) " >&6
5782 else
5783   if test -n "$ac_ct_STRIP"; then
5784   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5788 do
5789   IFS=$as_save_IFS
5790   test -z "$as_dir" && as_dir=.
5791     for ac_exec_ext in '' $ac_executable_extensions; do
5792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5793     ac_cv_prog_ac_ct_STRIP="strip"
5794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795     break 2
5796   fi
5797 done
5798   done
5799 IFS=$as_save_IFS
5800
5801 fi
5802 fi
5803 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5804 if test -n "$ac_ct_STRIP"; then
5805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5806 $as_echo "$ac_ct_STRIP" >&6; }
5807 else
5808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5810 fi
5811
5812   if test "x$ac_ct_STRIP" = x; then
5813     STRIP=":"
5814   else
5815     case $cross_compiling:$ac_tool_warned in
5816 yes:)
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5819 ac_tool_warned=yes ;;
5820 esac
5821     STRIP=$ac_ct_STRIP
5822   fi
5823 else
5824   STRIP="$ac_cv_prog_STRIP"
5825 fi
5826
5827 test -z "$STRIP" && STRIP=:
5828
5829
5830
5831
5832
5833
5834 if test -n "$ac_tool_prefix"; then
5835   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5836 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5840   $as_echo_n "(cached) " >&6
5841 else
5842   if test -n "$RANLIB"; then
5843   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5844 else
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850     for ac_exec_ext in '' $ac_executable_extensions; do
5851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854     break 2
5855   fi
5856 done
5857   done
5858 IFS=$as_save_IFS
5859
5860 fi
5861 fi
5862 RANLIB=$ac_cv_prog_RANLIB
5863 if test -n "$RANLIB"; then
5864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5865 $as_echo "$RANLIB" >&6; }
5866 else
5867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5869 fi
5870
5871
5872 fi
5873 if test -z "$ac_cv_prog_RANLIB"; then
5874   ac_ct_RANLIB=$RANLIB
5875   # Extract the first word of "ranlib", so it can be a program name with args.
5876 set dummy ranlib; ac_word=$2
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878 $as_echo_n "checking for $ac_word... " >&6; }
5879 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5880   $as_echo_n "(cached) " >&6
5881 else
5882   if test -n "$ac_ct_RANLIB"; then
5883   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5887 do
5888   IFS=$as_save_IFS
5889   test -z "$as_dir" && as_dir=.
5890     for ac_exec_ext in '' $ac_executable_extensions; do
5891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5892     ac_cv_prog_ac_ct_RANLIB="ranlib"
5893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894     break 2
5895   fi
5896 done
5897   done
5898 IFS=$as_save_IFS
5899
5900 fi
5901 fi
5902 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5903 if test -n "$ac_ct_RANLIB"; then
5904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5905 $as_echo "$ac_ct_RANLIB" >&6; }
5906 else
5907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908 $as_echo "no" >&6; }
5909 fi
5910
5911   if test "x$ac_ct_RANLIB" = x; then
5912     RANLIB=":"
5913   else
5914     case $cross_compiling:$ac_tool_warned in
5915 yes:)
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5918 ac_tool_warned=yes ;;
5919 esac
5920     RANLIB=$ac_ct_RANLIB
5921   fi
5922 else
5923   RANLIB="$ac_cv_prog_RANLIB"
5924 fi
5925
5926 test -z "$RANLIB" && RANLIB=:
5927
5928
5929
5930
5931
5932
5933 # Determine commands to create old-style static archives.
5934 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5935 old_postinstall_cmds='chmod 644 $oldlib'
5936 old_postuninstall_cmds=
5937
5938 if test -n "$RANLIB"; then
5939   case $host_os in
5940   openbsd*)
5941     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5942     ;;
5943   *)
5944     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5945     ;;
5946   esac
5947   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5948 fi
5949
5950
5951
5952
5953
5954
5955
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 # If no C compiler was specified, use CC.
5984 LTCC=${LTCC-"$CC"}
5985
5986 # If no C compiler flags were specified, use CFLAGS.
5987 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5988
5989 # Allow CC to be a program name with arguments.
5990 compiler=$CC
5991
5992
5993 # Check for command to grab the raw symbol name followed by C symbol from nm.
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5995 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5996 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5997   $as_echo_n "(cached) " >&6
5998 else
5999
6000 # These are sane defaults that work on at least a few old systems.
6001 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6002
6003 # Character class describing NM global symbol codes.
6004 symcode='[BCDEGRST]'
6005
6006 # Regexp to match symbols that can be accessed directly from C.
6007 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6008
6009 # Define system-specific variables.
6010 case $host_os in
6011 aix*)
6012   symcode='[BCDT]'
6013   ;;
6014 cygwin* | mingw* | pw32* | cegcc*)
6015   symcode='[ABCDGISTW]'
6016   ;;
6017 hpux*)
6018   if test "$host_cpu" = ia64; then
6019     symcode='[ABCDEGRST]'
6020   fi
6021   ;;
6022 irix* | nonstopux*)
6023   symcode='[BCDEGRST]'
6024   ;;
6025 osf*)
6026   symcode='[BCDEGQRST]'
6027   ;;
6028 solaris*)
6029   symcode='[BDRT]'
6030   ;;
6031 sco3.2v5*)
6032   symcode='[DT]'
6033   ;;
6034 sysv4.2uw2*)
6035   symcode='[DT]'
6036   ;;
6037 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6038   symcode='[ABDT]'
6039   ;;
6040 sysv4)
6041   symcode='[DFNSTU]'
6042   ;;
6043 esac
6044
6045 # If we're using GNU nm, then use its standard symbol codes.
6046 case `$NM -V 2>&1` in
6047 *GNU* | *'with BFD'*)
6048   symcode='[ABCDGIRSTW]' ;;
6049 esac
6050
6051 # Transform an extracted symbol line into a proper C declaration.
6052 # Some systems (esp. on ia64) link data and code symbols differently,
6053 # so use this general approach.
6054 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6055
6056 # Transform an extracted symbol line into symbol name and symbol address
6057 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6058 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'"
6059
6060 # Handle CRLF in mingw tool chain
6061 opt_cr=
6062 case $build_os in
6063 mingw*)
6064   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6065   ;;
6066 esac
6067
6068 # Try without a prefix underscore, then with it.
6069 for ac_symprfx in "" "_"; do
6070
6071   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6072   symxfrm="\\1 $ac_symprfx\\2 \\2"
6073
6074   # Write the raw and C identifiers.
6075   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6076     # Fake it for dumpbin and say T for any non-static function
6077     # and D for any global variable.
6078     # Also find C++ and __fastcall symbols from MSVC++,
6079     # which start with @ or ?.
6080     lt_cv_sys_global_symbol_pipe="$AWK '"\
6081 "     {last_section=section; section=\$ 3};"\
6082 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6083 "     \$ 0!~/External *\|/{next};"\
6084 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6085 "     {if(hide[section]) next};"\
6086 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6087 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6088 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6089 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6090 "     ' prfx=^$ac_symprfx"
6091   else
6092     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6093   fi
6094
6095   # Check to see that the pipe works correctly.
6096   pipe_works=no
6097
6098   rm -f conftest*
6099   cat > conftest.$ac_ext <<_LT_EOF
6100 #ifdef __cplusplus
6101 extern "C" {
6102 #endif
6103 char nm_test_var;
6104 void nm_test_func(void);
6105 void nm_test_func(void){}
6106 #ifdef __cplusplus
6107 }
6108 #endif
6109 int main(){nm_test_var='a';nm_test_func();return(0);}
6110 _LT_EOF
6111
6112   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6113   (eval $ac_compile) 2>&5
6114   ac_status=$?
6115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116   test $ac_status = 0; }; then
6117     # Now try to grab the symbols.
6118     nlist=conftest.nm
6119     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6120   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6121   ac_status=$?
6122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6123   test $ac_status = 0; } && test -s "$nlist"; then
6124       # Try sorting and uniquifying the output.
6125       if sort "$nlist" | uniq > "$nlist"T; then
6126         mv -f "$nlist"T "$nlist"
6127       else
6128         rm -f "$nlist"T
6129       fi
6130
6131       # Make sure that we snagged all the symbols we need.
6132       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6133         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6134           cat <<_LT_EOF > conftest.$ac_ext
6135 #ifdef __cplusplus
6136 extern "C" {
6137 #endif
6138
6139 _LT_EOF
6140           # Now generate the symbol file.
6141           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6142
6143           cat <<_LT_EOF >> conftest.$ac_ext
6144
6145 /* The mapping between symbol names and symbols.  */
6146 const struct {
6147   const char *name;
6148   void       *address;
6149 }
6150 lt__PROGRAM__LTX_preloaded_symbols[] =
6151 {
6152   { "@PROGRAM@", (void *) 0 },
6153 _LT_EOF
6154           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6155           cat <<\_LT_EOF >> conftest.$ac_ext
6156   {0, (void *) 0}
6157 };
6158
6159 /* This works around a problem in FreeBSD linker */
6160 #ifdef FREEBSD_WORKAROUND
6161 static const void *lt_preloaded_setup() {
6162   return lt__PROGRAM__LTX_preloaded_symbols;
6163 }
6164 #endif
6165
6166 #ifdef __cplusplus
6167 }
6168 #endif
6169 _LT_EOF
6170           # Now try linking the two files.
6171           mv conftest.$ac_objext conftstm.$ac_objext
6172           lt_save_LIBS="$LIBS"
6173           lt_save_CFLAGS="$CFLAGS"
6174           LIBS="conftstm.$ac_objext"
6175           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6176           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6177   (eval $ac_link) 2>&5
6178   ac_status=$?
6179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6180   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6181             pipe_works=yes
6182           fi
6183           LIBS="$lt_save_LIBS"
6184           CFLAGS="$lt_save_CFLAGS"
6185         else
6186           echo "cannot find nm_test_func in $nlist" >&5
6187         fi
6188       else
6189         echo "cannot find nm_test_var in $nlist" >&5
6190       fi
6191     else
6192       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6193     fi
6194   else
6195     echo "$progname: failed program was:" >&5
6196     cat conftest.$ac_ext >&5
6197   fi
6198   rm -rf conftest* conftst*
6199
6200   # Do not use the global_symbol_pipe unless it works.
6201   if test "$pipe_works" = yes; then
6202     break
6203   else
6204     lt_cv_sys_global_symbol_pipe=
6205   fi
6206 done
6207
6208 fi
6209
6210 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6211   lt_cv_sys_global_symbol_to_cdecl=
6212 fi
6213 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6215 $as_echo "failed" >&6; }
6216 else
6217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6218 $as_echo "ok" >&6; }
6219 fi
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243 # Check whether --enable-libtool-lock was given.
6244 if test "${enable_libtool_lock+set}" = set; then :
6245   enableval=$enable_libtool_lock;
6246 fi
6247
6248 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6249
6250 # Some flags need to be propagated to the compiler or linker for good
6251 # libtool support.
6252 case $host in
6253 ia64-*-hpux*)
6254   # Find out which ABI we are using.
6255   echo 'int i;' > conftest.$ac_ext
6256   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6257   (eval $ac_compile) 2>&5
6258   ac_status=$?
6259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6260   test $ac_status = 0; }; then
6261     case `/usr/bin/file conftest.$ac_objext` in
6262       *ELF-32*)
6263         HPUX_IA64_MODE="32"
6264         ;;
6265       *ELF-64*)
6266         HPUX_IA64_MODE="64"
6267         ;;
6268     esac
6269   fi
6270   rm -rf conftest*
6271   ;;
6272 *-*-irix6*)
6273   # Find out which ABI we are using.
6274   echo '#line 6274 "configure"' > conftest.$ac_ext
6275   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6276   (eval $ac_compile) 2>&5
6277   ac_status=$?
6278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6279   test $ac_status = 0; }; then
6280     if test "$lt_cv_prog_gnu_ld" = yes; then
6281       case `/usr/bin/file conftest.$ac_objext` in
6282         *32-bit*)
6283           LD="${LD-ld} -melf32bsmip"
6284           ;;
6285         *N32*)
6286           LD="${LD-ld} -melf32bmipn32"
6287           ;;
6288         *64-bit*)
6289           LD="${LD-ld} -melf64bmip"
6290         ;;
6291       esac
6292     else
6293       case `/usr/bin/file conftest.$ac_objext` in
6294         *32-bit*)
6295           LD="${LD-ld} -32"
6296           ;;
6297         *N32*)
6298           LD="${LD-ld} -n32"
6299           ;;
6300         *64-bit*)
6301           LD="${LD-ld} -64"
6302           ;;
6303       esac
6304     fi
6305   fi
6306   rm -rf conftest*
6307   ;;
6308
6309 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6310 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6311   # Find out which ABI we are using.
6312   echo 'int i;' > conftest.$ac_ext
6313   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6314   (eval $ac_compile) 2>&5
6315   ac_status=$?
6316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6317   test $ac_status = 0; }; then
6318     case `/usr/bin/file conftest.o` in
6319       *32-bit*)
6320         case $host in
6321           x86_64-*kfreebsd*-gnu)
6322             LD="${LD-ld} -m elf_i386_fbsd"
6323             ;;
6324           x86_64-*linux*)
6325             LD="${LD-ld} -m elf_i386"
6326             ;;
6327           ppc64-*linux*|powerpc64-*linux*)
6328             LD="${LD-ld} -m elf32ppclinux"
6329             ;;
6330           s390x-*linux*)
6331             LD="${LD-ld} -m elf_s390"
6332             ;;
6333           sparc64-*linux*)
6334             LD="${LD-ld} -m elf32_sparc"
6335             ;;
6336         esac
6337         ;;
6338       *64-bit*)
6339         case $host in
6340           x86_64-*kfreebsd*-gnu)
6341             LD="${LD-ld} -m elf_x86_64_fbsd"
6342             ;;
6343           x86_64-*linux*)
6344             LD="${LD-ld} -m elf_x86_64"
6345             ;;
6346           ppc*-*linux*|powerpc*-*linux*)
6347             LD="${LD-ld} -m elf64ppc"
6348             ;;
6349           s390*-*linux*|s390*-*tpf*)
6350             LD="${LD-ld} -m elf64_s390"
6351             ;;
6352           sparc*-*linux*)
6353             LD="${LD-ld} -m elf64_sparc"
6354             ;;
6355         esac
6356         ;;
6357     esac
6358   fi
6359   rm -rf conftest*
6360   ;;
6361
6362 *-*-sco3.2v5*)
6363   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6364   SAVE_CFLAGS="$CFLAGS"
6365   CFLAGS="$CFLAGS -belf"
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6367 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6368 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6369   $as_echo_n "(cached) " >&6
6370 else
6371   ac_ext=c
6372 ac_cpp='$CPP $CPPFLAGS'
6373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6376
6377      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h.  */
6379
6380 int
6381 main ()
6382 {
6383
6384   ;
6385   return 0;
6386 }
6387 _ACEOF
6388 if ac_fn_c_try_link "$LINENO"; then :
6389   lt_cv_cc_needs_belf=yes
6390 else
6391   lt_cv_cc_needs_belf=no
6392 fi
6393 rm -f core conftest.err conftest.$ac_objext \
6394     conftest$ac_exeext conftest.$ac_ext
6395      ac_ext=c
6396 ac_cpp='$CPP $CPPFLAGS'
6397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6400
6401 fi
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6403 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6404   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6405     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6406     CFLAGS="$SAVE_CFLAGS"
6407   fi
6408   ;;
6409 sparc*-*solaris*)
6410   # Find out which ABI we are using.
6411   echo 'int i;' > conftest.$ac_ext
6412   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6413   (eval $ac_compile) 2>&5
6414   ac_status=$?
6415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6416   test $ac_status = 0; }; then
6417     case `/usr/bin/file conftest.o` in
6418     *64-bit*)
6419       case $lt_cv_prog_gnu_ld in
6420       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6421       *)
6422         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6423           LD="${LD-ld} -64"
6424         fi
6425         ;;
6426       esac
6427       ;;
6428     esac
6429   fi
6430   rm -rf conftest*
6431   ;;
6432 esac
6433
6434 need_locks="$enable_libtool_lock"
6435
6436
6437   case $host_os in
6438     rhapsody* | darwin*)
6439     if test -n "$ac_tool_prefix"; then
6440   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6441 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6445   $as_echo_n "(cached) " >&6
6446 else
6447   if test -n "$DSYMUTIL"; then
6448   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455     for ac_exec_ext in '' $ac_executable_extensions; do
6456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462   done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6468 if test -n "$DSYMUTIL"; then
6469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6470 $as_echo "$DSYMUTIL" >&6; }
6471 else
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476
6477 fi
6478 if test -z "$ac_cv_prog_DSYMUTIL"; then
6479   ac_ct_DSYMUTIL=$DSYMUTIL
6480   # Extract the first word of "dsymutil", so it can be a program name with args.
6481 set dummy dsymutil; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6485   $as_echo_n "(cached) " >&6
6486 else
6487   if test -n "$ac_ct_DSYMUTIL"; then
6488   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495     for ac_exec_ext in '' $ac_executable_extensions; do
6496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502   done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6508 if test -n "$ac_ct_DSYMUTIL"; then
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6510 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6511 else
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6514 fi
6515
6516   if test "x$ac_ct_DSYMUTIL" = x; then
6517     DSYMUTIL=":"
6518   else
6519     case $cross_compiling:$ac_tool_warned in
6520 yes:)
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523 ac_tool_warned=yes ;;
6524 esac
6525     DSYMUTIL=$ac_ct_DSYMUTIL
6526   fi
6527 else
6528   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6529 fi
6530
6531     if test -n "$ac_tool_prefix"; then
6532   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6533 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6537   $as_echo_n "(cached) " >&6
6538 else
6539   if test -n "$NMEDIT"; then
6540   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545   IFS=$as_save_IFS
6546   test -z "$as_dir" && as_dir=.
6547     for ac_exec_ext in '' $ac_executable_extensions; do
6548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551     break 2
6552   fi
6553 done
6554   done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 NMEDIT=$ac_cv_prog_NMEDIT
6560 if test -n "$NMEDIT"; then
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6562 $as_echo "$NMEDIT" >&6; }
6563 else
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6566 fi
6567
6568
6569 fi
6570 if test -z "$ac_cv_prog_NMEDIT"; then
6571   ac_ct_NMEDIT=$NMEDIT
6572   # Extract the first word of "nmedit", so it can be a program name with args.
6573 set dummy nmedit; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579   if test -n "$ac_ct_NMEDIT"; then
6580   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585   IFS=$as_save_IFS
6586   test -z "$as_dir" && as_dir=.
6587     for ac_exec_ext in '' $ac_executable_extensions; do
6588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591     break 2
6592   fi
6593 done
6594   done
6595 IFS=$as_save_IFS
6596
6597 fi
6598 fi
6599 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6600 if test -n "$ac_ct_NMEDIT"; then
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6602 $as_echo "$ac_ct_NMEDIT" >&6; }
6603 else
6604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6606 fi
6607
6608   if test "x$ac_ct_NMEDIT" = x; then
6609     NMEDIT=":"
6610   else
6611     case $cross_compiling:$ac_tool_warned in
6612 yes:)
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6615 ac_tool_warned=yes ;;
6616 esac
6617     NMEDIT=$ac_ct_NMEDIT
6618   fi
6619 else
6620   NMEDIT="$ac_cv_prog_NMEDIT"
6621 fi
6622
6623     if test -n "$ac_tool_prefix"; then
6624   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if test "${ac_cv_prog_LIPO+set}" = set; then :
6629   $as_echo_n "(cached) " >&6
6630 else
6631   if test -n "$LIPO"; then
6632   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639     for ac_exec_ext in '' $ac_executable_extensions; do
6640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646   done
6647 IFS=$as_save_IFS
6648
6649 fi
6650 fi
6651 LIPO=$ac_cv_prog_LIPO
6652 if test -n "$LIPO"; then
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6654 $as_echo "$LIPO" >&6; }
6655 else
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660
6661 fi
6662 if test -z "$ac_cv_prog_LIPO"; then
6663   ac_ct_LIPO=$LIPO
6664   # Extract the first word of "lipo", so it can be a program name with args.
6665 set dummy lipo; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6669   $as_echo_n "(cached) " >&6
6670 else
6671   if test -n "$ac_ct_LIPO"; then
6672   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677   IFS=$as_save_IFS
6678   test -z "$as_dir" && as_dir=.
6679     for ac_exec_ext in '' $ac_executable_extensions; do
6680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681     ac_cv_prog_ac_ct_LIPO="lipo"
6682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686   done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6692 if test -n "$ac_ct_LIPO"; then
6693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6694 $as_echo "$ac_ct_LIPO" >&6; }
6695 else
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6698 fi
6699
6700   if test "x$ac_ct_LIPO" = x; then
6701     LIPO=":"
6702   else
6703     case $cross_compiling:$ac_tool_warned in
6704 yes:)
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709     LIPO=$ac_ct_LIPO
6710   fi
6711 else
6712   LIPO="$ac_cv_prog_LIPO"
6713 fi
6714
6715     if test -n "$ac_tool_prefix"; then
6716   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}otool; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   if test -n "$OTOOL"; then
6724   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731     for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738   done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 OTOOL=$ac_cv_prog_OTOOL
6744 if test -n "$OTOOL"; then
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6746 $as_echo "$OTOOL" >&6; }
6747 else
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752
6753 fi
6754 if test -z "$ac_cv_prog_OTOOL"; then
6755   ac_ct_OTOOL=$OTOOL
6756   # Extract the first word of "otool", so it can be a program name with args.
6757 set dummy otool; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   if test -n "$ac_ct_OTOOL"; then
6764   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771     for ac_exec_ext in '' $ac_executable_extensions; do
6772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773     ac_cv_prog_ac_ct_OTOOL="otool"
6774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778   done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6784 if test -n "$ac_ct_OTOOL"; then
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6786 $as_echo "$ac_ct_OTOOL" >&6; }
6787 else
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6790 fi
6791
6792   if test "x$ac_ct_OTOOL" = x; then
6793     OTOOL=":"
6794   else
6795     case $cross_compiling:$ac_tool_warned in
6796 yes:)
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799 ac_tool_warned=yes ;;
6800 esac
6801     OTOOL=$ac_ct_OTOOL
6802   fi
6803 else
6804   OTOOL="$ac_cv_prog_OTOOL"
6805 fi
6806
6807     if test -n "$ac_tool_prefix"; then
6808   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6809 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   if test -n "$OTOOL64"; then
6816   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823     for ac_exec_ext in '' $ac_executable_extensions; do
6824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830   done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 OTOOL64=$ac_cv_prog_OTOOL64
6836 if test -n "$OTOOL64"; then
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6838 $as_echo "$OTOOL64" >&6; }
6839 else
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844
6845 fi
6846 if test -z "$ac_cv_prog_OTOOL64"; then
6847   ac_ct_OTOOL64=$OTOOL64
6848   # Extract the first word of "otool64", so it can be a program name with args.
6849 set dummy otool64; ac_word=$2
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 $as_echo_n "checking for $ac_word... " >&6; }
6852 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6853   $as_echo_n "(cached) " >&6
6854 else
6855   if test -n "$ac_ct_OTOOL64"; then
6856   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6857 else
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861   IFS=$as_save_IFS
6862   test -z "$as_dir" && as_dir=.
6863     for ac_exec_ext in '' $ac_executable_extensions; do
6864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6865     ac_cv_prog_ac_ct_OTOOL64="otool64"
6866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867     break 2
6868   fi
6869 done
6870   done
6871 IFS=$as_save_IFS
6872
6873 fi
6874 fi
6875 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6876 if test -n "$ac_ct_OTOOL64"; then
6877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6878 $as_echo "$ac_ct_OTOOL64" >&6; }
6879 else
6880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881 $as_echo "no" >&6; }
6882 fi
6883
6884   if test "x$ac_ct_OTOOL64" = x; then
6885     OTOOL64=":"
6886   else
6887     case $cross_compiling:$ac_tool_warned in
6888 yes:)
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891 ac_tool_warned=yes ;;
6892 esac
6893     OTOOL64=$ac_ct_OTOOL64
6894   fi
6895 else
6896   OTOOL64="$ac_cv_prog_OTOOL64"
6897 fi
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6926 $as_echo_n "checking for -single_module linker flag... " >&6; }
6927 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6928   $as_echo_n "(cached) " >&6
6929 else
6930   lt_cv_apple_cc_single_mod=no
6931       if test -z "${LT_MULTI_MODULE}"; then
6932         # By default we will add the -single_module flag. You can override
6933         # by either setting the environment variable LT_MULTI_MODULE
6934         # non-empty at configure time, or by adding -multi_module to the
6935         # link flags.
6936         rm -rf libconftest.dylib*
6937         echo "int foo(void){return 1;}" > conftest.c
6938         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6939 -dynamiclib -Wl,-single_module conftest.c" >&5
6940         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6941           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6942         _lt_result=$?
6943         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6944           lt_cv_apple_cc_single_mod=yes
6945         else
6946           cat conftest.err >&5
6947         fi
6948         rm -rf libconftest.dylib*
6949         rm -f conftest.*
6950       fi
6951 fi
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6953 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6955 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6956 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6957   $as_echo_n "(cached) " >&6
6958 else
6959   lt_cv_ld_exported_symbols_list=no
6960       save_LDFLAGS=$LDFLAGS
6961       echo "_main" > conftest.sym
6962       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6963       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h.  */
6965
6966 int
6967 main ()
6968 {
6969
6970   ;
6971   return 0;
6972 }
6973 _ACEOF
6974 if ac_fn_c_try_link "$LINENO"; then :
6975   lt_cv_ld_exported_symbols_list=yes
6976 else
6977   lt_cv_ld_exported_symbols_list=no
6978 fi
6979 rm -f core conftest.err conftest.$ac_objext \
6980     conftest$ac_exeext conftest.$ac_ext
6981         LDFLAGS="$save_LDFLAGS"
6982
6983 fi
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6985 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6986     case $host_os in
6987     rhapsody* | darwin1.[012])
6988       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6989     darwin1.*)
6990       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6991     darwin*) # darwin 5.x on
6992       # if running on 10.5 or later, the deployment target defaults
6993       # to the OS version, if on x86, and 10.4, the deployment
6994       # target defaults to 10.4. Don't you love it?
6995       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6996         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6997           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6998         10.[012]*)
6999           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7000         10.*)
7001           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7002       esac
7003     ;;
7004   esac
7005     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7006       _lt_dar_single_mod='$single_module'
7007     fi
7008     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7009       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7010     else
7011       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7012     fi
7013     if test "$DSYMUTIL" != ":"; then
7014       _lt_dsymutil='~$DSYMUTIL $lib || :'
7015     else
7016       _lt_dsymutil=
7017     fi
7018     ;;
7019   esac
7020
7021 ac_ext=c
7022 ac_cpp='$CPP $CPPFLAGS'
7023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7027 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7028 # On Suns, sometimes $CPP names a directory.
7029 if test -n "$CPP" && test -d "$CPP"; then
7030   CPP=
7031 fi
7032 if test -z "$CPP"; then
7033   if test "${ac_cv_prog_CPP+set}" = set; then :
7034   $as_echo_n "(cached) " >&6
7035 else
7036       # Double quotes because CPP needs to be expanded
7037     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7038     do
7039       ac_preproc_ok=false
7040 for ac_c_preproc_warn_flag in '' yes
7041 do
7042   # Use a header file that comes with gcc, so configuring glibc
7043   # with a fresh cross-compiler works.
7044   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7045   # <limits.h> exists even on freestanding compilers.
7046   # On the NeXT, cc -E runs the code through the compiler's parser,
7047   # not just through cpp. "Syntax error" is here to catch this case.
7048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h.  */
7050 #ifdef __STDC__
7051 # include <limits.h>
7052 #else
7053 # include <assert.h>
7054 #endif
7055                      Syntax error
7056 _ACEOF
7057 if ac_fn_c_try_cpp "$LINENO"; then :
7058
7059 else
7060   # Broken: fails on valid input.
7061 continue
7062 fi
7063 rm -f conftest.err conftest.i conftest.$ac_ext
7064
7065   # OK, works on sane cases.  Now check whether nonexistent headers
7066   # can be detected and how.
7067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h.  */
7069 #include <ac_nonexistent.h>
7070 _ACEOF
7071 if ac_fn_c_try_cpp "$LINENO"; then :
7072   # Broken: success on invalid input.
7073 continue
7074 else
7075   # Passes both tests.
7076 ac_preproc_ok=:
7077 break
7078 fi
7079 rm -f conftest.err conftest.i conftest.$ac_ext
7080
7081 done
7082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7083 rm -f conftest.i conftest.err conftest.$ac_ext
7084 if $ac_preproc_ok; then :
7085   break
7086 fi
7087
7088     done
7089     ac_cv_prog_CPP=$CPP
7090
7091 fi
7092   CPP=$ac_cv_prog_CPP
7093 else
7094   ac_cv_prog_CPP=$CPP
7095 fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7097 $as_echo "$CPP" >&6; }
7098 ac_preproc_ok=false
7099 for ac_c_preproc_warn_flag in '' yes
7100 do
7101   # Use a header file that comes with gcc, so configuring glibc
7102   # with a fresh cross-compiler works.
7103   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7104   # <limits.h> exists even on freestanding compilers.
7105   # On the NeXT, cc -E runs the code through the compiler's parser,
7106   # not just through cpp. "Syntax error" is here to catch this case.
7107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h.  */
7109 #ifdef __STDC__
7110 # include <limits.h>
7111 #else
7112 # include <assert.h>
7113 #endif
7114                      Syntax error
7115 _ACEOF
7116 if ac_fn_c_try_cpp "$LINENO"; then :
7117
7118 else
7119   # Broken: fails on valid input.
7120 continue
7121 fi
7122 rm -f conftest.err conftest.i conftest.$ac_ext
7123
7124   # OK, works on sane cases.  Now check whether nonexistent headers
7125   # can be detected and how.
7126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h.  */
7128 #include <ac_nonexistent.h>
7129 _ACEOF
7130 if ac_fn_c_try_cpp "$LINENO"; then :
7131   # Broken: success on invalid input.
7132 continue
7133 else
7134   # Passes both tests.
7135 ac_preproc_ok=:
7136 break
7137 fi
7138 rm -f conftest.err conftest.i conftest.$ac_ext
7139
7140 done
7141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7142 rm -f conftest.i conftest.err conftest.$ac_ext
7143 if $ac_preproc_ok; then :
7144
7145 else
7146   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7148 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7149 See \`config.log' for more details" "$LINENO" 5 ; }
7150 fi
7151
7152 ac_ext=c
7153 ac_cpp='$CPP $CPPFLAGS'
7154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7157
7158
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7160 $as_echo_n "checking for ANSI C header files... " >&6; }
7161 if test "${ac_cv_header_stdc+set}" = set; then :
7162   $as_echo_n "(cached) " >&6
7163 else
7164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h.  */
7166 #include <stdlib.h>
7167 #include <stdarg.h>
7168 #include <string.h>
7169 #include <float.h>
7170
7171 int
7172 main ()
7173 {
7174
7175   ;
7176   return 0;
7177 }
7178 _ACEOF
7179 if ac_fn_c_try_compile "$LINENO"; then :
7180   ac_cv_header_stdc=yes
7181 else
7182   ac_cv_header_stdc=no
7183 fi
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185
7186 if test $ac_cv_header_stdc = yes; then
7187   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h.  */
7190 #include <string.h>
7191
7192 _ACEOF
7193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7194   $EGREP "memchr" >/dev/null 2>&1; then :
7195
7196 else
7197   ac_cv_header_stdc=no
7198 fi
7199 rm -f conftest*
7200
7201 fi
7202
7203 if test $ac_cv_header_stdc = yes; then
7204   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h.  */
7207 #include <stdlib.h>
7208
7209 _ACEOF
7210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7211   $EGREP "free" >/dev/null 2>&1; then :
7212
7213 else
7214   ac_cv_header_stdc=no
7215 fi
7216 rm -f conftest*
7217
7218 fi
7219
7220 if test $ac_cv_header_stdc = yes; then
7221   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7222   if test "$cross_compiling" = yes; then :
7223   :
7224 else
7225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h.  */
7227 #include <ctype.h>
7228 #include <stdlib.h>
7229 #if ((' ' & 0x0FF) == 0x020)
7230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7232 #else
7233 # define ISLOWER(c) \
7234                    (('a' <= (c) && (c) <= 'i') \
7235                      || ('j' <= (c) && (c) <= 'r') \
7236                      || ('s' <= (c) && (c) <= 'z'))
7237 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7238 #endif
7239
7240 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7241 int
7242 main ()
7243 {
7244   int i;
7245   for (i = 0; i < 256; i++)
7246     if (XOR (islower (i), ISLOWER (i))
7247         || toupper (i) != TOUPPER (i))
7248       return 2;
7249   return 0;
7250 }
7251 _ACEOF
7252 if ac_fn_c_try_run "$LINENO"; then :
7253
7254 else
7255   ac_cv_header_stdc=no
7256 fi
7257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7258   conftest.$ac_objext conftest.beam conftest.$ac_ext
7259 fi
7260
7261 fi
7262 fi
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7264 $as_echo "$ac_cv_header_stdc" >&6; }
7265 if test $ac_cv_header_stdc = yes; then
7266
7267 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7268
7269 fi
7270
7271 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7272 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7273                   inttypes.h stdint.h unistd.h
7274 do :
7275   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7276 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7277 "
7278 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7279   cat >>confdefs.h <<_ACEOF
7280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7281 _ACEOF
7282
7283 fi
7284
7285 done
7286
7287
7288 for ac_header in dlfcn.h
7289 do :
7290   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7291 "
7292 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7293   cat >>confdefs.h <<_ACEOF
7294 #define HAVE_DLFCN_H 1
7295 _ACEOF
7296
7297 fi
7298
7299 done
7300
7301
7302
7303 # Set options
7304
7305
7306
7307         enable_dlopen=no
7308
7309
7310   enable_win32_dll=no
7311
7312
7313             # Check whether --enable-shared was given.
7314 if test "${enable_shared+set}" = set; then :
7315   enableval=$enable_shared; p=${PACKAGE-default}
7316     case $enableval in
7317     yes) enable_shared=yes ;;
7318     no) enable_shared=no ;;
7319     *)
7320       enable_shared=no
7321       # Look at the argument we got.  We use all the common list separators.
7322       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7323       for pkg in $enableval; do
7324         IFS="$lt_save_ifs"
7325         if test "X$pkg" = "X$p"; then
7326           enable_shared=yes
7327         fi
7328       done
7329       IFS="$lt_save_ifs"
7330       ;;
7331     esac
7332 else
7333   enable_shared=yes
7334 fi
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346 # Check whether --with-pic was given.
7347 if test "${with_pic+set}" = set; then :
7348   withval=$with_pic; pic_mode="$withval"
7349 else
7350   pic_mode=default
7351 fi
7352
7353
7354 test -z "$pic_mode" && pic_mode=default
7355
7356
7357
7358
7359
7360
7361
7362   # Check whether --enable-fast-install was given.
7363 if test "${enable_fast_install+set}" = set; then :
7364   enableval=$enable_fast_install; p=${PACKAGE-default}
7365     case $enableval in
7366     yes) enable_fast_install=yes ;;
7367     no) enable_fast_install=no ;;
7368     *)
7369       enable_fast_install=no
7370       # Look at the argument we got.  We use all the common list separators.
7371       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7372       for pkg in $enableval; do
7373         IFS="$lt_save_ifs"
7374         if test "X$pkg" = "X$p"; then
7375           enable_fast_install=yes
7376         fi
7377       done
7378       IFS="$lt_save_ifs"
7379       ;;
7380     esac
7381 else
7382   enable_fast_install=yes
7383 fi
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395 # This can be used to rebuild libtool when needed
7396 LIBTOOL_DEPS="$ltmain"
7397
7398 # Always use our own libtool.
7399 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425 test -z "$LN_S" && LN_S="ln -s"
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440 if test -n "${ZSH_VERSION+set}" ; then
7441    setopt NO_GLOB_SUBST
7442 fi
7443
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7445 $as_echo_n "checking for objdir... " >&6; }
7446 if test "${lt_cv_objdir+set}" = set; then :
7447   $as_echo_n "(cached) " >&6
7448 else
7449   rm -f .libs 2>/dev/null
7450 mkdir .libs 2>/dev/null
7451 if test -d .libs; then
7452   lt_cv_objdir=.libs
7453 else
7454   # MS-DOS does not allow filenames that begin with a dot.
7455   lt_cv_objdir=_libs
7456 fi
7457 rmdir .libs 2>/dev/null
7458 fi
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7460 $as_echo "$lt_cv_objdir" >&6; }
7461 objdir=$lt_cv_objdir
7462
7463
7464
7465
7466
7467 cat >>confdefs.h <<_ACEOF
7468 #define LT_OBJDIR "$lt_cv_objdir/"
7469 _ACEOF
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487 case $host_os in
7488 aix3*)
7489   # AIX sometimes has problems with the GCC collect2 program.  For some
7490   # reason, if we set the COLLECT_NAMES environment variable, the problems
7491   # vanish in a puff of smoke.
7492   if test "X${COLLECT_NAMES+set}" != Xset; then
7493     COLLECT_NAMES=
7494     export COLLECT_NAMES
7495   fi
7496   ;;
7497 esac
7498
7499 # Sed substitution that helps us do robust quoting.  It backslashifies
7500 # metacharacters that are still active within double-quoted strings.
7501 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7502
7503 # Same as above, but do not quote variable references.
7504 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7505
7506 # Sed substitution to delay expansion of an escaped shell variable in a
7507 # double_quote_subst'ed string.
7508 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7509
7510 # Sed substitution to delay expansion of an escaped single quote.
7511 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7512
7513 # Sed substitution to avoid accidental globbing in evaled expressions
7514 no_glob_subst='s/\*/\\\*/g'
7515
7516 # Global variables:
7517 ofile=libtool
7518 can_build_shared=yes
7519
7520 # All known linkers require a `.a' archive for static linking (except MSVC,
7521 # which needs '.lib').
7522 libext=a
7523
7524 with_gnu_ld="$lt_cv_prog_gnu_ld"
7525
7526 old_CC="$CC"
7527 old_CFLAGS="$CFLAGS"
7528
7529 # Set sane defaults for various variables
7530 test -z "$CC" && CC=cc
7531 test -z "$LTCC" && LTCC=$CC
7532 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7533 test -z "$LD" && LD=ld
7534 test -z "$ac_objext" && ac_objext=o
7535
7536 for cc_temp in $compiler""; do
7537   case $cc_temp in
7538     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7539     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7540     \-*) ;;
7541     *) break;;
7542   esac
7543 done
7544 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7545
7546
7547 # Only perform the check for file, if the check method requires it
7548 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7549 case $deplibs_check_method in
7550 file_magic*)
7551   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7552     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7553 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7554 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7555   $as_echo_n "(cached) " >&6
7556 else
7557   case $MAGIC_CMD in
7558 [\\/*] |  ?:[\\/]*)
7559   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7560   ;;
7561 *)
7562   lt_save_MAGIC_CMD="$MAGIC_CMD"
7563   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7564   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7565   for ac_dir in $ac_dummy; do
7566     IFS="$lt_save_ifs"
7567     test -z "$ac_dir" && ac_dir=.
7568     if test -f $ac_dir/${ac_tool_prefix}file; then
7569       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7570       if test -n "$file_magic_test_file"; then
7571         case $deplibs_check_method in
7572         "file_magic "*)
7573           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7574           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7575           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7576             $EGREP "$file_magic_regex" > /dev/null; then
7577             :
7578           else
7579             cat <<_LT_EOF 1>&2
7580
7581 *** Warning: the command libtool uses to detect shared libraries,
7582 *** $file_magic_cmd, produces output that libtool cannot recognize.
7583 *** The result is that libtool may fail to recognize shared libraries
7584 *** as such.  This will affect the creation of libtool libraries that
7585 *** depend on shared libraries, but programs linked with such libtool
7586 *** libraries will work regardless of this problem.  Nevertheless, you
7587 *** may want to report the problem to your system manager and/or to
7588 *** bug-libtool@gnu.org
7589
7590 _LT_EOF
7591           fi ;;
7592         esac
7593       fi
7594       break
7595     fi
7596   done
7597   IFS="$lt_save_ifs"
7598   MAGIC_CMD="$lt_save_MAGIC_CMD"
7599   ;;
7600 esac
7601 fi
7602
7603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7604 if test -n "$MAGIC_CMD"; then
7605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7606 $as_echo "$MAGIC_CMD" >&6; }
7607 else
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7610 fi
7611
7612
7613
7614
7615
7616 if test -z "$lt_cv_path_MAGIC_CMD"; then
7617   if test -n "$ac_tool_prefix"; then
7618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7619 $as_echo_n "checking for file... " >&6; }
7620 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7621   $as_echo_n "(cached) " >&6
7622 else
7623   case $MAGIC_CMD in
7624 [\\/*] |  ?:[\\/]*)
7625   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7626   ;;
7627 *)
7628   lt_save_MAGIC_CMD="$MAGIC_CMD"
7629   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7630   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7631   for ac_dir in $ac_dummy; do
7632     IFS="$lt_save_ifs"
7633     test -z "$ac_dir" && ac_dir=.
7634     if test -f $ac_dir/file; then
7635       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7636       if test -n "$file_magic_test_file"; then
7637         case $deplibs_check_method in
7638         "file_magic "*)
7639           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7640           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7641           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7642             $EGREP "$file_magic_regex" > /dev/null; then
7643             :
7644           else
7645             cat <<_LT_EOF 1>&2
7646
7647 *** Warning: the command libtool uses to detect shared libraries,
7648 *** $file_magic_cmd, produces output that libtool cannot recognize.
7649 *** The result is that libtool may fail to recognize shared libraries
7650 *** as such.  This will affect the creation of libtool libraries that
7651 *** depend on shared libraries, but programs linked with such libtool
7652 *** libraries will work regardless of this problem.  Nevertheless, you
7653 *** may want to report the problem to your system manager and/or to
7654 *** bug-libtool@gnu.org
7655
7656 _LT_EOF
7657           fi ;;
7658         esac
7659       fi
7660       break
7661     fi
7662   done
7663   IFS="$lt_save_ifs"
7664   MAGIC_CMD="$lt_save_MAGIC_CMD"
7665   ;;
7666 esac
7667 fi
7668
7669 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7670 if test -n "$MAGIC_CMD"; then
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7672 $as_echo "$MAGIC_CMD" >&6; }
7673 else
7674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7676 fi
7677
7678
7679   else
7680     MAGIC_CMD=:
7681   fi
7682 fi
7683
7684   fi
7685   ;;
7686 esac
7687
7688 # Use C for the default configuration in the libtool script
7689
7690 lt_save_CC="$CC"
7691 ac_ext=c
7692 ac_cpp='$CPP $CPPFLAGS'
7693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7696
7697
7698 # Source file extension for C test sources.
7699 ac_ext=c
7700
7701 # Object file extension for compiled C test sources.
7702 objext=o
7703 objext=$objext
7704
7705 # Code to be used in simple compile tests
7706 lt_simple_compile_test_code="int some_variable = 0;"
7707
7708 # Code to be used in simple link tests
7709 lt_simple_link_test_code='int main(){return(0);}'
7710
7711
7712
7713
7714
7715
7716
7717 # If no C compiler was specified, use CC.
7718 LTCC=${LTCC-"$CC"}
7719
7720 # If no C compiler flags were specified, use CFLAGS.
7721 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7722
7723 # Allow CC to be a program name with arguments.
7724 compiler=$CC
7725
7726 # Save the default compiler, since it gets overwritten when the other
7727 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7728 compiler_DEFAULT=$CC
7729
7730 # save warnings/boilerplate of simple test code
7731 ac_outfile=conftest.$ac_objext
7732 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7733 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7734 _lt_compiler_boilerplate=`cat conftest.err`
7735 $RM conftest*
7736
7737 ac_outfile=conftest.$ac_objext
7738 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7739 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7740 _lt_linker_boilerplate=`cat conftest.err`
7741 $RM -r conftest*
7742
7743
7744 ## CAVEAT EMPTOR:
7745 ## There is no encapsulation within the following macros, do not change
7746 ## the running order or otherwise move them around unless you know exactly
7747 ## what you are doing...
7748 if test -n "$compiler"; then
7749
7750 lt_prog_compiler_no_builtin_flag=
7751
7752 if test "$GCC" = yes; then
7753   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7754
7755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7756 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7757 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7758   $as_echo_n "(cached) " >&6
7759 else
7760   lt_cv_prog_compiler_rtti_exceptions=no
7761    ac_outfile=conftest.$ac_objext
7762    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7763    lt_compiler_flag="-fno-rtti -fno-exceptions"
7764    # Insert the option either (1) after the last *FLAGS variable, or
7765    # (2) before a word containing "conftest.", or (3) at the end.
7766    # Note that $ac_compile itself does not contain backslashes and begins
7767    # with a dollar sign (not a hyphen), so the echo should work correctly.
7768    # The option is referenced via a variable to avoid confusing sed.
7769    lt_compile=`echo "$ac_compile" | $SED \
7770    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7771    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7772    -e 's:$: $lt_compiler_flag:'`
7773    (eval echo "\"\$as_me:7773: $lt_compile\"" >&5)
7774    (eval "$lt_compile" 2>conftest.err)
7775    ac_status=$?
7776    cat conftest.err >&5
7777    echo "$as_me:7777: \$? = $ac_status" >&5
7778    if (exit $ac_status) && test -s "$ac_outfile"; then
7779      # The compiler can only warn and ignore the option if not recognized
7780      # So say no if there are warnings other than the usual output.
7781      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7782      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7783      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7784        lt_cv_prog_compiler_rtti_exceptions=yes
7785      fi
7786    fi
7787    $RM conftest*
7788
7789 fi
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7791 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7792
7793 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7794     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7795 else
7796     :
7797 fi
7798
7799 fi
7800
7801
7802
7803
7804
7805
7806   lt_prog_compiler_wl=
7807 lt_prog_compiler_pic=
7808 lt_prog_compiler_static=
7809
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7811 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7812
7813   if test "$GCC" = yes; then
7814     lt_prog_compiler_wl='-Wl,'
7815     lt_prog_compiler_static='-static'
7816
7817     case $host_os in
7818       aix*)
7819       # All AIX code is PIC.
7820       if test "$host_cpu" = ia64; then
7821         # AIX 5 now supports IA64 processor
7822         lt_prog_compiler_static='-Bstatic'
7823       fi
7824       ;;
7825
7826     amigaos*)
7827       case $host_cpu in
7828       powerpc)
7829             # see comment about AmigaOS4 .so support
7830             lt_prog_compiler_pic='-fPIC'
7831         ;;
7832       m68k)
7833             # FIXME: we need at least 68020 code to build shared libraries, but
7834             # adding the `-m68020' flag to GCC prevents building anything better,
7835             # like `-m68040'.
7836             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7837         ;;
7838       esac
7839       ;;
7840
7841     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7842       # PIC is the default for these OSes.
7843       ;;
7844
7845     mingw* | cygwin* | pw32* | os2* | cegcc*)
7846       # This hack is so that the source file can tell whether it is being
7847       # built for inclusion in a dll (and should export symbols for example).
7848       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7849       # (--disable-auto-import) libraries
7850       lt_prog_compiler_pic='-DDLL_EXPORT'
7851       ;;
7852
7853     darwin* | rhapsody*)
7854       # PIC is the default on this platform
7855       # Common symbols not allowed in MH_DYLIB files
7856       lt_prog_compiler_pic='-fno-common'
7857       ;;
7858
7859     hpux*)
7860       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7861       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7862       # sets the default TLS model and affects inlining.
7863       case $host_cpu in
7864       hppa*64*)
7865         # +Z the default
7866         ;;
7867       *)
7868         lt_prog_compiler_pic='-fPIC'
7869         ;;
7870       esac
7871       ;;
7872
7873     interix[3-9]*)
7874       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7875       # Instead, we relocate shared libraries at runtime.
7876       ;;
7877
7878     msdosdjgpp*)
7879       # Just because we use GCC doesn't mean we suddenly get shared libraries
7880       # on systems that don't support them.
7881       lt_prog_compiler_can_build_shared=no
7882       enable_shared=no
7883       ;;
7884
7885     *nto* | *qnx*)
7886       # QNX uses GNU C++, but need to define -shared option too, otherwise
7887       # it will coredump.
7888       lt_prog_compiler_pic='-fPIC -shared'
7889       ;;
7890
7891     sysv4*MP*)
7892       if test -d /usr/nec; then
7893         lt_prog_compiler_pic=-Kconform_pic
7894       fi
7895       ;;
7896
7897     *)
7898       lt_prog_compiler_pic='-fPIC'
7899       ;;
7900     esac
7901   else
7902     # PORTME Check for flag to pass linker flags through the system compiler.
7903     case $host_os in
7904     aix*)
7905       lt_prog_compiler_wl='-Wl,'
7906       if test "$host_cpu" = ia64; then
7907         # AIX 5 now supports IA64 processor
7908         lt_prog_compiler_static='-Bstatic'
7909       else
7910         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7911       fi
7912       ;;
7913
7914     mingw* | cygwin* | pw32* | os2* | cegcc*)
7915       # This hack is so that the source file can tell whether it is being
7916       # built for inclusion in a dll (and should export symbols for example).
7917       lt_prog_compiler_pic='-DDLL_EXPORT'
7918       ;;
7919
7920     hpux9* | hpux10* | hpux11*)
7921       lt_prog_compiler_wl='-Wl,'
7922       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7923       # not for PA HP-UX.
7924       case $host_cpu in
7925       hppa*64*|ia64*)
7926         # +Z the default
7927         ;;
7928       *)
7929         lt_prog_compiler_pic='+Z'
7930         ;;
7931       esac
7932       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7933       lt_prog_compiler_static='${wl}-a ${wl}archive'
7934       ;;
7935
7936     irix5* | irix6* | nonstopux*)
7937       lt_prog_compiler_wl='-Wl,'
7938       # PIC (with -KPIC) is the default.
7939       lt_prog_compiler_static='-non_shared'
7940       ;;
7941
7942     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7943       case $cc_basename in
7944       # old Intel for x86_64 which still supported -KPIC.
7945       ecc*)
7946         lt_prog_compiler_wl='-Wl,'
7947         lt_prog_compiler_pic='-KPIC'
7948         lt_prog_compiler_static='-static'
7949         ;;
7950       # icc used to be incompatible with GCC.
7951       # ICC 10 doesn't accept -KPIC any more.
7952       icc* | ifort*)
7953         lt_prog_compiler_wl='-Wl,'
7954         lt_prog_compiler_pic='-fPIC'
7955         lt_prog_compiler_static='-static'
7956         ;;
7957       # Lahey Fortran 8.1.
7958       lf95*)
7959         lt_prog_compiler_wl='-Wl,'
7960         lt_prog_compiler_pic='--shared'
7961         lt_prog_compiler_static='--static'
7962         ;;
7963       pgcc* | pgf77* | pgf90* | pgf95*)
7964         # Portland Group compilers (*not* the Pentium gcc compiler,
7965         # which looks to be a dead project)
7966         lt_prog_compiler_wl='-Wl,'
7967         lt_prog_compiler_pic='-fpic'
7968         lt_prog_compiler_static='-Bstatic'
7969         ;;
7970       ccc*)
7971         lt_prog_compiler_wl='-Wl,'
7972         # All Alpha code is PIC.
7973         lt_prog_compiler_static='-non_shared'
7974         ;;
7975       xl*)
7976         # IBM XL C 8.0/Fortran 10.1 on PPC
7977         lt_prog_compiler_wl='-Wl,'
7978         lt_prog_compiler_pic='-qpic'
7979         lt_prog_compiler_static='-qstaticlink'
7980         ;;
7981       *)
7982         case `$CC -V 2>&1 | sed 5q` in
7983         *Sun\ C*)
7984           # Sun C 5.9
7985           lt_prog_compiler_pic='-KPIC'
7986           lt_prog_compiler_static='-Bstatic'
7987           lt_prog_compiler_wl='-Wl,'
7988           ;;
7989         *Sun\ F*)
7990           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7991           lt_prog_compiler_pic='-KPIC'
7992           lt_prog_compiler_static='-Bstatic'
7993           lt_prog_compiler_wl=''
7994           ;;
7995         esac
7996         ;;
7997       esac
7998       ;;
7999
8000     newsos6)
8001       lt_prog_compiler_pic='-KPIC'
8002       lt_prog_compiler_static='-Bstatic'
8003       ;;
8004
8005     *nto* | *qnx*)
8006       # QNX uses GNU C++, but need to define -shared option too, otherwise
8007       # it will coredump.
8008       lt_prog_compiler_pic='-fPIC -shared'
8009       ;;
8010
8011     osf3* | osf4* | osf5*)
8012       lt_prog_compiler_wl='-Wl,'
8013       # All OSF/1 code is PIC.
8014       lt_prog_compiler_static='-non_shared'
8015       ;;
8016
8017     rdos*)
8018       lt_prog_compiler_static='-non_shared'
8019       ;;
8020
8021     solaris*)
8022       lt_prog_compiler_pic='-KPIC'
8023       lt_prog_compiler_static='-Bstatic'
8024       case $cc_basename in
8025       f77* | f90* | f95*)
8026         lt_prog_compiler_wl='-Qoption ld ';;
8027       *)
8028         lt_prog_compiler_wl='-Wl,';;
8029       esac
8030       ;;
8031
8032     sunos4*)
8033       lt_prog_compiler_wl='-Qoption ld '
8034       lt_prog_compiler_pic='-PIC'
8035       lt_prog_compiler_static='-Bstatic'
8036       ;;
8037
8038     sysv4 | sysv4.2uw2* | sysv4.3*)
8039       lt_prog_compiler_wl='-Wl,'
8040       lt_prog_compiler_pic='-KPIC'
8041       lt_prog_compiler_static='-Bstatic'
8042       ;;
8043
8044     sysv4*MP*)
8045       if test -d /usr/nec ;then
8046         lt_prog_compiler_pic='-Kconform_pic'
8047         lt_prog_compiler_static='-Bstatic'
8048       fi
8049       ;;
8050
8051     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8052       lt_prog_compiler_wl='-Wl,'
8053       lt_prog_compiler_pic='-KPIC'
8054       lt_prog_compiler_static='-Bstatic'
8055       ;;
8056
8057     unicos*)
8058       lt_prog_compiler_wl='-Wl,'
8059       lt_prog_compiler_can_build_shared=no
8060       ;;
8061
8062     uts4*)
8063       lt_prog_compiler_pic='-pic'
8064       lt_prog_compiler_static='-Bstatic'
8065       ;;
8066
8067     *)
8068       lt_prog_compiler_can_build_shared=no
8069       ;;
8070     esac
8071   fi
8072
8073 case $host_os in
8074   # For platforms which do not support PIC, -DPIC is meaningless:
8075   *djgpp*)
8076     lt_prog_compiler_pic=
8077     ;;
8078   *)
8079     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8080     ;;
8081 esac
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8083 $as_echo "$lt_prog_compiler_pic" >&6; }
8084
8085
8086
8087
8088
8089
8090 #
8091 # Check to make sure the PIC flag actually works.
8092 #
8093 if test -n "$lt_prog_compiler_pic"; then
8094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8095 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8096 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8097   $as_echo_n "(cached) " >&6
8098 else
8099   lt_cv_prog_compiler_pic_works=no
8100    ac_outfile=conftest.$ac_objext
8101    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8102    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8103    # Insert the option either (1) after the last *FLAGS variable, or
8104    # (2) before a word containing "conftest.", or (3) at the end.
8105    # Note that $ac_compile itself does not contain backslashes and begins
8106    # with a dollar sign (not a hyphen), so the echo should work correctly.
8107    # The option is referenced via a variable to avoid confusing sed.
8108    lt_compile=`echo "$ac_compile" | $SED \
8109    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8110    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8111    -e 's:$: $lt_compiler_flag:'`
8112    (eval echo "\"\$as_me:8112: $lt_compile\"" >&5)
8113    (eval "$lt_compile" 2>conftest.err)
8114    ac_status=$?
8115    cat conftest.err >&5
8116    echo "$as_me:8116: \$? = $ac_status" >&5
8117    if (exit $ac_status) && test -s "$ac_outfile"; then
8118      # The compiler can only warn and ignore the option if not recognized
8119      # So say no if there are warnings other than the usual output.
8120      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8121      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8122      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8123        lt_cv_prog_compiler_pic_works=yes
8124      fi
8125    fi
8126    $RM conftest*
8127
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8130 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8131
8132 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8133     case $lt_prog_compiler_pic in
8134      "" | " "*) ;;
8135      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8136      esac
8137 else
8138     lt_prog_compiler_pic=
8139      lt_prog_compiler_can_build_shared=no
8140 fi
8141
8142 fi
8143
8144
8145
8146
8147
8148
8149 #
8150 # Check to make sure the static flag actually works.
8151 #
8152 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8154 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8155 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8156   $as_echo_n "(cached) " >&6
8157 else
8158   lt_cv_prog_compiler_static_works=no
8159    save_LDFLAGS="$LDFLAGS"
8160    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8161    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8162    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8163      # The linker can only warn and ignore the option if not recognized
8164      # So say no if there are warnings
8165      if test -s conftest.err; then
8166        # Append any errors to the config.log.
8167        cat conftest.err 1>&5
8168        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8169        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8170        if diff conftest.exp conftest.er2 >/dev/null; then
8171          lt_cv_prog_compiler_static_works=yes
8172        fi
8173      else
8174        lt_cv_prog_compiler_static_works=yes
8175      fi
8176    fi
8177    $RM -r conftest*
8178    LDFLAGS="$save_LDFLAGS"
8179
8180 fi
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8182 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8183
8184 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8185     :
8186 else
8187     lt_prog_compiler_static=
8188 fi
8189
8190
8191
8192
8193
8194
8195
8196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8197 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8198 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8199   $as_echo_n "(cached) " >&6
8200 else
8201   lt_cv_prog_compiler_c_o=no
8202    $RM -r conftest 2>/dev/null
8203    mkdir conftest
8204    cd conftest
8205    mkdir out
8206    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8207
8208    lt_compiler_flag="-o out/conftest2.$ac_objext"
8209    # Insert the option either (1) after the last *FLAGS variable, or
8210    # (2) before a word containing "conftest.", or (3) at the end.
8211    # Note that $ac_compile itself does not contain backslashes and begins
8212    # with a dollar sign (not a hyphen), so the echo should work correctly.
8213    lt_compile=`echo "$ac_compile" | $SED \
8214    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8215    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8216    -e 's:$: $lt_compiler_flag:'`
8217    (eval echo "\"\$as_me:8217: $lt_compile\"" >&5)
8218    (eval "$lt_compile" 2>out/conftest.err)
8219    ac_status=$?
8220    cat out/conftest.err >&5
8221    echo "$as_me:8221: \$? = $ac_status" >&5
8222    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8223    then
8224      # The compiler can only warn and ignore the option if not recognized
8225      # So say no if there are warnings
8226      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8227      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8228      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8229        lt_cv_prog_compiler_c_o=yes
8230      fi
8231    fi
8232    chmod u+w . 2>&5
8233    $RM conftest*
8234    # SGI C++ compiler will create directory out/ii_files/ for
8235    # template instantiation
8236    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8237    $RM out/* && rmdir out
8238    cd ..
8239    $RM -r conftest
8240    $RM conftest*
8241
8242 fi
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8244 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8245
8246
8247
8248
8249
8250
8251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8252 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8253 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8254   $as_echo_n "(cached) " >&6
8255 else
8256   lt_cv_prog_compiler_c_o=no
8257    $RM -r conftest 2>/dev/null
8258    mkdir conftest
8259    cd conftest
8260    mkdir out
8261    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8262
8263    lt_compiler_flag="-o out/conftest2.$ac_objext"
8264    # Insert the option either (1) after the last *FLAGS variable, or
8265    # (2) before a word containing "conftest.", or (3) at the end.
8266    # Note that $ac_compile itself does not contain backslashes and begins
8267    # with a dollar sign (not a hyphen), so the echo should work correctly.
8268    lt_compile=`echo "$ac_compile" | $SED \
8269    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8270    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8271    -e 's:$: $lt_compiler_flag:'`
8272    (eval echo "\"\$as_me:8272: $lt_compile\"" >&5)
8273    (eval "$lt_compile" 2>out/conftest.err)
8274    ac_status=$?
8275    cat out/conftest.err >&5
8276    echo "$as_me:8276: \$? = $ac_status" >&5
8277    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8278    then
8279      # The compiler can only warn and ignore the option if not recognized
8280      # So say no if there are warnings
8281      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8282      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8283      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8284        lt_cv_prog_compiler_c_o=yes
8285      fi
8286    fi
8287    chmod u+w . 2>&5
8288    $RM conftest*
8289    # SGI C++ compiler will create directory out/ii_files/ for
8290    # template instantiation
8291    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8292    $RM out/* && rmdir out
8293    cd ..
8294    $RM -r conftest
8295    $RM conftest*
8296
8297 fi
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8299 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8300
8301
8302
8303
8304 hard_links="nottested"
8305 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8306   # do not overwrite the value of need_locks provided by the user
8307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8308 $as_echo_n "checking if we can lock with hard links... " >&6; }
8309   hard_links=yes
8310   $RM conftest*
8311   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8312   touch conftest.a
8313   ln conftest.a conftest.b 2>&5 || hard_links=no
8314   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8316 $as_echo "$hard_links" >&6; }
8317   if test "$hard_links" = no; then
8318     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8319 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8320     need_locks=warn
8321   fi
8322 else
8323   need_locks=no
8324 fi
8325
8326
8327
8328
8329
8330
8331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8332 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8333
8334   runpath_var=
8335   allow_undefined_flag=
8336   always_export_symbols=no
8337   archive_cmds=
8338   archive_expsym_cmds=
8339   compiler_needs_object=no
8340   enable_shared_with_static_runtimes=no
8341   export_dynamic_flag_spec=
8342   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8343   hardcode_automatic=no
8344   hardcode_direct=no
8345   hardcode_direct_absolute=no
8346   hardcode_libdir_flag_spec=
8347   hardcode_libdir_flag_spec_ld=
8348   hardcode_libdir_separator=
8349   hardcode_minus_L=no
8350   hardcode_shlibpath_var=unsupported
8351   inherit_rpath=no
8352   link_all_deplibs=unknown
8353   module_cmds=
8354   module_expsym_cmds=
8355   old_archive_from_new_cmds=
8356   old_archive_from_expsyms_cmds=
8357   thread_safe_flag_spec=
8358   whole_archive_flag_spec=
8359   # include_expsyms should be a list of space-separated symbols to be *always*
8360   # included in the symbol list
8361   include_expsyms=
8362   # exclude_expsyms can be an extended regexp of symbols to exclude
8363   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8364   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8365   # as well as any symbol that contains `d'.
8366   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8367   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8368   # platforms (ab)use it in PIC code, but their linkers get confused if
8369   # the symbol is explicitly referenced.  Since portable code cannot
8370   # rely on this symbol name, it's probably fine to never include it in
8371   # preloaded symbol tables.
8372   # Exclude shared library initialization/finalization symbols.
8373   extract_expsyms_cmds=
8374
8375   case $host_os in
8376   cygwin* | mingw* | pw32* | cegcc*)
8377     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8378     # When not using gcc, we currently assume that we are using
8379     # Microsoft Visual C++.
8380     if test "$GCC" != yes; then
8381       with_gnu_ld=no
8382     fi
8383     ;;
8384   interix*)
8385     # we just hope/assume this is gcc and not c89 (= MSVC++)
8386     with_gnu_ld=yes
8387     ;;
8388   openbsd*)
8389     with_gnu_ld=no
8390     ;;
8391   linux* | k*bsd*-gnu)
8392     link_all_deplibs=no
8393     ;;
8394   esac
8395
8396   ld_shlibs=yes
8397   if test "$with_gnu_ld" = yes; then
8398     # If archive_cmds runs LD, not CC, wlarc should be empty
8399     wlarc='${wl}'
8400
8401     # Set some defaults for GNU ld with shared library support. These
8402     # are reset later if shared libraries are not supported. Putting them
8403     # here allows them to be overridden if necessary.
8404     runpath_var=LD_RUN_PATH
8405     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8406     export_dynamic_flag_spec='${wl}--export-dynamic'
8407     # ancient GNU ld didn't support --whole-archive et. al.
8408     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8409       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8410     else
8411       whole_archive_flag_spec=
8412     fi
8413     supports_anon_versioning=no
8414     case `$LD -v 2>&1` in
8415       *GNU\ gold*) supports_anon_versioning=yes ;;
8416       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8417       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8418       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8419       *\ 2.11.*) ;; # other 2.11 versions
8420       *) supports_anon_versioning=yes ;;
8421     esac
8422
8423     # See if GNU ld supports shared libraries.
8424     case $host_os in
8425     aix[3-9]*)
8426       # On AIX/PPC, the GNU linker is very broken
8427       if test "$host_cpu" != ia64; then
8428         ld_shlibs=no
8429         cat <<_LT_EOF 1>&2
8430
8431 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8432 *** to be unable to reliably create shared libraries on AIX.
8433 *** Therefore, libtool is disabling shared libraries support.  If you
8434 *** really care for shared libraries, you may want to modify your PATH
8435 *** so that a non-GNU linker is found, and then restart.
8436
8437 _LT_EOF
8438       fi
8439       ;;
8440
8441     amigaos*)
8442       case $host_cpu in
8443       powerpc)
8444             # see comment about AmigaOS4 .so support
8445             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8446             archive_expsym_cmds=''
8447         ;;
8448       m68k)
8449             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)'
8450             hardcode_libdir_flag_spec='-L$libdir'
8451             hardcode_minus_L=yes
8452         ;;
8453       esac
8454       ;;
8455
8456     beos*)
8457       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8458         allow_undefined_flag=unsupported
8459         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8460         # support --undefined.  This deserves some investigation.  FIXME
8461         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8462       else
8463         ld_shlibs=no
8464       fi
8465       ;;
8466
8467     cygwin* | mingw* | pw32* | cegcc*)
8468       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8469       # as there is no search path for DLLs.
8470       hardcode_libdir_flag_spec='-L$libdir'
8471       allow_undefined_flag=unsupported
8472       always_export_symbols=no
8473       enable_shared_with_static_runtimes=yes
8474       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8475
8476       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8477         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8478         # If the export-symbols file already is a .def file (1st line
8479         # is EXPORTS), use it as is; otherwise, prepend...
8480         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8481           cp $export_symbols $output_objdir/$soname.def;
8482         else
8483           echo EXPORTS > $output_objdir/$soname.def;
8484           cat $export_symbols >> $output_objdir/$soname.def;
8485         fi~
8486         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8487       else
8488         ld_shlibs=no
8489       fi
8490       ;;
8491
8492     interix[3-9]*)
8493       hardcode_direct=no
8494       hardcode_shlibpath_var=no
8495       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8496       export_dynamic_flag_spec='${wl}-E'
8497       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8498       # Instead, shared libraries are loaded at an image base (0x10000000 by
8499       # default) and relocated if they conflict, which is a slow very memory
8500       # consuming and fragmenting process.  To avoid this, we pick a random,
8501       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8502       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8503       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8504       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'
8505       ;;
8506
8507     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8508       tmp_diet=no
8509       if test "$host_os" = linux-dietlibc; then
8510         case $cc_basename in
8511           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8512         esac
8513       fi
8514       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8515          && test "$tmp_diet" = no
8516       then
8517         tmp_addflag=
8518         tmp_sharedflag='-shared'
8519         case $cc_basename,$host_cpu in
8520         pgcc*)                          # Portland Group C compiler
8521           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'
8522           tmp_addflag=' $pic_flag'
8523           ;;
8524         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8525           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'
8526           tmp_addflag=' $pic_flag -Mnomain' ;;
8527         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8528           tmp_addflag=' -i_dynamic' ;;
8529         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8530           tmp_addflag=' -i_dynamic -nofor_main' ;;
8531         ifc* | ifort*)                  # Intel Fortran compiler
8532           tmp_addflag=' -nofor_main' ;;
8533         lf95*)                          # Lahey Fortran 8.1
8534           whole_archive_flag_spec=
8535           tmp_sharedflag='--shared' ;;
8536         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8537           tmp_sharedflag='-qmkshrobj'
8538           tmp_addflag= ;;
8539         esac
8540         case `$CC -V 2>&1 | sed 5q` in
8541         *Sun\ C*)                       # Sun C 5.9
8542           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'
8543           compiler_needs_object=yes
8544           tmp_sharedflag='-G' ;;
8545         *Sun\ F*)                       # Sun Fortran 8.3
8546           tmp_sharedflag='-G' ;;
8547         esac
8548         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549
8550         if test "x$supports_anon_versioning" = xyes; then
8551           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8552             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8553             echo "local: *; };" >> $output_objdir/$libname.ver~
8554             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8555         fi
8556
8557         case $cc_basename in
8558         xlf*)
8559           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8560           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8561           hardcode_libdir_flag_spec=
8562           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8563           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8564           if test "x$supports_anon_versioning" = xyes; then
8565             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8566               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8567               echo "local: *; };" >> $output_objdir/$libname.ver~
8568               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8569           fi
8570           ;;
8571         esac
8572       else
8573         ld_shlibs=no
8574       fi
8575       ;;
8576
8577     netbsd* | netbsdelf*-gnu)
8578       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8579         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8580         wlarc=
8581       else
8582         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8584       fi
8585       ;;
8586
8587     solaris*)
8588       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8589         ld_shlibs=no
8590         cat <<_LT_EOF 1>&2
8591
8592 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8593 *** create shared libraries on Solaris systems.  Therefore, libtool
8594 *** is disabling shared libraries support.  We urge you to upgrade GNU
8595 *** binutils to release 2.9.1 or newer.  Another option is to modify
8596 *** your PATH or compiler configuration so that the native linker is
8597 *** used, and then restart.
8598
8599 _LT_EOF
8600       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8601         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8602         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8603       else
8604         ld_shlibs=no
8605       fi
8606       ;;
8607
8608     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8609       case `$LD -v 2>&1` in
8610         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8611         ld_shlibs=no
8612         cat <<_LT_EOF 1>&2
8613
8614 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8615 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8616 *** is disabling shared libraries support.  We urge you to upgrade GNU
8617 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8618 *** your PATH or compiler configuration so that the native linker is
8619 *** used, and then restart.
8620
8621 _LT_EOF
8622         ;;
8623         *)
8624           # For security reasons, it is highly recommended that you always
8625           # use absolute paths for naming shared libraries, and exclude the
8626           # DT_RUNPATH tag from executables and libraries.  But doing so
8627           # requires that you compile everything twice, which is a pain.
8628           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8629             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8630             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8631             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8632           else
8633             ld_shlibs=no
8634           fi
8635         ;;
8636       esac
8637       ;;
8638
8639     sunos4*)
8640       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8641       wlarc=
8642       hardcode_direct=yes
8643       hardcode_shlibpath_var=no
8644       ;;
8645
8646     *)
8647       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8648         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8649         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8650       else
8651         ld_shlibs=no
8652       fi
8653       ;;
8654     esac
8655
8656     if test "$ld_shlibs" = no; then
8657       runpath_var=
8658       hardcode_libdir_flag_spec=
8659       export_dynamic_flag_spec=
8660       whole_archive_flag_spec=
8661     fi
8662   else
8663     # PORTME fill in a description of your system's linker (not GNU ld)
8664     case $host_os in
8665     aix3*)
8666       allow_undefined_flag=unsupported
8667       always_export_symbols=yes
8668       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'
8669       # Note: this linker hardcodes the directories in LIBPATH if there
8670       # are no directories specified by -L.
8671       hardcode_minus_L=yes
8672       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8673         # Neither direct hardcoding nor static linking is supported with a
8674         # broken collect2.
8675         hardcode_direct=unsupported
8676       fi
8677       ;;
8678
8679     aix[4-9]*)
8680       if test "$host_cpu" = ia64; then
8681         # On IA64, the linker does run time linking by default, so we don't
8682         # have to do anything special.
8683         aix_use_runtimelinking=no
8684         exp_sym_flag='-Bexport'
8685         no_entry_flag=""
8686       else
8687         # If we're using GNU nm, then we don't want the "-C" option.
8688         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8689         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8690           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'
8691         else
8692           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'
8693         fi
8694         aix_use_runtimelinking=no
8695
8696         # Test if we are trying to use run time linking or normal
8697         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8698         # need to do runtime linking.
8699         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8700           for ld_flag in $LDFLAGS; do
8701           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8702             aix_use_runtimelinking=yes
8703             break
8704           fi
8705           done
8706           ;;
8707         esac
8708
8709         exp_sym_flag='-bexport'
8710         no_entry_flag='-bnoentry'
8711       fi
8712
8713       # When large executables or shared objects are built, AIX ld can
8714       # have problems creating the table of contents.  If linking a library
8715       # or program results in "error TOC overflow" add -mminimal-toc to
8716       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8717       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8718
8719       archive_cmds=''
8720       hardcode_direct=yes
8721       hardcode_direct_absolute=yes
8722       hardcode_libdir_separator=':'
8723       link_all_deplibs=yes
8724       file_list_spec='${wl}-f,'
8725
8726       if test "$GCC" = yes; then
8727         case $host_os in aix4.[012]|aix4.[012].*)
8728         # We only want to do this on AIX 4.2 and lower, the check
8729         # below for broken collect2 doesn't work under 4.3+
8730           collect2name=`${CC} -print-prog-name=collect2`
8731           if test -f "$collect2name" &&
8732            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8733           then
8734           # We have reworked collect2
8735           :
8736           else
8737           # We have old collect2
8738           hardcode_direct=unsupported
8739           # It fails to find uninstalled libraries when the uninstalled
8740           # path is not listed in the libpath.  Setting hardcode_minus_L
8741           # to unsupported forces relinking
8742           hardcode_minus_L=yes
8743           hardcode_libdir_flag_spec='-L$libdir'
8744           hardcode_libdir_separator=
8745           fi
8746           ;;
8747         esac
8748         shared_flag='-shared'
8749         if test "$aix_use_runtimelinking" = yes; then
8750           shared_flag="$shared_flag "'${wl}-G'
8751         fi
8752         link_all_deplibs=no
8753       else
8754         # not using gcc
8755         if test "$host_cpu" = ia64; then
8756         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8757         # chokes on -Wl,-G. The following line is correct:
8758           shared_flag='-G'
8759         else
8760           if test "$aix_use_runtimelinking" = yes; then
8761             shared_flag='${wl}-G'
8762           else
8763             shared_flag='${wl}-bM:SRE'
8764           fi
8765         fi
8766       fi
8767
8768       export_dynamic_flag_spec='${wl}-bexpall'
8769       # It seems that -bexpall does not export symbols beginning with
8770       # underscore (_), so it is better to generate a list of symbols to export.
8771       always_export_symbols=yes
8772       if test "$aix_use_runtimelinking" = yes; then
8773         # Warning - without using the other runtime loading flags (-brtl),
8774         # -berok will link without error, but may produce a broken library.
8775         allow_undefined_flag='-berok'
8776         # Determine the default libpath from the value encoded in an
8777         # empty executable.
8778         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8779 /* end confdefs.h.  */
8780
8781 int
8782 main ()
8783 {
8784
8785   ;
8786   return 0;
8787 }
8788 _ACEOF
8789 if ac_fn_c_try_link "$LINENO"; then :
8790
8791 lt_aix_libpath_sed='
8792     /Import File Strings/,/^$/ {
8793         /^0/ {
8794             s/^0  *\(.*\)$/\1/
8795             p
8796         }
8797     }'
8798 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8799 # Check for a 64-bit object if we didn't find anything.
8800 if test -z "$aix_libpath"; then
8801   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8802 fi
8803 fi
8804 rm -f core conftest.err conftest.$ac_objext \
8805     conftest$ac_exeext conftest.$ac_ext
8806 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8807
8808         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8809         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"
8810       else
8811         if test "$host_cpu" = ia64; then
8812           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8813           allow_undefined_flag="-z nodefs"
8814           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"
8815         else
8816          # Determine the default libpath from the value encoded in an
8817          # empty executable.
8818          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h.  */
8820
8821 int
8822 main ()
8823 {
8824
8825   ;
8826   return 0;
8827 }
8828 _ACEOF
8829 if ac_fn_c_try_link "$LINENO"; then :
8830
8831 lt_aix_libpath_sed='
8832     /Import File Strings/,/^$/ {
8833         /^0/ {
8834             s/^0  *\(.*\)$/\1/
8835             p
8836         }
8837     }'
8838 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8839 # Check for a 64-bit object if we didn't find anything.
8840 if test -z "$aix_libpath"; then
8841   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8842 fi
8843 fi
8844 rm -f core conftest.err conftest.$ac_objext \
8845     conftest$ac_exeext conftest.$ac_ext
8846 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8847
8848          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8849           # Warning - without using the other run time loading flags,
8850           # -berok will link without error, but may produce a broken library.
8851           no_undefined_flag=' ${wl}-bernotok'
8852           allow_undefined_flag=' ${wl}-berok'
8853           # Exported symbols can be pulled into shared objects from archives
8854           whole_archive_flag_spec='$convenience'
8855           archive_cmds_need_lc=yes
8856           # This is similar to how AIX traditionally builds its shared libraries.
8857           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'
8858         fi
8859       fi
8860       ;;
8861
8862     amigaos*)
8863       case $host_cpu in
8864       powerpc)
8865             # see comment about AmigaOS4 .so support
8866             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867             archive_expsym_cmds=''
8868         ;;
8869       m68k)
8870             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)'
8871             hardcode_libdir_flag_spec='-L$libdir'
8872             hardcode_minus_L=yes
8873         ;;
8874       esac
8875       ;;
8876
8877     bsdi[45]*)
8878       export_dynamic_flag_spec=-rdynamic
8879       ;;
8880
8881     cygwin* | mingw* | pw32* | cegcc*)
8882       # When not using gcc, we currently assume that we are using
8883       # Microsoft Visual C++.
8884       # hardcode_libdir_flag_spec is actually meaningless, as there is
8885       # no search path for DLLs.
8886       hardcode_libdir_flag_spec=' '
8887       allow_undefined_flag=unsupported
8888       # Tell ltmain to make .lib files, not .a files.
8889       libext=lib
8890       # Tell ltmain to make .dll files, not .so files.
8891       shrext_cmds=".dll"
8892       # FIXME: Setting linknames here is a bad hack.
8893       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8894       # The linker will automatically build a .lib file if we build a DLL.
8895       old_archive_from_new_cmds='true'
8896       # FIXME: Should let the user specify the lib program.
8897       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8898       fix_srcfile_path='`cygpath -w "$srcfile"`'
8899       enable_shared_with_static_runtimes=yes
8900       ;;
8901
8902     darwin* | rhapsody*)
8903
8904
8905   archive_cmds_need_lc=no
8906   hardcode_direct=no
8907   hardcode_automatic=yes
8908   hardcode_shlibpath_var=unsupported
8909   whole_archive_flag_spec=''
8910   link_all_deplibs=yes
8911   allow_undefined_flag="$_lt_dar_allow_undefined"
8912   case $cc_basename in
8913      ifort*) _lt_dar_can_shared=yes ;;
8914      *) _lt_dar_can_shared=$GCC ;;
8915   esac
8916   if test "$_lt_dar_can_shared" = "yes"; then
8917     output_verbose_link_cmd=echo
8918     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8919     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8920     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}"
8921     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}"
8922
8923   else
8924   ld_shlibs=no
8925   fi
8926
8927       ;;
8928
8929     dgux*)
8930       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931       hardcode_libdir_flag_spec='-L$libdir'
8932       hardcode_shlibpath_var=no
8933       ;;
8934
8935     freebsd1*)
8936       ld_shlibs=no
8937       ;;
8938
8939     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8940     # support.  Future versions do this automatically, but an explicit c++rt0.o
8941     # does not break anything, and helps significantly (at the cost of a little
8942     # extra space).
8943     freebsd2.2*)
8944       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8945       hardcode_libdir_flag_spec='-R$libdir'
8946       hardcode_direct=yes
8947       hardcode_shlibpath_var=no
8948       ;;
8949
8950     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8951     freebsd2*)
8952       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8953       hardcode_direct=yes
8954       hardcode_minus_L=yes
8955       hardcode_shlibpath_var=no
8956       ;;
8957
8958     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8959     freebsd* | dragonfly*)
8960       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8961       hardcode_libdir_flag_spec='-R$libdir'
8962       hardcode_direct=yes
8963       hardcode_shlibpath_var=no
8964       ;;
8965
8966     hpux9*)
8967       if test "$GCC" = yes; then
8968         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'
8969       else
8970         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'
8971       fi
8972       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8973       hardcode_libdir_separator=:
8974       hardcode_direct=yes
8975
8976       # hardcode_minus_L: Not really in the search PATH,
8977       # but as the default location of the library.
8978       hardcode_minus_L=yes
8979       export_dynamic_flag_spec='${wl}-E'
8980       ;;
8981
8982     hpux10*)
8983       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8984         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8985       else
8986         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8987       fi
8988       if test "$with_gnu_ld" = no; then
8989         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8990         hardcode_libdir_flag_spec_ld='+b $libdir'
8991         hardcode_libdir_separator=:
8992         hardcode_direct=yes
8993         hardcode_direct_absolute=yes
8994         export_dynamic_flag_spec='${wl}-E'
8995         # hardcode_minus_L: Not really in the search PATH,
8996         # but as the default location of the library.
8997         hardcode_minus_L=yes
8998       fi
8999       ;;
9000
9001     hpux11*)
9002       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9003         case $host_cpu in
9004         hppa*64*)
9005           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9006           ;;
9007         ia64*)
9008           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9009           ;;
9010         *)
9011           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9012           ;;
9013         esac
9014       else
9015         case $host_cpu in
9016         hppa*64*)
9017           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9018           ;;
9019         ia64*)
9020           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9021           ;;
9022         *)
9023           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9024           ;;
9025         esac
9026       fi
9027       if test "$with_gnu_ld" = no; then
9028         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9029         hardcode_libdir_separator=:
9030
9031         case $host_cpu in
9032         hppa*64*|ia64*)
9033           hardcode_direct=no
9034           hardcode_shlibpath_var=no
9035           ;;
9036         *)
9037           hardcode_direct=yes
9038           hardcode_direct_absolute=yes
9039           export_dynamic_flag_spec='${wl}-E'
9040
9041           # hardcode_minus_L: Not really in the search PATH,
9042           # but as the default location of the library.
9043           hardcode_minus_L=yes
9044           ;;
9045         esac
9046       fi
9047       ;;
9048
9049     irix5* | irix6* | nonstopux*)
9050       if test "$GCC" = yes; then
9051         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'
9052         # Try to use the -exported_symbol ld option, if it does not
9053         # work, assume that -exports_file does not work either and
9054         # implicitly export all symbols.
9055         save_LDFLAGS="$LDFLAGS"
9056         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9057         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h.  */
9059 int foo(void) {}
9060 _ACEOF
9061 if ac_fn_c_try_link "$LINENO"; then :
9062   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'
9063
9064 fi
9065 rm -f core conftest.err conftest.$ac_objext \
9066     conftest$ac_exeext conftest.$ac_ext
9067         LDFLAGS="$save_LDFLAGS"
9068       else
9069         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'
9070         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'
9071       fi
9072       archive_cmds_need_lc='no'
9073       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9074       hardcode_libdir_separator=:
9075       inherit_rpath=yes
9076       link_all_deplibs=yes
9077       ;;
9078
9079     netbsd* | netbsdelf*-gnu)
9080       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9081         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9082       else
9083         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9084       fi
9085       hardcode_libdir_flag_spec='-R$libdir'
9086       hardcode_direct=yes
9087       hardcode_shlibpath_var=no
9088       ;;
9089
9090     newsos6)
9091       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9092       hardcode_direct=yes
9093       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9094       hardcode_libdir_separator=:
9095       hardcode_shlibpath_var=no
9096       ;;
9097
9098     *nto* | *qnx*)
9099       ;;
9100
9101     openbsd*)
9102       if test -f /usr/libexec/ld.so; then
9103         hardcode_direct=yes
9104         hardcode_shlibpath_var=no
9105         hardcode_direct_absolute=yes
9106         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9107           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9108           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9109           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9110           export_dynamic_flag_spec='${wl}-E'
9111         else
9112           case $host_os in
9113            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9114              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9115              hardcode_libdir_flag_spec='-R$libdir'
9116              ;;
9117            *)
9118              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9119              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9120              ;;
9121           esac
9122         fi
9123       else
9124         ld_shlibs=no
9125       fi
9126       ;;
9127
9128     os2*)
9129       hardcode_libdir_flag_spec='-L$libdir'
9130       hardcode_minus_L=yes
9131       allow_undefined_flag=unsupported
9132       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'
9133       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9134       ;;
9135
9136     osf3*)
9137       if test "$GCC" = yes; then
9138         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9139         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'
9140       else
9141         allow_undefined_flag=' -expect_unresolved \*'
9142         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'
9143       fi
9144       archive_cmds_need_lc='no'
9145       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9146       hardcode_libdir_separator=:
9147       ;;
9148
9149     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9150       if test "$GCC" = yes; then
9151         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9152         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'
9153         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9154       else
9155         allow_undefined_flag=' -expect_unresolved \*'
9156         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'
9157         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~
9158         $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'
9159
9160         # Both c and cxx compiler support -rpath directly
9161         hardcode_libdir_flag_spec='-rpath $libdir'
9162       fi
9163       archive_cmds_need_lc='no'
9164       hardcode_libdir_separator=:
9165       ;;
9166
9167     solaris*)
9168       no_undefined_flag=' -z defs'
9169       if test "$GCC" = yes; then
9170         wlarc='${wl}'
9171         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9172         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9173           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9174       else
9175         case `$CC -V 2>&1` in
9176         *"Compilers 5.0"*)
9177           wlarc=''
9178           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9179           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9180           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9181           ;;
9182         *)
9183           wlarc='${wl}'
9184           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9185           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9186           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9187           ;;
9188         esac
9189       fi
9190       hardcode_libdir_flag_spec='-R$libdir'
9191       hardcode_shlibpath_var=no
9192       case $host_os in
9193       solaris2.[0-5] | solaris2.[0-5].*) ;;
9194       *)
9195         # The compiler driver will combine and reorder linker options,
9196         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9197         # but is careful enough not to reorder.
9198         # Supported since Solaris 2.6 (maybe 2.5.1?)
9199         if test "$GCC" = yes; then
9200           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9201         else
9202           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9203         fi
9204         ;;
9205       esac
9206       link_all_deplibs=yes
9207       ;;
9208
9209     sunos4*)
9210       if test "x$host_vendor" = xsequent; then
9211         # Use $CC to link under sequent, because it throws in some extra .o
9212         # files that make .init and .fini sections work.
9213         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9214       else
9215         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9216       fi
9217       hardcode_libdir_flag_spec='-L$libdir'
9218       hardcode_direct=yes
9219       hardcode_minus_L=yes
9220       hardcode_shlibpath_var=no
9221       ;;
9222
9223     sysv4)
9224       case $host_vendor in
9225         sni)
9226           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9227           hardcode_direct=yes # is this really true???
9228         ;;
9229         siemens)
9230           ## LD is ld it makes a PLAMLIB
9231           ## CC just makes a GrossModule.
9232           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9233           reload_cmds='$CC -r -o $output$reload_objs'
9234           hardcode_direct=no
9235         ;;
9236         motorola)
9237           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9238           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9239         ;;
9240       esac
9241       runpath_var='LD_RUN_PATH'
9242       hardcode_shlibpath_var=no
9243       ;;
9244
9245     sysv4.3*)
9246       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9247       hardcode_shlibpath_var=no
9248       export_dynamic_flag_spec='-Bexport'
9249       ;;
9250
9251     sysv4*MP*)
9252       if test -d /usr/nec; then
9253         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9254         hardcode_shlibpath_var=no
9255         runpath_var=LD_RUN_PATH
9256         hardcode_runpath_var=yes
9257         ld_shlibs=yes
9258       fi
9259       ;;
9260
9261     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9262       no_undefined_flag='${wl}-z,text'
9263       archive_cmds_need_lc=no
9264       hardcode_shlibpath_var=no
9265       runpath_var='LD_RUN_PATH'
9266
9267       if test "$GCC" = yes; then
9268         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9269         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9270       else
9271         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9272         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9273       fi
9274       ;;
9275
9276     sysv5* | sco3.2v5* | sco5v6*)
9277       # Note: We can NOT use -z defs as we might desire, because we do not
9278       # link with -lc, and that would cause any symbols used from libc to
9279       # always be unresolved, which means just about no library would
9280       # ever link correctly.  If we're not using GNU ld we use -z text
9281       # though, which does catch some bad symbols but isn't as heavy-handed
9282       # as -z defs.
9283       no_undefined_flag='${wl}-z,text'
9284       allow_undefined_flag='${wl}-z,nodefs'
9285       archive_cmds_need_lc=no
9286       hardcode_shlibpath_var=no
9287       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9288       hardcode_libdir_separator=':'
9289       link_all_deplibs=yes
9290       export_dynamic_flag_spec='${wl}-Bexport'
9291       runpath_var='LD_RUN_PATH'
9292
9293       if test "$GCC" = yes; then
9294         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9295         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9296       else
9297         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9298         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9299       fi
9300       ;;
9301
9302     uts4*)
9303       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9304       hardcode_libdir_flag_spec='-L$libdir'
9305       hardcode_shlibpath_var=no
9306       ;;
9307
9308     *)
9309       ld_shlibs=no
9310       ;;
9311     esac
9312
9313     if test x$host_vendor = xsni; then
9314       case $host in
9315       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9316         export_dynamic_flag_spec='${wl}-Blargedynsym'
9317         ;;
9318       esac
9319     fi
9320   fi
9321
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9323 $as_echo "$ld_shlibs" >&6; }
9324 test "$ld_shlibs" = no && can_build_shared=no
9325
9326 with_gnu_ld=$with_gnu_ld
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342 #
9343 # Do we need to explicitly link libc?
9344 #
9345 case "x$archive_cmds_need_lc" in
9346 x|xyes)
9347   # Assume -lc should be added
9348   archive_cmds_need_lc=yes
9349
9350   if test "$enable_shared" = yes && test "$GCC" = yes; then
9351     case $archive_cmds in
9352     *'~'*)
9353       # FIXME: we may have to deal with multi-command sequences.
9354       ;;
9355     '$CC '*)
9356       # Test whether the compiler implicitly links with -lc since on some
9357       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9358       # to ld, don't add -lc before -lgcc.
9359       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9360 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9361       $RM conftest*
9362       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9363
9364       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9365   (eval $ac_compile) 2>&5
9366   ac_status=$?
9367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9368   test $ac_status = 0; } 2>conftest.err; then
9369         soname=conftest
9370         lib=conftest
9371         libobjs=conftest.$ac_objext
9372         deplibs=
9373         wl=$lt_prog_compiler_wl
9374         pic_flag=$lt_prog_compiler_pic
9375         compiler_flags=-v
9376         linker_flags=-v
9377         verstring=
9378         output_objdir=.
9379         libname=conftest
9380         lt_save_allow_undefined_flag=$allow_undefined_flag
9381         allow_undefined_flag=
9382         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9383   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9384   ac_status=$?
9385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9386   test $ac_status = 0; }
9387         then
9388           archive_cmds_need_lc=no
9389         else
9390           archive_cmds_need_lc=yes
9391         fi
9392         allow_undefined_flag=$lt_save_allow_undefined_flag
9393       else
9394         cat conftest.err 1>&5
9395       fi
9396       $RM conftest*
9397       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9398 $as_echo "$archive_cmds_need_lc" >&6; }
9399       ;;
9400     esac
9401   fi
9402   ;;
9403 esac
9404
9405
9406
9407
9408
9409
9410
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9562 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9563
9564 if test "$GCC" = yes; then
9565   case $host_os in
9566     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9567     *) lt_awk_arg="/^libraries:/" ;;
9568   esac
9569   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9570   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9571     # if the path contains ";" then we assume it to be the separator
9572     # otherwise default to the standard path separator (i.e. ":") - it is
9573     # assumed that no part of a normal pathname contains ";" but that should
9574     # okay in the real world where ";" in dirpaths is itself problematic.
9575     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9576   else
9577     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9578   fi
9579   # Ok, now we have the path, separated by spaces, we can step through it
9580   # and add multilib dir if necessary.
9581   lt_tmp_lt_search_path_spec=
9582   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9583   for lt_sys_path in $lt_search_path_spec; do
9584     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9585       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9586     else
9587       test -d "$lt_sys_path" && \
9588         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9589     fi
9590   done
9591   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9592 BEGIN {RS=" "; FS="/|\n";} {
9593   lt_foo="";
9594   lt_count=0;
9595   for (lt_i = NF; lt_i > 0; lt_i--) {
9596     if ($lt_i != "" && $lt_i != ".") {
9597       if ($lt_i == "..") {
9598         lt_count++;
9599       } else {
9600         if (lt_count == 0) {
9601           lt_foo="/" $lt_i lt_foo;
9602         } else {
9603           lt_count--;
9604         }
9605       }
9606     }
9607   }
9608   if (lt_foo != "") { lt_freq[lt_foo]++; }
9609   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9610 }'`
9611   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9612 else
9613   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9614 fi
9615 library_names_spec=
9616 libname_spec='lib$name'
9617 soname_spec=
9618 shrext_cmds=".so"
9619 postinstall_cmds=
9620 postuninstall_cmds=
9621 finish_cmds=
9622 finish_eval=
9623 shlibpath_var=
9624 shlibpath_overrides_runpath=unknown
9625 version_type=none
9626 dynamic_linker="$host_os ld.so"
9627 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9628 need_lib_prefix=unknown
9629 hardcode_into_libs=no
9630
9631 # when you set need_version to no, make sure it does not cause -set_version
9632 # flags to be left without arguments
9633 need_version=unknown
9634
9635 case $host_os in
9636 aix3*)
9637   version_type=linux
9638   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9639   shlibpath_var=LIBPATH
9640
9641   # AIX 3 has no versioning support, so we append a major version to the name.
9642   soname_spec='${libname}${release}${shared_ext}$major'
9643   ;;
9644
9645 aix[4-9]*)
9646   version_type=linux
9647   need_lib_prefix=no
9648   need_version=no
9649   hardcode_into_libs=yes
9650   if test "$host_cpu" = ia64; then
9651     # AIX 5 supports IA64
9652     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9653     shlibpath_var=LD_LIBRARY_PATH
9654   else
9655     # With GCC up to 2.95.x, collect2 would create an import file
9656     # for dependence libraries.  The import file would start with
9657     # the line `#! .'.  This would cause the generated library to
9658     # depend on `.', always an invalid library.  This was fixed in
9659     # development snapshots of GCC prior to 3.0.
9660     case $host_os in
9661       aix4 | aix4.[01] | aix4.[01].*)
9662       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9663            echo ' yes '
9664            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9665         :
9666       else
9667         can_build_shared=no
9668       fi
9669       ;;
9670     esac
9671     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9672     # soname into executable. Probably we can add versioning support to
9673     # collect2, so additional links can be useful in future.
9674     if test "$aix_use_runtimelinking" = yes; then
9675       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9676       # instead of lib<name>.a to let people know that these are not
9677       # typical AIX shared libraries.
9678       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679     else
9680       # We preserve .a as extension for shared libraries through AIX4.2
9681       # and later when we are not doing run time linking.
9682       library_names_spec='${libname}${release}.a $libname.a'
9683       soname_spec='${libname}${release}${shared_ext}$major'
9684     fi
9685     shlibpath_var=LIBPATH
9686   fi
9687   ;;
9688
9689 amigaos*)
9690   case $host_cpu in
9691   powerpc)
9692     # Since July 2007 AmigaOS4 officially supports .so libraries.
9693     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9694     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695     ;;
9696   m68k)
9697     library_names_spec='$libname.ixlibrary $libname.a'
9698     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9699     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'
9700     ;;
9701   esac
9702   ;;
9703
9704 beos*)
9705   library_names_spec='${libname}${shared_ext}'
9706   dynamic_linker="$host_os ld.so"
9707   shlibpath_var=LIBRARY_PATH
9708   ;;
9709
9710 bsdi[45]*)
9711   version_type=linux
9712   need_version=no
9713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714   soname_spec='${libname}${release}${shared_ext}$major'
9715   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9716   shlibpath_var=LD_LIBRARY_PATH
9717   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9718   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9719   # the default ld.so.conf also contains /usr/contrib/lib and
9720   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9721   # libtool to hard-code these into programs
9722   ;;
9723
9724 cygwin* | mingw* | pw32* | cegcc*)
9725   version_type=windows
9726   shrext_cmds=".dll"
9727   need_version=no
9728   need_lib_prefix=no
9729
9730   case $GCC,$host_os in
9731   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9732     library_names_spec='$libname.dll.a'
9733     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9734     postinstall_cmds='base_file=`basename \${file}`~
9735       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9736       dldir=$destdir/`dirname \$dlpath`~
9737       test -d \$dldir || mkdir -p \$dldir~
9738       $install_prog $dir/$dlname \$dldir/$dlname~
9739       chmod a+x \$dldir/$dlname~
9740       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9741         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9742       fi'
9743     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9744       dlpath=$dir/\$dldll~
9745        $RM \$dlpath'
9746     shlibpath_overrides_runpath=yes
9747
9748     case $host_os in
9749     cygwin*)
9750       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9751       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9752       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9753       ;;
9754     mingw* | cegcc*)
9755       # MinGW DLLs use traditional 'lib' prefix
9756       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9757       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9758       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9759         # It is most probably a Windows format PATH printed by
9760         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9761         # path with ; separators, and with drive letters. We can handle the
9762         # drive letters (cygwin fileutils understands them), so leave them,
9763         # especially as we might pass files found there to a mingw objdump,
9764         # which wouldn't understand a cygwinified path. Ahh.
9765         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9766       else
9767         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9768       fi
9769       ;;
9770     pw32*)
9771       # pw32 DLLs use 'pw' prefix rather than 'lib'
9772       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9773       ;;
9774     esac
9775     ;;
9776
9777   *)
9778     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9779     ;;
9780   esac
9781   dynamic_linker='Win32 ld.exe'
9782   # FIXME: first we should search . and the directory the executable is in
9783   shlibpath_var=PATH
9784   ;;
9785
9786 darwin* | rhapsody*)
9787   dynamic_linker="$host_os dyld"
9788   version_type=darwin
9789   need_lib_prefix=no
9790   need_version=no
9791   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9792   soname_spec='${libname}${release}${major}$shared_ext'
9793   shlibpath_overrides_runpath=yes
9794   shlibpath_var=DYLD_LIBRARY_PATH
9795   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9796
9797   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9798   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9799   ;;
9800
9801 dgux*)
9802   version_type=linux
9803   need_lib_prefix=no
9804   need_version=no
9805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9806   soname_spec='${libname}${release}${shared_ext}$major'
9807   shlibpath_var=LD_LIBRARY_PATH
9808   ;;
9809
9810 freebsd1*)
9811   dynamic_linker=no
9812   ;;
9813
9814 freebsd* | dragonfly*)
9815   # DragonFly does not have aout.  When/if they implement a new
9816   # versioning mechanism, adjust this.
9817   if test -x /usr/bin/objformat; then
9818     objformat=`/usr/bin/objformat`
9819   else
9820     case $host_os in
9821     freebsd[123]*) objformat=aout ;;
9822     *) objformat=elf ;;
9823     esac
9824   fi
9825   version_type=freebsd-$objformat
9826   case $version_type in
9827     freebsd-elf*)
9828       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9829       need_version=no
9830       need_lib_prefix=no
9831       ;;
9832     freebsd-*)
9833       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9834       need_version=yes
9835       ;;
9836   esac
9837   shlibpath_var=LD_LIBRARY_PATH
9838   case $host_os in
9839   freebsd2*)
9840     shlibpath_overrides_runpath=yes
9841     ;;
9842   freebsd3.[01]* | freebsdelf3.[01]*)
9843     shlibpath_overrides_runpath=yes
9844     hardcode_into_libs=yes
9845     ;;
9846   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9847   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9848     shlibpath_overrides_runpath=no
9849     hardcode_into_libs=yes
9850     ;;
9851   *) # from 4.6 on, and DragonFly
9852     shlibpath_overrides_runpath=yes
9853     hardcode_into_libs=yes
9854     ;;
9855   esac
9856   ;;
9857
9858 gnu*)
9859   version_type=linux
9860   need_lib_prefix=no
9861   need_version=no
9862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9863   soname_spec='${libname}${release}${shared_ext}$major'
9864   shlibpath_var=LD_LIBRARY_PATH
9865   hardcode_into_libs=yes
9866   ;;
9867
9868 hpux9* | hpux10* | hpux11*)
9869   # Give a soname corresponding to the major version so that dld.sl refuses to
9870   # link against other versions.
9871   version_type=sunos
9872   need_lib_prefix=no
9873   need_version=no
9874   case $host_cpu in
9875   ia64*)
9876     shrext_cmds='.so'
9877     hardcode_into_libs=yes
9878     dynamic_linker="$host_os dld.so"
9879     shlibpath_var=LD_LIBRARY_PATH
9880     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9881     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882     soname_spec='${libname}${release}${shared_ext}$major'
9883     if test "X$HPUX_IA64_MODE" = X32; then
9884       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9885     else
9886       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9887     fi
9888     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9889     ;;
9890   hppa*64*)
9891     shrext_cmds='.sl'
9892     hardcode_into_libs=yes
9893     dynamic_linker="$host_os dld.sl"
9894     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9895     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9896     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897     soname_spec='${libname}${release}${shared_ext}$major'
9898     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9899     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9900     ;;
9901   *)
9902     shrext_cmds='.sl'
9903     dynamic_linker="$host_os dld.sl"
9904     shlibpath_var=SHLIB_PATH
9905     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907     soname_spec='${libname}${release}${shared_ext}$major'
9908     ;;
9909   esac
9910   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9911   postinstall_cmds='chmod 555 $lib'
9912   ;;
9913
9914 interix[3-9]*)
9915   version_type=linux
9916   need_lib_prefix=no
9917   need_version=no
9918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9919   soname_spec='${libname}${release}${shared_ext}$major'
9920   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9921   shlibpath_var=LD_LIBRARY_PATH
9922   shlibpath_overrides_runpath=no
9923   hardcode_into_libs=yes
9924   ;;
9925
9926 irix5* | irix6* | nonstopux*)
9927   case $host_os in
9928     nonstopux*) version_type=nonstopux ;;
9929     *)
9930         if test "$lt_cv_prog_gnu_ld" = yes; then
9931                 version_type=linux
9932         else
9933                 version_type=irix
9934         fi ;;
9935   esac
9936   need_lib_prefix=no
9937   need_version=no
9938   soname_spec='${libname}${release}${shared_ext}$major'
9939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9940   case $host_os in
9941   irix5* | nonstopux*)
9942     libsuff= shlibsuff=
9943     ;;
9944   *)
9945     case $LD in # libtool.m4 will add one of these switches to LD
9946     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9947       libsuff= shlibsuff= libmagic=32-bit;;
9948     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9949       libsuff=32 shlibsuff=N32 libmagic=N32;;
9950     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9951       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9952     *) libsuff= shlibsuff= libmagic=never-match;;
9953     esac
9954     ;;
9955   esac
9956   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9957   shlibpath_overrides_runpath=no
9958   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9959   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9960   hardcode_into_libs=yes
9961   ;;
9962
9963 # No shared lib support for Linux oldld, aout, or coff.
9964 linux*oldld* | linux*aout* | linux*coff*)
9965   dynamic_linker=no
9966   ;;
9967
9968 # This must be Linux ELF.
9969 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9970   version_type=linux
9971   need_lib_prefix=no
9972   need_version=no
9973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9974   soname_spec='${libname}${release}${shared_ext}$major'
9975   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9976   shlibpath_var=LD_LIBRARY_PATH
9977   shlibpath_overrides_runpath=no
9978   # Some binutils ld are patched to set DT_RUNPATH
9979   save_LDFLAGS=$LDFLAGS
9980   save_libdir=$libdir
9981   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9982        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h.  */
9985
9986 int
9987 main ()
9988 {
9989
9990   ;
9991   return 0;
9992 }
9993 _ACEOF
9994 if ac_fn_c_try_link "$LINENO"; then :
9995   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9996   shlibpath_overrides_runpath=yes
9997 fi
9998 fi
9999 rm -f core conftest.err conftest.$ac_objext \
10000     conftest$ac_exeext conftest.$ac_ext
10001   LDFLAGS=$save_LDFLAGS
10002   libdir=$save_libdir
10003
10004   # This implies no fast_install, which is unacceptable.
10005   # Some rework will be needed to allow for fast_install
10006   # before this can be enabled.
10007   hardcode_into_libs=yes
10008
10009   # Append ld.so.conf contents to the search path
10010   if test -f /etc/ld.so.conf; then
10011     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' ' '`
10012     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10013   fi
10014
10015   # We used to test for /lib/ld.so.1 and disable shared libraries on
10016   # powerpc, because MkLinux only supported shared libraries with the
10017   # GNU dynamic linker.  Since this was broken with cross compilers,
10018   # most powerpc-linux boxes support dynamic linking these days and
10019   # people can always --disable-shared, the test was removed, and we
10020   # assume the GNU/Linux dynamic linker is in use.
10021   dynamic_linker='GNU/Linux ld.so'
10022   ;;
10023
10024 netbsdelf*-gnu)
10025   version_type=linux
10026   need_lib_prefix=no
10027   need_version=no
10028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10029   soname_spec='${libname}${release}${shared_ext}$major'
10030   shlibpath_var=LD_LIBRARY_PATH
10031   shlibpath_overrides_runpath=no
10032   hardcode_into_libs=yes
10033   dynamic_linker='NetBSD ld.elf_so'
10034   ;;
10035
10036 netbsd*)
10037   version_type=sunos
10038   need_lib_prefix=no
10039   need_version=no
10040   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10041     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10042     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10043     dynamic_linker='NetBSD (a.out) ld.so'
10044   else
10045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10046     soname_spec='${libname}${release}${shared_ext}$major'
10047     dynamic_linker='NetBSD ld.elf_so'
10048   fi
10049   shlibpath_var=LD_LIBRARY_PATH
10050   shlibpath_overrides_runpath=yes
10051   hardcode_into_libs=yes
10052   ;;
10053
10054 newsos6)
10055   version_type=linux
10056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057   shlibpath_var=LD_LIBRARY_PATH
10058   shlibpath_overrides_runpath=yes
10059   ;;
10060
10061 *nto* | *qnx*)
10062   version_type=qnx
10063   need_lib_prefix=no
10064   need_version=no
10065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066   soname_spec='${libname}${release}${shared_ext}$major'
10067   shlibpath_var=LD_LIBRARY_PATH
10068   shlibpath_overrides_runpath=no
10069   hardcode_into_libs=yes
10070   dynamic_linker='ldqnx.so'
10071   ;;
10072
10073 openbsd*)
10074   version_type=sunos
10075   sys_lib_dlsearch_path_spec="/usr/lib"
10076   need_lib_prefix=no
10077   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10078   case $host_os in
10079     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10080     *)                          need_version=no  ;;
10081   esac
10082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10083   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10084   shlibpath_var=LD_LIBRARY_PATH
10085   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10086     case $host_os in
10087       openbsd2.[89] | openbsd2.[89].*)
10088         shlibpath_overrides_runpath=no
10089         ;;
10090       *)
10091         shlibpath_overrides_runpath=yes
10092         ;;
10093       esac
10094   else
10095     shlibpath_overrides_runpath=yes
10096   fi
10097   ;;
10098
10099 os2*)
10100   libname_spec='$name'
10101   shrext_cmds=".dll"
10102   need_lib_prefix=no
10103   library_names_spec='$libname${shared_ext} $libname.a'
10104   dynamic_linker='OS/2 ld.exe'
10105   shlibpath_var=LIBPATH
10106   ;;
10107
10108 osf3* | osf4* | osf5*)
10109   version_type=osf
10110   need_lib_prefix=no
10111   need_version=no
10112   soname_spec='${libname}${release}${shared_ext}$major'
10113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114   shlibpath_var=LD_LIBRARY_PATH
10115   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10116   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10117   ;;
10118
10119 rdos*)
10120   dynamic_linker=no
10121   ;;
10122
10123 solaris*)
10124   version_type=linux
10125   need_lib_prefix=no
10126   need_version=no
10127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128   soname_spec='${libname}${release}${shared_ext}$major'
10129   shlibpath_var=LD_LIBRARY_PATH
10130   shlibpath_overrides_runpath=yes
10131   hardcode_into_libs=yes
10132   # ldd complains unless libraries are executable
10133   postinstall_cmds='chmod +x $lib'
10134   ;;
10135
10136 sunos4*)
10137   version_type=sunos
10138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10139   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10140   shlibpath_var=LD_LIBRARY_PATH
10141   shlibpath_overrides_runpath=yes
10142   if test "$with_gnu_ld" = yes; then
10143     need_lib_prefix=no
10144   fi
10145   need_version=yes
10146   ;;
10147
10148 sysv4 | sysv4.3*)
10149   version_type=linux
10150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151   soname_spec='${libname}${release}${shared_ext}$major'
10152   shlibpath_var=LD_LIBRARY_PATH
10153   case $host_vendor in
10154     sni)
10155       shlibpath_overrides_runpath=no
10156       need_lib_prefix=no
10157       runpath_var=LD_RUN_PATH
10158       ;;
10159     siemens)
10160       need_lib_prefix=no
10161       ;;
10162     motorola)
10163       need_lib_prefix=no
10164       need_version=no
10165       shlibpath_overrides_runpath=no
10166       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10167       ;;
10168   esac
10169   ;;
10170
10171 sysv4*MP*)
10172   if test -d /usr/nec ;then
10173     version_type=linux
10174     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10175     soname_spec='$libname${shared_ext}.$major'
10176     shlibpath_var=LD_LIBRARY_PATH
10177   fi
10178   ;;
10179
10180 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10181   version_type=freebsd-elf
10182   need_lib_prefix=no
10183   need_version=no
10184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10185   soname_spec='${libname}${release}${shared_ext}$major'
10186   shlibpath_var=LD_LIBRARY_PATH
10187   shlibpath_overrides_runpath=yes
10188   hardcode_into_libs=yes
10189   if test "$with_gnu_ld" = yes; then
10190     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10191   else
10192     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10193     case $host_os in
10194       sco3.2v5*)
10195         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10196         ;;
10197     esac
10198   fi
10199   sys_lib_dlsearch_path_spec='/usr/lib'
10200   ;;
10201
10202 tpf*)
10203   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10204   version_type=linux
10205   need_lib_prefix=no
10206   need_version=no
10207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208   shlibpath_var=LD_LIBRARY_PATH
10209   shlibpath_overrides_runpath=no
10210   hardcode_into_libs=yes
10211   ;;
10212
10213 uts4*)
10214   version_type=linux
10215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216   soname_spec='${libname}${release}${shared_ext}$major'
10217   shlibpath_var=LD_LIBRARY_PATH
10218   ;;
10219
10220 *)
10221   dynamic_linker=no
10222   ;;
10223 esac
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10225 $as_echo "$dynamic_linker" >&6; }
10226 test "$dynamic_linker" = no && can_build_shared=no
10227
10228 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10229 if test "$GCC" = yes; then
10230   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10231 fi
10232
10233 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10234   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10235 fi
10236 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10237   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10238 fi
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10327 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10328 hardcode_action=
10329 if test -n "$hardcode_libdir_flag_spec" ||
10330    test -n "$runpath_var" ||
10331    test "X$hardcode_automatic" = "Xyes" ; then
10332
10333   # We can hardcode non-existent directories.
10334   if test "$hardcode_direct" != no &&
10335      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10336      # have to relink, otherwise we might link with an installed library
10337      # when we should be linking with a yet-to-be-installed one
10338      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10339      test "$hardcode_minus_L" != no; then
10340     # Linking always hardcodes the temporary library directory.
10341     hardcode_action=relink
10342   else
10343     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10344     hardcode_action=immediate
10345   fi
10346 else
10347   # We cannot hardcode anything, or else we can only hardcode existing
10348   # directories.
10349   hardcode_action=unsupported
10350 fi
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10352 $as_echo "$hardcode_action" >&6; }
10353
10354 if test "$hardcode_action" = relink ||
10355    test "$inherit_rpath" = yes; then
10356   # Fast installation is not supported
10357   enable_fast_install=no
10358 elif test "$shlibpath_overrides_runpath" = yes ||
10359      test "$enable_shared" = no; then
10360   # Fast installation is not necessary
10361   enable_fast_install=needless
10362 fi
10363
10364
10365
10366
10367
10368
10369   if test "x$enable_dlopen" != xyes; then
10370   enable_dlopen=unknown
10371   enable_dlopen_self=unknown
10372   enable_dlopen_self_static=unknown
10373 else
10374   lt_cv_dlopen=no
10375   lt_cv_dlopen_libs=
10376
10377   case $host_os in
10378   beos*)
10379     lt_cv_dlopen="load_add_on"
10380     lt_cv_dlopen_libs=
10381     lt_cv_dlopen_self=yes
10382     ;;
10383
10384   mingw* | pw32* | cegcc*)
10385     lt_cv_dlopen="LoadLibrary"
10386     lt_cv_dlopen_libs=
10387     ;;
10388
10389   cygwin*)
10390     lt_cv_dlopen="dlopen"
10391     lt_cv_dlopen_libs=
10392     ;;
10393
10394   darwin*)
10395   # if libdl is installed we need to link against it
10396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10397 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10398 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10399   $as_echo_n "(cached) " >&6
10400 else
10401   ac_check_lib_save_LIBS=$LIBS
10402 LIBS="-ldl  $LIBS"
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h.  */
10405
10406 /* Override any GCC internal prototype to avoid an error.
10407    Use char because int might match the return type of a GCC
10408    builtin and then its argument prototype would still apply.  */
10409 #ifdef __cplusplus
10410 extern "C"
10411 #endif
10412 char dlopen ();
10413 int
10414 main ()
10415 {
10416 return dlopen ();
10417   ;
10418   return 0;
10419 }
10420 _ACEOF
10421 if ac_fn_c_try_link "$LINENO"; then :
10422   ac_cv_lib_dl_dlopen=yes
10423 else
10424   ac_cv_lib_dl_dlopen=no
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext \
10427     conftest$ac_exeext conftest.$ac_ext
10428 LIBS=$ac_check_lib_save_LIBS
10429 fi
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10431 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10432 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10433   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10434 else
10435
10436     lt_cv_dlopen="dyld"
10437     lt_cv_dlopen_libs=
10438     lt_cv_dlopen_self=yes
10439
10440 fi
10441
10442     ;;
10443
10444   *)
10445     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10446 if test "x$ac_cv_func_shl_load" = x""yes; then :
10447   lt_cv_dlopen="shl_load"
10448 else
10449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10450 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10451 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10452   $as_echo_n "(cached) " >&6
10453 else
10454   ac_check_lib_save_LIBS=$LIBS
10455 LIBS="-ldld  $LIBS"
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h.  */
10458
10459 /* Override any GCC internal prototype to avoid an error.
10460    Use char because int might match the return type of a GCC
10461    builtin and then its argument prototype would still apply.  */
10462 #ifdef __cplusplus
10463 extern "C"
10464 #endif
10465 char shl_load ();
10466 int
10467 main ()
10468 {
10469 return shl_load ();
10470   ;
10471   return 0;
10472 }
10473 _ACEOF
10474 if ac_fn_c_try_link "$LINENO"; then :
10475   ac_cv_lib_dld_shl_load=yes
10476 else
10477   ac_cv_lib_dld_shl_load=no
10478 fi
10479 rm -f core conftest.err conftest.$ac_objext \
10480     conftest$ac_exeext conftest.$ac_ext
10481 LIBS=$ac_check_lib_save_LIBS
10482 fi
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10484 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10485 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10486   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10487 else
10488   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10489 if test "x$ac_cv_func_dlopen" = x""yes; then :
10490   lt_cv_dlopen="dlopen"
10491 else
10492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10493 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10494 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10495   $as_echo_n "(cached) " >&6
10496 else
10497   ac_check_lib_save_LIBS=$LIBS
10498 LIBS="-ldl  $LIBS"
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h.  */
10501
10502 /* Override any GCC internal prototype to avoid an error.
10503    Use char because int might match the return type of a GCC
10504    builtin and then its argument prototype would still apply.  */
10505 #ifdef __cplusplus
10506 extern "C"
10507 #endif
10508 char dlopen ();
10509 int
10510 main ()
10511 {
10512 return dlopen ();
10513   ;
10514   return 0;
10515 }
10516 _ACEOF
10517 if ac_fn_c_try_link "$LINENO"; then :
10518   ac_cv_lib_dl_dlopen=yes
10519 else
10520   ac_cv_lib_dl_dlopen=no
10521 fi
10522 rm -f core conftest.err conftest.$ac_objext \
10523     conftest$ac_exeext conftest.$ac_ext
10524 LIBS=$ac_check_lib_save_LIBS
10525 fi
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10527 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10528 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10529   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10530 else
10531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10532 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10533 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10534   $as_echo_n "(cached) " >&6
10535 else
10536   ac_check_lib_save_LIBS=$LIBS
10537 LIBS="-lsvld  $LIBS"
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h.  */
10540
10541 /* Override any GCC internal prototype to avoid an error.
10542    Use char because int might match the return type of a GCC
10543    builtin and then its argument prototype would still apply.  */
10544 #ifdef __cplusplus
10545 extern "C"
10546 #endif
10547 char dlopen ();
10548 int
10549 main ()
10550 {
10551 return dlopen ();
10552   ;
10553   return 0;
10554 }
10555 _ACEOF
10556 if ac_fn_c_try_link "$LINENO"; then :
10557   ac_cv_lib_svld_dlopen=yes
10558 else
10559   ac_cv_lib_svld_dlopen=no
10560 fi
10561 rm -f core conftest.err conftest.$ac_objext \
10562     conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10564 fi
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10566 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10567 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10568   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10569 else
10570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10571 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10572 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10573   $as_echo_n "(cached) " >&6
10574 else
10575   ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-ldld  $LIBS"
10577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578 /* end confdefs.h.  */
10579
10580 /* Override any GCC internal prototype to avoid an error.
10581    Use char because int might match the return type of a GCC
10582    builtin and then its argument prototype would still apply.  */
10583 #ifdef __cplusplus
10584 extern "C"
10585 #endif
10586 char dld_link ();
10587 int
10588 main ()
10589 {
10590 return dld_link ();
10591   ;
10592   return 0;
10593 }
10594 _ACEOF
10595 if ac_fn_c_try_link "$LINENO"; then :
10596   ac_cv_lib_dld_dld_link=yes
10597 else
10598   ac_cv_lib_dld_dld_link=no
10599 fi
10600 rm -f core conftest.err conftest.$ac_objext \
10601     conftest$ac_exeext conftest.$ac_ext
10602 LIBS=$ac_check_lib_save_LIBS
10603 fi
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10605 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10606 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10607   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10608 fi
10609
10610
10611 fi
10612
10613
10614 fi
10615
10616
10617 fi
10618
10619
10620 fi
10621
10622
10623 fi
10624
10625     ;;
10626   esac
10627
10628   if test "x$lt_cv_dlopen" != xno; then
10629     enable_dlopen=yes
10630   else
10631     enable_dlopen=no
10632   fi
10633
10634   case $lt_cv_dlopen in
10635   dlopen)
10636     save_CPPFLAGS="$CPPFLAGS"
10637     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10638
10639     save_LDFLAGS="$LDFLAGS"
10640     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10641
10642     save_LIBS="$LIBS"
10643     LIBS="$lt_cv_dlopen_libs $LIBS"
10644
10645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10646 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10647 if test "${lt_cv_dlopen_self+set}" = set; then :
10648   $as_echo_n "(cached) " >&6
10649 else
10650           if test "$cross_compiling" = yes; then :
10651   lt_cv_dlopen_self=cross
10652 else
10653   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10654   lt_status=$lt_dlunknown
10655   cat > conftest.$ac_ext <<_LT_EOF
10656 #line 10656 "configure"
10657 #include "confdefs.h"
10658
10659 #if HAVE_DLFCN_H
10660 #include <dlfcn.h>
10661 #endif
10662
10663 #include <stdio.h>
10664
10665 #ifdef RTLD_GLOBAL
10666 #  define LT_DLGLOBAL           RTLD_GLOBAL
10667 #else
10668 #  ifdef DL_GLOBAL
10669 #    define LT_DLGLOBAL         DL_GLOBAL
10670 #  else
10671 #    define LT_DLGLOBAL         0
10672 #  endif
10673 #endif
10674
10675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10676    find out it does not work in some platform. */
10677 #ifndef LT_DLLAZY_OR_NOW
10678 #  ifdef RTLD_LAZY
10679 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10680 #  else
10681 #    ifdef DL_LAZY
10682 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10683 #    else
10684 #      ifdef RTLD_NOW
10685 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10686 #      else
10687 #        ifdef DL_NOW
10688 #          define LT_DLLAZY_OR_NOW      DL_NOW
10689 #        else
10690 #          define LT_DLLAZY_OR_NOW      0
10691 #        endif
10692 #      endif
10693 #    endif
10694 #  endif
10695 #endif
10696
10697 void fnord() { int i=42;}
10698 int main ()
10699 {
10700   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10701   int status = $lt_dlunknown;
10702
10703   if (self)
10704     {
10705       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10706       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10707       /* dlclose (self); */
10708     }
10709   else
10710     puts (dlerror ());
10711
10712   return status;
10713 }
10714 _LT_EOF
10715   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10716   (eval $ac_link) 2>&5
10717   ac_status=$?
10718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10719   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10720     (./conftest; exit; ) >&5 2>/dev/null
10721     lt_status=$?
10722     case x$lt_status in
10723       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10724       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10725       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10726     esac
10727   else :
10728     # compilation failed
10729     lt_cv_dlopen_self=no
10730   fi
10731 fi
10732 rm -fr conftest*
10733
10734
10735 fi
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10737 $as_echo "$lt_cv_dlopen_self" >&6; }
10738
10739     if test "x$lt_cv_dlopen_self" = xyes; then
10740       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10741       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10742 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10743 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10744   $as_echo_n "(cached) " >&6
10745 else
10746           if test "$cross_compiling" = yes; then :
10747   lt_cv_dlopen_self_static=cross
10748 else
10749   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10750   lt_status=$lt_dlunknown
10751   cat > conftest.$ac_ext <<_LT_EOF
10752 #line 10752 "configure"
10753 #include "confdefs.h"
10754
10755 #if HAVE_DLFCN_H
10756 #include <dlfcn.h>
10757 #endif
10758
10759 #include <stdio.h>
10760
10761 #ifdef RTLD_GLOBAL
10762 #  define LT_DLGLOBAL           RTLD_GLOBAL
10763 #else
10764 #  ifdef DL_GLOBAL
10765 #    define LT_DLGLOBAL         DL_GLOBAL
10766 #  else
10767 #    define LT_DLGLOBAL         0
10768 #  endif
10769 #endif
10770
10771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10772    find out it does not work in some platform. */
10773 #ifndef LT_DLLAZY_OR_NOW
10774 #  ifdef RTLD_LAZY
10775 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10776 #  else
10777 #    ifdef DL_LAZY
10778 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10779 #    else
10780 #      ifdef RTLD_NOW
10781 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10782 #      else
10783 #        ifdef DL_NOW
10784 #          define LT_DLLAZY_OR_NOW      DL_NOW
10785 #        else
10786 #          define LT_DLLAZY_OR_NOW      0
10787 #        endif
10788 #      endif
10789 #    endif
10790 #  endif
10791 #endif
10792
10793 void fnord() { int i=42;}
10794 int main ()
10795 {
10796   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10797   int status = $lt_dlunknown;
10798
10799   if (self)
10800     {
10801       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10802       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10803       /* dlclose (self); */
10804     }
10805   else
10806     puts (dlerror ());
10807
10808   return status;
10809 }
10810 _LT_EOF
10811   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10812   (eval $ac_link) 2>&5
10813   ac_status=$?
10814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10815   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10816     (./conftest; exit; ) >&5 2>/dev/null
10817     lt_status=$?
10818     case x$lt_status in
10819       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10820       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10821       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10822     esac
10823   else :
10824     # compilation failed
10825     lt_cv_dlopen_self_static=no
10826   fi
10827 fi
10828 rm -fr conftest*
10829
10830
10831 fi
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10833 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10834     fi
10835
10836     CPPFLAGS="$save_CPPFLAGS"
10837     LDFLAGS="$save_LDFLAGS"
10838     LIBS="$save_LIBS"
10839     ;;
10840   esac
10841
10842   case $lt_cv_dlopen_self in
10843   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10844   *) enable_dlopen_self=unknown ;;
10845   esac
10846
10847   case $lt_cv_dlopen_self_static in
10848   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10849   *) enable_dlopen_self_static=unknown ;;
10850   esac
10851 fi
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869 striplib=
10870 old_striplib=
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10872 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10873 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10874   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10875   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10877 $as_echo "yes" >&6; }
10878 else
10879 # FIXME - insert some real tests, host_os isn't really good enough
10880   case $host_os in
10881   darwin*)
10882     if test -n "$STRIP" ; then
10883       striplib="$STRIP -x"
10884       old_striplib="$STRIP -S"
10885       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10886 $as_echo "yes" >&6; }
10887     else
10888       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10889 $as_echo "no" >&6; }
10890     fi
10891     ;;
10892   *)
10893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 $as_echo "no" >&6; }
10895     ;;
10896   esac
10897 fi
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910   # Report which library types will actually be built
10911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10912 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10914 $as_echo "$can_build_shared" >&6; }
10915
10916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10917 $as_echo_n "checking whether to build shared libraries... " >&6; }
10918   test "$can_build_shared" = "no" && enable_shared=no
10919
10920   # On AIX, shared libraries and static libraries use the same namespace, and
10921   # are all built from PIC.
10922   case $host_os in
10923   aix3*)
10924     test "$enable_shared" = yes && enable_static=no
10925     if test -n "$RANLIB"; then
10926       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10927       postinstall_cmds='$RANLIB $lib'
10928     fi
10929     ;;
10930
10931   aix[4-9]*)
10932     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10933       test "$enable_shared" = yes && enable_static=no
10934     fi
10935     ;;
10936   esac
10937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10938 $as_echo "$enable_shared" >&6; }
10939
10940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10941 $as_echo_n "checking whether to build static libraries... " >&6; }
10942   # Make sure either enable_shared or enable_static is yes.
10943   test "$enable_shared" = yes || enable_static=yes
10944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10945 $as_echo "$enable_static" >&6; }
10946
10947
10948
10949
10950 fi
10951 ac_ext=c
10952 ac_cpp='$CPP $CPPFLAGS'
10953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10956
10957 CC="$lt_save_CC"
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971         ac_config_commands="$ac_config_commands libtool"
10972
10973
10974
10975
10976 # Only expand once:
10977
10978
10979
10980 # Docygen features
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991 # Files:
10992 DX_PROJECT=opensaml
10993
10994 DX_CONFIG=doxygen.cfg
10995
10996 DX_DOCDIR=doc/api
10997
10998
10999 # Environment variables used inside doxygen.cfg:
11000 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
11001
11002 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
11003
11004 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
11005
11006 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
11007
11008
11009 # Doxygen itself:
11010
11011
11012
11013     # Check whether --enable-doxygen-doc was given.
11014 if test "${enable_doxygen_doc+set}" = set; then :
11015   enableval=$enable_doxygen_doc;
11016 case "$enableval" in
11017 #(
11018 y|Y|yes|Yes|YES)
11019     DX_FLAG_doc=1
11020
11021
11022 ;; #(
11023 n|N|no|No|NO)
11024     DX_FLAG_doc=0
11025
11026 ;; #(
11027 *)
11028     as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
11029 ;;
11030 esac
11031
11032 else
11033
11034 DX_FLAG_doc=1
11035
11036
11037
11038 fi
11039
11040 if test "$DX_FLAG_doc" = 1; then
11041
11042 if test -n "$ac_tool_prefix"; then
11043   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
11044 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046 $as_echo_n "checking for $ac_word... " >&6; }
11047 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
11048   $as_echo_n "(cached) " >&6
11049 else
11050   case $DX_DOXYGEN in
11051   [\\/]* | ?:[\\/]*)
11052   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
11053   ;;
11054   *)
11055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11056 for as_dir in $PATH
11057 do
11058   IFS=$as_save_IFS
11059   test -z "$as_dir" && as_dir=.
11060     for ac_exec_ext in '' $ac_executable_extensions; do
11061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11062     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11064     break 2
11065   fi
11066 done
11067   done
11068 IFS=$as_save_IFS
11069
11070   ;;
11071 esac
11072 fi
11073 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
11074 if test -n "$DX_DOXYGEN"; then
11075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
11076 $as_echo "$DX_DOXYGEN" >&6; }
11077 else
11078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11080 fi
11081
11082
11083 fi
11084 if test -z "$ac_cv_path_DX_DOXYGEN"; then
11085   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
11086   # Extract the first word of "doxygen", so it can be a program name with args.
11087 set dummy doxygen; ac_word=$2
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089 $as_echo_n "checking for $ac_word... " >&6; }
11090 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
11091   $as_echo_n "(cached) " >&6
11092 else
11093   case $ac_pt_DX_DOXYGEN in
11094   [\\/]* | ?:[\\/]*)
11095   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
11096   ;;
11097   *)
11098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099 for as_dir in $PATH
11100 do
11101   IFS=$as_save_IFS
11102   test -z "$as_dir" && as_dir=.
11103     for ac_exec_ext in '' $ac_executable_extensions; do
11104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11105     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
11106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11107     break 2
11108   fi
11109 done
11110   done
11111 IFS=$as_save_IFS
11112
11113   ;;
11114 esac
11115 fi
11116 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
11117 if test -n "$ac_pt_DX_DOXYGEN"; then
11118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
11119 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
11120 else
11121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11123 fi
11124
11125   if test "x$ac_pt_DX_DOXYGEN" = x; then
11126     DX_DOXYGEN=""
11127   else
11128     case $cross_compiling:$ac_tool_warned in
11129 yes:)
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11132 ac_tool_warned=yes ;;
11133 esac
11134     DX_DOXYGEN=$ac_pt_DX_DOXYGEN
11135   fi
11136 else
11137   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
11138 fi
11139
11140 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
11141     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
11142 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
11143     DX_FLAG_doc=0
11144
11145 fi
11146
11147
11148 if test -n "$ac_tool_prefix"; then
11149   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
11150 set dummy ${ac_tool_prefix}perl; ac_word=$2
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11152 $as_echo_n "checking for $ac_word... " >&6; }
11153 if test "${ac_cv_path_DX_PERL+set}" = set; then :
11154   $as_echo_n "(cached) " >&6
11155 else
11156   case $DX_PERL in
11157   [\\/]* | ?:[\\/]*)
11158   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
11159   ;;
11160   *)
11161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 for as_dir in $PATH
11163 do
11164   IFS=$as_save_IFS
11165   test -z "$as_dir" && as_dir=.
11166     for ac_exec_ext in '' $ac_executable_extensions; do
11167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11168     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
11169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11170     break 2
11171   fi
11172 done
11173   done
11174 IFS=$as_save_IFS
11175
11176   ;;
11177 esac
11178 fi
11179 DX_PERL=$ac_cv_path_DX_PERL
11180 if test -n "$DX_PERL"; then
11181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
11182 $as_echo "$DX_PERL" >&6; }
11183 else
11184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185 $as_echo "no" >&6; }
11186 fi
11187
11188
11189 fi
11190 if test -z "$ac_cv_path_DX_PERL"; then
11191   ac_pt_DX_PERL=$DX_PERL
11192   # Extract the first word of "perl", so it can be a program name with args.
11193 set dummy perl; ac_word=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
11197   $as_echo_n "(cached) " >&6
11198 else
11199   case $ac_pt_DX_PERL in
11200   [\\/]* | ?:[\\/]*)
11201   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
11202   ;;
11203   *)
11204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205 for as_dir in $PATH
11206 do
11207   IFS=$as_save_IFS
11208   test -z "$as_dir" && as_dir=.
11209     for ac_exec_ext in '' $ac_executable_extensions; do
11210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11211     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
11212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11213     break 2
11214   fi
11215 done
11216   done
11217 IFS=$as_save_IFS
11218
11219   ;;
11220 esac
11221 fi
11222 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
11223 if test -n "$ac_pt_DX_PERL"; then
11224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
11225 $as_echo "$ac_pt_DX_PERL" >&6; }
11226 else
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11229 fi
11230
11231   if test "x$ac_pt_DX_PERL" = x; then
11232     DX_PERL=""
11233   else
11234     case $cross_compiling:$ac_tool_warned in
11235 yes:)
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11238 ac_tool_warned=yes ;;
11239 esac
11240     DX_PERL=$ac_pt_DX_PERL
11241   fi
11242 else
11243   DX_PERL="$ac_cv_path_DX_PERL"
11244 fi
11245
11246 if test "$DX_FLAG_doc$DX_PERL" = 1; then
11247     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
11248 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
11249     DX_FLAG_doc=0
11250
11251 fi
11252
11253     :
11254 fi
11255 if test "$DX_FLAG_doc" = 1; then
11256      if :; then
11257   DX_COND_doc_TRUE=
11258   DX_COND_doc_FALSE='#'
11259 else
11260   DX_COND_doc_TRUE='#'
11261   DX_COND_doc_FALSE=
11262 fi
11263
11264     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
11265
11266     :
11267 else
11268      if false; then
11269   DX_COND_doc_TRUE=
11270   DX_COND_doc_FALSE='#'
11271 else
11272   DX_COND_doc_TRUE='#'
11273   DX_COND_doc_FALSE=
11274 fi
11275
11276
11277     :
11278 fi
11279
11280
11281 # Dot for graphics:
11282
11283
11284
11285     # Check whether --enable-doxygen-dot was given.
11286 if test "${enable_doxygen_dot+set}" = set; then :
11287   enableval=$enable_doxygen_dot;
11288 case "$enableval" in
11289 #(
11290 y|Y|yes|Yes|YES)
11291     DX_FLAG_dot=1
11292
11293
11294 test "$DX_FLAG_doc" = "1" \
11295 || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
11296
11297 ;; #(
11298 n|N|no|No|NO)
11299     DX_FLAG_dot=0
11300
11301 ;; #(
11302 *)
11303     as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
11304 ;;
11305 esac
11306
11307 else
11308
11309 DX_FLAG_dot=1
11310
11311
11312 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
11313
11314
11315
11316 fi
11317
11318 if test "$DX_FLAG_dot" = 1; then
11319
11320 if test -n "$ac_tool_prefix"; then
11321   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
11322 set dummy ${ac_tool_prefix}dot; ac_word=$2
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11324 $as_echo_n "checking for $ac_word... " >&6; }
11325 if test "${ac_cv_path_DX_DOT+set}" = set; then :
11326   $as_echo_n "(cached) " >&6
11327 else
11328   case $DX_DOT in
11329   [\\/]* | ?:[\\/]*)
11330   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
11331   ;;
11332   *)
11333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334 for as_dir in $PATH
11335 do
11336   IFS=$as_save_IFS
11337   test -z "$as_dir" && as_dir=.
11338     for ac_exec_ext in '' $ac_executable_extensions; do
11339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11340     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
11341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11342     break 2
11343   fi
11344 done
11345   done
11346 IFS=$as_save_IFS
11347
11348   ;;
11349 esac
11350 fi
11351 DX_DOT=$ac_cv_path_DX_DOT
11352 if test -n "$DX_DOT"; then
11353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
11354 $as_echo "$DX_DOT" >&6; }
11355 else
11356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11358 fi
11359
11360
11361 fi
11362 if test -z "$ac_cv_path_DX_DOT"; then
11363   ac_pt_DX_DOT=$DX_DOT
11364   # Extract the first word of "dot", so it can be a program name with args.
11365 set dummy dot; ac_word=$2
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11367 $as_echo_n "checking for $ac_word... " >&6; }
11368 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
11369   $as_echo_n "(cached) " >&6
11370 else
11371   case $ac_pt_DX_DOT in
11372   [\\/]* | ?:[\\/]*)
11373   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
11374   ;;
11375   *)
11376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $PATH
11378 do
11379   IFS=$as_save_IFS
11380   test -z "$as_dir" && as_dir=.
11381     for ac_exec_ext in '' $ac_executable_extensions; do
11382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11383     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
11384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11385     break 2
11386   fi
11387 done
11388   done
11389 IFS=$as_save_IFS
11390
11391   ;;
11392 esac
11393 fi
11394 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
11395 if test -n "$ac_pt_DX_DOT"; then
11396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
11397 $as_echo "$ac_pt_DX_DOT" >&6; }
11398 else
11399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11401 fi
11402
11403   if test "x$ac_pt_DX_DOT" = x; then
11404     DX_DOT=""
11405   else
11406     case $cross_compiling:$ac_tool_warned in
11407 yes:)
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11410 ac_tool_warned=yes ;;
11411 esac
11412     DX_DOT=$ac_pt_DX_DOT
11413   fi
11414 else
11415   DX_DOT="$ac_cv_path_DX_DOT"
11416 fi
11417
11418 if test "$DX_FLAG_dot$DX_DOT" = 1; then
11419     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
11420 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
11421     DX_FLAG_dot=0
11422
11423 fi
11424
11425     :
11426 fi
11427 if test "$DX_FLAG_dot" = 1; then
11428      if :; then
11429   DX_COND_dot_TRUE=
11430   DX_COND_dot_FALSE='#'
11431 else
11432   DX_COND_dot_TRUE='#'
11433   DX_COND_dot_FALSE=
11434 fi
11435
11436     DX_ENV="$DX_ENV HAVE_DOT='YES'"
11437
11438              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
11439
11440     :
11441 else
11442      if false; then
11443   DX_COND_dot_TRUE=
11444   DX_COND_dot_FALSE='#'
11445 else
11446   DX_COND_dot_TRUE='#'
11447   DX_COND_dot_FALSE=
11448 fi
11449
11450     DX_ENV="$DX_ENV HAVE_DOT='NO'"
11451
11452     :
11453 fi
11454
11455
11456 # Man pages generation:
11457
11458
11459
11460     # Check whether --enable-doxygen-man was given.
11461 if test "${enable_doxygen_man+set}" = set; then :
11462   enableval=$enable_doxygen_man;
11463 case "$enableval" in
11464 #(
11465 y|Y|yes|Yes|YES)
11466     DX_FLAG_man=1
11467
11468
11469 test "$DX_FLAG_doc" = "1" \
11470 || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
11471
11472 ;; #(
11473 n|N|no|No|NO)
11474     DX_FLAG_man=0
11475
11476 ;; #(
11477 *)
11478     as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
11479 ;;
11480 esac
11481
11482 else
11483
11484 DX_FLAG_man=0
11485
11486
11487 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
11488
11489
11490
11491 fi
11492
11493 if test "$DX_FLAG_man" = 1; then
11494
11495     :
11496 fi
11497 if test "$DX_FLAG_man" = 1; then
11498      if :; then
11499   DX_COND_man_TRUE=
11500   DX_COND_man_FALSE='#'
11501 else
11502   DX_COND_man_TRUE='#'
11503   DX_COND_man_FALSE=
11504 fi
11505
11506     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
11507
11508     :
11509 else
11510      if false; then
11511   DX_COND_man_TRUE=
11512   DX_COND_man_FALSE='#'
11513 else
11514   DX_COND_man_TRUE='#'
11515   DX_COND_man_FALSE=
11516 fi
11517
11518     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
11519
11520     :
11521 fi
11522
11523
11524 # RTF file generation:
11525
11526
11527
11528     # Check whether --enable-doxygen-rtf was given.
11529 if test "${enable_doxygen_rtf+set}" = set; then :
11530   enableval=$enable_doxygen_rtf;
11531 case "$enableval" in
11532 #(
11533 y|Y|yes|Yes|YES)
11534     DX_FLAG_rtf=1
11535
11536
11537 test "$DX_FLAG_doc" = "1" \
11538 || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
11539
11540 ;; #(
11541 n|N|no|No|NO)
11542     DX_FLAG_rtf=0
11543
11544 ;; #(
11545 *)
11546     as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
11547 ;;
11548 esac
11549
11550 else
11551
11552 DX_FLAG_rtf=0
11553
11554
11555 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
11556
11557
11558
11559 fi
11560
11561 if test "$DX_FLAG_rtf" = 1; then
11562
11563     :
11564 fi
11565 if test "$DX_FLAG_rtf" = 1; then
11566      if :; then
11567   DX_COND_rtf_TRUE=
11568   DX_COND_rtf_FALSE='#'
11569 else
11570   DX_COND_rtf_TRUE='#'
11571   DX_COND_rtf_FALSE=
11572 fi
11573
11574     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
11575
11576     :
11577 else
11578      if false; then
11579   DX_COND_rtf_TRUE=
11580   DX_COND_rtf_FALSE='#'
11581 else
11582   DX_COND_rtf_TRUE='#'
11583   DX_COND_rtf_FALSE=
11584 fi
11585
11586     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
11587
11588     :
11589 fi
11590
11591
11592 # XML file generation:
11593
11594
11595
11596     # Check whether --enable-doxygen-xml was given.
11597 if test "${enable_doxygen_xml+set}" = set; then :
11598   enableval=$enable_doxygen_xml;
11599 case "$enableval" in
11600 #(
11601 y|Y|yes|Yes|YES)
11602     DX_FLAG_xml=1
11603
11604
11605 test "$DX_FLAG_doc" = "1" \
11606 || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
11607
11608 ;; #(
11609 n|N|no|No|NO)
11610     DX_FLAG_xml=0
11611
11612 ;; #(
11613 *)
11614     as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
11615 ;;
11616 esac
11617
11618 else
11619
11620 DX_FLAG_xml=0
11621
11622
11623 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
11624
11625
11626
11627 fi
11628
11629 if test "$DX_FLAG_xml" = 1; then
11630
11631     :
11632 fi
11633 if test "$DX_FLAG_xml" = 1; then
11634      if :; then
11635   DX_COND_xml_TRUE=
11636   DX_COND_xml_FALSE='#'
11637 else
11638   DX_COND_xml_TRUE='#'
11639   DX_COND_xml_FALSE=
11640 fi
11641
11642     DX_ENV="$DX_ENV GENERATE_XML='YES'"
11643
11644     :
11645 else
11646      if false; then
11647   DX_COND_xml_TRUE=
11648   DX_COND_xml_FALSE='#'
11649 else
11650   DX_COND_xml_TRUE='#'
11651   DX_COND_xml_FALSE=
11652 fi
11653
11654     DX_ENV="$DX_ENV GENERATE_XML='NO'"
11655
11656     :
11657 fi
11658
11659
11660 # (Compressed) HTML help generation:
11661
11662
11663
11664     # Check whether --enable-doxygen-chm was given.
11665 if test "${enable_doxygen_chm+set}" = set; then :
11666   enableval=$enable_doxygen_chm;
11667 case "$enableval" in
11668 #(
11669 y|Y|yes|Yes|YES)
11670     DX_FLAG_chm=1
11671
11672
11673 test "$DX_FLAG_doc" = "1" \
11674 || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
11675
11676 ;; #(
11677 n|N|no|No|NO)
11678     DX_FLAG_chm=0
11679
11680 ;; #(
11681 *)
11682     as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
11683 ;;
11684 esac
11685
11686 else
11687
11688 DX_FLAG_chm=0
11689
11690
11691 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
11692
11693
11694
11695 fi
11696
11697 if test "$DX_FLAG_chm" = 1; then
11698
11699 if test -n "$ac_tool_prefix"; then
11700   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
11701 set dummy ${ac_tool_prefix}hhc; ac_word=$2
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11703 $as_echo_n "checking for $ac_word... " >&6; }
11704 if test "${ac_cv_path_DX_HHC+set}" = set; then :
11705   $as_echo_n "(cached) " >&6
11706 else
11707   case $DX_HHC in
11708   [\\/]* | ?:[\\/]*)
11709   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
11710   ;;
11711   *)
11712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713 for as_dir in $PATH
11714 do
11715   IFS=$as_save_IFS
11716   test -z "$as_dir" && as_dir=.
11717     for ac_exec_ext in '' $ac_executable_extensions; do
11718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11719     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
11720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11721     break 2
11722   fi
11723 done
11724   done
11725 IFS=$as_save_IFS
11726
11727   ;;
11728 esac
11729 fi
11730 DX_HHC=$ac_cv_path_DX_HHC
11731 if test -n "$DX_HHC"; then
11732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
11733 $as_echo "$DX_HHC" >&6; }
11734 else
11735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11737 fi
11738
11739
11740 fi
11741 if test -z "$ac_cv_path_DX_HHC"; then
11742   ac_pt_DX_HHC=$DX_HHC
11743   # Extract the first word of "hhc", so it can be a program name with args.
11744 set dummy hhc; ac_word=$2
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746 $as_echo_n "checking for $ac_word... " >&6; }
11747 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
11748   $as_echo_n "(cached) " >&6
11749 else
11750   case $ac_pt_DX_HHC in
11751   [\\/]* | ?:[\\/]*)
11752   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
11753   ;;
11754   *)
11755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756 for as_dir in $PATH
11757 do
11758   IFS=$as_save_IFS
11759   test -z "$as_dir" && as_dir=.
11760     for ac_exec_ext in '' $ac_executable_extensions; do
11761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11762     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
11763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764     break 2
11765   fi
11766 done
11767   done
11768 IFS=$as_save_IFS
11769
11770   ;;
11771 esac
11772 fi
11773 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
11774 if test -n "$ac_pt_DX_HHC"; then
11775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
11776 $as_echo "$ac_pt_DX_HHC" >&6; }
11777 else
11778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 $as_echo "no" >&6; }
11780 fi
11781
11782   if test "x$ac_pt_DX_HHC" = x; then
11783     DX_HHC=""
11784   else
11785     case $cross_compiling:$ac_tool_warned in
11786 yes:)
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11789 ac_tool_warned=yes ;;
11790 esac
11791     DX_HHC=$ac_pt_DX_HHC
11792   fi
11793 else
11794   DX_HHC="$ac_cv_path_DX_HHC"
11795 fi
11796
11797 if test "$DX_FLAG_chm$DX_HHC" = 1; then
11798     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
11799 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
11800     DX_FLAG_chm=0
11801
11802 fi
11803
11804     :
11805 fi
11806 if test "$DX_FLAG_chm" = 1; then
11807      if :; then
11808   DX_COND_chm_TRUE=
11809   DX_COND_chm_FALSE='#'
11810 else
11811   DX_COND_chm_TRUE='#'
11812   DX_COND_chm_FALSE=
11813 fi
11814
11815     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
11816
11817              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
11818
11819              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
11820
11821     :
11822 else
11823      if false; then
11824   DX_COND_chm_TRUE=
11825   DX_COND_chm_FALSE='#'
11826 else
11827   DX_COND_chm_TRUE='#'
11828   DX_COND_chm_FALSE=
11829 fi
11830
11831     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
11832
11833     :
11834 fi
11835
11836
11837 # Seperate CHI file generation.
11838
11839
11840
11841     # Check whether --enable-doxygen-chi was given.
11842 if test "${enable_doxygen_chi+set}" = set; then :
11843   enableval=$enable_doxygen_chi;
11844 case "$enableval" in
11845 #(
11846 y|Y|yes|Yes|YES)
11847     DX_FLAG_chi=1
11848
11849
11850 test "$DX_FLAG_chm" = "1" \
11851 || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
11852
11853 ;; #(
11854 n|N|no|No|NO)
11855     DX_FLAG_chi=0
11856
11857 ;; #(
11858 *)
11859     as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
11860 ;;
11861 esac
11862
11863 else
11864
11865 DX_FLAG_chi=0
11866
11867
11868 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
11869
11870
11871
11872 fi
11873
11874 if test "$DX_FLAG_chi" = 1; then
11875
11876     :
11877 fi
11878 if test "$DX_FLAG_chi" = 1; then
11879      if :; then
11880   DX_COND_chi_TRUE=
11881   DX_COND_chi_FALSE='#'
11882 else
11883   DX_COND_chi_TRUE='#'
11884   DX_COND_chi_FALSE=
11885 fi
11886
11887     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
11888
11889     :
11890 else
11891      if false; then
11892   DX_COND_chi_TRUE=
11893   DX_COND_chi_FALSE='#'
11894 else
11895   DX_COND_chi_TRUE='#'
11896   DX_COND_chi_FALSE=
11897 fi
11898
11899     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
11900
11901     :
11902 fi
11903
11904
11905 # Plain HTML pages generation:
11906
11907
11908
11909     # Check whether --enable-doxygen-html was given.
11910 if test "${enable_doxygen_html+set}" = set; then :
11911   enableval=$enable_doxygen_html;
11912 case "$enableval" in
11913 #(
11914 y|Y|yes|Yes|YES)
11915     DX_FLAG_html=1
11916
11917
11918 test "$DX_FLAG_doc" = "1" \
11919 || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
11920
11921 test "$DX_FLAG_chm" = "0" \
11922 || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
11923
11924 ;; #(
11925 n|N|no|No|NO)
11926     DX_FLAG_html=0
11927
11928 ;; #(
11929 *)
11930     as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
11931 ;;
11932 esac
11933
11934 else
11935
11936 DX_FLAG_html=1
11937
11938
11939 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
11940
11941
11942 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
11943
11944
11945
11946 fi
11947
11948 if test "$DX_FLAG_html" = 1; then
11949
11950     :
11951 fi
11952 if test "$DX_FLAG_html" = 1; then
11953      if :; then
11954   DX_COND_html_TRUE=
11955   DX_COND_html_FALSE='#'
11956 else
11957   DX_COND_html_TRUE='#'
11958   DX_COND_html_FALSE=
11959 fi
11960
11961     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
11962
11963     :
11964 else
11965      if false; then
11966   DX_COND_html_TRUE=
11967   DX_COND_html_FALSE='#'
11968 else
11969   DX_COND_html_TRUE='#'
11970   DX_COND_html_FALSE=
11971 fi
11972
11973     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
11974
11975     :
11976 fi
11977
11978
11979 # PostScript file generation:
11980
11981
11982
11983     # Check whether --enable-doxygen-ps was given.
11984 if test "${enable_doxygen_ps+set}" = set; then :
11985   enableval=$enable_doxygen_ps;
11986 case "$enableval" in
11987 #(
11988 y|Y|yes|Yes|YES)
11989     DX_FLAG_ps=1
11990
11991
11992 test "$DX_FLAG_doc" = "1" \
11993 || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
11994
11995 ;; #(
11996 n|N|no|No|NO)
11997     DX_FLAG_ps=0
11998
11999 ;; #(
12000 *)
12001     as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
12002 ;;
12003 esac
12004
12005 else
12006
12007 DX_FLAG_ps=0
12008
12009
12010 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
12011
12012
12013
12014 fi
12015
12016 if test "$DX_FLAG_ps" = 1; then
12017
12018 if test -n "$ac_tool_prefix"; then
12019   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
12020 set dummy ${ac_tool_prefix}latex; ac_word=$2
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
12024   $as_echo_n "(cached) " >&6
12025 else
12026   case $DX_LATEX in
12027   [\\/]* | ?:[\\/]*)
12028   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
12029   ;;
12030   *)
12031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH
12033 do
12034   IFS=$as_save_IFS
12035   test -z "$as_dir" && as_dir=.
12036     for ac_exec_ext in '' $ac_executable_extensions; do
12037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12038     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12040     break 2
12041   fi
12042 done
12043   done
12044 IFS=$as_save_IFS
12045
12046   ;;
12047 esac
12048 fi
12049 DX_LATEX=$ac_cv_path_DX_LATEX
12050 if test -n "$DX_LATEX"; then
12051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
12052 $as_echo "$DX_LATEX" >&6; }
12053 else
12054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12056 fi
12057
12058
12059 fi
12060 if test -z "$ac_cv_path_DX_LATEX"; then
12061   ac_pt_DX_LATEX=$DX_LATEX
12062   # Extract the first word of "latex", so it can be a program name with args.
12063 set dummy latex; ac_word=$2
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065 $as_echo_n "checking for $ac_word... " >&6; }
12066 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
12067   $as_echo_n "(cached) " >&6
12068 else
12069   case $ac_pt_DX_LATEX in
12070   [\\/]* | ?:[\\/]*)
12071   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
12072   ;;
12073   *)
12074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12075 for as_dir in $PATH
12076 do
12077   IFS=$as_save_IFS
12078   test -z "$as_dir" && as_dir=.
12079     for ac_exec_ext in '' $ac_executable_extensions; do
12080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12081     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
12082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12083     break 2
12084   fi
12085 done
12086   done
12087 IFS=$as_save_IFS
12088
12089   ;;
12090 esac
12091 fi
12092 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
12093 if test -n "$ac_pt_DX_LATEX"; then
12094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
12095 $as_echo "$ac_pt_DX_LATEX" >&6; }
12096 else
12097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098 $as_echo "no" >&6; }
12099 fi
12100
12101   if test "x$ac_pt_DX_LATEX" = x; then
12102     DX_LATEX=""
12103   else
12104     case $cross_compiling:$ac_tool_warned in
12105 yes:)
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12108 ac_tool_warned=yes ;;
12109 esac
12110     DX_LATEX=$ac_pt_DX_LATEX
12111   fi
12112 else
12113   DX_LATEX="$ac_cv_path_DX_LATEX"
12114 fi
12115
12116 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
12117     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
12118 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
12119     DX_FLAG_ps=0
12120
12121 fi
12122
12123
12124 if test -n "$ac_tool_prefix"; then
12125   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12126 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128 $as_echo_n "checking for $ac_word... " >&6; }
12129 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
12130   $as_echo_n "(cached) " >&6
12131 else
12132   case $DX_MAKEINDEX in
12133   [\\/]* | ?:[\\/]*)
12134   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
12135   ;;
12136   *)
12137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12139 do
12140   IFS=$as_save_IFS
12141   test -z "$as_dir" && as_dir=.
12142     for ac_exec_ext in '' $ac_executable_extensions; do
12143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12144     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146     break 2
12147   fi
12148 done
12149   done
12150 IFS=$as_save_IFS
12151
12152   ;;
12153 esac
12154 fi
12155 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
12156 if test -n "$DX_MAKEINDEX"; then
12157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
12158 $as_echo "$DX_MAKEINDEX" >&6; }
12159 else
12160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161 $as_echo "no" >&6; }
12162 fi
12163
12164
12165 fi
12166 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
12167   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
12168   # Extract the first word of "makeindex", so it can be a program name with args.
12169 set dummy makeindex; ac_word=$2
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171 $as_echo_n "checking for $ac_word... " >&6; }
12172 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
12173   $as_echo_n "(cached) " >&6
12174 else
12175   case $ac_pt_DX_MAKEINDEX in
12176   [\\/]* | ?:[\\/]*)
12177   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
12178   ;;
12179   *)
12180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181 for as_dir in $PATH
12182 do
12183   IFS=$as_save_IFS
12184   test -z "$as_dir" && as_dir=.
12185     for ac_exec_ext in '' $ac_executable_extensions; do
12186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12187     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189     break 2
12190   fi
12191 done
12192   done
12193 IFS=$as_save_IFS
12194
12195   ;;
12196 esac
12197 fi
12198 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
12199 if test -n "$ac_pt_DX_MAKEINDEX"; then
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
12201 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
12202 else
12203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12205 fi
12206
12207   if test "x$ac_pt_DX_MAKEINDEX" = x; then
12208     DX_MAKEINDEX=""
12209   else
12210     case $cross_compiling:$ac_tool_warned in
12211 yes:)
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12214 ac_tool_warned=yes ;;
12215 esac
12216     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
12217   fi
12218 else
12219   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
12220 fi
12221
12222 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
12223     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
12224 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
12225     DX_FLAG_ps=0
12226
12227 fi
12228
12229
12230 if test -n "$ac_tool_prefix"; then
12231   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
12232 set dummy ${ac_tool_prefix}dvips; ac_word=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234 $as_echo_n "checking for $ac_word... " >&6; }
12235 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
12236   $as_echo_n "(cached) " >&6
12237 else
12238   case $DX_DVIPS in
12239   [\\/]* | ?:[\\/]*)
12240   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
12241   ;;
12242   *)
12243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $PATH
12245 do
12246   IFS=$as_save_IFS
12247   test -z "$as_dir" && as_dir=.
12248     for ac_exec_ext in '' $ac_executable_extensions; do
12249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12250     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
12251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252     break 2
12253   fi
12254 done
12255   done
12256 IFS=$as_save_IFS
12257
12258   ;;
12259 esac
12260 fi
12261 DX_DVIPS=$ac_cv_path_DX_DVIPS
12262 if test -n "$DX_DVIPS"; then
12263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
12264 $as_echo "$DX_DVIPS" >&6; }
12265 else
12266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12268 fi
12269
12270
12271 fi
12272 if test -z "$ac_cv_path_DX_DVIPS"; then
12273   ac_pt_DX_DVIPS=$DX_DVIPS
12274   # Extract the first word of "dvips", so it can be a program name with args.
12275 set dummy dvips; ac_word=$2
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12277 $as_echo_n "checking for $ac_word... " >&6; }
12278 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
12279   $as_echo_n "(cached) " >&6
12280 else
12281   case $ac_pt_DX_DVIPS in
12282   [\\/]* | ?:[\\/]*)
12283   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
12284   ;;
12285   *)
12286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12287 for as_dir in $PATH
12288 do
12289   IFS=$as_save_IFS
12290   test -z "$as_dir" && as_dir=.
12291     for ac_exec_ext in '' $ac_executable_extensions; do
12292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12293     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
12294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12295     break 2
12296   fi
12297 done
12298   done
12299 IFS=$as_save_IFS
12300
12301   ;;
12302 esac
12303 fi
12304 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
12305 if test -n "$ac_pt_DX_DVIPS"; then
12306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
12307 $as_echo "$ac_pt_DX_DVIPS" >&6; }
12308 else
12309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310 $as_echo "no" >&6; }
12311 fi
12312
12313   if test "x$ac_pt_DX_DVIPS" = x; then
12314     DX_DVIPS=""
12315   else
12316     case $cross_compiling:$ac_tool_warned in
12317 yes:)
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12320 ac_tool_warned=yes ;;
12321 esac
12322     DX_DVIPS=$ac_pt_DX_DVIPS
12323   fi
12324 else
12325   DX_DVIPS="$ac_cv_path_DX_DVIPS"
12326 fi
12327
12328 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
12329     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
12330 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
12331     DX_FLAG_ps=0
12332
12333 fi
12334
12335
12336 if test -n "$ac_tool_prefix"; then
12337   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
12338 set dummy ${ac_tool_prefix}egrep; ac_word=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
12342   $as_echo_n "(cached) " >&6
12343 else
12344   case $DX_EGREP in
12345   [\\/]* | ?:[\\/]*)
12346   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
12347   ;;
12348   *)
12349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350 for as_dir in $PATH
12351 do
12352   IFS=$as_save_IFS
12353   test -z "$as_dir" && as_dir=.
12354     for ac_exec_ext in '' $ac_executable_extensions; do
12355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12356     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12358     break 2
12359   fi
12360 done
12361   done
12362 IFS=$as_save_IFS
12363
12364   ;;
12365 esac
12366 fi
12367 DX_EGREP=$ac_cv_path_DX_EGREP
12368 if test -n "$DX_EGREP"; then
12369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
12370 $as_echo "$DX_EGREP" >&6; }
12371 else
12372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12374 fi
12375
12376
12377 fi
12378 if test -z "$ac_cv_path_DX_EGREP"; then
12379   ac_pt_DX_EGREP=$DX_EGREP
12380   # Extract the first word of "egrep", so it can be a program name with args.
12381 set dummy egrep; ac_word=$2
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12383 $as_echo_n "checking for $ac_word... " >&6; }
12384 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
12385   $as_echo_n "(cached) " >&6
12386 else
12387   case $ac_pt_DX_EGREP in
12388   [\\/]* | ?:[\\/]*)
12389   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
12390   ;;
12391   *)
12392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393 for as_dir in $PATH
12394 do
12395   IFS=$as_save_IFS
12396   test -z "$as_dir" && as_dir=.
12397     for ac_exec_ext in '' $ac_executable_extensions; do
12398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12399     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12401     break 2
12402   fi
12403 done
12404   done
12405 IFS=$as_save_IFS
12406
12407   ;;
12408 esac
12409 fi
12410 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
12411 if test -n "$ac_pt_DX_EGREP"; then
12412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
12413 $as_echo "$ac_pt_DX_EGREP" >&6; }
12414 else
12415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 $as_echo "no" >&6; }
12417 fi
12418
12419   if test "x$ac_pt_DX_EGREP" = x; then
12420     DX_EGREP=""
12421   else
12422     case $cross_compiling:$ac_tool_warned in
12423 yes:)
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12426 ac_tool_warned=yes ;;
12427 esac
12428     DX_EGREP=$ac_pt_DX_EGREP
12429   fi
12430 else
12431   DX_EGREP="$ac_cv_path_DX_EGREP"
12432 fi
12433
12434 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
12435     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
12436 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
12437     DX_FLAG_ps=0
12438
12439 fi
12440
12441     :
12442 fi
12443 if test "$DX_FLAG_ps" = 1; then
12444      if :; then
12445   DX_COND_ps_TRUE=
12446   DX_COND_ps_FALSE='#'
12447 else
12448   DX_COND_ps_TRUE='#'
12449   DX_COND_ps_FALSE=
12450 fi
12451
12452
12453     :
12454 else
12455      if false; then
12456   DX_COND_ps_TRUE=
12457   DX_COND_ps_FALSE='#'
12458 else
12459   DX_COND_ps_TRUE='#'
12460   DX_COND_ps_FALSE=
12461 fi
12462
12463
12464     :
12465 fi
12466
12467
12468 # PDF file generation:
12469
12470
12471
12472     # Check whether --enable-doxygen-pdf was given.
12473 if test "${enable_doxygen_pdf+set}" = set; then :
12474   enableval=$enable_doxygen_pdf;
12475 case "$enableval" in
12476 #(
12477 y|Y|yes|Yes|YES)
12478     DX_FLAG_pdf=1
12479
12480
12481 test "$DX_FLAG_doc" = "1" \
12482 || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
12483
12484 ;; #(
12485 n|N|no|No|NO)
12486     DX_FLAG_pdf=0
12487
12488 ;; #(
12489 *)
12490     as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
12491 ;;
12492 esac
12493
12494 else
12495
12496 DX_FLAG_pdf=0
12497
12498
12499 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
12500
12501
12502
12503 fi
12504
12505 if test "$DX_FLAG_pdf" = 1; then
12506
12507 if test -n "$ac_tool_prefix"; then
12508   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
12509 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12511 $as_echo_n "checking for $ac_word... " >&6; }
12512 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
12513   $as_echo_n "(cached) " >&6
12514 else
12515   case $DX_PDFLATEX in
12516   [\\/]* | ?:[\\/]*)
12517   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
12518   ;;
12519   *)
12520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12521 for as_dir in $PATH
12522 do
12523   IFS=$as_save_IFS
12524   test -z "$as_dir" && as_dir=.
12525     for ac_exec_ext in '' $ac_executable_extensions; do
12526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12527     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
12528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12529     break 2
12530   fi
12531 done
12532   done
12533 IFS=$as_save_IFS
12534
12535   ;;
12536 esac
12537 fi
12538 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
12539 if test -n "$DX_PDFLATEX"; then
12540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
12541 $as_echo "$DX_PDFLATEX" >&6; }
12542 else
12543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12545 fi
12546
12547
12548 fi
12549 if test -z "$ac_cv_path_DX_PDFLATEX"; then
12550   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
12551   # Extract the first word of "pdflatex", so it can be a program name with args.
12552 set dummy pdflatex; ac_word=$2
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12554 $as_echo_n "checking for $ac_word... " >&6; }
12555 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
12556   $as_echo_n "(cached) " >&6
12557 else
12558   case $ac_pt_DX_PDFLATEX in
12559   [\\/]* | ?:[\\/]*)
12560   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
12561   ;;
12562   *)
12563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564 for as_dir in $PATH
12565 do
12566   IFS=$as_save_IFS
12567   test -z "$as_dir" && as_dir=.
12568     for ac_exec_ext in '' $ac_executable_extensions; do
12569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12570     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
12571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572     break 2
12573   fi
12574 done
12575   done
12576 IFS=$as_save_IFS
12577
12578   ;;
12579 esac
12580 fi
12581 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
12582 if test -n "$ac_pt_DX_PDFLATEX"; then
12583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
12584 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
12585 else
12586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12588 fi
12589
12590   if test "x$ac_pt_DX_PDFLATEX" = x; then
12591     DX_PDFLATEX=""
12592   else
12593     case $cross_compiling:$ac_tool_warned in
12594 yes:)
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12597 ac_tool_warned=yes ;;
12598 esac
12599     DX_PDFLATEX=$ac_pt_DX_PDFLATEX
12600   fi
12601 else
12602   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
12603 fi
12604
12605 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
12606     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
12607 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
12608     DX_FLAG_pdf=0
12609
12610 fi
12611
12612
12613 if test -n "$ac_tool_prefix"; then
12614   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
12615 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617 $as_echo_n "checking for $ac_word... " >&6; }
12618 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
12619   $as_echo_n "(cached) " >&6
12620 else
12621   case $DX_MAKEINDEX in
12622   [\\/]* | ?:[\\/]*)
12623   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
12624   ;;
12625   *)
12626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627 for as_dir in $PATH
12628 do
12629   IFS=$as_save_IFS
12630   test -z "$as_dir" && as_dir=.
12631     for ac_exec_ext in '' $ac_executable_extensions; do
12632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12633     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12635     break 2
12636   fi
12637 done
12638   done
12639 IFS=$as_save_IFS
12640
12641   ;;
12642 esac
12643 fi
12644 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
12645 if test -n "$DX_MAKEINDEX"; then
12646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
12647 $as_echo "$DX_MAKEINDEX" >&6; }
12648 else
12649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12651 fi
12652
12653
12654 fi
12655 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
12656   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
12657   # Extract the first word of "makeindex", so it can be a program name with args.
12658 set dummy makeindex; ac_word=$2
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660 $as_echo_n "checking for $ac_word... " >&6; }
12661 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
12662   $as_echo_n "(cached) " >&6
12663 else
12664   case $ac_pt_DX_MAKEINDEX in
12665   [\\/]* | ?:[\\/]*)
12666   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
12667   ;;
12668   *)
12669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670 for as_dir in $PATH
12671 do
12672   IFS=$as_save_IFS
12673   test -z "$as_dir" && as_dir=.
12674     for ac_exec_ext in '' $ac_executable_extensions; do
12675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12676     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
12677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12678     break 2
12679   fi
12680 done
12681   done
12682 IFS=$as_save_IFS
12683
12684   ;;
12685 esac
12686 fi
12687 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
12688 if test -n "$ac_pt_DX_MAKEINDEX"; then
12689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
12690 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
12691 else
12692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693 $as_echo "no" >&6; }
12694 fi
12695
12696   if test "x$ac_pt_DX_MAKEINDEX" = x; then
12697     DX_MAKEINDEX=""
12698   else
12699     case $cross_compiling:$ac_tool_warned in
12700 yes:)
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12703 ac_tool_warned=yes ;;
12704 esac
12705     DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
12706   fi
12707 else
12708   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
12709 fi
12710
12711 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
12712     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
12713 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
12714     DX_FLAG_pdf=0
12715
12716 fi
12717
12718
12719 if test -n "$ac_tool_prefix"; then
12720   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
12721 set dummy ${ac_tool_prefix}egrep; ac_word=$2
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723 $as_echo_n "checking for $ac_word... " >&6; }
12724 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
12725   $as_echo_n "(cached) " >&6
12726 else
12727   case $DX_EGREP in
12728   [\\/]* | ?:[\\/]*)
12729   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
12730   ;;
12731   *)
12732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $PATH
12734 do
12735   IFS=$as_save_IFS
12736   test -z "$as_dir" && as_dir=.
12737     for ac_exec_ext in '' $ac_executable_extensions; do
12738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12739     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741     break 2
12742   fi
12743 done
12744   done
12745 IFS=$as_save_IFS
12746
12747   ;;
12748 esac
12749 fi
12750 DX_EGREP=$ac_cv_path_DX_EGREP
12751 if test -n "$DX_EGREP"; then
12752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
12753 $as_echo "$DX_EGREP" >&6; }
12754 else
12755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12757 fi
12758
12759
12760 fi
12761 if test -z "$ac_cv_path_DX_EGREP"; then
12762   ac_pt_DX_EGREP=$DX_EGREP
12763   # Extract the first word of "egrep", so it can be a program name with args.
12764 set dummy egrep; ac_word=$2
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766 $as_echo_n "checking for $ac_word... " >&6; }
12767 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
12768   $as_echo_n "(cached) " >&6
12769 else
12770   case $ac_pt_DX_EGREP in
12771   [\\/]* | ?:[\\/]*)
12772   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
12773   ;;
12774   *)
12775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776 for as_dir in $PATH
12777 do
12778   IFS=$as_save_IFS
12779   test -z "$as_dir" && as_dir=.
12780     for ac_exec_ext in '' $ac_executable_extensions; do
12781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12782     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
12783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12784     break 2
12785   fi
12786 done
12787   done
12788 IFS=$as_save_IFS
12789
12790   ;;
12791 esac
12792 fi
12793 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
12794 if test -n "$ac_pt_DX_EGREP"; then
12795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
12796 $as_echo "$ac_pt_DX_EGREP" >&6; }
12797 else
12798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799 $as_echo "no" >&6; }
12800 fi
12801
12802   if test "x$ac_pt_DX_EGREP" = x; then
12803     DX_EGREP=""
12804   else
12805     case $cross_compiling:$ac_tool_warned in
12806 yes:)
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12809 ac_tool_warned=yes ;;
12810 esac
12811     DX_EGREP=$ac_pt_DX_EGREP
12812   fi
12813 else
12814   DX_EGREP="$ac_cv_path_DX_EGREP"
12815 fi
12816
12817 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
12818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
12819 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
12820     DX_FLAG_pdf=0
12821
12822 fi
12823
12824     :
12825 fi
12826 if test "$DX_FLAG_pdf" = 1; then
12827      if :; then
12828   DX_COND_pdf_TRUE=
12829   DX_COND_pdf_FALSE='#'
12830 else
12831   DX_COND_pdf_TRUE='#'
12832   DX_COND_pdf_FALSE=
12833 fi
12834
12835
12836     :
12837 else
12838      if false; then
12839   DX_COND_pdf_TRUE=
12840   DX_COND_pdf_FALSE='#'
12841 else
12842   DX_COND_pdf_TRUE='#'
12843   DX_COND_pdf_FALSE=
12844 fi
12845
12846
12847     :
12848 fi
12849
12850
12851 # LaTeX generation for PS and/or PDF:
12852 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
12853      if :; then
12854   DX_COND_latex_TRUE=
12855   DX_COND_latex_FALSE='#'
12856 else
12857   DX_COND_latex_TRUE='#'
12858   DX_COND_latex_FALSE=
12859 fi
12860
12861     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
12862
12863 else
12864      if false; then
12865   DX_COND_latex_TRUE=
12866   DX_COND_latex_FALSE='#'
12867 else
12868   DX_COND_latex_TRUE='#'
12869   DX_COND_latex_FALSE=
12870 fi
12871
12872     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
12873
12874 fi
12875
12876 # Paper size for PS and/or PDF:
12877
12878 case "$DOXYGEN_PAPER_SIZE" in
12879 #(
12880 "")
12881     DOXYGEN_PAPER_SIZE=""
12882
12883 ;; #(
12884 a4wide|a4|letter|legal|executive)
12885     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
12886
12887 ;; #(
12888 *)
12889     as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
12890 ;;
12891 esac
12892
12893 #For debugging:
12894 #echo DX_FLAG_doc=$DX_FLAG_doc
12895 #echo DX_FLAG_dot=$DX_FLAG_dot
12896 #echo DX_FLAG_man=$DX_FLAG_man
12897 #echo DX_FLAG_html=$DX_FLAG_html
12898 #echo DX_FLAG_chm=$DX_FLAG_chm
12899 #echo DX_FLAG_chi=$DX_FLAG_chi
12900 #echo DX_FLAG_rtf=$DX_FLAG_rtf
12901 #echo DX_FLAG_xml=$DX_FLAG_xml
12902 #echo DX_FLAG_pdf=$DX_FLAG_pdf
12903 #echo DX_FLAG_ps=$DX_FLAG_ps
12904 #echo DX_ENV=$DX_ENV
12905
12906 DX_INCLUDE=
12907
12908 # Check whether --enable-debug was given.
12909 if test "${enable_debug+set}" = set; then :
12910   enableval=$enable_debug; enable_debug=$enableval
12911 else
12912   enable_debug=no
12913 fi
12914
12915
12916 if test "$enable_debug" = "yes" ; then
12917     GCC_CFLAGS="$CFLAGS -Wall -g -D_DEBUG"
12918     GCC_CXXFLAGS="$CXXFLAGS -Wall -g -D_DEBUG"
12919 else
12920     GCC_CFLAGS="$CFLAGS -Wall -O2 -DNDEBUG"
12921     GCC_CXXFLAGS="$CXXFLAGS -Wall -O2 -DNDEBUG"
12922 fi
12923
12924 ac_config_headers="$ac_config_headers config.h"
12925
12926 ac_config_files="$ac_config_files opensaml.spec pkginfo Portfile"
12927
12928 ac_config_files="$ac_config_files Makefile saml/Makefile samltest/Makefile samlsign/Makefile schemas/Makefile doc/Makefile"
12929
12930
12931 ac_ext=c
12932 ac_cpp='$CPP $CPPFLAGS'
12933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936 if test -n "$ac_tool_prefix"; then
12937   for ac_prog in gcc gcc3 cc
12938   do
12939     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942 $as_echo_n "checking for $ac_word... " >&6; }
12943 if test "${ac_cv_prog_CC+set}" = set; then :
12944   $as_echo_n "(cached) " >&6
12945 else
12946   if test -n "$CC"; then
12947   ac_cv_prog_CC="$CC" # Let the user override the test.
12948 else
12949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12950 for as_dir in $PATH
12951 do
12952   IFS=$as_save_IFS
12953   test -z "$as_dir" && as_dir=.
12954     for ac_exec_ext in '' $ac_executable_extensions; do
12955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12956     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12958     break 2
12959   fi
12960 done
12961   done
12962 IFS=$as_save_IFS
12963
12964 fi
12965 fi
12966 CC=$ac_cv_prog_CC
12967 if test -n "$CC"; then
12968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12969 $as_echo "$CC" >&6; }
12970 else
12971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972 $as_echo "no" >&6; }
12973 fi
12974
12975
12976     test -n "$CC" && break
12977   done
12978 fi
12979 if test -z "$CC"; then
12980   ac_ct_CC=$CC
12981   for ac_prog in gcc gcc3 cc
12982 do
12983   # Extract the first word of "$ac_prog", so it can be a program name with args.
12984 set dummy $ac_prog; ac_word=$2
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12986 $as_echo_n "checking for $ac_word... " >&6; }
12987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12988   $as_echo_n "(cached) " >&6
12989 else
12990   if test -n "$ac_ct_CC"; then
12991   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12992 else
12993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994 for as_dir in $PATH
12995 do
12996   IFS=$as_save_IFS
12997   test -z "$as_dir" && as_dir=.
12998     for ac_exec_ext in '' $ac_executable_extensions; do
12999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13000     ac_cv_prog_ac_ct_CC="$ac_prog"
13001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13002     break 2
13003   fi
13004 done
13005   done
13006 IFS=$as_save_IFS
13007
13008 fi
13009 fi
13010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13011 if test -n "$ac_ct_CC"; then
13012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13013 $as_echo "$ac_ct_CC" >&6; }
13014 else
13015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 $as_echo "no" >&6; }
13017 fi
13018
13019
13020   test -n "$ac_ct_CC" && break
13021 done
13022
13023   if test "x$ac_ct_CC" = x; then
13024     CC=""
13025   else
13026     case $cross_compiling:$ac_tool_warned in
13027 yes:)
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13030 ac_tool_warned=yes ;;
13031 esac
13032     CC=$ac_ct_CC
13033   fi
13034 fi
13035
13036
13037 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13039 as_fn_error $? "no acceptable C compiler found in \$PATH
13040 See \`config.log' for more details" "$LINENO" 5 ; }
13041
13042 # Provide some information about the compiler.
13043 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13044 set X $ac_compile
13045 ac_compiler=$2
13046 for ac_option in --version -v -V -qversion; do
13047   { { ac_try="$ac_compiler $ac_option >&5"
13048 case "(($ac_try" in
13049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050   *) ac_try_echo=$ac_try;;
13051 esac
13052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13053 $as_echo "$ac_try_echo"; } >&5
13054   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13055   ac_status=$?
13056   if test -s conftest.err; then
13057     sed '10a\
13058 ... rest of stderr output deleted ...
13059          10q' conftest.err >conftest.er1
13060     cat conftest.er1 >&5
13061   fi
13062   rm -f conftest.er1 conftest.err
13063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13064   test $ac_status = 0; }
13065 done
13066
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13068 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13069 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
13070   $as_echo_n "(cached) " >&6
13071 else
13072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073 /* end confdefs.h.  */
13074
13075 int
13076 main ()
13077 {
13078 #ifndef __GNUC__
13079        choke me
13080 #endif
13081
13082   ;
13083   return 0;
13084 }
13085 _ACEOF
13086 if ac_fn_c_try_compile "$LINENO"; then :
13087   ac_compiler_gnu=yes
13088 else
13089   ac_compiler_gnu=no
13090 fi
13091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13092 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13093
13094 fi
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13096 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13097 if test $ac_compiler_gnu = yes; then
13098   GCC=yes
13099 else
13100   GCC=
13101 fi
13102 ac_test_CFLAGS=${CFLAGS+set}
13103 ac_save_CFLAGS=$CFLAGS
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13105 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13106 if test "${ac_cv_prog_cc_g+set}" = set; then :
13107   $as_echo_n "(cached) " >&6
13108 else
13109   ac_save_c_werror_flag=$ac_c_werror_flag
13110    ac_c_werror_flag=yes
13111    ac_cv_prog_cc_g=no
13112    CFLAGS="-g"
13113    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h.  */
13115
13116 int
13117 main ()
13118 {
13119
13120   ;
13121   return 0;
13122 }
13123 _ACEOF
13124 if ac_fn_c_try_compile "$LINENO"; then :
13125   ac_cv_prog_cc_g=yes
13126 else
13127   CFLAGS=""
13128       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h.  */
13130
13131 int
13132 main ()
13133 {
13134
13135   ;
13136   return 0;
13137 }
13138 _ACEOF
13139 if ac_fn_c_try_compile "$LINENO"; then :
13140
13141 else
13142   ac_c_werror_flag=$ac_save_c_werror_flag
13143          CFLAGS="-g"
13144          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h.  */
13146
13147 int
13148 main ()
13149 {
13150
13151   ;
13152   return 0;
13153 }
13154 _ACEOF
13155 if ac_fn_c_try_compile "$LINENO"; then :
13156   ac_cv_prog_cc_g=yes
13157 fi
13158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13159 fi
13160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13161 fi
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163    ac_c_werror_flag=$ac_save_c_werror_flag
13164 fi
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13166 $as_echo "$ac_cv_prog_cc_g" >&6; }
13167 if test "$ac_test_CFLAGS" = set; then
13168   CFLAGS=$ac_save_CFLAGS
13169 elif test $ac_cv_prog_cc_g = yes; then
13170   if test "$GCC" = yes; then
13171     CFLAGS="-g -O2"
13172   else
13173     CFLAGS="-g"
13174   fi
13175 else
13176   if test "$GCC" = yes; then
13177     CFLAGS="-O2"
13178   else
13179     CFLAGS=
13180   fi
13181 fi
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13183 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13184 if test "${ac_cv_prog_cc_c89+set}" = set; then :
13185   $as_echo_n "(cached) " >&6
13186 else
13187   ac_cv_prog_cc_c89=no
13188 ac_save_CC=$CC
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h.  */
13191 #include <stdarg.h>
13192 #include <stdio.h>
13193 #include <sys/types.h>
13194 #include <sys/stat.h>
13195 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13196 struct buf { int x; };
13197 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13198 static char *e (p, i)
13199      char **p;
13200      int i;
13201 {
13202   return p[i];
13203 }
13204 static char *f (char * (*g) (char **, int), char **p, ...)
13205 {
13206   char *s;
13207   va_list v;
13208   va_start (v,p);
13209   s = g (p, va_arg (v,int));
13210   va_end (v);
13211   return s;
13212 }
13213
13214 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13215    function prototypes and stuff, but not '\xHH' hex character constants.
13216    These don't provoke an error unfortunately, instead are silently treated
13217    as 'x'.  The following induces an error, until -std is added to get
13218    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13219    array size at least.  It's necessary to write '\x00'==0 to get something
13220    that's true only with -std.  */
13221 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13222
13223 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13224    inside strings and character constants.  */
13225 #define FOO(x) 'x'
13226 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13227
13228 int test (int i, double x);
13229 struct s1 {int (*f) (int a);};
13230 struct s2 {int (*f) (double a);};
13231 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13232 int argc;
13233 char **argv;
13234 int
13235 main ()
13236 {
13237 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13238   ;
13239   return 0;
13240 }
13241 _ACEOF
13242 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13243         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13244 do
13245   CC="$ac_save_CC $ac_arg"
13246   if ac_fn_c_try_compile "$LINENO"; then :
13247   ac_cv_prog_cc_c89=$ac_arg
13248 fi
13249 rm -f core conftest.err conftest.$ac_objext
13250   test "x$ac_cv_prog_cc_c89" != "xno" && break
13251 done
13252 rm -f conftest.$ac_ext
13253 CC=$ac_save_CC
13254
13255 fi
13256 # AC_CACHE_VAL
13257 case "x$ac_cv_prog_cc_c89" in
13258   x)
13259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13260 $as_echo "none needed" >&6; } ;;
13261   xno)
13262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13263 $as_echo "unsupported" >&6; } ;;
13264   *)
13265     CC="$CC $ac_cv_prog_cc_c89"
13266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13267 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13268 esac
13269 if test "x$ac_cv_prog_cc_c89" != xno; then :
13270
13271 fi
13272
13273 ac_ext=c
13274 ac_cpp='$CPP $CPPFLAGS'
13275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13278
13279 depcc="$CC"   am_compiler_list=
13280
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13282 $as_echo_n "checking dependency style of $depcc... " >&6; }
13283 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
13284   $as_echo_n "(cached) " >&6
13285 else
13286   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13287   # We make a subdir and do the tests there.  Otherwise we can end up
13288   # making bogus files that we don't know about and never remove.  For
13289   # instance it was reported that on HP-UX the gcc test will end up
13290   # making a dummy file named `D' -- because `-MD' means `put the output
13291   # in D'.
13292   mkdir conftest.dir
13293   # Copy depcomp to subdir because otherwise we won't find it if we're
13294   # using a relative directory.
13295   cp "$am_depcomp" conftest.dir
13296   cd conftest.dir
13297   # We will build objects and dependencies in a subdirectory because
13298   # it helps to detect inapplicable dependency modes.  For instance
13299   # both Tru64's cc and ICC support -MD to output dependencies as a
13300   # side effect of compilation, but ICC will put the dependencies in
13301   # the current directory while Tru64 will put them in the object
13302   # directory.
13303   mkdir sub
13304
13305   am_cv_CC_dependencies_compiler_type=none
13306   if test "$am_compiler_list" = ""; then
13307      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13308   fi
13309   am__universal=false
13310   case " $depcc " in #(
13311      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13312      esac
13313
13314   for depmode in $am_compiler_list; do
13315     # Setup a source with many dependencies, because some compilers
13316     # like to wrap large dependency lists on column 80 (with \), and
13317     # we should not choose a depcomp mode which is confused by this.
13318     #
13319     # We need to recreate these files for each test, as the compiler may
13320     # overwrite some of them when testing with obscure command lines.
13321     # This happens at least with the AIX C compiler.
13322     : > sub/conftest.c
13323     for i in 1 2 3 4 5 6; do
13324       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13325       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13326       # Solaris 8's {/usr,}/bin/sh.
13327       touch sub/conftst$i.h
13328     done
13329     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13330
13331     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13332     # mode.  It turns out that the SunPro C++ compiler does not properly
13333     # handle `-M -o', and we need to detect this.  Also, some Intel
13334     # versions had trouble with output in subdirs
13335     am__obj=sub/conftest.${OBJEXT-o}
13336     am__minus_obj="-o $am__obj"
13337     case $depmode in
13338     gcc)
13339       # This depmode causes a compiler race in universal mode.
13340       test "$am__universal" = false || continue
13341       ;;
13342     nosideeffect)
13343       # after this tag, mechanisms are not by side-effect, so they'll
13344       # only be used when explicitly requested
13345       if test "x$enable_dependency_tracking" = xyes; then
13346         continue
13347       else
13348         break
13349       fi
13350       ;;
13351     msvisualcpp | msvcmsys)
13352       # This compiler won't grok `-c -o', but also, the minuso test has
13353       # not run yet.  These depmodes are late enough in the game, and
13354       # so weak that their functioning should not be impacted.
13355       am__obj=conftest.${OBJEXT-o}
13356       am__minus_obj=
13357       ;;
13358     none) break ;;
13359     esac
13360     if depmode=$depmode \
13361        source=sub/conftest.c object=$am__obj \
13362        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13363        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13364          >/dev/null 2>conftest.err &&
13365        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13366        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13367        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13368        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13369       # icc doesn't choke on unknown options, it will just issue warnings
13370       # or remarks (even with -Werror).  So we grep stderr for any message
13371       # that says an option was ignored or not supported.
13372       # When given -MP, icc 7.0 and 7.1 complain thusly:
13373       #   icc: Command line warning: ignoring option '-M'; no argument required
13374       # The diagnosis changed in icc 8.0:
13375       #   icc: Command line remark: option '-MP' not supported
13376       if (grep 'ignoring option' conftest.err ||
13377           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13378         am_cv_CC_dependencies_compiler_type=$depmode
13379         break
13380       fi
13381     fi
13382   done
13383
13384   cd ..
13385   rm -rf conftest.dir
13386 else
13387   am_cv_CC_dependencies_compiler_type=none
13388 fi
13389
13390 fi
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13392 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13393 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13394
13395  if
13396   test "x$enable_dependency_tracking" != xno \
13397   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13398   am__fastdepCC_TRUE=
13399   am__fastdepCC_FALSE='#'
13400 else
13401   am__fastdepCC_TRUE='#'
13402   am__fastdepCC_FALSE=
13403 fi
13404
13405
13406 ac_ext=cpp
13407 ac_cpp='$CXXCPP $CPPFLAGS'
13408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13411 if test -z "$CXX"; then
13412   if test -n "$CCC"; then
13413     CXX=$CCC
13414   else
13415     if test -n "$ac_tool_prefix"; then
13416   for ac_prog in g++ g++3 c++ CC
13417   do
13418     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if test "${ac_cv_prog_CXX+set}" = set; then :
13423   $as_echo_n "(cached) " >&6
13424 else
13425   if test -n "$CXX"; then
13426   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13427 else
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13430 do
13431   IFS=$as_save_IFS
13432   test -z "$as_dir" && as_dir=.
13433     for ac_exec_ext in '' $ac_executable_extensions; do
13434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13435     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13437     break 2
13438   fi
13439 done
13440   done
13441 IFS=$as_save_IFS
13442
13443 fi
13444 fi
13445 CXX=$ac_cv_prog_CXX
13446 if test -n "$CXX"; then
13447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13448 $as_echo "$CXX" >&6; }
13449 else
13450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13452 fi
13453
13454
13455     test -n "$CXX" && break
13456   done
13457 fi
13458 if test -z "$CXX"; then
13459   ac_ct_CXX=$CXX
13460   for ac_prog in g++ g++3 c++ CC
13461 do
13462   # Extract the first word of "$ac_prog", so it can be a program name with args.
13463 set dummy $ac_prog; ac_word=$2
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13465 $as_echo_n "checking for $ac_word... " >&6; }
13466 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13467   $as_echo_n "(cached) " >&6
13468 else
13469   if test -n "$ac_ct_CXX"; then
13470   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13471 else
13472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473 for as_dir in $PATH
13474 do
13475   IFS=$as_save_IFS
13476   test -z "$as_dir" && as_dir=.
13477     for ac_exec_ext in '' $ac_executable_extensions; do
13478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13479     ac_cv_prog_ac_ct_CXX="$ac_prog"
13480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13481     break 2
13482   fi
13483 done
13484   done
13485 IFS=$as_save_IFS
13486
13487 fi
13488 fi
13489 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13490 if test -n "$ac_ct_CXX"; then
13491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13492 $as_echo "$ac_ct_CXX" >&6; }
13493 else
13494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495 $as_echo "no" >&6; }
13496 fi
13497
13498
13499   test -n "$ac_ct_CXX" && break
13500 done
13501
13502   if test "x$ac_ct_CXX" = x; then
13503     CXX="g++"
13504   else
13505     case $cross_compiling:$ac_tool_warned in
13506 yes:)
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13509 ac_tool_warned=yes ;;
13510 esac
13511     CXX=$ac_ct_CXX
13512   fi
13513 fi
13514
13515   fi
13516 fi
13517 # Provide some information about the compiler.
13518 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13519 set X $ac_compile
13520 ac_compiler=$2
13521 for ac_option in --version -v -V -qversion; do
13522   { { ac_try="$ac_compiler $ac_option >&5"
13523 case "(($ac_try" in
13524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525   *) ac_try_echo=$ac_try;;
13526 esac
13527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13528 $as_echo "$ac_try_echo"; } >&5
13529   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13530   ac_status=$?
13531   if test -s conftest.err; then
13532     sed '10a\
13533 ... rest of stderr output deleted ...
13534          10q' conftest.err >conftest.er1
13535     cat conftest.er1 >&5
13536   fi
13537   rm -f conftest.er1 conftest.err
13538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13539   test $ac_status = 0; }
13540 done
13541
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13543 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13544 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13545   $as_echo_n "(cached) " >&6
13546 else
13547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h.  */
13549
13550 int
13551 main ()
13552 {
13553 #ifndef __GNUC__
13554        choke me
13555 #endif
13556
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 if ac_fn_cxx_try_compile "$LINENO"; then :
13562   ac_compiler_gnu=yes
13563 else
13564   ac_compiler_gnu=no
13565 fi
13566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13567 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13568
13569 fi
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13571 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13572 if test $ac_compiler_gnu = yes; then
13573   GXX=yes
13574 else
13575   GXX=
13576 fi
13577 ac_test_CXXFLAGS=${CXXFLAGS+set}
13578 ac_save_CXXFLAGS=$CXXFLAGS
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13580 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13581 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13582   $as_echo_n "(cached) " >&6
13583 else
13584   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13585    ac_cxx_werror_flag=yes
13586    ac_cv_prog_cxx_g=no
13587    CXXFLAGS="-g"
13588    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h.  */
13590
13591 int
13592 main ()
13593 {
13594
13595   ;
13596   return 0;
13597 }
13598 _ACEOF
13599 if ac_fn_cxx_try_compile "$LINENO"; then :
13600   ac_cv_prog_cxx_g=yes
13601 else
13602   CXXFLAGS=""
13603       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h.  */
13605
13606 int
13607 main ()
13608 {
13609
13610   ;
13611   return 0;
13612 }
13613 _ACEOF
13614 if ac_fn_cxx_try_compile "$LINENO"; then :
13615
13616 else
13617   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13618          CXXFLAGS="-g"
13619          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h.  */
13621
13622 int
13623 main ()
13624 {
13625
13626   ;
13627   return 0;
13628 }
13629 _ACEOF
13630 if ac_fn_cxx_try_compile "$LINENO"; then :
13631   ac_cv_prog_cxx_g=yes
13632 fi
13633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634 fi
13635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13636 fi
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13639 fi
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13641 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13642 if test "$ac_test_CXXFLAGS" = set; then
13643   CXXFLAGS=$ac_save_CXXFLAGS
13644 elif test $ac_cv_prog_cxx_g = yes; then
13645   if test "$GXX" = yes; then
13646     CXXFLAGS="-g -O2"
13647   else
13648     CXXFLAGS="-g"
13649   fi
13650 else
13651   if test "$GXX" = yes; then
13652     CXXFLAGS="-O2"
13653   else
13654     CXXFLAGS=
13655   fi
13656 fi
13657 ac_ext=c
13658 ac_cpp='$CPP $CPPFLAGS'
13659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13662
13663 depcc="$CXX"  am_compiler_list=
13664
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13666 $as_echo_n "checking dependency style of $depcc... " >&6; }
13667 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13668   $as_echo_n "(cached) " >&6
13669 else
13670   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13671   # We make a subdir and do the tests there.  Otherwise we can end up
13672   # making bogus files that we don't know about and never remove.  For
13673   # instance it was reported that on HP-UX the gcc test will end up
13674   # making a dummy file named `D' -- because `-MD' means `put the output
13675   # in D'.
13676   mkdir conftest.dir
13677   # Copy depcomp to subdir because otherwise we won't find it if we're
13678   # using a relative directory.
13679   cp "$am_depcomp" conftest.dir
13680   cd conftest.dir
13681   # We will build objects and dependencies in a subdirectory because
13682   # it helps to detect inapplicable dependency modes.  For instance
13683   # both Tru64's cc and ICC support -MD to output dependencies as a
13684   # side effect of compilation, but ICC will put the dependencies in
13685   # the current directory while Tru64 will put them in the object
13686   # directory.
13687   mkdir sub
13688
13689   am_cv_CXX_dependencies_compiler_type=none
13690   if test "$am_compiler_list" = ""; then
13691      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13692   fi
13693   am__universal=false
13694   case " $depcc " in #(
13695      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13696      esac
13697
13698   for depmode in $am_compiler_list; do
13699     # Setup a source with many dependencies, because some compilers
13700     # like to wrap large dependency lists on column 80 (with \), and
13701     # we should not choose a depcomp mode which is confused by this.
13702     #
13703     # We need to recreate these files for each test, as the compiler may
13704     # overwrite some of them when testing with obscure command lines.
13705     # This happens at least with the AIX C compiler.
13706     : > sub/conftest.c
13707     for i in 1 2 3 4 5 6; do
13708       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13709       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13710       # Solaris 8's {/usr,}/bin/sh.
13711       touch sub/conftst$i.h
13712     done
13713     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13714
13715     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13716     # mode.  It turns out that the SunPro C++ compiler does not properly
13717     # handle `-M -o', and we need to detect this.  Also, some Intel
13718     # versions had trouble with output in subdirs
13719     am__obj=sub/conftest.${OBJEXT-o}
13720     am__minus_obj="-o $am__obj"
13721     case $depmode in
13722     gcc)
13723       # This depmode causes a compiler race in universal mode.
13724       test "$am__universal" = false || continue
13725       ;;
13726     nosideeffect)
13727       # after this tag, mechanisms are not by side-effect, so they'll
13728       # only be used when explicitly requested
13729       if test "x$enable_dependency_tracking" = xyes; then
13730         continue
13731       else
13732         break
13733       fi
13734       ;;
13735     msvisualcpp | msvcmsys)
13736       # This compiler won't grok `-c -o', but also, the minuso test has
13737       # not run yet.  These depmodes are late enough in the game, and
13738       # so weak that their functioning should not be impacted.
13739       am__obj=conftest.${OBJEXT-o}
13740       am__minus_obj=
13741       ;;
13742     none) break ;;
13743     esac
13744     if depmode=$depmode \
13745        source=sub/conftest.c object=$am__obj \
13746        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13747        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13748          >/dev/null 2>conftest.err &&
13749        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13750        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13751        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13752        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13753       # icc doesn't choke on unknown options, it will just issue warnings
13754       # or remarks (even with -Werror).  So we grep stderr for any message
13755       # that says an option was ignored or not supported.
13756       # When given -MP, icc 7.0 and 7.1 complain thusly:
13757       #   icc: Command line warning: ignoring option '-M'; no argument required
13758       # The diagnosis changed in icc 8.0:
13759       #   icc: Command line remark: option '-MP' not supported
13760       if (grep 'ignoring option' conftest.err ||
13761           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13762         am_cv_CXX_dependencies_compiler_type=$depmode
13763         break
13764       fi
13765     fi
13766   done
13767
13768   cd ..
13769   rm -rf conftest.dir
13770 else
13771   am_cv_CXX_dependencies_compiler_type=none
13772 fi
13773
13774 fi
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13776 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13777 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13778
13779  if
13780   test "x$enable_dependency_tracking" != xno \
13781   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13782   am__fastdepCXX_TRUE=
13783   am__fastdepCXX_FALSE='#'
13784 else
13785   am__fastdepCXX_TRUE='#'
13786   am__fastdepCXX_FALSE=
13787 fi
13788
13789
13790
13791 ac_ext=cpp
13792 ac_cpp='$CXXCPP $CPPFLAGS'
13793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13796 if test -z "$CXX"; then
13797   if test -n "$CCC"; then
13798     CXX=$CCC
13799   else
13800     if test -n "$ac_tool_prefix"; then
13801   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13802   do
13803     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13806 $as_echo_n "checking for $ac_word... " >&6; }
13807 if test "${ac_cv_prog_CXX+set}" = set; then :
13808   $as_echo_n "(cached) " >&6
13809 else
13810   if test -n "$CXX"; then
13811   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13812 else
13813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814 for as_dir in $PATH
13815 do
13816   IFS=$as_save_IFS
13817   test -z "$as_dir" && as_dir=.
13818     for ac_exec_ext in '' $ac_executable_extensions; do
13819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13820     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13822     break 2
13823   fi
13824 done
13825   done
13826 IFS=$as_save_IFS
13827
13828 fi
13829 fi
13830 CXX=$ac_cv_prog_CXX
13831 if test -n "$CXX"; then
13832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13833 $as_echo "$CXX" >&6; }
13834 else
13835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13837 fi
13838
13839
13840     test -n "$CXX" && break
13841   done
13842 fi
13843 if test -z "$CXX"; then
13844   ac_ct_CXX=$CXX
13845   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13846 do
13847   # Extract the first word of "$ac_prog", so it can be a program name with args.
13848 set dummy $ac_prog; ac_word=$2
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13850 $as_echo_n "checking for $ac_word... " >&6; }
13851 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13852   $as_echo_n "(cached) " >&6
13853 else
13854   if test -n "$ac_ct_CXX"; then
13855   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13856 else
13857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13858 for as_dir in $PATH
13859 do
13860   IFS=$as_save_IFS
13861   test -z "$as_dir" && as_dir=.
13862     for ac_exec_ext in '' $ac_executable_extensions; do
13863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13864     ac_cv_prog_ac_ct_CXX="$ac_prog"
13865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13866     break 2
13867   fi
13868 done
13869   done
13870 IFS=$as_save_IFS
13871
13872 fi
13873 fi
13874 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13875 if test -n "$ac_ct_CXX"; then
13876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13877 $as_echo "$ac_ct_CXX" >&6; }
13878 else
13879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13880 $as_echo "no" >&6; }
13881 fi
13882
13883
13884   test -n "$ac_ct_CXX" && break
13885 done
13886
13887   if test "x$ac_ct_CXX" = x; then
13888     CXX="g++"
13889   else
13890     case $cross_compiling:$ac_tool_warned in
13891 yes:)
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13894 ac_tool_warned=yes ;;
13895 esac
13896     CXX=$ac_ct_CXX
13897   fi
13898 fi
13899
13900   fi
13901 fi
13902 # Provide some information about the compiler.
13903 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13904 set X $ac_compile
13905 ac_compiler=$2
13906 for ac_option in --version -v -V -qversion; do
13907   { { ac_try="$ac_compiler $ac_option >&5"
13908 case "(($ac_try" in
13909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910   *) ac_try_echo=$ac_try;;
13911 esac
13912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13913 $as_echo "$ac_try_echo"; } >&5
13914   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13915   ac_status=$?
13916   if test -s conftest.err; then
13917     sed '10a\
13918 ... rest of stderr output deleted ...
13919          10q' conftest.err >conftest.er1
13920     cat conftest.er1 >&5
13921   fi
13922   rm -f conftest.er1 conftest.err
13923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13924   test $ac_status = 0; }
13925 done
13926
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13928 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13929 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13930   $as_echo_n "(cached) " >&6
13931 else
13932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h.  */
13934
13935 int
13936 main ()
13937 {
13938 #ifndef __GNUC__
13939        choke me
13940 #endif
13941
13942   ;
13943   return 0;
13944 }
13945 _ACEOF
13946 if ac_fn_cxx_try_compile "$LINENO"; then :
13947   ac_compiler_gnu=yes
13948 else
13949   ac_compiler_gnu=no
13950 fi
13951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13953
13954 fi
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13956 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13957 if test $ac_compiler_gnu = yes; then
13958   GXX=yes
13959 else
13960   GXX=
13961 fi
13962 ac_test_CXXFLAGS=${CXXFLAGS+set}
13963 ac_save_CXXFLAGS=$CXXFLAGS
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13965 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13966 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13967   $as_echo_n "(cached) " >&6
13968 else
13969   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13970    ac_cxx_werror_flag=yes
13971    ac_cv_prog_cxx_g=no
13972    CXXFLAGS="-g"
13973    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h.  */
13975
13976 int
13977 main ()
13978 {
13979
13980   ;
13981   return 0;
13982 }
13983 _ACEOF
13984 if ac_fn_cxx_try_compile "$LINENO"; then :
13985   ac_cv_prog_cxx_g=yes
13986 else
13987   CXXFLAGS=""
13988       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h.  */
13990
13991 int
13992 main ()
13993 {
13994
13995   ;
13996   return 0;
13997 }
13998 _ACEOF
13999 if ac_fn_cxx_try_compile "$LINENO"; then :
14000
14001 else
14002   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14003          CXXFLAGS="-g"
14004          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h.  */
14006
14007 int
14008 main ()
14009 {
14010
14011   ;
14012   return 0;
14013 }
14014 _ACEOF
14015 if ac_fn_cxx_try_compile "$LINENO"; then :
14016   ac_cv_prog_cxx_g=yes
14017 fi
14018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019 fi
14020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14021 fi
14022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14023    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14024 fi
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14026 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14027 if test "$ac_test_CXXFLAGS" = set; then
14028   CXXFLAGS=$ac_save_CXXFLAGS
14029 elif test $ac_cv_prog_cxx_g = yes; then
14030   if test "$GXX" = yes; then
14031     CXXFLAGS="-g -O2"
14032   else
14033     CXXFLAGS="-g"
14034   fi
14035 else
14036   if test "$GXX" = yes; then
14037     CXXFLAGS="-O2"
14038   else
14039     CXXFLAGS=
14040   fi
14041 fi
14042 ac_ext=c
14043 ac_cpp='$CPP $CPPFLAGS'
14044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14047
14048 depcc="$CXX"  am_compiler_list=
14049
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14051 $as_echo_n "checking dependency style of $depcc... " >&6; }
14052 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
14053   $as_echo_n "(cached) " >&6
14054 else
14055   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14056   # We make a subdir and do the tests there.  Otherwise we can end up
14057   # making bogus files that we don't know about and never remove.  For
14058   # instance it was reported that on HP-UX the gcc test will end up
14059   # making a dummy file named `D' -- because `-MD' means `put the output
14060   # in D'.
14061   mkdir conftest.dir
14062   # Copy depcomp to subdir because otherwise we won't find it if we're
14063   # using a relative directory.
14064   cp "$am_depcomp" conftest.dir
14065   cd conftest.dir
14066   # We will build objects and dependencies in a subdirectory because
14067   # it helps to detect inapplicable dependency modes.  For instance
14068   # both Tru64's cc and ICC support -MD to output dependencies as a
14069   # side effect of compilation, but ICC will put the dependencies in
14070   # the current directory while Tru64 will put them in the object
14071   # directory.
14072   mkdir sub
14073
14074   am_cv_CXX_dependencies_compiler_type=none
14075   if test "$am_compiler_list" = ""; then
14076      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14077   fi
14078   am__universal=false
14079   case " $depcc " in #(
14080      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14081      esac
14082
14083   for depmode in $am_compiler_list; do
14084     # Setup a source with many dependencies, because some compilers
14085     # like to wrap large dependency lists on column 80 (with \), and
14086     # we should not choose a depcomp mode which is confused by this.
14087     #
14088     # We need to recreate these files for each test, as the compiler may
14089     # overwrite some of them when testing with obscure command lines.
14090     # This happens at least with the AIX C compiler.
14091     : > sub/conftest.c
14092     for i in 1 2 3 4 5 6; do
14093       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14094       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14095       # Solaris 8's {/usr,}/bin/sh.
14096       touch sub/conftst$i.h
14097     done
14098     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14099
14100     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14101     # mode.  It turns out that the SunPro C++ compiler does not properly
14102     # handle `-M -o', and we need to detect this.  Also, some Intel
14103     # versions had trouble with output in subdirs
14104     am__obj=sub/conftest.${OBJEXT-o}
14105     am__minus_obj="-o $am__obj"
14106     case $depmode in
14107     gcc)
14108       # This depmode causes a compiler race in universal mode.
14109       test "$am__universal" = false || continue
14110       ;;
14111     nosideeffect)
14112       # after this tag, mechanisms are not by side-effect, so they'll
14113       # only be used when explicitly requested
14114       if test "x$enable_dependency_tracking" = xyes; then
14115         continue
14116       else
14117         break
14118       fi
14119       ;;
14120     msvisualcpp | msvcmsys)
14121       # This compiler won't grok `-c -o', but also, the minuso test has
14122       # not run yet.  These depmodes are late enough in the game, and
14123       # so weak that their functioning should not be impacted.
14124       am__obj=conftest.${OBJEXT-o}
14125       am__minus_obj=
14126       ;;
14127     none) break ;;
14128     esac
14129     if depmode=$depmode \
14130        source=sub/conftest.c object=$am__obj \
14131        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14132        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14133          >/dev/null 2>conftest.err &&
14134        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14135        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14136        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14137        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14138       # icc doesn't choke on unknown options, it will just issue warnings
14139       # or remarks (even with -Werror).  So we grep stderr for any message
14140       # that says an option was ignored or not supported.
14141       # When given -MP, icc 7.0 and 7.1 complain thusly:
14142       #   icc: Command line warning: ignoring option '-M'; no argument required
14143       # The diagnosis changed in icc 8.0:
14144       #   icc: Command line remark: option '-MP' not supported
14145       if (grep 'ignoring option' conftest.err ||
14146           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14147         am_cv_CXX_dependencies_compiler_type=$depmode
14148         break
14149       fi
14150     fi
14151   done
14152
14153   cd ..
14154   rm -rf conftest.dir
14155 else
14156   am_cv_CXX_dependencies_compiler_type=none
14157 fi
14158
14159 fi
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14161 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14162 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14163
14164  if
14165   test "x$enable_dependency_tracking" != xno \
14166   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14167   am__fastdepCXX_TRUE=
14168   am__fastdepCXX_FALSE='#'
14169 else
14170   am__fastdepCXX_TRUE='#'
14171   am__fastdepCXX_FALSE=
14172 fi
14173
14174
14175 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14176     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14177     (test "X$CXX" != "Xg++"))) ; then
14178   ac_ext=cpp
14179 ac_cpp='$CXXCPP $CPPFLAGS'
14180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14184 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14185 if test -z "$CXXCPP"; then
14186   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
14187   $as_echo_n "(cached) " >&6
14188 else
14189       # Double quotes because CXXCPP needs to be expanded
14190     for CXXCPP in "$CXX -E" "/lib/cpp"
14191     do
14192       ac_preproc_ok=false
14193 for ac_cxx_preproc_warn_flag in '' yes
14194 do
14195   # Use a header file that comes with gcc, so configuring glibc
14196   # with a fresh cross-compiler works.
14197   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14198   # <limits.h> exists even on freestanding compilers.
14199   # On the NeXT, cc -E runs the code through the compiler's parser,
14200   # not just through cpp. "Syntax error" is here to catch this case.
14201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h.  */
14203 #ifdef __STDC__
14204 # include <limits.h>
14205 #else
14206 # include <assert.h>
14207 #endif
14208                      Syntax error
14209 _ACEOF
14210 if ac_fn_cxx_try_cpp "$LINENO"; then :
14211
14212 else
14213   # Broken: fails on valid input.
14214 continue
14215 fi
14216 rm -f conftest.err conftest.i conftest.$ac_ext
14217
14218   # OK, works on sane cases.  Now check whether nonexistent headers
14219   # can be detected and how.
14220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14221 /* end confdefs.h.  */
14222 #include <ac_nonexistent.h>
14223 _ACEOF
14224 if ac_fn_cxx_try_cpp "$LINENO"; then :
14225   # Broken: success on invalid input.
14226 continue
14227 else
14228   # Passes both tests.
14229 ac_preproc_ok=:
14230 break
14231 fi
14232 rm -f conftest.err conftest.i conftest.$ac_ext
14233
14234 done
14235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14236 rm -f conftest.i conftest.err conftest.$ac_ext
14237 if $ac_preproc_ok; then :
14238   break
14239 fi
14240
14241     done
14242     ac_cv_prog_CXXCPP=$CXXCPP
14243
14244 fi
14245   CXXCPP=$ac_cv_prog_CXXCPP
14246 else
14247   ac_cv_prog_CXXCPP=$CXXCPP
14248 fi
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14250 $as_echo "$CXXCPP" >&6; }
14251 ac_preproc_ok=false
14252 for ac_cxx_preproc_warn_flag in '' yes
14253 do
14254   # Use a header file that comes with gcc, so configuring glibc
14255   # with a fresh cross-compiler works.
14256   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14257   # <limits.h> exists even on freestanding compilers.
14258   # On the NeXT, cc -E runs the code through the compiler's parser,
14259   # not just through cpp. "Syntax error" is here to catch this case.
14260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h.  */
14262 #ifdef __STDC__
14263 # include <limits.h>
14264 #else
14265 # include <assert.h>
14266 #endif
14267                      Syntax error
14268 _ACEOF
14269 if ac_fn_cxx_try_cpp "$LINENO"; then :
14270
14271 else
14272   # Broken: fails on valid input.
14273 continue
14274 fi
14275 rm -f conftest.err conftest.i conftest.$ac_ext
14276
14277   # OK, works on sane cases.  Now check whether nonexistent headers
14278   # can be detected and how.
14279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h.  */
14281 #include <ac_nonexistent.h>
14282 _ACEOF
14283 if ac_fn_cxx_try_cpp "$LINENO"; then :
14284   # Broken: success on invalid input.
14285 continue
14286 else
14287   # Passes both tests.
14288 ac_preproc_ok=:
14289 break
14290 fi
14291 rm -f conftest.err conftest.i conftest.$ac_ext
14292
14293 done
14294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14295 rm -f conftest.i conftest.err conftest.$ac_ext
14296 if $ac_preproc_ok; then :
14297
14298 else
14299   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14301 _lt_caught_CXX_error=yes; }
14302 fi
14303
14304 ac_ext=c
14305 ac_cpp='$CPP $CPPFLAGS'
14306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14309
14310 else
14311   _lt_caught_CXX_error=yes
14312 fi
14313
14314
14315
14316
14317 ac_ext=cpp
14318 ac_cpp='$CXXCPP $CPPFLAGS'
14319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14322
14323 archive_cmds_need_lc_CXX=no
14324 allow_undefined_flag_CXX=
14325 always_export_symbols_CXX=no
14326 archive_expsym_cmds_CXX=
14327 compiler_needs_object_CXX=no
14328 export_dynamic_flag_spec_CXX=
14329 hardcode_direct_CXX=no
14330 hardcode_direct_absolute_CXX=no
14331 hardcode_libdir_flag_spec_CXX=
14332 hardcode_libdir_flag_spec_ld_CXX=
14333 hardcode_libdir_separator_CXX=
14334 hardcode_minus_L_CXX=no
14335 hardcode_shlibpath_var_CXX=unsupported
14336 hardcode_automatic_CXX=no
14337 inherit_rpath_CXX=no
14338 module_cmds_CXX=
14339 module_expsym_cmds_CXX=
14340 link_all_deplibs_CXX=unknown
14341 old_archive_cmds_CXX=$old_archive_cmds
14342 no_undefined_flag_CXX=
14343 whole_archive_flag_spec_CXX=
14344 enable_shared_with_static_runtimes_CXX=no
14345
14346 # Source file extension for C++ test sources.
14347 ac_ext=cpp
14348
14349 # Object file extension for compiled C++ test sources.
14350 objext=o
14351 objext_CXX=$objext
14352
14353 # No sense in running all these tests if we already determined that
14354 # the CXX compiler isn't working.  Some variables (like enable_shared)
14355 # are currently assumed to apply to all compilers on this platform,
14356 # and will be corrupted by setting them based on a non-working compiler.
14357 if test "$_lt_caught_CXX_error" != yes; then
14358   # Code to be used in simple compile tests
14359   lt_simple_compile_test_code="int some_variable = 0;"
14360
14361   # Code to be used in simple link tests
14362   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14363
14364   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14365
14366
14367
14368
14369
14370
14371 # If no C compiler was specified, use CC.
14372 LTCC=${LTCC-"$CC"}
14373
14374 # If no C compiler flags were specified, use CFLAGS.
14375 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14376
14377 # Allow CC to be a program name with arguments.
14378 compiler=$CC
14379
14380
14381   # save warnings/boilerplate of simple test code
14382   ac_outfile=conftest.$ac_objext
14383 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14384 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14385 _lt_compiler_boilerplate=`cat conftest.err`
14386 $RM conftest*
14387
14388   ac_outfile=conftest.$ac_objext
14389 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14390 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14391 _lt_linker_boilerplate=`cat conftest.err`
14392 $RM -r conftest*
14393
14394
14395   # Allow CC to be a program name with arguments.
14396   lt_save_CC=$CC
14397   lt_save_LD=$LD
14398   lt_save_GCC=$GCC
14399   GCC=$GXX
14400   lt_save_with_gnu_ld=$with_gnu_ld
14401   lt_save_path_LD=$lt_cv_path_LD
14402   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14403     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14404   else
14405     $as_unset lt_cv_prog_gnu_ld
14406   fi
14407   if test -n "${lt_cv_path_LDCXX+set}"; then
14408     lt_cv_path_LD=$lt_cv_path_LDCXX
14409   else
14410     $as_unset lt_cv_path_LD
14411   fi
14412   test -z "${LDCXX+set}" || LD=$LDCXX
14413   CC=${CXX-"c++"}
14414   compiler=$CC
14415   compiler_CXX=$CC
14416   for cc_temp in $compiler""; do
14417   case $cc_temp in
14418     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14419     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14420     \-*) ;;
14421     *) break;;
14422   esac
14423 done
14424 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14425
14426
14427   if test -n "$compiler"; then
14428     # We don't want -fno-exception when compiling C++ code, so set the
14429     # no_builtin_flag separately
14430     if test "$GXX" = yes; then
14431       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14432     else
14433       lt_prog_compiler_no_builtin_flag_CXX=
14434     fi
14435
14436     if test "$GXX" = yes; then
14437       # Set up default GNU C++ configuration
14438
14439
14440
14441 # Check whether --with-gnu-ld was given.
14442 if test "${with_gnu_ld+set}" = set; then :
14443   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14444 else
14445   with_gnu_ld=no
14446 fi
14447
14448 ac_prog=ld
14449 if test "$GCC" = yes; then
14450   # Check if gcc -print-prog-name=ld gives a path.
14451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14452 $as_echo_n "checking for ld used by $CC... " >&6; }
14453   case $host in
14454   *-*-mingw*)
14455     # gcc leaves a trailing carriage return which upsets mingw
14456     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14457   *)
14458     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14459   esac
14460   case $ac_prog in
14461     # Accept absolute paths.
14462     [\\/]* | ?:[\\/]*)
14463       re_direlt='/[^/][^/]*/\.\./'
14464       # Canonicalize the pathname of ld
14465       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14466       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14467         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14468       done
14469       test -z "$LD" && LD="$ac_prog"
14470       ;;
14471   "")
14472     # If it fails, then pretend we aren't using GCC.
14473     ac_prog=ld
14474     ;;
14475   *)
14476     # If it is relative, then search for the first ld in PATH.
14477     with_gnu_ld=unknown
14478     ;;
14479   esac
14480 elif test "$with_gnu_ld" = yes; then
14481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14482 $as_echo_n "checking for GNU ld... " >&6; }
14483 else
14484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14485 $as_echo_n "checking for non-GNU ld... " >&6; }
14486 fi
14487 if test "${lt_cv_path_LD+set}" = set; then :
14488   $as_echo_n "(cached) " >&6
14489 else
14490   if test -z "$LD"; then
14491   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14492   for ac_dir in $PATH; do
14493     IFS="$lt_save_ifs"
14494     test -z "$ac_dir" && ac_dir=.
14495     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14496       lt_cv_path_LD="$ac_dir/$ac_prog"
14497       # Check to see if the program is GNU ld.  I'd rather use --version,
14498       # but apparently some variants of GNU ld only accept -v.
14499       # Break only if it was the GNU/non-GNU ld that we prefer.
14500       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14501       *GNU* | *'with BFD'*)
14502         test "$with_gnu_ld" != no && break
14503         ;;
14504       *)
14505         test "$with_gnu_ld" != yes && break
14506         ;;
14507       esac
14508     fi
14509   done
14510   IFS="$lt_save_ifs"
14511 else
14512   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14513 fi
14514 fi
14515
14516 LD="$lt_cv_path_LD"
14517 if test -n "$LD"; then
14518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14519 $as_echo "$LD" >&6; }
14520 else
14521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14522 $as_echo "no" >&6; }
14523 fi
14524 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14526 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14527 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14528   $as_echo_n "(cached) " >&6
14529 else
14530   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14531 case `$LD -v 2>&1 </dev/null` in
14532 *GNU* | *'with BFD'*)
14533   lt_cv_prog_gnu_ld=yes
14534   ;;
14535 *)
14536   lt_cv_prog_gnu_ld=no
14537   ;;
14538 esac
14539 fi
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14541 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14542 with_gnu_ld=$lt_cv_prog_gnu_ld
14543
14544
14545
14546
14547
14548
14549
14550       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14551       # archiving commands below assume that GNU ld is being used.
14552       if test "$with_gnu_ld" = yes; then
14553         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14554         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'
14555
14556         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14557         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14558
14559         # If archive_cmds runs LD, not CC, wlarc should be empty
14560         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14561         #     investigate it a little bit more. (MM)
14562         wlarc='${wl}'
14563
14564         # ancient GNU ld didn't support --whole-archive et. al.
14565         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14566           $GREP 'no-whole-archive' > /dev/null; then
14567           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14568         else
14569           whole_archive_flag_spec_CXX=
14570         fi
14571       else
14572         with_gnu_ld=no
14573         wlarc=
14574
14575         # A generic and very simple default shared library creation
14576         # command for GNU C++ for the case where it uses the native
14577         # linker, instead of GNU ld.  If possible, this setting should
14578         # overridden to take advantage of the native linker features on
14579         # the platform it is being used on.
14580         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14581       fi
14582
14583       # Commands to make compiler produce verbose output that lists
14584       # what "hidden" libraries, object files and flags are used when
14585       # linking a shared library.
14586       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14587
14588     else
14589       GXX=no
14590       with_gnu_ld=no
14591       wlarc=
14592     fi
14593
14594     # PORTME: fill in a description of your system's C++ link characteristics
14595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14596 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14597     ld_shlibs_CXX=yes
14598     case $host_os in
14599       aix3*)
14600         # FIXME: insert proper C++ library support
14601         ld_shlibs_CXX=no
14602         ;;
14603       aix[4-9]*)
14604         if test "$host_cpu" = ia64; then
14605           # On IA64, the linker does run time linking by default, so we don't
14606           # have to do anything special.
14607           aix_use_runtimelinking=no
14608           exp_sym_flag='-Bexport'
14609           no_entry_flag=""
14610         else
14611           aix_use_runtimelinking=no
14612
14613           # Test if we are trying to use run time linking or normal
14614           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14615           # need to do runtime linking.
14616           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14617             for ld_flag in $LDFLAGS; do
14618               case $ld_flag in
14619               *-brtl*)
14620                 aix_use_runtimelinking=yes
14621                 break
14622                 ;;
14623               esac
14624             done
14625             ;;
14626           esac
14627
14628           exp_sym_flag='-bexport'
14629           no_entry_flag='-bnoentry'
14630         fi
14631
14632         # When large executables or shared objects are built, AIX ld can
14633         # have problems creating the table of contents.  If linking a library
14634         # or program results in "error TOC overflow" add -mminimal-toc to
14635         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14636         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14637
14638         archive_cmds_CXX=''
14639         hardcode_direct_CXX=yes
14640         hardcode_direct_absolute_CXX=yes
14641         hardcode_libdir_separator_CXX=':'
14642         link_all_deplibs_CXX=yes
14643         file_list_spec_CXX='${wl}-f,'
14644
14645         if test "$GXX" = yes; then
14646           case $host_os in aix4.[012]|aix4.[012].*)
14647           # We only want to do this on AIX 4.2 and lower, the check
14648           # below for broken collect2 doesn't work under 4.3+
14649           collect2name=`${CC} -print-prog-name=collect2`
14650           if test -f "$collect2name" &&
14651              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14652           then
14653             # We have reworked collect2
14654             :
14655           else
14656             # We have old collect2
14657             hardcode_direct_CXX=unsupported
14658             # It fails to find uninstalled libraries when the uninstalled
14659             # path is not listed in the libpath.  Setting hardcode_minus_L
14660             # to unsupported forces relinking
14661             hardcode_minus_L_CXX=yes
14662             hardcode_libdir_flag_spec_CXX='-L$libdir'
14663             hardcode_libdir_separator_CXX=
14664           fi
14665           esac
14666           shared_flag='-shared'
14667           if test "$aix_use_runtimelinking" = yes; then
14668             shared_flag="$shared_flag "'${wl}-G'
14669           fi
14670         else
14671           # not using gcc
14672           if test "$host_cpu" = ia64; then
14673           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14674           # chokes on -Wl,-G. The following line is correct:
14675           shared_flag='-G'
14676           else
14677             if test "$aix_use_runtimelinking" = yes; then
14678               shared_flag='${wl}-G'
14679             else
14680               shared_flag='${wl}-bM:SRE'
14681             fi
14682           fi
14683         fi
14684
14685         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14686         # It seems that -bexpall does not export symbols beginning with
14687         # underscore (_), so it is better to generate a list of symbols to
14688         # export.
14689         always_export_symbols_CXX=yes
14690         if test "$aix_use_runtimelinking" = yes; then
14691           # Warning - without using the other runtime loading flags (-brtl),
14692           # -berok will link without error, but may produce a broken library.
14693           allow_undefined_flag_CXX='-berok'
14694           # Determine the default libpath from the value encoded in an empty
14695           # executable.
14696           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h.  */
14698
14699 int
14700 main ()
14701 {
14702
14703   ;
14704   return 0;
14705 }
14706 _ACEOF
14707 if ac_fn_cxx_try_link "$LINENO"; then :
14708
14709 lt_aix_libpath_sed='
14710     /Import File Strings/,/^$/ {
14711         /^0/ {
14712             s/^0  *\(.*\)$/\1/
14713             p
14714         }
14715     }'
14716 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14717 # Check for a 64-bit object if we didn't find anything.
14718 if test -z "$aix_libpath"; then
14719   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14720 fi
14721 fi
14722 rm -f core conftest.err conftest.$ac_objext \
14723     conftest$ac_exeext conftest.$ac_ext
14724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14725
14726           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14727
14728           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"
14729         else
14730           if test "$host_cpu" = ia64; then
14731             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14732             allow_undefined_flag_CXX="-z nodefs"
14733             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"
14734           else
14735             # Determine the default libpath from the value encoded in an
14736             # empty executable.
14737             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h.  */
14739
14740 int
14741 main ()
14742 {
14743
14744   ;
14745   return 0;
14746 }
14747 _ACEOF
14748 if ac_fn_cxx_try_link "$LINENO"; then :
14749
14750 lt_aix_libpath_sed='
14751     /Import File Strings/,/^$/ {
14752         /^0/ {
14753             s/^0  *\(.*\)$/\1/
14754             p
14755         }
14756     }'
14757 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14758 # Check for a 64-bit object if we didn't find anything.
14759 if test -z "$aix_libpath"; then
14760   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14761 fi
14762 fi
14763 rm -f core conftest.err conftest.$ac_objext \
14764     conftest$ac_exeext conftest.$ac_ext
14765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14766
14767             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14768             # Warning - without using the other run time loading flags,
14769             # -berok will link without error, but may produce a broken library.
14770             no_undefined_flag_CXX=' ${wl}-bernotok'
14771             allow_undefined_flag_CXX=' ${wl}-berok'
14772             # Exported symbols can be pulled into shared objects from archives
14773             whole_archive_flag_spec_CXX='$convenience'
14774             archive_cmds_need_lc_CXX=yes
14775             # This is similar to how AIX traditionally builds its shared
14776             # libraries.
14777             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'
14778           fi
14779         fi
14780         ;;
14781
14782       beos*)
14783         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14784           allow_undefined_flag_CXX=unsupported
14785           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14786           # support --undefined.  This deserves some investigation.  FIXME
14787           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14788         else
14789           ld_shlibs_CXX=no
14790         fi
14791         ;;
14792
14793       chorus*)
14794         case $cc_basename in
14795           *)
14796           # FIXME: insert proper C++ library support
14797           ld_shlibs_CXX=no
14798           ;;
14799         esac
14800         ;;
14801
14802       cygwin* | mingw* | pw32* | cegcc*)
14803         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14804         # as there is no search path for DLLs.
14805         hardcode_libdir_flag_spec_CXX='-L$libdir'
14806         allow_undefined_flag_CXX=unsupported
14807         always_export_symbols_CXX=no
14808         enable_shared_with_static_runtimes_CXX=yes
14809
14810         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14811           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'
14812           # If the export-symbols file already is a .def file (1st line
14813           # is EXPORTS), use it as is; otherwise, prepend...
14814           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14815             cp $export_symbols $output_objdir/$soname.def;
14816           else
14817             echo EXPORTS > $output_objdir/$soname.def;
14818             cat $export_symbols >> $output_objdir/$soname.def;
14819           fi~
14820           $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'
14821         else
14822           ld_shlibs_CXX=no
14823         fi
14824         ;;
14825       darwin* | rhapsody*)
14826
14827
14828   archive_cmds_need_lc_CXX=no
14829   hardcode_direct_CXX=no
14830   hardcode_automatic_CXX=yes
14831   hardcode_shlibpath_var_CXX=unsupported
14832   whole_archive_flag_spec_CXX=''
14833   link_all_deplibs_CXX=yes
14834   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14835   case $cc_basename in
14836      ifort*) _lt_dar_can_shared=yes ;;
14837      *) _lt_dar_can_shared=$GCC ;;
14838   esac
14839   if test "$_lt_dar_can_shared" = "yes"; then
14840     output_verbose_link_cmd=echo
14841     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}"
14842     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14843     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}"
14844     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}"
14845        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14846       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}"
14847       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}"
14848     fi
14849
14850   else
14851   ld_shlibs_CXX=no
14852   fi
14853
14854         ;;
14855
14856       dgux*)
14857         case $cc_basename in
14858           ec++*)
14859             # FIXME: insert proper C++ library support
14860             ld_shlibs_CXX=no
14861             ;;
14862           ghcx*)
14863             # Green Hills C++ Compiler
14864             # FIXME: insert proper C++ library support
14865             ld_shlibs_CXX=no
14866             ;;
14867           *)
14868             # FIXME: insert proper C++ library support
14869             ld_shlibs_CXX=no
14870             ;;
14871         esac
14872         ;;
14873
14874       freebsd[12]*)
14875         # C++ shared libraries reported to be fairly broken before
14876         # switch to ELF
14877         ld_shlibs_CXX=no
14878         ;;
14879
14880       freebsd-elf*)
14881         archive_cmds_need_lc_CXX=no
14882         ;;
14883
14884       freebsd* | dragonfly*)
14885         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14886         # conventions
14887         ld_shlibs_CXX=yes
14888         ;;
14889
14890       gnu*)
14891         ;;
14892
14893       hpux9*)
14894         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14895         hardcode_libdir_separator_CXX=:
14896         export_dynamic_flag_spec_CXX='${wl}-E'
14897         hardcode_direct_CXX=yes
14898         hardcode_minus_L_CXX=yes # Not in the search PATH,
14899                                              # but as the default
14900                                              # location of the library.
14901
14902         case $cc_basename in
14903           CC*)
14904             # FIXME: insert proper C++ library support
14905             ld_shlibs_CXX=no
14906             ;;
14907           aCC*)
14908             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'
14909             # Commands to make compiler produce verbose output that lists
14910             # what "hidden" libraries, object files and flags are used when
14911             # linking a shared library.
14912             #
14913             # There doesn't appear to be a way to prevent this compiler from
14914             # explicitly linking system object files so we need to strip them
14915             # from the output so that they don't get included in the library
14916             # dependencies.
14917             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'
14918             ;;
14919           *)
14920             if test "$GXX" = yes; then
14921               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'
14922             else
14923               # FIXME: insert proper C++ library support
14924               ld_shlibs_CXX=no
14925             fi
14926             ;;
14927         esac
14928         ;;
14929
14930       hpux10*|hpux11*)
14931         if test $with_gnu_ld = no; then
14932           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14933           hardcode_libdir_separator_CXX=:
14934
14935           case $host_cpu in
14936             hppa*64*|ia64*)
14937               ;;
14938             *)
14939               export_dynamic_flag_spec_CXX='${wl}-E'
14940               ;;
14941           esac
14942         fi
14943         case $host_cpu in
14944           hppa*64*|ia64*)
14945             hardcode_direct_CXX=no
14946             hardcode_shlibpath_var_CXX=no
14947             ;;
14948           *)
14949             hardcode_direct_CXX=yes
14950             hardcode_direct_absolute_CXX=yes
14951             hardcode_minus_L_CXX=yes # Not in the search PATH,
14952                                                  # but as the default
14953                                                  # location of the library.
14954             ;;
14955         esac
14956
14957         case $cc_basename in
14958           CC*)
14959             # FIXME: insert proper C++ library support
14960             ld_shlibs_CXX=no
14961             ;;
14962           aCC*)
14963             case $host_cpu in
14964               hppa*64*)
14965                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14966                 ;;
14967               ia64*)
14968                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14969                 ;;
14970               *)
14971                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14972                 ;;
14973             esac
14974             # Commands to make compiler produce verbose output that lists
14975             # what "hidden" libraries, object files and flags are used when
14976             # linking a shared library.
14977             #
14978             # There doesn't appear to be a way to prevent this compiler from
14979             # explicitly linking system object files so we need to strip them
14980             # from the output so that they don't get included in the library
14981             # dependencies.
14982             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'
14983             ;;
14984           *)
14985             if test "$GXX" = yes; then
14986               if test $with_gnu_ld = no; then
14987                 case $host_cpu in
14988                   hppa*64*)
14989                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14990                     ;;
14991                   ia64*)
14992                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14993                     ;;
14994                   *)
14995                     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'
14996                     ;;
14997                 esac
14998               fi
14999             else
15000               # FIXME: insert proper C++ library support
15001               ld_shlibs_CXX=no
15002             fi
15003             ;;
15004         esac
15005         ;;
15006
15007       interix[3-9]*)
15008         hardcode_direct_CXX=no
15009         hardcode_shlibpath_var_CXX=no
15010         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15011         export_dynamic_flag_spec_CXX='${wl}-E'
15012         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15013         # Instead, shared libraries are loaded at an image base (0x10000000 by
15014         # default) and relocated if they conflict, which is a slow very memory
15015         # consuming and fragmenting process.  To avoid this, we pick a random,
15016         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15017         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15018         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'
15019         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'
15020         ;;
15021       irix5* | irix6*)
15022         case $cc_basename in
15023           CC*)
15024             # SGI C++
15025             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'
15026
15027             # Archives containing C++ object files must be created using
15028             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15029             # necessary to make sure instantiated templates are included
15030             # in the archive.
15031             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15032             ;;
15033           *)
15034             if test "$GXX" = yes; then
15035               if test "$with_gnu_ld" = no; then
15036                 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'
15037               else
15038                 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'
15039               fi
15040             fi
15041             link_all_deplibs_CXX=yes
15042             ;;
15043         esac
15044         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15045         hardcode_libdir_separator_CXX=:
15046         inherit_rpath_CXX=yes
15047         ;;
15048
15049       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15050         case $cc_basename in
15051           KCC*)
15052             # Kuck and Associates, Inc. (KAI) C++ Compiler
15053
15054             # KCC will only create a shared library if the output file
15055             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15056             # to its proper name (with version) after linking.
15057             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'
15058             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'
15059             # Commands to make compiler produce verbose output that lists
15060             # what "hidden" libraries, object files and flags are used when
15061             # linking a shared library.
15062             #
15063             # There doesn't appear to be a way to prevent this compiler from
15064             # explicitly linking system object files so we need to strip them
15065             # from the output so that they don't get included in the library
15066             # dependencies.
15067             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'
15068
15069             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15070             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15071
15072             # Archives containing C++ object files must be created using
15073             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15074             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15075             ;;
15076           icpc* | ecpc* )
15077             # Intel C++
15078             with_gnu_ld=yes
15079             # version 8.0 and above of icpc choke on multiply defined symbols
15080             # if we add $predep_objects and $postdep_objects, however 7.1 and
15081             # earlier do not add the objects themselves.
15082             case `$CC -V 2>&1` in
15083               *"Version 7."*)
15084                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15085                 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'
15086                 ;;
15087               *)  # Version 8.0 or newer
15088                 tmp_idyn=
15089                 case $host_cpu in
15090                   ia64*) tmp_idyn=' -i_dynamic';;
15091                 esac
15092                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15093                 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'
15094                 ;;
15095             esac
15096             archive_cmds_need_lc_CXX=no
15097             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15098             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15099             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15100             ;;
15101           pgCC* | pgcpp*)
15102             # Portland Group C++ compiler
15103             case `$CC -V` in
15104             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15105               prelink_cmds_CXX='tpldir=Template.dir~
15106                 rm -rf $tpldir~
15107                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15108                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15109               old_archive_cmds_CXX='tpldir=Template.dir~
15110                 rm -rf $tpldir~
15111                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15112                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15113                 $RANLIB $oldlib'
15114               archive_cmds_CXX='tpldir=Template.dir~
15115                 rm -rf $tpldir~
15116                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15117                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15118               archive_expsym_cmds_CXX='tpldir=Template.dir~
15119                 rm -rf $tpldir~
15120                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15121                 $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'
15122               ;;
15123             *) # Version 6 will use weak symbols
15124               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15125               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'
15126               ;;
15127             esac
15128
15129             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15130             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15131             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'
15132             ;;
15133           cxx*)
15134             # Compaq C++
15135             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15136             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'
15137
15138             runpath_var=LD_RUN_PATH
15139             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15140             hardcode_libdir_separator_CXX=:
15141
15142             # Commands to make compiler produce verbose output that lists
15143             # what "hidden" libraries, object files and flags are used when
15144             # linking a shared library.
15145             #
15146             # There doesn't appear to be a way to prevent this compiler from
15147             # explicitly linking system object files so we need to strip them
15148             # from the output so that they don't get included in the library
15149             # dependencies.
15150             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'
15151             ;;
15152           xl*)
15153             # IBM XL 8.0 on PPC, with GNU ld
15154             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15155             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15156             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15157             if test "x$supports_anon_versioning" = xyes; then
15158               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15159                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15160                 echo "local: *; };" >> $output_objdir/$libname.ver~
15161                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15162             fi
15163             ;;
15164           *)
15165             case `$CC -V 2>&1 | sed 5q` in
15166             *Sun\ C*)
15167               # Sun C++ 5.9
15168               no_undefined_flag_CXX=' -zdefs'
15169               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15170               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'
15171               hardcode_libdir_flag_spec_CXX='-R$libdir'
15172               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'
15173               compiler_needs_object_CXX=yes
15174
15175               # Not sure whether something based on
15176               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15177               # would be better.
15178               output_verbose_link_cmd='echo'
15179
15180               # Archives containing C++ object files must be created using
15181               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15182               # necessary to make sure instantiated templates are included
15183               # in the archive.
15184               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15185               ;;
15186             esac
15187             ;;
15188         esac
15189         ;;
15190
15191       lynxos*)
15192         # FIXME: insert proper C++ library support
15193         ld_shlibs_CXX=no
15194         ;;
15195
15196       m88k*)
15197         # FIXME: insert proper C++ library support
15198         ld_shlibs_CXX=no
15199         ;;
15200
15201       mvs*)
15202         case $cc_basename in
15203           cxx*)
15204             # FIXME: insert proper C++ library support
15205             ld_shlibs_CXX=no
15206             ;;
15207           *)
15208             # FIXME: insert proper C++ library support
15209             ld_shlibs_CXX=no
15210             ;;
15211         esac
15212         ;;
15213
15214       netbsd*)
15215         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15216           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15217           wlarc=
15218           hardcode_libdir_flag_spec_CXX='-R$libdir'
15219           hardcode_direct_CXX=yes
15220           hardcode_shlibpath_var_CXX=no
15221         fi
15222         # Workaround some broken pre-1.5 toolchains
15223         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15224         ;;
15225
15226       *nto* | *qnx*)
15227         ld_shlibs_CXX=yes
15228         ;;
15229
15230       openbsd2*)
15231         # C++ shared libraries are fairly broken
15232         ld_shlibs_CXX=no
15233         ;;
15234
15235       openbsd*)
15236         if test -f /usr/libexec/ld.so; then
15237           hardcode_direct_CXX=yes
15238           hardcode_shlibpath_var_CXX=no
15239           hardcode_direct_absolute_CXX=yes
15240           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15241           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15242           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15243             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15244             export_dynamic_flag_spec_CXX='${wl}-E'
15245             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15246           fi
15247           output_verbose_link_cmd=echo
15248         else
15249           ld_shlibs_CXX=no
15250         fi
15251         ;;
15252
15253       osf3* | osf4* | osf5*)
15254         case $cc_basename in
15255           KCC*)
15256             # Kuck and Associates, Inc. (KAI) C++ Compiler
15257
15258             # KCC will only create a shared library if the output file
15259             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15260             # to its proper name (with version) after linking.
15261             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'
15262
15263             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15264             hardcode_libdir_separator_CXX=:
15265
15266             # Archives containing C++ object files must be created using
15267             # the KAI C++ compiler.
15268             case $host in
15269               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15270               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15271             esac
15272             ;;
15273           RCC*)
15274             # Rational C++ 2.4.1
15275             # FIXME: insert proper C++ library support
15276             ld_shlibs_CXX=no
15277             ;;
15278           cxx*)
15279             case $host in
15280               osf3*)
15281                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15282                 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'
15283                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15284                 ;;
15285               *)
15286                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15287                 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'
15288                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15289                   echo "-hidden">> $lib.exp~
15290                   $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~
15291                   $RM $lib.exp'
15292                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15293                 ;;
15294             esac
15295
15296             hardcode_libdir_separator_CXX=:
15297
15298             # Commands to make compiler produce verbose output that lists
15299             # what "hidden" libraries, object files and flags are used when
15300             # linking a shared library.
15301             #
15302             # There doesn't appear to be a way to prevent this compiler from
15303             # explicitly linking system object files so we need to strip them
15304             # from the output so that they don't get included in the library
15305             # dependencies.
15306             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'
15307             ;;
15308           *)
15309             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15310               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15311               case $host in
15312                 osf3*)
15313                   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'
15314                   ;;
15315                 *)
15316                   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'
15317                   ;;
15318               esac
15319
15320               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15321               hardcode_libdir_separator_CXX=:
15322
15323               # Commands to make compiler produce verbose output that lists
15324               # what "hidden" libraries, object files and flags are used when
15325               # linking a shared library.
15326               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15327
15328             else
15329               # FIXME: insert proper C++ library support
15330               ld_shlibs_CXX=no
15331             fi
15332             ;;
15333         esac
15334         ;;
15335
15336       psos*)
15337         # FIXME: insert proper C++ library support
15338         ld_shlibs_CXX=no
15339         ;;
15340
15341       sunos4*)
15342         case $cc_basename in
15343           CC*)
15344             # Sun C++ 4.x
15345             # FIXME: insert proper C++ library support
15346             ld_shlibs_CXX=no
15347             ;;
15348           lcc*)
15349             # Lucid
15350             # FIXME: insert proper C++ library support
15351             ld_shlibs_CXX=no
15352             ;;
15353           *)
15354             # FIXME: insert proper C++ library support
15355             ld_shlibs_CXX=no
15356             ;;
15357         esac
15358         ;;
15359
15360       solaris*)
15361         case $cc_basename in
15362           CC*)
15363             # Sun C++ 4.2, 5.x and Centerline C++
15364             archive_cmds_need_lc_CXX=yes
15365             no_undefined_flag_CXX=' -zdefs'
15366             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15367             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15368               $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'
15369
15370             hardcode_libdir_flag_spec_CXX='-R$libdir'
15371             hardcode_shlibpath_var_CXX=no
15372             case $host_os in
15373               solaris2.[0-5] | solaris2.[0-5].*) ;;
15374               *)
15375                 # The compiler driver will combine and reorder linker options,
15376                 # but understands `-z linker_flag'.
15377                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15378                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15379                 ;;
15380             esac
15381             link_all_deplibs_CXX=yes
15382
15383             output_verbose_link_cmd='echo'
15384
15385             # Archives containing C++ object files must be created using
15386             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15387             # necessary to make sure instantiated templates are included
15388             # in the archive.
15389             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15390             ;;
15391           gcx*)
15392             # Green Hills C++ Compiler
15393             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15394
15395             # The C++ compiler must be used to create the archive.
15396             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15397             ;;
15398           *)
15399             # GNU C++ compiler with Solaris linker
15400             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15401               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15402               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15403                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15404                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15405                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15406
15407                 # Commands to make compiler produce verbose output that lists
15408                 # what "hidden" libraries, object files and flags are used when
15409                 # linking a shared library.
15410                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15411               else
15412                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15413                 # platform.
15414                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15415                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15416                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15417
15418                 # Commands to make compiler produce verbose output that lists
15419                 # what "hidden" libraries, object files and flags are used when
15420                 # linking a shared library.
15421                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15422               fi
15423
15424               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15425               case $host_os in
15426                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15427                 *)
15428                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15429                   ;;
15430               esac
15431             fi
15432             ;;
15433         esac
15434         ;;
15435
15436     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15437       no_undefined_flag_CXX='${wl}-z,text'
15438       archive_cmds_need_lc_CXX=no
15439       hardcode_shlibpath_var_CXX=no
15440       runpath_var='LD_RUN_PATH'
15441
15442       case $cc_basename in
15443         CC*)
15444           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15445           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15446           ;;
15447         *)
15448           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15449           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15450           ;;
15451       esac
15452       ;;
15453
15454       sysv5* | sco3.2v5* | sco5v6*)
15455         # Note: We can NOT use -z defs as we might desire, because we do not
15456         # link with -lc, and that would cause any symbols used from libc to
15457         # always be unresolved, which means just about no library would
15458         # ever link correctly.  If we're not using GNU ld we use -z text
15459         # though, which does catch some bad symbols but isn't as heavy-handed
15460         # as -z defs.
15461         no_undefined_flag_CXX='${wl}-z,text'
15462         allow_undefined_flag_CXX='${wl}-z,nodefs'
15463         archive_cmds_need_lc_CXX=no
15464         hardcode_shlibpath_var_CXX=no
15465         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15466         hardcode_libdir_separator_CXX=':'
15467         link_all_deplibs_CXX=yes
15468         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15469         runpath_var='LD_RUN_PATH'
15470
15471         case $cc_basename in
15472           CC*)
15473             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15474             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15475             ;;
15476           *)
15477             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15478             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15479             ;;
15480         esac
15481       ;;
15482
15483       tandem*)
15484         case $cc_basename in
15485           NCC*)
15486             # NonStop-UX NCC 3.20
15487             # FIXME: insert proper C++ library support
15488             ld_shlibs_CXX=no
15489             ;;
15490           *)
15491             # FIXME: insert proper C++ library support
15492             ld_shlibs_CXX=no
15493             ;;
15494         esac
15495         ;;
15496
15497       vxworks*)
15498         # FIXME: insert proper C++ library support
15499         ld_shlibs_CXX=no
15500         ;;
15501
15502       *)
15503         # FIXME: insert proper C++ library support
15504         ld_shlibs_CXX=no
15505         ;;
15506     esac
15507
15508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15509 $as_echo "$ld_shlibs_CXX" >&6; }
15510     test "$ld_shlibs_CXX" = no && can_build_shared=no
15511
15512     GCC_CXX="$GXX"
15513     LD_CXX="$LD"
15514
15515     ## CAVEAT EMPTOR:
15516     ## There is no encapsulation within the following macros, do not change
15517     ## the running order or otherwise move them around unless you know exactly
15518     ## what you are doing...
15519     # Dependencies to place before and after the object being linked:
15520 predep_objects_CXX=
15521 postdep_objects_CXX=
15522 predeps_CXX=
15523 postdeps_CXX=
15524 compiler_lib_search_path_CXX=
15525
15526 cat > conftest.$ac_ext <<_LT_EOF
15527 class Foo
15528 {
15529 public:
15530   Foo (void) { a = 0; }
15531 private:
15532   int a;
15533 };
15534 _LT_EOF
15535
15536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15537   (eval $ac_compile) 2>&5
15538   ac_status=$?
15539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15540   test $ac_status = 0; }; then
15541   # Parse the compiler output and extract the necessary
15542   # objects, libraries and library flags.
15543
15544   # Sentinel used to keep track of whether or not we are before
15545   # the conftest object file.
15546   pre_test_object_deps_done=no
15547
15548   for p in `eval "$output_verbose_link_cmd"`; do
15549     case $p in
15550
15551     -L* | -R* | -l*)
15552        # Some compilers place space between "-{L,R}" and the path.
15553        # Remove the space.
15554        if test $p = "-L" ||
15555           test $p = "-R"; then
15556          prev=$p
15557          continue
15558        else
15559          prev=
15560        fi
15561
15562        if test "$pre_test_object_deps_done" = no; then
15563          case $p in
15564          -L* | -R*)
15565            # Internal compiler library paths should come after those
15566            # provided the user.  The postdeps already come after the
15567            # user supplied libs so there is no need to process them.
15568            if test -z "$compiler_lib_search_path_CXX"; then
15569              compiler_lib_search_path_CXX="${prev}${p}"
15570            else
15571              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15572            fi
15573            ;;
15574          # The "-l" case would never come before the object being
15575          # linked, so don't bother handling this case.
15576          esac
15577        else
15578          if test -z "$postdeps_CXX"; then
15579            postdeps_CXX="${prev}${p}"
15580          else
15581            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15582          fi
15583        fi
15584        ;;
15585
15586     *.$objext)
15587        # This assumes that the test object file only shows up
15588        # once in the compiler output.
15589        if test "$p" = "conftest.$objext"; then
15590          pre_test_object_deps_done=yes
15591          continue
15592        fi
15593
15594        if test "$pre_test_object_deps_done" = no; then
15595          if test -z "$predep_objects_CXX"; then
15596            predep_objects_CXX="$p"
15597          else
15598            predep_objects_CXX="$predep_objects_CXX $p"
15599          fi
15600        else
15601          if test -z "$postdep_objects_CXX"; then
15602            postdep_objects_CXX="$p"
15603          else
15604            postdep_objects_CXX="$postdep_objects_CXX $p"
15605          fi
15606        fi
15607        ;;
15608
15609     *) ;; # Ignore the rest.
15610
15611     esac
15612   done
15613
15614   # Clean up.
15615   rm -f a.out a.exe
15616 else
15617   echo "libtool.m4: error: problem compiling CXX test program"
15618 fi
15619
15620 $RM -f confest.$objext
15621
15622 # PORTME: override above test on systems where it is broken
15623 case $host_os in
15624 interix[3-9]*)
15625   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15626   # hack all around it, let's just trust "g++" to DTRT.
15627   predep_objects_CXX=
15628   postdep_objects_CXX=
15629   postdeps_CXX=
15630   ;;
15631
15632 linux*)
15633   case `$CC -V 2>&1 | sed 5q` in
15634   *Sun\ C*)
15635     # Sun C++ 5.9
15636
15637     # The more standards-conforming stlport4 library is
15638     # incompatible with the Cstd library. Avoid specifying
15639     # it if it's in CXXFLAGS. Ignore libCrun as
15640     # -library=stlport4 depends on it.
15641     case " $CXX $CXXFLAGS " in
15642     *" -library=stlport4 "*)
15643       solaris_use_stlport4=yes
15644       ;;
15645     esac
15646
15647     if test "$solaris_use_stlport4" != yes; then
15648       postdeps_CXX='-library=Cstd -library=Crun'
15649     fi
15650     ;;
15651   esac
15652   ;;
15653
15654 solaris*)
15655   case $cc_basename in
15656   CC*)
15657     # The more standards-conforming stlport4 library is
15658     # incompatible with the Cstd library. Avoid specifying
15659     # it if it's in CXXFLAGS. Ignore libCrun as
15660     # -library=stlport4 depends on it.
15661     case " $CXX $CXXFLAGS " in
15662     *" -library=stlport4 "*)
15663       solaris_use_stlport4=yes
15664       ;;
15665     esac
15666
15667     # Adding this requires a known-good setup of shared libraries for
15668     # Sun compiler versions before 5.6, else PIC objects from an old
15669     # archive will be linked into the output, leading to subtle bugs.
15670     if test "$solaris_use_stlport4" != yes; then
15671       postdeps_CXX='-library=Cstd -library=Crun'
15672     fi
15673     ;;
15674   esac
15675   ;;
15676 esac
15677
15678
15679 case " $postdeps_CXX " in
15680 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15681 esac
15682  compiler_lib_search_dirs_CXX=
15683 if test -n "${compiler_lib_search_path_CXX}"; then
15684  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15685 fi
15686
15687
15688
15689
15690
15691
15692
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     lt_prog_compiler_wl_CXX=
15718 lt_prog_compiler_pic_CXX=
15719 lt_prog_compiler_static_CXX=
15720
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15722 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15723
15724   # C++ specific cases for pic, static, wl, etc.
15725   if test "$GXX" = yes; then
15726     lt_prog_compiler_wl_CXX='-Wl,'
15727     lt_prog_compiler_static_CXX='-static'
15728
15729     case $host_os in
15730     aix*)
15731       # All AIX code is PIC.
15732       if test "$host_cpu" = ia64; then
15733         # AIX 5 now supports IA64 processor
15734         lt_prog_compiler_static_CXX='-Bstatic'
15735       fi
15736       ;;
15737
15738     amigaos*)
15739       case $host_cpu in
15740       powerpc)
15741             # see comment about AmigaOS4 .so support
15742             lt_prog_compiler_pic_CXX='-fPIC'
15743         ;;
15744       m68k)
15745             # FIXME: we need at least 68020 code to build shared libraries, but
15746             # adding the `-m68020' flag to GCC prevents building anything better,
15747             # like `-m68040'.
15748             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15749         ;;
15750       esac
15751       ;;
15752
15753     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15754       # PIC is the default for these OSes.
15755       ;;
15756     mingw* | cygwin* | os2* | pw32* | cegcc*)
15757       # This hack is so that the source file can tell whether it is being
15758       # built for inclusion in a dll (and should export symbols for example).
15759       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15760       # (--disable-auto-import) libraries
15761       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15762       ;;
15763     darwin* | rhapsody*)
15764       # PIC is the default on this platform
15765       # Common symbols not allowed in MH_DYLIB files
15766       lt_prog_compiler_pic_CXX='-fno-common'
15767       ;;
15768     *djgpp*)
15769       # DJGPP does not support shared libraries at all
15770       lt_prog_compiler_pic_CXX=
15771       ;;
15772     interix[3-9]*)
15773       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15774       # Instead, we relocate shared libraries at runtime.
15775       ;;
15776     sysv4*MP*)
15777       if test -d /usr/nec; then
15778         lt_prog_compiler_pic_CXX=-Kconform_pic
15779       fi
15780       ;;
15781     hpux*)
15782       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15783       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15784       # sets the default TLS model and affects inlining.
15785       case $host_cpu in
15786       hppa*64*)
15787         ;;
15788       *)
15789         lt_prog_compiler_pic_CXX='-fPIC'
15790         ;;
15791       esac
15792       ;;
15793     *qnx* | *nto*)
15794       # QNX uses GNU C++, but need to define -shared option too, otherwise
15795       # it will coredump.
15796       lt_prog_compiler_pic_CXX='-fPIC -shared'
15797       ;;
15798     *)
15799       lt_prog_compiler_pic_CXX='-fPIC'
15800       ;;
15801     esac
15802   else
15803     case $host_os in
15804       aix[4-9]*)
15805         # All AIX code is PIC.
15806         if test "$host_cpu" = ia64; then
15807           # AIX 5 now supports IA64 processor
15808           lt_prog_compiler_static_CXX='-Bstatic'
15809         else
15810           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15811         fi
15812         ;;
15813       chorus*)
15814         case $cc_basename in
15815         cxch68*)
15816           # Green Hills C++ Compiler
15817           # _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"
15818           ;;
15819         esac
15820         ;;
15821       dgux*)
15822         case $cc_basename in
15823           ec++*)
15824             lt_prog_compiler_pic_CXX='-KPIC'
15825             ;;
15826           ghcx*)
15827             # Green Hills C++ Compiler
15828             lt_prog_compiler_pic_CXX='-pic'
15829             ;;
15830           *)
15831             ;;
15832         esac
15833         ;;
15834       freebsd* | dragonfly*)
15835         # FreeBSD uses GNU C++
15836         ;;
15837       hpux9* | hpux10* | hpux11*)
15838         case $cc_basename in
15839           CC*)
15840             lt_prog_compiler_wl_CXX='-Wl,'
15841             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15842             if test "$host_cpu" != ia64; then
15843               lt_prog_compiler_pic_CXX='+Z'
15844             fi
15845             ;;
15846           aCC*)
15847             lt_prog_compiler_wl_CXX='-Wl,'
15848             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15849             case $host_cpu in
15850             hppa*64*|ia64*)
15851               # +Z the default
15852               ;;
15853             *)
15854               lt_prog_compiler_pic_CXX='+Z'
15855               ;;
15856             esac
15857             ;;
15858           *)
15859             ;;
15860         esac
15861         ;;
15862       interix*)
15863         # This is c89, which is MS Visual C++ (no shared libs)
15864         # Anyone wants to do a port?
15865         ;;
15866       irix5* | irix6* | nonstopux*)
15867         case $cc_basename in
15868           CC*)
15869             lt_prog_compiler_wl_CXX='-Wl,'
15870             lt_prog_compiler_static_CXX='-non_shared'
15871             # CC pic flag -KPIC is the default.
15872             ;;
15873           *)
15874             ;;
15875         esac
15876         ;;
15877       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15878         case $cc_basename in
15879           KCC*)
15880             # KAI C++ Compiler
15881             lt_prog_compiler_wl_CXX='--backend -Wl,'
15882             lt_prog_compiler_pic_CXX='-fPIC'
15883             ;;
15884           ecpc* )
15885             # old Intel C++ for x86_64 which still supported -KPIC.
15886             lt_prog_compiler_wl_CXX='-Wl,'
15887             lt_prog_compiler_pic_CXX='-KPIC'
15888             lt_prog_compiler_static_CXX='-static'
15889             ;;
15890           icpc* )
15891             # Intel C++, used to be incompatible with GCC.
15892             # ICC 10 doesn't accept -KPIC any more.
15893             lt_prog_compiler_wl_CXX='-Wl,'
15894             lt_prog_compiler_pic_CXX='-fPIC'
15895             lt_prog_compiler_static_CXX='-static'
15896             ;;
15897           pgCC* | pgcpp*)
15898             # Portland Group C++ compiler
15899             lt_prog_compiler_wl_CXX='-Wl,'
15900             lt_prog_compiler_pic_CXX='-fpic'
15901             lt_prog_compiler_static_CXX='-Bstatic'
15902             ;;
15903           cxx*)
15904             # Compaq C++
15905             # Make sure the PIC flag is empty.  It appears that all Alpha
15906             # Linux and Compaq Tru64 Unix objects are PIC.
15907             lt_prog_compiler_pic_CXX=
15908             lt_prog_compiler_static_CXX='-non_shared'
15909             ;;
15910           xlc* | xlC*)
15911             # IBM XL 8.0 on PPC
15912             lt_prog_compiler_wl_CXX='-Wl,'
15913             lt_prog_compiler_pic_CXX='-qpic'
15914             lt_prog_compiler_static_CXX='-qstaticlink'
15915             ;;
15916           *)
15917             case `$CC -V 2>&1 | sed 5q` in
15918             *Sun\ C*)
15919               # Sun C++ 5.9
15920               lt_prog_compiler_pic_CXX='-KPIC'
15921               lt_prog_compiler_static_CXX='-Bstatic'
15922               lt_prog_compiler_wl_CXX='-Qoption ld '
15923               ;;
15924             esac
15925             ;;
15926         esac
15927         ;;
15928       lynxos*)
15929         ;;
15930       m88k*)
15931         ;;
15932       mvs*)
15933         case $cc_basename in
15934           cxx*)
15935             lt_prog_compiler_pic_CXX='-W c,exportall'
15936             ;;
15937           *)
15938             ;;
15939         esac
15940         ;;
15941       netbsd* | netbsdelf*-gnu)
15942         ;;
15943       *qnx* | *nto*)
15944         # QNX uses GNU C++, but need to define -shared option too, otherwise
15945         # it will coredump.
15946         lt_prog_compiler_pic_CXX='-fPIC -shared'
15947         ;;
15948       osf3* | osf4* | osf5*)
15949         case $cc_basename in
15950           KCC*)
15951             lt_prog_compiler_wl_CXX='--backend -Wl,'
15952             ;;
15953           RCC*)
15954             # Rational C++ 2.4.1
15955             lt_prog_compiler_pic_CXX='-pic'
15956             ;;
15957           cxx*)
15958             # Digital/Compaq C++
15959             lt_prog_compiler_wl_CXX='-Wl,'
15960             # Make sure the PIC flag is empty.  It appears that all Alpha
15961             # Linux and Compaq Tru64 Unix objects are PIC.
15962             lt_prog_compiler_pic_CXX=
15963             lt_prog_compiler_static_CXX='-non_shared'
15964             ;;
15965           *)
15966             ;;
15967         esac
15968         ;;
15969       psos*)
15970         ;;
15971       solaris*)
15972         case $cc_basename in
15973           CC*)
15974             # Sun C++ 4.2, 5.x and Centerline C++
15975             lt_prog_compiler_pic_CXX='-KPIC'
15976             lt_prog_compiler_static_CXX='-Bstatic'
15977             lt_prog_compiler_wl_CXX='-Qoption ld '
15978             ;;
15979           gcx*)
15980             # Green Hills C++ Compiler
15981             lt_prog_compiler_pic_CXX='-PIC'
15982             ;;
15983           *)
15984             ;;
15985         esac
15986         ;;
15987       sunos4*)
15988         case $cc_basename in
15989           CC*)
15990             # Sun C++ 4.x
15991             lt_prog_compiler_pic_CXX='-pic'
15992             lt_prog_compiler_static_CXX='-Bstatic'
15993             ;;
15994           lcc*)
15995             # Lucid
15996             lt_prog_compiler_pic_CXX='-pic'
15997             ;;
15998           *)
15999             ;;
16000         esac
16001         ;;
16002       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16003         case $cc_basename in
16004           CC*)
16005             lt_prog_compiler_wl_CXX='-Wl,'
16006             lt_prog_compiler_pic_CXX='-KPIC'
16007             lt_prog_compiler_static_CXX='-Bstatic'
16008             ;;
16009         esac
16010         ;;
16011       tandem*)
16012         case $cc_basename in
16013           NCC*)
16014             # NonStop-UX NCC 3.20
16015             lt_prog_compiler_pic_CXX='-KPIC'
16016             ;;
16017           *)
16018             ;;
16019         esac
16020         ;;
16021       vxworks*)
16022         ;;
16023       *)
16024         lt_prog_compiler_can_build_shared_CXX=no
16025         ;;
16026     esac
16027   fi
16028
16029 case $host_os in
16030   # For platforms which do not support PIC, -DPIC is meaningless:
16031   *djgpp*)
16032     lt_prog_compiler_pic_CXX=
16033     ;;
16034   *)
16035     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16036     ;;
16037 esac
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16039 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16040
16041
16042
16043 #
16044 # Check to make sure the PIC flag actually works.
16045 #
16046 if test -n "$lt_prog_compiler_pic_CXX"; then
16047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16048 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16049 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16050   $as_echo_n "(cached) " >&6
16051 else
16052   lt_cv_prog_compiler_pic_works_CXX=no
16053    ac_outfile=conftest.$ac_objext
16054    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16055    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16056    # Insert the option either (1) after the last *FLAGS variable, or
16057    # (2) before a word containing "conftest.", or (3) at the end.
16058    # Note that $ac_compile itself does not contain backslashes and begins
16059    # with a dollar sign (not a hyphen), so the echo should work correctly.
16060    # The option is referenced via a variable to avoid confusing sed.
16061    lt_compile=`echo "$ac_compile" | $SED \
16062    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16063    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16064    -e 's:$: $lt_compiler_flag:'`
16065    (eval echo "\"\$as_me:16065: $lt_compile\"" >&5)
16066    (eval "$lt_compile" 2>conftest.err)
16067    ac_status=$?
16068    cat conftest.err >&5
16069    echo "$as_me:16069: \$? = $ac_status" >&5
16070    if (exit $ac_status) && test -s "$ac_outfile"; then
16071      # The compiler can only warn and ignore the option if not recognized
16072      # So say no if there are warnings other than the usual output.
16073      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16074      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16075      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16076        lt_cv_prog_compiler_pic_works_CXX=yes
16077      fi
16078    fi
16079    $RM conftest*
16080
16081 fi
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16083 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16084
16085 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16086     case $lt_prog_compiler_pic_CXX in
16087      "" | " "*) ;;
16088      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16089      esac
16090 else
16091     lt_prog_compiler_pic_CXX=
16092      lt_prog_compiler_can_build_shared_CXX=no
16093 fi
16094
16095 fi
16096
16097
16098
16099 #
16100 # Check to make sure the static flag actually works.
16101 #
16102 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16104 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16105 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16106   $as_echo_n "(cached) " >&6
16107 else
16108   lt_cv_prog_compiler_static_works_CXX=no
16109    save_LDFLAGS="$LDFLAGS"
16110    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16111    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16112    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16113      # The linker can only warn and ignore the option if not recognized
16114      # So say no if there are warnings
16115      if test -s conftest.err; then
16116        # Append any errors to the config.log.
16117        cat conftest.err 1>&5
16118        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16119        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16120        if diff conftest.exp conftest.er2 >/dev/null; then
16121          lt_cv_prog_compiler_static_works_CXX=yes
16122        fi
16123      else
16124        lt_cv_prog_compiler_static_works_CXX=yes
16125      fi
16126    fi
16127    $RM -r conftest*
16128    LDFLAGS="$save_LDFLAGS"
16129
16130 fi
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16132 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16133
16134 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16135     :
16136 else
16137     lt_prog_compiler_static_CXX=
16138 fi
16139
16140
16141
16142
16143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16144 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16145 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16146   $as_echo_n "(cached) " >&6
16147 else
16148   lt_cv_prog_compiler_c_o_CXX=no
16149    $RM -r conftest 2>/dev/null
16150    mkdir conftest
16151    cd conftest
16152    mkdir out
16153    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16154
16155    lt_compiler_flag="-o out/conftest2.$ac_objext"
16156    # Insert the option either (1) after the last *FLAGS variable, or
16157    # (2) before a word containing "conftest.", or (3) at the end.
16158    # Note that $ac_compile itself does not contain backslashes and begins
16159    # with a dollar sign (not a hyphen), so the echo should work correctly.
16160    lt_compile=`echo "$ac_compile" | $SED \
16161    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16162    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16163    -e 's:$: $lt_compiler_flag:'`
16164    (eval echo "\"\$as_me:16164: $lt_compile\"" >&5)
16165    (eval "$lt_compile" 2>out/conftest.err)
16166    ac_status=$?
16167    cat out/conftest.err >&5
16168    echo "$as_me:16168: \$? = $ac_status" >&5
16169    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16170    then
16171      # The compiler can only warn and ignore the option if not recognized
16172      # So say no if there are warnings
16173      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16174      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16175      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16176        lt_cv_prog_compiler_c_o_CXX=yes
16177      fi
16178    fi
16179    chmod u+w . 2>&5
16180    $RM conftest*
16181    # SGI C++ compiler will create directory out/ii_files/ for
16182    # template instantiation
16183    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16184    $RM out/* && rmdir out
16185    cd ..
16186    $RM -r conftest
16187    $RM conftest*
16188
16189 fi
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16191 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16192
16193
16194
16195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16196 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16197 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16198   $as_echo_n "(cached) " >&6
16199 else
16200   lt_cv_prog_compiler_c_o_CXX=no
16201    $RM -r conftest 2>/dev/null
16202    mkdir conftest
16203    cd conftest
16204    mkdir out
16205    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16206
16207    lt_compiler_flag="-o out/conftest2.$ac_objext"
16208    # Insert the option either (1) after the last *FLAGS variable, or
16209    # (2) before a word containing "conftest.", or (3) at the end.
16210    # Note that $ac_compile itself does not contain backslashes and begins
16211    # with a dollar sign (not a hyphen), so the echo should work correctly.
16212    lt_compile=`echo "$ac_compile" | $SED \
16213    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16214    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16215    -e 's:$: $lt_compiler_flag:'`
16216    (eval echo "\"\$as_me:16216: $lt_compile\"" >&5)
16217    (eval "$lt_compile" 2>out/conftest.err)
16218    ac_status=$?
16219    cat out/conftest.err >&5
16220    echo "$as_me:16220: \$? = $ac_status" >&5
16221    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16222    then
16223      # The compiler can only warn and ignore the option if not recognized
16224      # So say no if there are warnings
16225      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16226      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16227      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16228        lt_cv_prog_compiler_c_o_CXX=yes
16229      fi
16230    fi
16231    chmod u+w . 2>&5
16232    $RM conftest*
16233    # SGI C++ compiler will create directory out/ii_files/ for
16234    # template instantiation
16235    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16236    $RM out/* && rmdir out
16237    cd ..
16238    $RM -r conftest
16239    $RM conftest*
16240
16241 fi
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16243 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16244
16245
16246
16247
16248 hard_links="nottested"
16249 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16250   # do not overwrite the value of need_locks provided by the user
16251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16252 $as_echo_n "checking if we can lock with hard links... " >&6; }
16253   hard_links=yes
16254   $RM conftest*
16255   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16256   touch conftest.a
16257   ln conftest.a conftest.b 2>&5 || hard_links=no
16258   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16260 $as_echo "$hard_links" >&6; }
16261   if test "$hard_links" = no; then
16262     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16263 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16264     need_locks=warn
16265   fi
16266 else
16267   need_locks=no
16268 fi
16269
16270
16271
16272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16273 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16274
16275   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16276   case $host_os in
16277   aix[4-9]*)
16278     # If we're using GNU nm, then we don't want the "-C" option.
16279     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16280     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16281       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'
16282     else
16283       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'
16284     fi
16285     ;;
16286   pw32*)
16287     export_symbols_cmds_CXX="$ltdll_cmds"
16288   ;;
16289   cygwin* | mingw* | cegcc*)
16290     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'
16291   ;;
16292   linux* | k*bsd*-gnu)
16293     link_all_deplibs_CXX=no
16294   ;;
16295   *)
16296     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16297   ;;
16298   esac
16299   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16300
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16302 $as_echo "$ld_shlibs_CXX" >&6; }
16303 test "$ld_shlibs_CXX" = no && can_build_shared=no
16304
16305 with_gnu_ld_CXX=$with_gnu_ld
16306
16307
16308
16309
16310
16311
16312 #
16313 # Do we need to explicitly link libc?
16314 #
16315 case "x$archive_cmds_need_lc_CXX" in
16316 x|xyes)
16317   # Assume -lc should be added
16318   archive_cmds_need_lc_CXX=yes
16319
16320   if test "$enable_shared" = yes && test "$GCC" = yes; then
16321     case $archive_cmds_CXX in
16322     *'~'*)
16323       # FIXME: we may have to deal with multi-command sequences.
16324       ;;
16325     '$CC '*)
16326       # Test whether the compiler implicitly links with -lc since on some
16327       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16328       # to ld, don't add -lc before -lgcc.
16329       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16330 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16331       $RM conftest*
16332       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16333
16334       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16335   (eval $ac_compile) 2>&5
16336   ac_status=$?
16337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16338   test $ac_status = 0; } 2>conftest.err; then
16339         soname=conftest
16340         lib=conftest
16341         libobjs=conftest.$ac_objext
16342         deplibs=
16343         wl=$lt_prog_compiler_wl_CXX
16344         pic_flag=$lt_prog_compiler_pic_CXX
16345         compiler_flags=-v
16346         linker_flags=-v
16347         verstring=
16348         output_objdir=.
16349         libname=conftest
16350         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16351         allow_undefined_flag_CXX=
16352         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16353   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16354   ac_status=$?
16355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16356   test $ac_status = 0; }
16357         then
16358           archive_cmds_need_lc_CXX=no
16359         else
16360           archive_cmds_need_lc_CXX=yes
16361         fi
16362         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16363       else
16364         cat conftest.err 1>&5
16365       fi
16366       $RM conftest*
16367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16368 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16369       ;;
16370     esac
16371   fi
16372   ;;
16373 esac
16374
16375
16376
16377
16378
16379
16380
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16439 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16440
16441 library_names_spec=
16442 libname_spec='lib$name'
16443 soname_spec=
16444 shrext_cmds=".so"
16445 postinstall_cmds=
16446 postuninstall_cmds=
16447 finish_cmds=
16448 finish_eval=
16449 shlibpath_var=
16450 shlibpath_overrides_runpath=unknown
16451 version_type=none
16452 dynamic_linker="$host_os ld.so"
16453 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16454 need_lib_prefix=unknown
16455 hardcode_into_libs=no
16456
16457 # when you set need_version to no, make sure it does not cause -set_version
16458 # flags to be left without arguments
16459 need_version=unknown
16460
16461 case $host_os in
16462 aix3*)
16463   version_type=linux
16464   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16465   shlibpath_var=LIBPATH
16466
16467   # AIX 3 has no versioning support, so we append a major version to the name.
16468   soname_spec='${libname}${release}${shared_ext}$major'
16469   ;;
16470
16471 aix[4-9]*)
16472   version_type=linux
16473   need_lib_prefix=no
16474   need_version=no
16475   hardcode_into_libs=yes
16476   if test "$host_cpu" = ia64; then
16477     # AIX 5 supports IA64
16478     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16479     shlibpath_var=LD_LIBRARY_PATH
16480   else
16481     # With GCC up to 2.95.x, collect2 would create an import file
16482     # for dependence libraries.  The import file would start with
16483     # the line `#! .'.  This would cause the generated library to
16484     # depend on `.', always an invalid library.  This was fixed in
16485     # development snapshots of GCC prior to 3.0.
16486     case $host_os in
16487       aix4 | aix4.[01] | aix4.[01].*)
16488       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16489            echo ' yes '
16490            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16491         :
16492       else
16493         can_build_shared=no
16494       fi
16495       ;;
16496     esac
16497     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16498     # soname into executable. Probably we can add versioning support to
16499     # collect2, so additional links can be useful in future.
16500     if test "$aix_use_runtimelinking" = yes; then
16501       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16502       # instead of lib<name>.a to let people know that these are not
16503       # typical AIX shared libraries.
16504       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505     else
16506       # We preserve .a as extension for shared libraries through AIX4.2
16507       # and later when we are not doing run time linking.
16508       library_names_spec='${libname}${release}.a $libname.a'
16509       soname_spec='${libname}${release}${shared_ext}$major'
16510     fi
16511     shlibpath_var=LIBPATH
16512   fi
16513   ;;
16514
16515 amigaos*)
16516   case $host_cpu in
16517   powerpc)
16518     # Since July 2007 AmigaOS4 officially supports .so libraries.
16519     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16521     ;;
16522   m68k)
16523     library_names_spec='$libname.ixlibrary $libname.a'
16524     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16525     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'
16526     ;;
16527   esac
16528   ;;
16529
16530 beos*)
16531   library_names_spec='${libname}${shared_ext}'
16532   dynamic_linker="$host_os ld.so"
16533   shlibpath_var=LIBRARY_PATH
16534   ;;
16535
16536 bsdi[45]*)
16537   version_type=linux
16538   need_version=no
16539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540   soname_spec='${libname}${release}${shared_ext}$major'
16541   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16542   shlibpath_var=LD_LIBRARY_PATH
16543   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16544   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16545   # the default ld.so.conf also contains /usr/contrib/lib and
16546   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16547   # libtool to hard-code these into programs
16548   ;;
16549
16550 cygwin* | mingw* | pw32* | cegcc*)
16551   version_type=windows
16552   shrext_cmds=".dll"
16553   need_version=no
16554   need_lib_prefix=no
16555
16556   case $GCC,$host_os in
16557   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16558     library_names_spec='$libname.dll.a'
16559     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16560     postinstall_cmds='base_file=`basename \${file}`~
16561       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16562       dldir=$destdir/`dirname \$dlpath`~
16563       test -d \$dldir || mkdir -p \$dldir~
16564       $install_prog $dir/$dlname \$dldir/$dlname~
16565       chmod a+x \$dldir/$dlname~
16566       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16567         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16568       fi'
16569     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16570       dlpath=$dir/\$dldll~
16571        $RM \$dlpath'
16572     shlibpath_overrides_runpath=yes
16573
16574     case $host_os in
16575     cygwin*)
16576       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16577       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16578       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16579       ;;
16580     mingw* | cegcc*)
16581       # MinGW DLLs use traditional 'lib' prefix
16582       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16583       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16584       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16585         # It is most probably a Windows format PATH printed by
16586         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16587         # path with ; separators, and with drive letters. We can handle the
16588         # drive letters (cygwin fileutils understands them), so leave them,
16589         # especially as we might pass files found there to a mingw objdump,
16590         # which wouldn't understand a cygwinified path. Ahh.
16591         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16592       else
16593         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16594       fi
16595       ;;
16596     pw32*)
16597       # pw32 DLLs use 'pw' prefix rather than 'lib'
16598       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16599       ;;
16600     esac
16601     ;;
16602
16603   *)
16604     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16605     ;;
16606   esac
16607   dynamic_linker='Win32 ld.exe'
16608   # FIXME: first we should search . and the directory the executable is in
16609   shlibpath_var=PATH
16610   ;;
16611
16612 darwin* | rhapsody*)
16613   dynamic_linker="$host_os dyld"
16614   version_type=darwin
16615   need_lib_prefix=no
16616   need_version=no
16617   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16618   soname_spec='${libname}${release}${major}$shared_ext'
16619   shlibpath_overrides_runpath=yes
16620   shlibpath_var=DYLD_LIBRARY_PATH
16621   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16622
16623   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16624   ;;
16625
16626 dgux*)
16627   version_type=linux
16628   need_lib_prefix=no
16629   need_version=no
16630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16631   soname_spec='${libname}${release}${shared_ext}$major'
16632   shlibpath_var=LD_LIBRARY_PATH
16633   ;;
16634
16635 freebsd1*)
16636   dynamic_linker=no
16637   ;;
16638
16639 freebsd* | dragonfly*)
16640   # DragonFly does not have aout.  When/if they implement a new
16641   # versioning mechanism, adjust this.
16642   if test -x /usr/bin/objformat; then
16643     objformat=`/usr/bin/objformat`
16644   else
16645     case $host_os in
16646     freebsd[123]*) objformat=aout ;;
16647     *) objformat=elf ;;
16648     esac
16649   fi
16650   version_type=freebsd-$objformat
16651   case $version_type in
16652     freebsd-elf*)
16653       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16654       need_version=no
16655       need_lib_prefix=no
16656       ;;
16657     freebsd-*)
16658       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16659       need_version=yes
16660       ;;
16661   esac
16662   shlibpath_var=LD_LIBRARY_PATH
16663   case $host_os in
16664   freebsd2*)
16665     shlibpath_overrides_runpath=yes
16666     ;;
16667   freebsd3.[01]* | freebsdelf3.[01]*)
16668     shlibpath_overrides_runpath=yes
16669     hardcode_into_libs=yes
16670     ;;
16671   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16672   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16673     shlibpath_overrides_runpath=no
16674     hardcode_into_libs=yes
16675     ;;
16676   *) # from 4.6 on, and DragonFly
16677     shlibpath_overrides_runpath=yes
16678     hardcode_into_libs=yes
16679     ;;
16680   esac
16681   ;;
16682
16683 gnu*)
16684   version_type=linux
16685   need_lib_prefix=no
16686   need_version=no
16687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16688   soname_spec='${libname}${release}${shared_ext}$major'
16689   shlibpath_var=LD_LIBRARY_PATH
16690   hardcode_into_libs=yes
16691   ;;
16692
16693 hpux9* | hpux10* | hpux11*)
16694   # Give a soname corresponding to the major version so that dld.sl refuses to
16695   # link against other versions.
16696   version_type=sunos
16697   need_lib_prefix=no
16698   need_version=no
16699   case $host_cpu in
16700   ia64*)
16701     shrext_cmds='.so'
16702     hardcode_into_libs=yes
16703     dynamic_linker="$host_os dld.so"
16704     shlibpath_var=LD_LIBRARY_PATH
16705     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707     soname_spec='${libname}${release}${shared_ext}$major'
16708     if test "X$HPUX_IA64_MODE" = X32; then
16709       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16710     else
16711       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16712     fi
16713     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16714     ;;
16715   hppa*64*)
16716     shrext_cmds='.sl'
16717     hardcode_into_libs=yes
16718     dynamic_linker="$host_os dld.sl"
16719     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16720     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16722     soname_spec='${libname}${release}${shared_ext}$major'
16723     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16724     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16725     ;;
16726   *)
16727     shrext_cmds='.sl'
16728     dynamic_linker="$host_os dld.sl"
16729     shlibpath_var=SHLIB_PATH
16730     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16732     soname_spec='${libname}${release}${shared_ext}$major'
16733     ;;
16734   esac
16735   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16736   postinstall_cmds='chmod 555 $lib'
16737   ;;
16738
16739 interix[3-9]*)
16740   version_type=linux
16741   need_lib_prefix=no
16742   need_version=no
16743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16744   soname_spec='${libname}${release}${shared_ext}$major'
16745   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16746   shlibpath_var=LD_LIBRARY_PATH
16747   shlibpath_overrides_runpath=no
16748   hardcode_into_libs=yes
16749   ;;
16750
16751 irix5* | irix6* | nonstopux*)
16752   case $host_os in
16753     nonstopux*) version_type=nonstopux ;;
16754     *)
16755         if test "$lt_cv_prog_gnu_ld" = yes; then
16756                 version_type=linux
16757         else
16758                 version_type=irix
16759         fi ;;
16760   esac
16761   need_lib_prefix=no
16762   need_version=no
16763   soname_spec='${libname}${release}${shared_ext}$major'
16764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16765   case $host_os in
16766   irix5* | nonstopux*)
16767     libsuff= shlibsuff=
16768     ;;
16769   *)
16770     case $LD in # libtool.m4 will add one of these switches to LD
16771     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16772       libsuff= shlibsuff= libmagic=32-bit;;
16773     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16774       libsuff=32 shlibsuff=N32 libmagic=N32;;
16775     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16776       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16777     *) libsuff= shlibsuff= libmagic=never-match;;
16778     esac
16779     ;;
16780   esac
16781   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16782   shlibpath_overrides_runpath=no
16783   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16784   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16785   hardcode_into_libs=yes
16786   ;;
16787
16788 # No shared lib support for Linux oldld, aout, or coff.
16789 linux*oldld* | linux*aout* | linux*coff*)
16790   dynamic_linker=no
16791   ;;
16792
16793 # This must be Linux ELF.
16794 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16795   version_type=linux
16796   need_lib_prefix=no
16797   need_version=no
16798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16799   soname_spec='${libname}${release}${shared_ext}$major'
16800   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16801   shlibpath_var=LD_LIBRARY_PATH
16802   shlibpath_overrides_runpath=no
16803   # Some binutils ld are patched to set DT_RUNPATH
16804   save_LDFLAGS=$LDFLAGS
16805   save_libdir=$libdir
16806   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16807        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h.  */
16810
16811 int
16812 main ()
16813 {
16814
16815   ;
16816   return 0;
16817 }
16818 _ACEOF
16819 if ac_fn_cxx_try_link "$LINENO"; then :
16820   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16821   shlibpath_overrides_runpath=yes
16822 fi
16823 fi
16824 rm -f core conftest.err conftest.$ac_objext \
16825     conftest$ac_exeext conftest.$ac_ext
16826   LDFLAGS=$save_LDFLAGS
16827   libdir=$save_libdir
16828
16829   # This implies no fast_install, which is unacceptable.
16830   # Some rework will be needed to allow for fast_install
16831   # before this can be enabled.
16832   hardcode_into_libs=yes
16833
16834   # Append ld.so.conf contents to the search path
16835   if test -f /etc/ld.so.conf; then
16836     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' ' '`
16837     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16838   fi
16839
16840   # We used to test for /lib/ld.so.1 and disable shared libraries on
16841   # powerpc, because MkLinux only supported shared libraries with the
16842   # GNU dynamic linker.  Since this was broken with cross compilers,
16843   # most powerpc-linux boxes support dynamic linking these days and
16844   # people can always --disable-shared, the test was removed, and we
16845   # assume the GNU/Linux dynamic linker is in use.
16846   dynamic_linker='GNU/Linux ld.so'
16847   ;;
16848
16849 netbsdelf*-gnu)
16850   version_type=linux
16851   need_lib_prefix=no
16852   need_version=no
16853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16854   soname_spec='${libname}${release}${shared_ext}$major'
16855   shlibpath_var=LD_LIBRARY_PATH
16856   shlibpath_overrides_runpath=no
16857   hardcode_into_libs=yes
16858   dynamic_linker='NetBSD ld.elf_so'
16859   ;;
16860
16861 netbsd*)
16862   version_type=sunos
16863   need_lib_prefix=no
16864   need_version=no
16865   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16866     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16867     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16868     dynamic_linker='NetBSD (a.out) ld.so'
16869   else
16870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16871     soname_spec='${libname}${release}${shared_ext}$major'
16872     dynamic_linker='NetBSD ld.elf_so'
16873   fi
16874   shlibpath_var=LD_LIBRARY_PATH
16875   shlibpath_overrides_runpath=yes
16876   hardcode_into_libs=yes
16877   ;;
16878
16879 newsos6)
16880   version_type=linux
16881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882   shlibpath_var=LD_LIBRARY_PATH
16883   shlibpath_overrides_runpath=yes
16884   ;;
16885
16886 *nto* | *qnx*)
16887   version_type=qnx
16888   need_lib_prefix=no
16889   need_version=no
16890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16891   soname_spec='${libname}${release}${shared_ext}$major'
16892   shlibpath_var=LD_LIBRARY_PATH
16893   shlibpath_overrides_runpath=no
16894   hardcode_into_libs=yes
16895   dynamic_linker='ldqnx.so'
16896   ;;
16897
16898 openbsd*)
16899   version_type=sunos
16900   sys_lib_dlsearch_path_spec="/usr/lib"
16901   need_lib_prefix=no
16902   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16903   case $host_os in
16904     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16905     *)                          need_version=no  ;;
16906   esac
16907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16908   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16909   shlibpath_var=LD_LIBRARY_PATH
16910   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16911     case $host_os in
16912       openbsd2.[89] | openbsd2.[89].*)
16913         shlibpath_overrides_runpath=no
16914         ;;
16915       *)
16916         shlibpath_overrides_runpath=yes
16917         ;;
16918       esac
16919   else
16920     shlibpath_overrides_runpath=yes
16921   fi
16922   ;;
16923
16924 os2*)
16925   libname_spec='$name'
16926   shrext_cmds=".dll"
16927   need_lib_prefix=no
16928   library_names_spec='$libname${shared_ext} $libname.a'
16929   dynamic_linker='OS/2 ld.exe'
16930   shlibpath_var=LIBPATH
16931   ;;
16932
16933 osf3* | osf4* | osf5*)
16934   version_type=osf
16935   need_lib_prefix=no
16936   need_version=no
16937   soname_spec='${libname}${release}${shared_ext}$major'
16938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939   shlibpath_var=LD_LIBRARY_PATH
16940   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16941   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16942   ;;
16943
16944 rdos*)
16945   dynamic_linker=no
16946   ;;
16947
16948 solaris*)
16949   version_type=linux
16950   need_lib_prefix=no
16951   need_version=no
16952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953   soname_spec='${libname}${release}${shared_ext}$major'
16954   shlibpath_var=LD_LIBRARY_PATH
16955   shlibpath_overrides_runpath=yes
16956   hardcode_into_libs=yes
16957   # ldd complains unless libraries are executable
16958   postinstall_cmds='chmod +x $lib'
16959   ;;
16960
16961 sunos4*)
16962   version_type=sunos
16963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16964   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16965   shlibpath_var=LD_LIBRARY_PATH
16966   shlibpath_overrides_runpath=yes
16967   if test "$with_gnu_ld" = yes; then
16968     need_lib_prefix=no
16969   fi
16970   need_version=yes
16971   ;;
16972
16973 sysv4 | sysv4.3*)
16974   version_type=linux
16975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976   soname_spec='${libname}${release}${shared_ext}$major'
16977   shlibpath_var=LD_LIBRARY_PATH
16978   case $host_vendor in
16979     sni)
16980       shlibpath_overrides_runpath=no
16981       need_lib_prefix=no
16982       runpath_var=LD_RUN_PATH
16983       ;;
16984     siemens)
16985       need_lib_prefix=no
16986       ;;
16987     motorola)
16988       need_lib_prefix=no
16989       need_version=no
16990       shlibpath_overrides_runpath=no
16991       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16992       ;;
16993   esac
16994   ;;
16995
16996 sysv4*MP*)
16997   if test -d /usr/nec ;then
16998     version_type=linux
16999     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17000     soname_spec='$libname${shared_ext}.$major'
17001     shlibpath_var=LD_LIBRARY_PATH
17002   fi
17003   ;;
17004
17005 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17006   version_type=freebsd-elf
17007   need_lib_prefix=no
17008   need_version=no
17009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17010   soname_spec='${libname}${release}${shared_ext}$major'
17011   shlibpath_var=LD_LIBRARY_PATH
17012   shlibpath_overrides_runpath=yes
17013   hardcode_into_libs=yes
17014   if test "$with_gnu_ld" = yes; then
17015     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17016   else
17017     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17018     case $host_os in
17019       sco3.2v5*)
17020         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17021         ;;
17022     esac
17023   fi
17024   sys_lib_dlsearch_path_spec='/usr/lib'
17025   ;;
17026
17027 tpf*)
17028   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17029   version_type=linux
17030   need_lib_prefix=no
17031   need_version=no
17032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033   shlibpath_var=LD_LIBRARY_PATH
17034   shlibpath_overrides_runpath=no
17035   hardcode_into_libs=yes
17036   ;;
17037
17038 uts4*)
17039   version_type=linux
17040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17041   soname_spec='${libname}${release}${shared_ext}$major'
17042   shlibpath_var=LD_LIBRARY_PATH
17043   ;;
17044
17045 *)
17046   dynamic_linker=no
17047   ;;
17048 esac
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17050 $as_echo "$dynamic_linker" >&6; }
17051 test "$dynamic_linker" = no && can_build_shared=no
17052
17053 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17054 if test "$GCC" = yes; then
17055   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17056 fi
17057
17058 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17059   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17060 fi
17061 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17062   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17063 fi
17064
17065
17066
17067
17068
17069
17070
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17101 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17102 hardcode_action_CXX=
17103 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17104    test -n "$runpath_var_CXX" ||
17105    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17106
17107   # We can hardcode non-existent directories.
17108   if test "$hardcode_direct_CXX" != no &&
17109      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17110      # have to relink, otherwise we might link with an installed library
17111      # when we should be linking with a yet-to-be-installed one
17112      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17113      test "$hardcode_minus_L_CXX" != no; then
17114     # Linking always hardcodes the temporary library directory.
17115     hardcode_action_CXX=relink
17116   else
17117     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17118     hardcode_action_CXX=immediate
17119   fi
17120 else
17121   # We cannot hardcode anything, or else we can only hardcode existing
17122   # directories.
17123   hardcode_action_CXX=unsupported
17124 fi
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17126 $as_echo "$hardcode_action_CXX" >&6; }
17127
17128 if test "$hardcode_action_CXX" = relink ||
17129    test "$inherit_rpath_CXX" = yes; then
17130   # Fast installation is not supported
17131   enable_fast_install=no
17132 elif test "$shlibpath_overrides_runpath" = yes ||
17133      test "$enable_shared" = no; then
17134   # Fast installation is not necessary
17135   enable_fast_install=needless
17136 fi
17137
17138
17139
17140
17141
17142
17143
17144   fi # test -n "$compiler"
17145
17146   CC=$lt_save_CC
17147   LDCXX=$LD
17148   LD=$lt_save_LD
17149   GCC=$lt_save_GCC
17150   with_gnu_ld=$lt_save_with_gnu_ld
17151   lt_cv_path_LDCXX=$lt_cv_path_LD
17152   lt_cv_path_LD=$lt_save_path_LD
17153   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17154   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17155 fi # test "$_lt_caught_CXX_error" != yes
17156
17157 ac_ext=c
17158 ac_cpp='$CPP $CPPFLAGS'
17159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17162
17163
17164
17165
17166 if test "$GCC" = "yes" ; then
17167 #    AC_HAVE_GCC_VERSION(4,0,0,0,
17168 #        [
17169 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
17170 #            [Define to enable class visibility control in gcc.])
17171 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17172 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
17173 #        ])
17174     CFLAGS="$GCC_CFLAGS"
17175     CXXFLAGS="$GCC_CXXFLAGS"
17176 else
17177 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
17178         case "${host_cpu}-${host_os}" in
17179                 *solaris*)
17180                         if test "$CXX" = "CC" ; then
17181                                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
17182                         fi
17183                 ;;
17184         esac
17185 fi
17186
17187 # Checks for typedefs, structures, and compiler characteristics.
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17189 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17190 if test "${ac_cv_c_const+set}" = set; then :
17191   $as_echo_n "(cached) " >&6
17192 else
17193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h.  */
17195
17196 int
17197 main ()
17198 {
17199 /* FIXME: Include the comments suggested by Paul. */
17200 #ifndef __cplusplus
17201   /* Ultrix mips cc rejects this.  */
17202   typedef int charset[2];
17203   const charset cs;
17204   /* SunOS 4.1.1 cc rejects this.  */
17205   char const *const *pcpcc;
17206   char **ppc;
17207   /* NEC SVR4.0.2 mips cc rejects this.  */
17208   struct point {int x, y;};
17209   static struct point const zero = {0,0};
17210   /* AIX XL C 1.02.0.0 rejects this.
17211      It does not let you subtract one const X* pointer from another in
17212      an arm of an if-expression whose if-part is not a constant
17213      expression */
17214   const char *g = "string";
17215   pcpcc = &g + (g ? g-g : 0);
17216   /* HPUX 7.0 cc rejects these. */
17217   ++pcpcc;
17218   ppc = (char**) pcpcc;
17219   pcpcc = (char const *const *) ppc;
17220   { /* SCO 3.2v4 cc rejects this.  */
17221     char *t;
17222     char const *s = 0 ? (char *) 0 : (char const *) 0;
17223
17224     *t++ = 0;
17225     if (s) return 0;
17226   }
17227   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17228     int x[] = {25, 17};
17229     const int *foo = &x[0];
17230     ++foo;
17231   }
17232   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17233     typedef const int *iptr;
17234     iptr p = 0;
17235     ++p;
17236   }
17237   { /* AIX XL C 1.02.0.0 rejects this saying
17238        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17239     struct s { int j; const int *ap[3]; };
17240     struct s *b; b->j = 5;
17241   }
17242   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17243     const int foo = 10;
17244     if (!foo) return 0;
17245   }
17246   return !cs[0] && !zero.x;
17247 #endif
17248
17249   ;
17250   return 0;
17251 }
17252 _ACEOF
17253 if ac_fn_c_try_compile "$LINENO"; then :
17254   ac_cv_c_const=yes
17255 else
17256   ac_cv_c_const=no
17257 fi
17258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17259 fi
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17261 $as_echo "$ac_cv_c_const" >&6; }
17262 if test $ac_cv_c_const = no; then
17263
17264 $as_echo "#define const /**/" >>confdefs.h
17265
17266 fi
17267
17268 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17269 if test "x$ac_cv_type_size_t" = x""yes; then :
17270
17271 else
17272
17273 cat >>confdefs.h <<_ACEOF
17274 #define size_t unsigned int
17275 _ACEOF
17276
17277 fi
17278
17279
17280 # Checks for library functions.
17281 for ac_func in strchr strdup strstr
17282 do :
17283   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17284 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17285 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17286   cat >>confdefs.h <<_ACEOF
17287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17288 _ACEOF
17289
17290 fi
17291 done
17292
17293 # The cast to long int works around a bug in the HP C Compiler
17294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17296 # This bug is HP SR number 8606223364.
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
17298 $as_echo_n "checking size of time_t... " >&6; }
17299 if test "${ac_cv_sizeof_time_t+set}" = set; then :
17300   $as_echo_n "(cached) " >&6
17301 else
17302   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
17303
17304 else
17305   if test "$ac_cv_type_time_t" = yes; then
17306      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17308 as_fn_error 77 "cannot compute sizeof (time_t)
17309 See \`config.log' for more details" "$LINENO" 5 ; }
17310    else
17311      ac_cv_sizeof_time_t=0
17312    fi
17313 fi
17314
17315 fi
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
17317 $as_echo "$ac_cv_sizeof_time_t" >&6; }
17318
17319
17320
17321 cat >>confdefs.h <<_ACEOF
17322 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
17323 _ACEOF
17324
17325
17326
17327 # checks for pthreads
17328
17329
17330 ac_ext=c
17331 ac_cpp='$CPP $CPPFLAGS'
17332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17335
17336 acx_pthread_ok=no
17337
17338 # We used to check for pthread.h first, but this fails if pthread.h
17339 # requires special compiler flags (e.g. on True64 or Sequent).
17340 # It gets checked for in the link test anyway.
17341
17342 # First of all, check if the user has set any of the PTHREAD_LIBS,
17343 # etcetera environment variables, and if threads linking works using
17344 # them:
17345 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17346         save_CFLAGS="$CFLAGS"
17347         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17348         save_LIBS="$LIBS"
17349         LIBS="$PTHREAD_LIBS $LIBS"
17350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17351 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17352         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17353 /* end confdefs.h.  */
17354
17355 /* Override any GCC internal prototype to avoid an error.
17356    Use char because int might match the return type of a GCC
17357    builtin and then its argument prototype would still apply.  */
17358 #ifdef __cplusplus
17359 extern "C"
17360 #endif
17361 char pthread_join ();
17362 int
17363 main ()
17364 {
17365 return pthread_join ();
17366   ;
17367   return 0;
17368 }
17369 _ACEOF
17370 if ac_fn_c_try_link "$LINENO"; then :
17371   acx_pthread_ok=yes
17372 fi
17373 rm -f core conftest.err conftest.$ac_objext \
17374     conftest$ac_exeext conftest.$ac_ext
17375         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17376 $as_echo "$acx_pthread_ok" >&6; }
17377         if test x"$acx_pthread_ok" = xno; then
17378                 PTHREAD_LIBS=""
17379                 PTHREAD_CFLAGS=""
17380         fi
17381         LIBS="$save_LIBS"
17382         CFLAGS="$save_CFLAGS"
17383 fi
17384
17385 # We must check for the threads library under a number of different
17386 # names; the ordering is very important because some systems
17387 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17388 # libraries is broken (non-POSIX).
17389
17390 # Create a list of thread flags to try.  Items starting with a "-" are
17391 # C compiler flags, and other items are library names, except for "none"
17392 # which indicates that we try without any flags at all, and "pthread-config"
17393 # which is a program returning the flags for the Pth emulation library.
17394
17395 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17396
17397 # The ordering *is* (sometimes) important.  Some notes on the
17398 # individual items follow:
17399
17400 # pthreads: AIX (must check this before -lpthread)
17401 # none: in case threads are in libc; should be tried before -Kthread and
17402 #       other compiler flags to prevent continual compiler warnings
17403 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17404 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17405 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17406 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17407 # -pthreads: Solaris/gcc
17408 # -mthreads: Mingw32/gcc, Lynx/gcc
17409 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17410 #      doesn't hurt to check since this sometimes defines pthreads too;
17411 #      also defines -D_REENTRANT)
17412 #      ... -mt is also the pthreads flag for HP/aCC
17413 # pthread: Linux, etcetera
17414 # --thread-safe: KAI C++
17415 # pthread-config: use pthread-config program (for GNU Pth library)
17416
17417 case "${host_cpu}-${host_os}" in
17418         *solaris*)
17419
17420         # On Solaris (at least, for some versions), libc contains stubbed
17421         # (non-functional) versions of the pthreads routines, so link-based
17422         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
17423         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17424         # a function called by this macro, so we could check for that, but
17425         # who knows whether they'll stub that too in a future libc.)  So,
17426         # we'll just look for -pthreads and -lpthread first:
17427
17428         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
17429         ;;
17430 esac
17431
17432 if test x"$acx_pthread_ok" = xno; then
17433 for flag in $acx_pthread_flags; do
17434
17435         case $flag in
17436                 none)
17437                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17438 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17439                 ;;
17440
17441                 -*)
17442                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17443 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17444                 PTHREAD_CFLAGS="$flag"
17445                 ;;
17446
17447                 pthread-config)
17448                 # Extract the first word of "pthread-config", so it can be a program name with args.
17449 set dummy pthread-config; ac_word=$2
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17451 $as_echo_n "checking for $ac_word... " >&6; }
17452 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
17453   $as_echo_n "(cached) " >&6
17454 else
17455   if test -n "$acx_pthread_config"; then
17456   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17457 else
17458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17459 for as_dir in $PATH
17460 do
17461   IFS=$as_save_IFS
17462   test -z "$as_dir" && as_dir=.
17463     for ac_exec_ext in '' $ac_executable_extensions; do
17464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17465     ac_cv_prog_acx_pthread_config="yes"
17466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17467     break 2
17468   fi
17469 done
17470   done
17471 IFS=$as_save_IFS
17472
17473   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17474 fi
17475 fi
17476 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17477 if test -n "$acx_pthread_config"; then
17478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17479 $as_echo "$acx_pthread_config" >&6; }
17480 else
17481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17482 $as_echo "no" >&6; }
17483 fi
17484
17485
17486                 if test x"$acx_pthread_config" = xno; then continue; fi
17487                 PTHREAD_CFLAGS="`pthread-config --cflags`"
17488                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17489                 ;;
17490
17491                 *)
17492                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17493 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17494                 PTHREAD_LIBS="-l$flag"
17495                 ;;
17496         esac
17497
17498         save_LIBS="$LIBS"
17499         save_CFLAGS="$CFLAGS"
17500         LIBS="$PTHREAD_LIBS $LIBS"
17501         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17502
17503         # Check for various functions.  We must include pthread.h,
17504         # since some functions may be macros.  (On the Sequent, we
17505         # need a special flag -Kthread to make this header compile.)
17506         # We check for pthread_join because it is in -lpthread on IRIX
17507         # while pthread_create is in libc.  We check for pthread_attr_init
17508         # due to DEC craziness with -lpthreads.  We check for
17509         # pthread_cleanup_push because it is one of the few pthread
17510         # functions on Solaris that doesn't have a non-functional libc stub.
17511         # We try pthread_create on general principles.
17512         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513 /* end confdefs.h.  */
17514 #include <pthread.h>
17515 int
17516 main ()
17517 {
17518 pthread_t th; pthread_join(th, 0);
17519                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
17520                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 if ac_fn_c_try_link "$LINENO"; then :
17526   acx_pthread_ok=yes
17527 fi
17528 rm -f core conftest.err conftest.$ac_objext \
17529     conftest$ac_exeext conftest.$ac_ext
17530
17531         LIBS="$save_LIBS"
17532         CFLAGS="$save_CFLAGS"
17533
17534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17535 $as_echo "$acx_pthread_ok" >&6; }
17536         if test "x$acx_pthread_ok" = xyes; then
17537                 break;
17538         fi
17539
17540         PTHREAD_LIBS=""
17541         PTHREAD_CFLAGS=""
17542 done
17543 fi
17544
17545 # Various other checks:
17546 if test "x$acx_pthread_ok" = xyes; then
17547         save_LIBS="$LIBS"
17548         LIBS="$PTHREAD_LIBS $LIBS"
17549         save_CFLAGS="$CFLAGS"
17550         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17551
17552         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17553         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17554 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17555         attr_name=unknown
17556         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17557             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17558 /* end confdefs.h.  */
17559 #include <pthread.h>
17560 int
17561 main ()
17562 {
17563 int attr=$attr; return attr;
17564   ;
17565   return 0;
17566 }
17567 _ACEOF
17568 if ac_fn_c_try_link "$LINENO"; then :
17569   attr_name=$attr; break
17570 fi
17571 rm -f core conftest.err conftest.$ac_objext \
17572     conftest$ac_exeext conftest.$ac_ext
17573         done
17574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17575 $as_echo "$attr_name" >&6; }
17576         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17577
17578 cat >>confdefs.h <<_ACEOF
17579 #define PTHREAD_CREATE_JOINABLE $attr_name
17580 _ACEOF
17581
17582         fi
17583
17584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17585 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17586         flag=no
17587         case "${host_cpu}-${host_os}" in
17588                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
17589                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
17590                 *solaris*)
17591                 if test "$GCC" = "yes"; then
17592                     flag="-D_REENTRANT"
17593                 else
17594                     flag="-mt -D_REENTRANT"
17595                 fi
17596                 ;;
17597         esac
17598         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17599 $as_echo "${flag}" >&6; }
17600         if test "x$flag" != xno; then
17601             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17602         fi
17603
17604         LIBS="$save_LIBS"
17605         CFLAGS="$save_CFLAGS"
17606
17607         # More AIX lossage: must compile with xlc_r or cc_r
17608         if test x"$GCC" != xyes; then
17609           for ac_prog in xlc_r cc_r
17610 do
17611   # Extract the first word of "$ac_prog", so it can be a program name with args.
17612 set dummy $ac_prog; ac_word=$2
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17614 $as_echo_n "checking for $ac_word... " >&6; }
17615 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
17616   $as_echo_n "(cached) " >&6
17617 else
17618   if test -n "$PTHREAD_CC"; then
17619   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17620 else
17621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17622 for as_dir in $PATH
17623 do
17624   IFS=$as_save_IFS
17625   test -z "$as_dir" && as_dir=.
17626     for ac_exec_ext in '' $ac_executable_extensions; do
17627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17628     ac_cv_prog_PTHREAD_CC="$ac_prog"
17629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17630     break 2
17631   fi
17632 done
17633   done
17634 IFS=$as_save_IFS
17635
17636 fi
17637 fi
17638 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17639 if test -n "$PTHREAD_CC"; then
17640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17641 $as_echo "$PTHREAD_CC" >&6; }
17642 else
17643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17644 $as_echo "no" >&6; }
17645 fi
17646
17647
17648   test -n "$PTHREAD_CC" && break
17649 done
17650 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17651
17652         else
17653           PTHREAD_CC=$CC
17654         fi
17655 else
17656         PTHREAD_CC="$CC"
17657 fi
17658
17659
17660
17661
17662
17663 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17664 if test x"$acx_pthread_ok" = xyes; then
17665         enable_threads="pthread"
17666         :
17667 else
17668         acx_pthread_ok=no
17669         enable_threads="no"
17670 fi
17671 ac_ext=c
17672 ac_cpp='$CPP $CPPFLAGS'
17673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17676
17677
17678 if test $enable_threads != "pthread"; then
17679     as_fn_error $? "unable to find pthreads, currently this is required" "$LINENO" 5
17680 else
17681
17682 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17683
17684     LIBS="$PTHREAD_LIBS $LIBS"
17685     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
17686     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
17687 fi
17688
17689 # zlib settings
17690
17691 # Check whether --with-zlib was given.
17692 if test "${with_zlib+set}" = set; then :
17693   withval=$with_zlib;
17694         if test -d "$withval" ; then
17695             CPPFLAGS="${CPPFLAGS} -I$withval/include"
17696             LDFLAGS="${LDFLAGS} -L$withval/lib"
17697         fi
17698
17699
17700 fi
17701
17702 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17703 if test "x$ac_cv_header_zlib_h" = x""yes; then :
17704
17705 else
17706   as_fn_error $? "unable to find zlib header files" "$LINENO" 5
17707 fi
17708
17709
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
17711 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
17712 if test "${ac_cv_lib_z_deflateInit2_+set}" = set; then :
17713   $as_echo_n "(cached) " >&6
17714 else
17715   ac_check_lib_save_LIBS=$LIBS
17716 LIBS="-lz  $LIBS"
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h.  */
17719
17720 /* Override any GCC internal prototype to avoid an error.
17721    Use char because int might match the return type of a GCC
17722    builtin and then its argument prototype would still apply.  */
17723 #ifdef __cplusplus
17724 extern "C"
17725 #endif
17726 char deflateInit2_ ();
17727 int
17728 main ()
17729 {
17730 return deflateInit2_ ();
17731   ;
17732   return 0;
17733 }
17734 _ACEOF
17735 if ac_fn_c_try_link "$LINENO"; then :
17736   ac_cv_lib_z_deflateInit2_=yes
17737 else
17738   ac_cv_lib_z_deflateInit2_=no
17739 fi
17740 rm -f core conftest.err conftest.$ac_objext \
17741     conftest$ac_exeext conftest.$ac_ext
17742 LIBS=$ac_check_lib_save_LIBS
17743 fi
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
17745 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
17746 if test "x$ac_cv_lib_z_deflateInit2_" = x""yes; then :
17747   cat >>confdefs.h <<_ACEOF
17748 #define HAVE_LIBZ 1
17749 _ACEOF
17750
17751   LIBS="-lz $LIBS"
17752
17753 else
17754   as_fn_error $? "unable to link with zlib library" "$LINENO" 5
17755 fi
17756
17757
17758 # OpenSSL settings
17759
17760 # Check whether --with-openssl was given.
17761 if test "${with_openssl+set}" = set; then :
17762   withval=$with_openssl; if test x_$with_openssl != x_/usr; then
17763         SSLFLAGS="-I${with_openssl}/include"
17764     fi
17765 fi
17766
17767
17768 if test "x$with_openssl" = "x" ; then
17769     # Extract the first word of "pkg-config", so it can be a program name with args.
17770 set dummy pkg-config; ac_word=$2
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17772 $as_echo_n "checking for $ac_word... " >&6; }
17773 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17774   $as_echo_n "(cached) " >&6
17775 else
17776   case $PKG_CONFIG in
17777   [\\/]* | ?:[\\/]*)
17778   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17779   ;;
17780   *)
17781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17782 for as_dir in $PATH
17783 do
17784   IFS=$as_save_IFS
17785   test -z "$as_dir" && as_dir=.
17786     for ac_exec_ext in '' $ac_executable_extensions; do
17787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17788     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17790     break 2
17791   fi
17792 done
17793   done
17794 IFS=$as_save_IFS
17795
17796   ;;
17797 esac
17798 fi
17799 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17800 if test -n "$PKG_CONFIG"; then
17801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17802 $as_echo "$PKG_CONFIG" >&6; }
17803 else
17804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17805 $as_echo "no" >&6; }
17806 fi
17807
17808
17809     if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
17810         if pkg-config openssl ; then
17811             SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
17812         else
17813             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
17814 $as_echo "$as_me: WARNING: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
17815         fi
17816     fi
17817 fi
17818
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL cflags" >&5
17820 $as_echo_n "checking for OpenSSL cflags... " >&6; }
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSLFLAGS" >&5
17822 $as_echo "$SSLFLAGS" >&6; }
17823 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
17824
17825 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
17826 if test "x$ac_cv_header_openssl_x509_h" = x""yes; then :
17827
17828 else
17829   as_fn_error $? "unable to find openssl header files" "$LINENO" 5
17830 fi
17831
17832
17833
17834 ac_ext=cpp
17835 ac_cpp='$CXXCPP $CPPFLAGS'
17836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17839
17840
17841 # C++ requirements
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
17843 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
17844 if test "${ac_cv_cxx_namespaces+set}" = set; then :
17845   $as_echo_n "(cached) " >&6
17846 else
17847
17848  ac_ext=cpp
17849 ac_cpp='$CXXCPP $CPPFLAGS'
17850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17853
17854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h.  */
17856 namespace Outer { namespace Inner { int i = 0; }}
17857 int
17858 main ()
17859 {
17860 using namespace Outer::Inner; return i;
17861   ;
17862   return 0;
17863 }
17864 _ACEOF
17865 if ac_fn_cxx_try_compile "$LINENO"; then :
17866   ac_cv_cxx_namespaces=yes
17867 else
17868   ac_cv_cxx_namespaces=no
17869 fi
17870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17871  ac_ext=cpp
17872 ac_cpp='$CXXCPP $CPPFLAGS'
17873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17876
17877
17878 fi
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
17880 $as_echo "$ac_cv_cxx_namespaces" >&6; }
17881 if test "$ac_cv_cxx_namespaces" = yes; then
17882
17883 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
17884
17885 fi
17886
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5
17888 $as_echo_n "checking whether the compiler supports Standard Template Library... " >&6; }
17889 if test "${ac_cv_cxx_have_stl+set}" = set; then :
17890   $as_echo_n "(cached) " >&6
17891 else
17892
17893  ac_ext=cpp
17894 ac_cpp='$CXXCPP $CPPFLAGS'
17895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17898
17899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17900 /* end confdefs.h.  */
17901 #include <list>
17902 #include <deque>
17903 #ifdef HAVE_NAMESPACES
17904 using namespace std;
17905 #endif
17906 int
17907 main ()
17908 {
17909 list<int> x; x.push_back(5);
17910 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
17911   ;
17912   return 0;
17913 }
17914 _ACEOF
17915 if ac_fn_cxx_try_compile "$LINENO"; then :
17916   ac_cv_cxx_have_stl=yes
17917 else
17918   ac_cv_cxx_have_stl=no
17919 fi
17920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17921  ac_ext=cpp
17922 ac_cpp='$CXXCPP $CPPFLAGS'
17923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17926
17927
17928 fi
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5
17930 $as_echo "$ac_cv_cxx_have_stl" >&6; }
17931 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
17932   as_fn_error $? "C++ Standard Template Libary unsupported" "$LINENO" 5
17933 fi
17934
17935
17936 # log4shib settings (favor this version over the log4cpp code)
17937 # Extract the first word of "log4shib-config", so it can be a program name with args.
17938 set dummy log4shib-config; ac_word=$2
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17940 $as_echo_n "checking for $ac_word... " >&6; }
17941 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then :
17942   $as_echo_n "(cached) " >&6
17943 else
17944   case $LOG4SHIB_CONFIG in
17945   [\\/]* | ?:[\\/]*)
17946   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
17947   ;;
17948   *)
17949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17950 for as_dir in $PATH
17951 do
17952   IFS=$as_save_IFS
17953   test -z "$as_dir" && as_dir=.
17954     for ac_exec_ext in '' $ac_executable_extensions; do
17955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17956     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17958     break 2
17959   fi
17960 done
17961   done
17962 IFS=$as_save_IFS
17963
17964   ;;
17965 esac
17966 fi
17967 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
17968 if test -n "$LOG4SHIB_CONFIG"; then
17969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4SHIB_CONFIG" >&5
17970 $as_echo "$LOG4SHIB_CONFIG" >&6; }
17971 else
17972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17973 $as_echo "no" >&6; }
17974 fi
17975
17976
17977
17978 # Check whether --with-log4shib was given.
17979 if test "${with_log4shib+set}" = set; then :
17980   withval=$with_log4shib;
17981     LOG4SHIB_CONFIG="${with_log4shib}"
17982     if ! test -f "${LOG4SHIB_CONFIG}"; then
17983         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
17984     fi
17985
17986 fi
17987
17988 if test -f "${LOG4SHIB_CONFIG}" ; then
17989     LIBS="`${LOG4SHIB_CONFIG} --libs` $LIBS"
17990     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
17991
17992 ac_fn_cxx_check_header_mongrel "$LINENO" "log4shib/CategoryStream.hh" "ac_cv_header_log4shib_CategoryStream_hh" "$ac_includes_default"
17993 if test "x$ac_cv_header_log4shib_CategoryStream_hh" = x""yes; then :
17994
17995 else
17996   as_fn_error $? "unable to find log4shib header files" "$LINENO" 5
17997 fi
17998
17999
18000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h.  */
18002 #include <log4shib/Category.hh>
18003 #include <log4shib/CategoryStream.hh>
18004 int
18005 main ()
18006 {
18007 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
18008   ;
18009   return 0;
18010 }
18011 _ACEOF
18012 if ac_fn_cxx_try_link "$LINENO"; then :
18013
18014 $as_echo "#define OPENSAML_LOG4SHIB 1" >>confdefs.h
18015
18016 else
18017   as_fn_error $? "unable to link with log4shib" "$LINENO" 5
18018 fi
18019 rm -f core conftest.err conftest.$ac_objext \
18020     conftest$ac_exeext conftest.$ac_ext
18021 else
18022     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
18023 $as_echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
18024     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will look for original log4cpp library" >&5
18025 $as_echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
18026
18027     # log4cpp settings
18028     # Extract the first word of "log4cpp-config", so it can be a program name with args.
18029 set dummy log4cpp-config; ac_word=$2
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18031 $as_echo_n "checking for $ac_word... " >&6; }
18032 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then :
18033   $as_echo_n "(cached) " >&6
18034 else
18035   case $LOG4CPP_CONFIG in
18036   [\\/]* | ?:[\\/]*)
18037   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
18038   ;;
18039   *)
18040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18041 for as_dir in $PATH
18042 do
18043   IFS=$as_save_IFS
18044   test -z "$as_dir" && as_dir=.
18045     for ac_exec_ext in '' $ac_executable_extensions; do
18046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18047     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18049     break 2
18050   fi
18051 done
18052   done
18053 IFS=$as_save_IFS
18054
18055   ;;
18056 esac
18057 fi
18058 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
18059 if test -n "$LOG4CPP_CONFIG"; then
18060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOG4CPP_CONFIG" >&5
18061 $as_echo "$LOG4CPP_CONFIG" >&6; }
18062 else
18063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18064 $as_echo "no" >&6; }
18065 fi
18066
18067
18068
18069 # Check whether --with-log4cpp was given.
18070 if test "${with_log4cpp+set}" = set; then :
18071   withval=$with_log4cpp;
18072         LOG4CPP_CONFIG="${with_log4cpp}"
18073         if ! test -f "${LOG4CPP_CONFIG}"; then
18074                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
18075         fi
18076
18077 fi
18078
18079     if test -f "${LOG4CPP_CONFIG}"; then
18080         { $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
18081 $as_echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
18082         LIBS="`${LOG4CPP_CONFIG} --libs` $LIBS"
18083         CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
18084         ac_fn_cxx_check_header_mongrel "$LINENO" "log4cpp/CategoryStream.hh" "ac_cv_header_log4cpp_CategoryStream_hh" "$ac_includes_default"
18085 if test "x$ac_cv_header_log4cpp_CategoryStream_hh" = x""yes; then :
18086
18087 else
18088   as_fn_error $? "unable to find log4cpp header files" "$LINENO" 5
18089 fi
18090
18091
18092         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18093 /* end confdefs.h.  */
18094 #include <log4cpp/Category.hh>
18095 #include <log4cpp/CategoryStream.hh>
18096 int
18097 main ()
18098 {
18099 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
18100   ;
18101   return 0;
18102 }
18103 _ACEOF
18104 if ac_fn_cxx_try_link "$LINENO"; then :
18105
18106 $as_echo "#define OPENSAML_LOG4CPP 1" >>confdefs.h
18107
18108 else
18109   as_fn_error $? "unable to link with log4cpp, need version 1.0 or later" "$LINENO" 5
18110 fi
18111 rm -f core conftest.err conftest.$ac_objext \
18112     conftest$ac_exeext conftest.$ac_ext
18113     else
18114         as_fn_error $? "log4cpp-config not found, may need to use --with-log4cpp option" "$LINENO" 5
18115     fi
18116 fi
18117
18118 # Xerces settings
18119
18120 # Check whether --with-xerces was given.
18121 if test "${with_xerces+set}" = set; then :
18122   withval=$with_xerces; if test x_$with_xerces != x_/usr; then
18123         LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
18124         CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
18125     fi
18126 fi
18127
18128 LIBS="-lxerces-c $LIBS"
18129 ac_fn_cxx_check_header_mongrel "$LINENO" "xercesc/dom/DOM.hpp" "ac_cv_header_xercesc_dom_DOM_hpp" "$ac_includes_default"
18130 if test "x$ac_cv_header_xercesc_dom_DOM_hpp" = x""yes; then :
18131
18132 else
18133   as_fn_error $? "unable to find xerces header files" "$LINENO" 5
18134 fi
18135
18136
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Xerces version" >&5
18138 $as_echo_n "checking Xerces version... " >&6; }
18139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18140 /* end confdefs.h.  */
18141 #include <xercesc/util/XercesVersion.hpp>
18142 int
18143 main ()
18144 {
18145 #if  _XERCES_VERSION != 20600
18146 int i = 0;
18147 #else
18148 #error cannot use version 2.6.0
18149 #endif
18150   ;
18151   return 0;
18152 }
18153 _ACEOF
18154 if ac_fn_cxx_try_cpp "$LINENO"; then :
18155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
18156 $as_echo "OK" >&6; }
18157 else
18158   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18160 as_fn_error $? "Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
18161 See \`config.log' for more details" "$LINENO" 5 ; }
18162 fi
18163 rm -f conftest.err conftest.i conftest.$ac_ext
18164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165 /* end confdefs.h.  */
18166 #include <xercesc/util/PlatformUtils.hpp>
18167 int
18168 main ()
18169 {
18170 xercesc::XMLPlatformUtils::Initialize()
18171   ;
18172   return 0;
18173 }
18174 _ACEOF
18175 if ac_fn_cxx_try_link "$LINENO"; then :
18176
18177 else
18178   as_fn_error $? "unable to link with Xerces" "$LINENO" 5
18179 fi
18180 rm -f core conftest.err conftest.$ac_objext \
18181     conftest$ac_exeext conftest.$ac_ext
18182
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
18184 $as_echo_n "checking whether Xerces XMLString::release(XMLByte**) exists... " >&6; }
18185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18186 /* end confdefs.h.  */
18187 #include <xercesc/util/XMLString.hpp>
18188 int
18189 main ()
18190 {
18191 using namespace XERCES_CPP_NAMESPACE; XMLByte* buf=NULL; XMLString::release(&buf);
18192   ;
18193   return 0;
18194 }
18195 _ACEOF
18196 if ac_fn_cxx_try_compile "$LINENO"; then :
18197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18198 $as_echo "yes" >&6; }
18199 $as_echo "#define OPENSAML_XERCESC_HAS_XMLBYTE_RELEASE 1" >>confdefs.h
18200
18201 else
18202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18203 $as_echo "no" >&6; }
18204 fi
18205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206
18207 # XML-Security settings
18208
18209 # Check whether --with-xmlsec was given.
18210 if test "${with_xmlsec+set}" = set; then :
18211   withval=$with_xmlsec; if test x_$with_xmlsec != x_/usr; then
18212         LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
18213         CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
18214     fi
18215 fi
18216
18217 LIBS="-lxml-security-c $LIBS"
18218 ac_fn_cxx_check_header_mongrel "$LINENO" "xsec/utils/XSECPlatformUtils.hpp" "ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" "$ac_includes_default"
18219 if test "x$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" = x""yes; then :
18220
18221 else
18222   as_fn_error $? "unable to find xmlsec header files" "$LINENO" 5
18223 fi
18224
18225
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML-Security version" >&5
18227 $as_echo_n "checking XML-Security version... " >&6; }
18228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229 /* end confdefs.h.  */
18230 #include <xsec/utils/XSECPlatformUtils.hpp>
18231 int
18232 main ()
18233 {
18234 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
18235 int i = 0;
18236 #else
18237 #error need version 1.4.0 or later
18238 #endif
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 if ac_fn_cxx_try_cpp "$LINENO"; then :
18244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
18245 $as_echo "OK" >&6; }
18246 else
18247   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18249 as_fn_error $? "XML-Security version 1.4.0 or greater is required.
18250 See \`config.log' for more details" "$LINENO" 5 ; }
18251 fi
18252 rm -f conftest.err conftest.i conftest.$ac_ext
18253     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18254 /* end confdefs.h.  */
18255 #include <xsec/utils/XSECPlatformUtils.hpp>
18256 int
18257 main ()
18258 {
18259 XSECPlatformUtils::Initialise()
18260   ;
18261   return 0;
18262 }
18263 _ACEOF
18264 if ac_fn_cxx_try_link "$LINENO"; then :
18265
18266 else
18267   as_fn_error $? "unable to link with XML-Security" "$LINENO" 5
18268 fi
18269 rm -f core conftest.err conftest.$ac_objext \
18270     conftest$ac_exeext conftest.$ac_ext
18271
18272 # XML-Tooling settings
18273
18274 # Check whether --with-xmltooling was given.
18275 if test "${with_xmltooling+set}" = set; then :
18276   withval=$with_xmltooling; if test x_$with_xmltooling != x_/usr; then
18277         LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
18278         CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
18279         DX_INCLUDE="${with_xmltooling}/include"
18280     fi
18281 fi
18282
18283 LIBS="-lxmltooling $LIBS"
18284 ac_fn_cxx_check_header_mongrel "$LINENO" "xmltooling/XMLToolingConfig.h" "ac_cv_header_xmltooling_XMLToolingConfig_h" "$ac_includes_default"
18285 if test "x$ac_cv_header_xmltooling_XMLToolingConfig_h" = x""yes; then :
18286
18287 else
18288   as_fn_error $? "unable to find xmltooling header files" "$LINENO" 5
18289 fi
18290
18291
18292
18293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18294 /* end confdefs.h.  */
18295 #include <xmltooling/XMLToolingConfig.h>
18296 #include <xmltooling/version.h>
18297 int
18298 main ()
18299 {
18300 #if _XMLTOOLING_VERSION >= 10400
18301 xmltooling::XMLToolingConfig::getConfig();
18302 #else
18303 #error Need XMLTooling version 1.4 or higher
18304 #endif
18305   ;
18306   return 0;
18307 }
18308 _ACEOF
18309 if ac_fn_cxx_try_link "$LINENO"; then :
18310
18311 else
18312   as_fn_error $? "unable to link with XMLTooling, or version was too old" "$LINENO" 5
18313 fi
18314 rm -f core conftest.err conftest.$ac_objext \
18315     conftest$ac_exeext conftest.$ac_ext
18316
18317 # Check for unit test support
18318 CXXTEST="/usr/bin/cxxtestgen.pl"
18319 CXXTESTFLAGS=""
18320
18321 # Check whether --with-cxxtest was given.
18322 if test "${with_cxxtest+set}" = set; then :
18323   withval=$with_cxxtest; if test x_$with_cxxtest != x_/usr; then
18324         CXXTEST="${with_cxxtest}/cxxtestgen.pl"
18325         CXXTESTFLAGS="-I${with_cxxtest}"
18326     fi
18327 fi
18328
18329 if ! test -f "${CXXTEST}"; then
18330     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cxxtestgen not found, won't build unit tests" >&5
18331 $as_echo "$as_me: WARNING: cxxtestgen not found, won't build unit tests" >&2;}
18332 fi
18333
18334
18335
18336  if test -f ${CXXTEST}; then
18337   BUILD_UNITTEST_TRUE=
18338   BUILD_UNITTEST_FALSE='#'
18339 else
18340   BUILD_UNITTEST_TRUE='#'
18341   BUILD_UNITTEST_FALSE=
18342 fi
18343
18344
18345
18346 # we need the expanded forms...
18347 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18348 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18349
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
18351 $as_echo_n "checking our pkgconfig libname... " >&6; }
18352 test ".$ax_create_pkgconfig_libname" != "." || \
18353 ax_create_pkgconfig_libname="${PACKAGE_NAME}"
18354 test ".$ax_create_pkgconfig_libname" != "." || \
18355 ax_create_pkgconfig_libname="$PACKAGE"
18356 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
18357 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
18359 $as_echo "$ax_create_pkgconfig_libname" >&6; }
18360
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
18362 $as_echo_n "checking our pkgconfig version... " >&6; }
18363 test ".$ax_create_pkgconfig_version" != "." || \
18364 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
18365 test ".$ax_create_pkgconfig_version" != "." || \
18366 ax_create_pkgconfig_version="$VERSION"
18367 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
18368 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
18370 $as_echo "$ax_create_pkgconfig_version" >&6; }
18371
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
18373 $as_echo_n "checking our pkgconfig_libdir... " >&6; }
18374 test ".$pkgconfig_libdir" = "." && \
18375 pkgconfig_libdir='${libdir}/pkgconfig'
18376 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
18377 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
18378 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
18380 $as_echo "$pkgconfig_libdir" >&6; }
18381 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
18383 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
18384
18385
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
18387 $as_echo_n "checking our pkgconfig_libfile... " >&6; }
18388 test ".$pkgconfig_libfile" != "." || \
18389 pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
18390 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
18391 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
18393 $as_echo "$pkgconfig_libfile" >&6; }
18394 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
18396 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
18397
18398
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
18400 $as_echo_n "checking our package / suffix... " >&6; }
18401 ax_create_pkgconfig_suffix="$program_suffix"
18402 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
18404 $as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
18405
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
18407 $as_echo_n "checking our pkgconfig description... " >&6; }
18408 ax_create_pkgconfig_description="OpenSAML library"
18409 test ".$ax_create_pkgconfig_description" != "." || \
18410 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
18411 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
18412 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
18414 $as_echo "$ax_create_pkgconfig_description" >&6; }
18415
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
18417 $as_echo_n "checking our pkgconfig requires... " >&6; }
18418 ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
18419 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
18420 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
18422 $as_echo "$ax_create_pkgconfig_requires" >&6; }
18423
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
18425 $as_echo_n "checking our pkgconfig ext libs... " >&6; }
18426 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
18427 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
18428 ax_create_pkgconfig_libs="$LIBS -lsaml"
18429 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
18430 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
18432 $as_echo "$ax_create_pkgconfig_libs" >&6; }
18433
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
18435 $as_echo_n "checking our pkgconfig cppflags... " >&6; }
18436 ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS"
18437 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
18438 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
18440 $as_echo "$ax_create_pkgconfig_cppflags" >&6; }
18441
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
18443 $as_echo_n "checking our pkgconfig ldflags... " >&6; }
18444 ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS"
18445 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
18446 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
18448 $as_echo "$ax_create_pkgconfig_ldflags" >&6; }
18449
18450 test ".$ax_create_pkgconfig_generate" != "." || \
18451 ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
18452 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
18453 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
18454 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
18456 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
18457
18458 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
18459 ax_create_pkgconfig_src_libdir=`pwd`
18460 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
18461 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18462          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
18463          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
18464          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
18465 $as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
18466     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18467             s//\1/
18468             q
18469           }
18470           /^X\(\/\/\)[^/].*/{
18471             s//\1/
18472             q
18473           }
18474           /^X\(\/\/\)$/{
18475             s//\1/
18476             q
18477           }
18478           /^X\(\/\).*/{
18479             s//\1/
18480             q
18481           }
18482           s/.*/./; q'`
18483 test ! -d $ax_create_pkgconfig_src_libdir/src || \
18484 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
18485 case ".$objdir" in
18486 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
18488 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
18489 fi
18490
18491 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
18492 ax_create_pkgconfig_src_headers=`pwd`
18493 v="$ac_top_srcdir" ;
18494 test ".$v" != "." || v="$ax_spec_dir"
18495 test ".$v" != "." || v="$srcdir"
18496 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
18497 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
18498 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18499          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
18500          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
18501          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
18502 $as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
18503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18504             s//\1/
18505             q
18506           }
18507           /^X\(\/\/\)[^/].*/{
18508             s//\1/
18509             q
18510           }
18511           /^X\(\/\/\)$/{
18512             s//\1/
18513             q
18514           }
18515           /^X\(\/\).*/{
18516             s//\1/
18517             q
18518           }
18519           s/.*/./; q'`
18520 test ! -d $ax_create_pkgconfig_src_headers/include || \
18521 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
18523 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
18524 fi
18525
18526
18527 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
18528
18529
18530
18531 LIBTOOL="$LIBTOOL --silent"
18532
18533 # output packaging and makefiles
18534 cat >confcache <<\_ACEOF
18535 # This file is a shell script that caches the results of configure
18536 # tests run on this system so they can be shared between configure
18537 # scripts and configure runs, see configure's option --config-cache.
18538 # It is not useful on other systems.  If it contains results you don't
18539 # want to keep, you may remove or edit it.
18540 #
18541 # config.status only pays attention to the cache file if you give it
18542 # the --recheck option to rerun configure.
18543 #
18544 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18545 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18546 # following values.
18547
18548 _ACEOF
18549
18550 # The following way of writing the cache mishandles newlines in values,
18551 # but we know of no workaround that is simple, portable, and efficient.
18552 # So, we kill variables containing newlines.
18553 # Ultrix sh set writes to stderr and can't be redirected directly,
18554 # and sets the high bit in the cache file unless we assign to the vars.
18555 (
18556   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18557     eval ac_val=\$$ac_var
18558     case $ac_val in #(
18559     *${as_nl}*)
18560       case $ac_var in #(
18561       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18562 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18563       esac
18564       case $ac_var in #(
18565       _ | IFS | as_nl) ;; #(
18566       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18567       *) { eval $ac_var=; unset $ac_var;} ;;
18568       esac ;;
18569     esac
18570   done
18571
18572   (set) 2>&1 |
18573     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18574     *${as_nl}ac_space=\ *)
18575       # `set' does not quote correctly, so add quotes: double-quote
18576       # substitution turns \\\\ into \\, and sed turns \\ into \.
18577       sed -n \
18578         "s/'/'\\\\''/g;
18579           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18580       ;; #(
18581     *)
18582       # `set' quotes correctly as required by POSIX, so do not add quotes.
18583       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18584       ;;
18585     esac |
18586     sort
18587 ) |
18588   sed '
18589      /^ac_cv_env_/b end
18590      t clear
18591      :clear
18592      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18593      t end
18594      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18595      :end' >>confcache
18596 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18597   if test -w "$cache_file"; then
18598     test "x$cache_file" != "x/dev/null" &&
18599       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18600 $as_echo "$as_me: updating cache $cache_file" >&6;}
18601     cat confcache >$cache_file
18602   else
18603     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18604 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18605   fi
18606 fi
18607 rm -f confcache
18608
18609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18610 # Let make expand exec_prefix.
18611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18612
18613 DEFS=-DHAVE_CONFIG_H
18614
18615 ac_libobjs=
18616 ac_ltlibobjs=
18617 U=
18618 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18619   # 1. Remove the extension, and $U if already installed.
18620   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18621   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18622   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18623   #    will be set to the directory where LIBOBJS objects are built.
18624   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18625   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18626 done
18627 LIBOBJS=$ac_libobjs
18628
18629 LTLIBOBJS=$ac_ltlibobjs
18630
18631
18632  if test -n "$EXEEXT"; then
18633   am__EXEEXT_TRUE=
18634   am__EXEEXT_FALSE='#'
18635 else
18636   am__EXEEXT_TRUE='#'
18637   am__EXEEXT_FALSE=
18638 fi
18639
18640 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18641   as_fn_error $? "conditional \"AMDEP\" was never defined.
18642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18643 fi
18644 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18645   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18647 fi
18648 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
18649   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
18650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18651 fi
18652 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
18653   as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
18654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18655 fi
18656 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
18657   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
18658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18659 fi
18660 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
18661   as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
18662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18663 fi
18664 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
18665   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
18666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18667 fi
18668 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
18669   as_fn_error $? "conditional \"DX_COND_man\" was never defined.
18670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18671 fi
18672 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
18673   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
18674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18675 fi
18676 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
18677   as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
18678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18679 fi
18680 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
18681   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
18682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18683 fi
18684 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
18685   as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
18686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18687 fi
18688 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
18689   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
18690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18691 fi
18692 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
18693   as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
18694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18695 fi
18696 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
18697   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
18698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18699 fi
18700 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
18701   as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
18702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18703 fi
18704 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
18705   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
18706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18707 fi
18708 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
18709   as_fn_error $? "conditional \"DX_COND_html\" was never defined.
18710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18711 fi
18712 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
18713   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
18714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18715 fi
18716 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
18717   as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
18718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18719 fi
18720 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
18721   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
18722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18723 fi
18724 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
18725   as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
18726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18727 fi
18728 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
18729   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
18730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18731 fi
18732 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
18733   as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
18734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18735 fi
18736 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18737   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18739 fi
18740 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18741   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18743 fi
18744 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18745   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18747 fi
18748 if test -z "${BUILD_UNITTEST_TRUE}" && test -z "${BUILD_UNITTEST_FALSE}"; then
18749   as_fn_error $? "conditional \"BUILD_UNITTEST\" was never defined.
18750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18751 fi
18752
18753 : ${CONFIG_STATUS=./config.status}
18754 ac_write_fail=0
18755 ac_clean_files_save=$ac_clean_files
18756 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18758 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18759 as_write_fail=0
18760 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18761 #! $SHELL
18762 # Generated by $as_me.
18763 # Run this file to recreate the current configuration.
18764 # Compiler output produced by configure, useful for debugging
18765 # configure, is in config.log if it exists.
18766
18767 debug=false
18768 ac_cs_recheck=false
18769 ac_cs_silent=false
18770
18771 SHELL=\${CONFIG_SHELL-$SHELL}
18772 export SHELL
18773 _ASEOF
18774 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18775 ## -------------------- ##
18776 ## M4sh Initialization. ##
18777 ## -------------------- ##
18778
18779 # Be more Bourne compatible
18780 DUALCASE=1; export DUALCASE # for MKS sh
18781 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18782   emulate sh
18783   NULLCMD=:
18784   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18785   # is contrary to our usage.  Disable this feature.
18786   alias -g '${1+"$@"}'='"$@"'
18787   setopt NO_GLOB_SUBST
18788 else
18789   case `(set -o) 2>/dev/null` in #(
18790   *posix*) :
18791     set -o posix ;; #(
18792   *) :
18793      ;;
18794 esac
18795 fi
18796
18797
18798 as_nl='
18799 '
18800 export as_nl
18801 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18802 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18803 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18804 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18805 # Prefer a ksh shell builtin over an external printf program on Solaris,
18806 # but without wasting forks for bash or zsh.
18807 if test -z "$BASH_VERSION$ZSH_VERSION" \
18808     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18809   as_echo='print -r --'
18810   as_echo_n='print -rn --'
18811 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18812   as_echo='printf %s\n'
18813   as_echo_n='printf %s'
18814 else
18815   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18816     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18817     as_echo_n='/usr/ucb/echo -n'
18818   else
18819     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18820     as_echo_n_body='eval
18821       arg=$1;
18822       case $arg in #(
18823       *"$as_nl"*)
18824         expr "X$arg" : "X\\(.*\\)$as_nl";
18825         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18826       esac;
18827       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18828     '
18829     export as_echo_n_body
18830     as_echo_n='sh -c $as_echo_n_body as_echo'
18831   fi
18832   export as_echo_body
18833   as_echo='sh -c $as_echo_body as_echo'
18834 fi
18835
18836 # The user is always right.
18837 if test "${PATH_SEPARATOR+set}" != set; then
18838   PATH_SEPARATOR=:
18839   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18840     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18841       PATH_SEPARATOR=';'
18842   }
18843 fi
18844
18845
18846 # IFS
18847 # We need space, tab and new line, in precisely that order.  Quoting is
18848 # there to prevent editors from complaining about space-tab.
18849 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18850 # splitting by setting IFS to empty value.)
18851 IFS=" ""        $as_nl"
18852
18853 # Find who we are.  Look in the path if we contain no directory separator.
18854 case $0 in #((
18855   *[\\/]* ) as_myself=$0 ;;
18856   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18857 for as_dir in $PATH
18858 do
18859   IFS=$as_save_IFS
18860   test -z "$as_dir" && as_dir=.
18861     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18862   done
18863 IFS=$as_save_IFS
18864
18865      ;;
18866 esac
18867 # We did not find ourselves, most probably we were run as `sh COMMAND'
18868 # in which case we are not to be found in the path.
18869 if test "x$as_myself" = x; then
18870   as_myself=$0
18871 fi
18872 if test ! -f "$as_myself"; then
18873   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18874   exit 1
18875 fi
18876
18877 # Unset variables that we do not need and which cause bugs (e.g. in
18878 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18879 # suppresses any "Segmentation fault" message there.  '((' could
18880 # trigger a bug in pdksh 5.2.14.
18881 for as_var in BASH_ENV ENV MAIL MAILPATH
18882 do eval test x\${$as_var+set} = xset \
18883   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18884 done
18885 PS1='$ '
18886 PS2='> '
18887 PS4='+ '
18888
18889 # NLS nuisances.
18890 LC_ALL=C
18891 export LC_ALL
18892 LANGUAGE=C
18893 export LANGUAGE
18894
18895 # CDPATH.
18896 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18897
18898
18899 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18900 # ----------------------------------------
18901 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18902 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18903 # script with STATUS, using 1 if that was 0.
18904 as_fn_error ()
18905 {
18906   as_status=$1; test $as_status -eq 0 && as_status=1
18907   if test "$4"; then
18908     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18909     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18910   fi
18911   $as_echo "$as_me: error: $2" >&2
18912   as_fn_exit $as_status
18913 } # as_fn_error
18914
18915
18916 # as_fn_set_status STATUS
18917 # -----------------------
18918 # Set $? to STATUS, without forking.
18919 as_fn_set_status ()
18920 {
18921   return $1
18922 } # as_fn_set_status
18923
18924 # as_fn_exit STATUS
18925 # -----------------
18926 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18927 as_fn_exit ()
18928 {
18929   set +e
18930   as_fn_set_status $1
18931   exit $1
18932 } # as_fn_exit
18933
18934 # as_fn_unset VAR
18935 # ---------------
18936 # Portably unset VAR.
18937 as_fn_unset ()
18938 {
18939   { eval $1=; unset $1;}
18940 }
18941 as_unset=as_fn_unset
18942 # as_fn_append VAR VALUE
18943 # ----------------------
18944 # Append the text in VALUE to the end of the definition contained in VAR. Take
18945 # advantage of any shell optimizations that allow amortized linear growth over
18946 # repeated appends, instead of the typical quadratic growth present in naive
18947 # implementations.
18948 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18949   eval 'as_fn_append ()
18950   {
18951     eval $1+=\$2
18952   }'
18953 else
18954   as_fn_append ()
18955   {
18956     eval $1=\$$1\$2
18957   }
18958 fi # as_fn_append
18959
18960 # as_fn_arith ARG...
18961 # ------------------
18962 # Perform arithmetic evaluation on the ARGs, and store the result in the
18963 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18964 # must be portable across $(()) and expr.
18965 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18966   eval 'as_fn_arith ()
18967   {
18968     as_val=$(( $* ))
18969   }'
18970 else
18971   as_fn_arith ()
18972   {
18973     as_val=`expr "$@" || test $? -eq 1`
18974   }
18975 fi # as_fn_arith
18976
18977
18978 if expr a : '\(a\)' >/dev/null 2>&1 &&
18979    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18980   as_expr=expr
18981 else
18982   as_expr=false
18983 fi
18984
18985 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18986   as_basename=basename
18987 else
18988   as_basename=false
18989 fi
18990
18991 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18992   as_dirname=dirname
18993 else
18994   as_dirname=false
18995 fi
18996
18997 as_me=`$as_basename -- "$0" ||
18998 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18999          X"$0" : 'X\(//\)$' \| \
19000          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19001 $as_echo X/"$0" |
19002     sed '/^.*\/\([^/][^/]*\)\/*$/{
19003             s//\1/
19004             q
19005           }
19006           /^X\/\(\/\/\)$/{
19007             s//\1/
19008             q
19009           }
19010           /^X\/\(\/\).*/{
19011             s//\1/
19012             q
19013           }
19014           s/.*/./; q'`
19015
19016 # Avoid depending upon Character Ranges.
19017 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19018 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19019 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19020 as_cr_digits='0123456789'
19021 as_cr_alnum=$as_cr_Letters$as_cr_digits
19022
19023 ECHO_C= ECHO_N= ECHO_T=
19024 case `echo -n x` in #(((((
19025 -n*)
19026   case `echo 'xy\c'` in
19027   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19028   xy)  ECHO_C='\c';;
19029   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19030        ECHO_T=' ';;
19031   esac;;
19032 *)
19033   ECHO_N='-n';;
19034 esac
19035
19036 rm -f conf$$ conf$$.exe conf$$.file
19037 if test -d conf$$.dir; then
19038   rm -f conf$$.dir/conf$$.file
19039 else
19040   rm -f conf$$.dir
19041   mkdir conf$$.dir 2>/dev/null
19042 fi
19043 if (echo >conf$$.file) 2>/dev/null; then
19044   if ln -s conf$$.file conf$$ 2>/dev/null; then
19045     as_ln_s='ln -s'
19046     # ... but there are two gotchas:
19047     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19048     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19049     # In both cases, we have to default to `cp -p'.
19050     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19051       as_ln_s='cp -p'
19052   elif ln conf$$.file conf$$ 2>/dev/null; then
19053     as_ln_s=ln
19054   else
19055     as_ln_s='cp -p'
19056   fi
19057 else
19058   as_ln_s='cp -p'
19059 fi
19060 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19061 rmdir conf$$.dir 2>/dev/null
19062
19063
19064 # as_fn_mkdir_p
19065 # -------------
19066 # Create "$as_dir" as a directory, including parents if necessary.
19067 as_fn_mkdir_p ()
19068 {
19069
19070   case $as_dir in #(
19071   -*) as_dir=./$as_dir;;
19072   esac
19073   test -d "$as_dir" || eval $as_mkdir_p || {
19074     as_dirs=
19075     while :; do
19076       case $as_dir in #(
19077       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19078       *) as_qdir=$as_dir;;
19079       esac
19080       as_dirs="'$as_qdir' $as_dirs"
19081       as_dir=`$as_dirname -- "$as_dir" ||
19082 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19083          X"$as_dir" : 'X\(//\)[^/]' \| \
19084          X"$as_dir" : 'X\(//\)$' \| \
19085          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19086 $as_echo X"$as_dir" |
19087     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19088             s//\1/
19089             q
19090           }
19091           /^X\(\/\/\)[^/].*/{
19092             s//\1/
19093             q
19094           }
19095           /^X\(\/\/\)$/{
19096             s//\1/
19097             q
19098           }
19099           /^X\(\/\).*/{
19100             s//\1/
19101             q
19102           }
19103           s/.*/./; q'`
19104       test -d "$as_dir" && break
19105     done
19106     test -z "$as_dirs" || eval "mkdir $as_dirs"
19107   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19108
19109
19110 } # as_fn_mkdir_p
19111 if mkdir -p . 2>/dev/null; then
19112   as_mkdir_p='mkdir -p "$as_dir"'
19113 else
19114   test -d ./-p && rmdir ./-p
19115   as_mkdir_p=false
19116 fi
19117
19118 if test -x / >/dev/null 2>&1; then
19119   as_test_x='test -x'
19120 else
19121   if ls -dL / >/dev/null 2>&1; then
19122     as_ls_L_option=L
19123   else
19124     as_ls_L_option=
19125   fi
19126   as_test_x='
19127     eval sh -c '\''
19128       if test -d "$1"; then
19129         test -d "$1/.";
19130       else
19131         case $1 in #(
19132         -*)set "./$1";;
19133         esac;
19134         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19135         ???[sx]*):;;*)false;;esac;fi
19136     '\'' sh
19137   '
19138 fi
19139 as_executable_p=$as_test_x
19140
19141 # Sed expression to map a string onto a valid CPP name.
19142 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19143
19144 # Sed expression to map a string onto a valid variable name.
19145 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19146
19147
19148 exec 6>&1
19149 ## ----------------------------------- ##
19150 ## Main body of $CONFIG_STATUS script. ##
19151 ## ----------------------------------- ##
19152 _ASEOF
19153 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19154
19155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19156 # Save the log message, to keep $0 and so on meaningful, and to
19157 # report actual input values of CONFIG_FILES etc. instead of their
19158 # values after options handling.
19159 ac_log="
19160 This file was extended by opensaml $as_me 2.4, which was
19161 generated by GNU Autoconf 2.67.  Invocation command line was
19162
19163   CONFIG_FILES    = $CONFIG_FILES
19164   CONFIG_HEADERS  = $CONFIG_HEADERS
19165   CONFIG_LINKS    = $CONFIG_LINKS
19166   CONFIG_COMMANDS = $CONFIG_COMMANDS
19167   $ $0 $@
19168
19169 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19170 "
19171
19172 _ACEOF
19173
19174 case $ac_config_files in *"
19175 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19176 esac
19177
19178 case $ac_config_headers in *"
19179 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19180 esac
19181
19182
19183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19184 # Files that config.status was made for.
19185 config_files="$ac_config_files"
19186 config_headers="$ac_config_headers"
19187 config_commands="$ac_config_commands"
19188
19189 _ACEOF
19190
19191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19192 ac_cs_usage="\
19193 \`$as_me' instantiates files and other configuration actions
19194 from templates according to the current configuration.  Unless the files
19195 and actions are specified as TAGs, all are instantiated by default.
19196
19197 Usage: $0 [OPTION]... [TAG]...
19198
19199   -h, --help       print this help, then exit
19200   -V, --version    print version number and configuration settings, then exit
19201       --config     print configuration, then exit
19202   -q, --quiet, --silent
19203                    do not print progress messages
19204   -d, --debug      don't remove temporary files
19205       --recheck    update $as_me by reconfiguring in the same conditions
19206       --file=FILE[:TEMPLATE]
19207                    instantiate the configuration file FILE
19208       --header=FILE[:TEMPLATE]
19209                    instantiate the configuration header FILE
19210
19211 Configuration files:
19212 $config_files
19213
19214 Configuration headers:
19215 $config_headers
19216
19217 Configuration commands:
19218 $config_commands
19219
19220 Report bugs to <https://bugs.internet2.edu/>."
19221
19222 _ACEOF
19223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19224 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19225 ac_cs_version="\\
19226 opensaml config.status 2.4
19227 configured by $0, generated by GNU Autoconf 2.67,
19228   with options \\"\$ac_cs_config\\"
19229
19230 Copyright (C) 2010 Free Software Foundation, Inc.
19231 This config.status script is free software; the Free Software Foundation
19232 gives unlimited permission to copy, distribute and modify it."
19233
19234 ac_pwd='$ac_pwd'
19235 srcdir='$srcdir'
19236 INSTALL='$INSTALL'
19237 MKDIR_P='$MKDIR_P'
19238 AWK='$AWK'
19239 test -n "\$AWK" || AWK=awk
19240 _ACEOF
19241
19242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19243 # The default lists apply if the user does not specify any file.
19244 ac_need_defaults=:
19245 while test $# != 0
19246 do
19247   case $1 in
19248   --*=?*)
19249     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19250     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19251     ac_shift=:
19252     ;;
19253   --*=)
19254     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19255     ac_optarg=
19256     ac_shift=:
19257     ;;
19258   *)
19259     ac_option=$1
19260     ac_optarg=$2
19261     ac_shift=shift
19262     ;;
19263   esac
19264
19265   case $ac_option in
19266   # Handling of the options.
19267   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19268     ac_cs_recheck=: ;;
19269   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19270     $as_echo "$ac_cs_version"; exit ;;
19271   --config | --confi | --conf | --con | --co | --c )
19272     $as_echo "$ac_cs_config"; exit ;;
19273   --debug | --debu | --deb | --de | --d | -d )
19274     debug=: ;;
19275   --file | --fil | --fi | --f )
19276     $ac_shift
19277     case $ac_optarg in
19278     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19279     '') as_fn_error $? "missing file argument" ;;
19280     esac
19281     as_fn_append CONFIG_FILES " '$ac_optarg'"
19282     ac_need_defaults=false;;
19283   --header | --heade | --head | --hea )
19284     $ac_shift
19285     case $ac_optarg in
19286     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19287     esac
19288     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19289     ac_need_defaults=false;;
19290   --he | --h)
19291     # Conflict between --help and --header
19292     as_fn_error $? "ambiguous option: \`$1'
19293 Try \`$0 --help' for more information.";;
19294   --help | --hel | -h )
19295     $as_echo "$ac_cs_usage"; exit ;;
19296   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19297   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19298     ac_cs_silent=: ;;
19299
19300   # This is an error.
19301   -*) as_fn_error $? "unrecognized option: \`$1'
19302 Try \`$0 --help' for more information." ;;
19303
19304   *) as_fn_append ac_config_targets " $1"
19305      ac_need_defaults=false ;;
19306
19307   esac
19308   shift
19309 done
19310
19311 ac_configure_extra_args=
19312
19313 if $ac_cs_silent; then
19314   exec 6>/dev/null
19315   ac_configure_extra_args="$ac_configure_extra_args --silent"
19316 fi
19317
19318 _ACEOF
19319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19320 if \$ac_cs_recheck; then
19321   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19322   shift
19323   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19324   CONFIG_SHELL='$SHELL'
19325   export CONFIG_SHELL
19326   exec "\$@"
19327 fi
19328
19329 _ACEOF
19330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19331 exec 5>>config.log
19332 {
19333   echo
19334   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19335 ## Running $as_me. ##
19336 _ASBOX
19337   $as_echo "$ac_log"
19338 } >&5
19339
19340 _ACEOF
19341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19342 #
19343 # INIT-COMMANDS
19344 #
19345 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19346
19347
19348 # The HP-UX ksh and POSIX shell print the target directory to stdout
19349 # if CDPATH is set.
19350 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19351
19352 sed_quote_subst='$sed_quote_subst'
19353 double_quote_subst='$double_quote_subst'
19354 delay_variable_subst='$delay_variable_subst'
19355 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19356 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19357 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19358 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19359 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19360 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19361 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19362 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19363 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19364 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19365 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19366 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19367 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19368 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19369 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19370 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19371 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19372 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19373 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19374 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19375 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19376 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19377 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19378 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19379 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19380 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19381 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19382 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19383 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19384 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19385 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19386 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19387 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19388 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19389 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19390 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19391 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19392 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19393 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19394 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19395 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19396 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19397 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19398 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19399 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"`'
19400 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"`'
19401 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19402 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19403 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19404 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19405 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19406 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19407 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19408 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19409 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19410 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19411 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19412 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19413 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19414 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19415 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19416 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19417 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19418 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19419 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19420 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19421 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19422 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19423 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19424 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19425 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19426 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19427 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19428 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19429 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19430 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19431 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19432 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19433 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19434 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19435 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19436 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19437 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19438 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19439 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19440 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19441 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19442 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19443 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19444 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19445 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19446 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19447 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19448 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19449 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19450 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19451 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19452 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19453 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19454 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19455 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19456 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19457 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19458 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19459 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19460 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19461 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19462 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19463 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19464 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19465 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19466 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19467 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19468 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19469 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19470 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19471 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19472 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19473 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19474 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19475 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19476 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19477 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19478 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19479 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19480 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19481 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19482 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19483 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19484 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19485 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19486 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19487 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19488 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19489 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19490 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19491 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19492 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19493 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19494 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19495 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19496 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19497 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19498 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19499 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19500 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19501 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19502 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19503 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19504 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19505 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19506 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19507 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19508 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19509 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19510 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19511 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19512 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19513 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19514 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19515 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19516 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19517 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19518 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19519 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19520 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19521 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19522 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19523 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19524 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19525 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19526
19527 LTCC='$LTCC'
19528 LTCFLAGS='$LTCFLAGS'
19529 compiler='$compiler_DEFAULT'
19530
19531 # Quote evaled strings.
19532 for var in SED \
19533 GREP \
19534 EGREP \
19535 FGREP \
19536 LD \
19537 NM \
19538 LN_S \
19539 lt_SP2NL \
19540 lt_NL2SP \
19541 reload_flag \
19542 OBJDUMP \
19543 deplibs_check_method \
19544 file_magic_cmd \
19545 AR \
19546 AR_FLAGS \
19547 STRIP \
19548 RANLIB \
19549 CC \
19550 CFLAGS \
19551 compiler \
19552 lt_cv_sys_global_symbol_pipe \
19553 lt_cv_sys_global_symbol_to_cdecl \
19554 lt_cv_sys_global_symbol_to_c_name_address \
19555 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19556 SHELL \
19557 ECHO \
19558 lt_prog_compiler_no_builtin_flag \
19559 lt_prog_compiler_wl \
19560 lt_prog_compiler_pic \
19561 lt_prog_compiler_static \
19562 lt_cv_prog_compiler_c_o \
19563 need_locks \
19564 DSYMUTIL \
19565 NMEDIT \
19566 LIPO \
19567 OTOOL \
19568 OTOOL64 \
19569 shrext_cmds \
19570 export_dynamic_flag_spec \
19571 whole_archive_flag_spec \
19572 compiler_needs_object \
19573 with_gnu_ld \
19574 allow_undefined_flag \
19575 no_undefined_flag \
19576 hardcode_libdir_flag_spec \
19577 hardcode_libdir_flag_spec_ld \
19578 hardcode_libdir_separator \
19579 fix_srcfile_path \
19580 exclude_expsyms \
19581 include_expsyms \
19582 file_list_spec \
19583 variables_saved_for_relink \
19584 libname_spec \
19585 library_names_spec \
19586 soname_spec \
19587 finish_eval \
19588 old_striplib \
19589 striplib \
19590 compiler_lib_search_dirs \
19591 predep_objects \
19592 postdep_objects \
19593 predeps \
19594 postdeps \
19595 compiler_lib_search_path \
19596 LD_CXX \
19597 compiler_CXX \
19598 lt_prog_compiler_no_builtin_flag_CXX \
19599 lt_prog_compiler_wl_CXX \
19600 lt_prog_compiler_pic_CXX \
19601 lt_prog_compiler_static_CXX \
19602 lt_cv_prog_compiler_c_o_CXX \
19603 export_dynamic_flag_spec_CXX \
19604 whole_archive_flag_spec_CXX \
19605 compiler_needs_object_CXX \
19606 with_gnu_ld_CXX \
19607 allow_undefined_flag_CXX \
19608 no_undefined_flag_CXX \
19609 hardcode_libdir_flag_spec_CXX \
19610 hardcode_libdir_flag_spec_ld_CXX \
19611 hardcode_libdir_separator_CXX \
19612 fix_srcfile_path_CXX \
19613 exclude_expsyms_CXX \
19614 include_expsyms_CXX \
19615 file_list_spec_CXX \
19616 compiler_lib_search_dirs_CXX \
19617 predep_objects_CXX \
19618 postdep_objects_CXX \
19619 predeps_CXX \
19620 postdeps_CXX \
19621 compiler_lib_search_path_CXX; do
19622     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19623     *[\\\\\\\`\\"\\\$]*)
19624       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19625       ;;
19626     *)
19627       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19628       ;;
19629     esac
19630 done
19631
19632 # Double-quote double-evaled strings.
19633 for var in reload_cmds \
19634 old_postinstall_cmds \
19635 old_postuninstall_cmds \
19636 old_archive_cmds \
19637 extract_expsyms_cmds \
19638 old_archive_from_new_cmds \
19639 old_archive_from_expsyms_cmds \
19640 archive_cmds \
19641 archive_expsym_cmds \
19642 module_cmds \
19643 module_expsym_cmds \
19644 export_symbols_cmds \
19645 prelink_cmds \
19646 postinstall_cmds \
19647 postuninstall_cmds \
19648 finish_cmds \
19649 sys_lib_search_path_spec \
19650 sys_lib_dlsearch_path_spec \
19651 old_archive_cmds_CXX \
19652 old_archive_from_new_cmds_CXX \
19653 old_archive_from_expsyms_cmds_CXX \
19654 archive_cmds_CXX \
19655 archive_expsym_cmds_CXX \
19656 module_cmds_CXX \
19657 module_expsym_cmds_CXX \
19658 export_symbols_cmds_CXX \
19659 prelink_cmds_CXX; do
19660     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19661     *[\\\\\\\`\\"\\\$]*)
19662       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19663       ;;
19664     *)
19665       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19666       ;;
19667     esac
19668 done
19669
19670 # Fix-up fallback echo if it was mangled by the above quoting rules.
19671 case \$lt_ECHO in
19672 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19673   ;;
19674 esac
19675
19676 ac_aux_dir='$ac_aux_dir'
19677 xsi_shell='$xsi_shell'
19678 lt_shell_append='$lt_shell_append'
19679
19680 # See if we are running on zsh, and set the options which allow our
19681 # commands through without removal of \ escapes INIT.
19682 if test -n "\${ZSH_VERSION+set}" ; then
19683    setopt NO_GLOB_SUBST
19684 fi
19685
19686
19687     PACKAGE='$PACKAGE'
19688     VERSION='$VERSION'
19689     TIMESTAMP='$TIMESTAMP'
19690     RM='$RM'
19691     ofile='$ofile'
19692
19693
19694
19695
19696
19697
19698 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
19699 pkgconfig_prefix='$prefix'
19700 pkgconfig_execprefix='$exec_prefix'
19701 pkgconfig_bindir='$bindir'
19702 pkgconfig_libdir='$libdir'
19703 pkgconfig_includedir='$includedir'
19704 pkgconfig_datarootdir='$datarootdir'
19705 pkgconfig_datadir='$datadir'
19706 pkgconfig_sysconfdir='$sysconfdir'
19707 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
19708 pkgconfig_package='$PACKAGE_NAME'
19709 pkgconfig_libname='$ax_create_pkgconfig_libname'
19710 pkgconfig_description='$ax_create_pkgconfig_description'
19711 pkgconfig_version='$ax_create_pkgconfig_version'
19712 pkgconfig_requires='$ax_create_pkgconfig_requires'
19713 pkgconfig_libs='$ax_create_pkgconfig_libs'
19714 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
19715 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
19716 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
19717 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
19718
19719
19720 _ACEOF
19721
19722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19723
19724 # Handling of arguments.
19725 for ac_config_target in $ac_config_targets
19726 do
19727   case $ac_config_target in
19728     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19729     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19730     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19731     "opensaml.spec") CONFIG_FILES="$CONFIG_FILES opensaml.spec" ;;
19732     "pkginfo") CONFIG_FILES="$CONFIG_FILES pkginfo" ;;
19733     "Portfile") CONFIG_FILES="$CONFIG_FILES Portfile" ;;
19734     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19735     "saml/Makefile") CONFIG_FILES="$CONFIG_FILES saml/Makefile" ;;
19736     "samltest/Makefile") CONFIG_FILES="$CONFIG_FILES samltest/Makefile" ;;
19737     "samlsign/Makefile") CONFIG_FILES="$CONFIG_FILES samlsign/Makefile" ;;
19738     "schemas/Makefile") CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
19739     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19740     "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
19741
19742   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
19743   esac
19744 done
19745
19746
19747 # If the user did not use the arguments to specify the items to instantiate,
19748 # then the envvar interface is used.  Set only those that are not.
19749 # We use the long form for the default assignment because of an extremely
19750 # bizarre bug on SunOS 4.1.3.
19751 if $ac_need_defaults; then
19752   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19753   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19754   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19755 fi
19756
19757 # Have a temporary directory for convenience.  Make it in the build tree
19758 # simply because there is no reason against having it here, and in addition,
19759 # creating and moving files from /tmp can sometimes cause problems.
19760 # Hook for its removal unless debugging.
19761 # Note that there is a small window in which the directory will not be cleaned:
19762 # after its creation but before its name has been assigned to `$tmp'.
19763 $debug ||
19764 {
19765   tmp=
19766   trap 'exit_status=$?
19767   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19768 ' 0
19769   trap 'as_fn_exit 1' 1 2 13 15
19770 }
19771 # Create a (secure) tmp directory for tmp files.
19772
19773 {
19774   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19775   test -n "$tmp" && test -d "$tmp"
19776 }  ||
19777 {
19778   tmp=./conf$$-$RANDOM
19779   (umask 077 && mkdir "$tmp")
19780 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19781
19782 # Set up the scripts for CONFIG_FILES section.
19783 # No need to generate them if there are no CONFIG_FILES.
19784 # This happens for instance with `./config.status config.h'.
19785 if test -n "$CONFIG_FILES"; then
19786
19787
19788 ac_cr=`echo X | tr X '\015'`
19789 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19790 # But we know of no other shell where ac_cr would be empty at this
19791 # point, so we can use a bashism as a fallback.
19792 if test "x$ac_cr" = x; then
19793   eval ac_cr=\$\'\\r\'
19794 fi
19795 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19796 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19797   ac_cs_awk_cr='\\r'
19798 else
19799   ac_cs_awk_cr=$ac_cr
19800 fi
19801
19802 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19803 _ACEOF
19804
19805
19806 {
19807   echo "cat >conf$$subs.awk <<_ACEOF" &&
19808   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19809   echo "_ACEOF"
19810 } >conf$$subs.sh ||
19811   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19812 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19813 ac_delim='%!_!# '
19814 for ac_last_try in false false false false false :; do
19815   . ./conf$$subs.sh ||
19816     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19817
19818   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19819   if test $ac_delim_n = $ac_delim_num; then
19820     break
19821   elif $ac_last_try; then
19822     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19823   else
19824     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19825   fi
19826 done
19827 rm -f conf$$subs.sh
19828
19829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19830 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19831 _ACEOF
19832 sed -n '
19833 h
19834 s/^/S["/; s/!.*/"]=/
19835 p
19836 g
19837 s/^[^!]*!//
19838 :repl
19839 t repl
19840 s/'"$ac_delim"'$//
19841 t delim
19842 :nl
19843 h
19844 s/\(.\{148\}\)..*/\1/
19845 t more1
19846 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19847 p
19848 n
19849 b repl
19850 :more1
19851 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19852 p
19853 g
19854 s/.\{148\}//
19855 t nl
19856 :delim
19857 h
19858 s/\(.\{148\}\)..*/\1/
19859 t more2
19860 s/["\\]/\\&/g; s/^/"/; s/$/"/
19861 p
19862 b
19863 :more2
19864 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19865 p
19866 g
19867 s/.\{148\}//
19868 t delim
19869 ' <conf$$subs.awk | sed '
19870 /^[^""]/{
19871   N
19872   s/\n//
19873 }
19874 ' >>$CONFIG_STATUS || ac_write_fail=1
19875 rm -f conf$$subs.awk
19876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19877 _ACAWK
19878 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19879   for (key in S) S_is_set[key] = 1
19880   FS = "\a"
19881
19882 }
19883 {
19884   line = $ 0
19885   nfields = split(line, field, "@")
19886   substed = 0
19887   len = length(field[1])
19888   for (i = 2; i < nfields; i++) {
19889     key = field[i]
19890     keylen = length(key)
19891     if (S_is_set[key]) {
19892       value = S[key]
19893       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19894       len += length(value) + length(field[++i])
19895       substed = 1
19896     } else
19897       len += 1 + keylen
19898   }
19899
19900   print line
19901 }
19902
19903 _ACAWK
19904 _ACEOF
19905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19906 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19907   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19908 else
19909   cat
19910 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19911   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19912 _ACEOF
19913
19914 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19915 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19916 # trailing colons and then remove the whole line if VPATH becomes empty
19917 # (actually we leave an empty line to preserve line numbers).
19918 if test "x$srcdir" = x.; then
19919   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19920 h
19921 s///
19922 s/^/:/
19923 s/[      ]*$/:/
19924 s/:\$(srcdir):/:/g
19925 s/:\${srcdir}:/:/g
19926 s/:@srcdir@:/:/g
19927 s/^:*//
19928 s/:*$//
19929 x
19930 s/\(=[   ]*\).*/\1/
19931 G
19932 s/\n//
19933 s/^[^=]*=[       ]*$//
19934 }'
19935 fi
19936
19937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19938 fi # test -n "$CONFIG_FILES"
19939
19940 # Set up the scripts for CONFIG_HEADERS section.
19941 # No need to generate them if there are no CONFIG_HEADERS.
19942 # This happens for instance with `./config.status Makefile'.
19943 if test -n "$CONFIG_HEADERS"; then
19944 cat >"$tmp/defines.awk" <<\_ACAWK ||
19945 BEGIN {
19946 _ACEOF
19947
19948 # Transform confdefs.h into an awk script `defines.awk', embedded as
19949 # here-document in config.status, that substitutes the proper values into
19950 # config.h.in to produce config.h.
19951
19952 # Create a delimiter string that does not exist in confdefs.h, to ease
19953 # handling of long lines.
19954 ac_delim='%!_!# '
19955 for ac_last_try in false false :; do
19956   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19957   if test -z "$ac_t"; then
19958     break
19959   elif $ac_last_try; then
19960     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19961   else
19962     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19963   fi
19964 done
19965
19966 # For the awk script, D is an array of macro values keyed by name,
19967 # likewise P contains macro parameters if any.  Preserve backslash
19968 # newline sequences.
19969
19970 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19971 sed -n '
19972 s/.\{148\}/&'"$ac_delim"'/g
19973 t rset
19974 :rset
19975 s/^[     ]*#[    ]*define[       ][      ]*/ /
19976 t def
19977 d
19978 :def
19979 s/\\$//
19980 t bsnl
19981 s/["\\]/\\&/g
19982 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19983 D["\1"]=" \3"/p
19984 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19985 d
19986 :bsnl
19987 s/["\\]/\\&/g
19988 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19989 D["\1"]=" \3\\\\\\n"\\/p
19990 t cont
19991 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19992 t cont
19993 d
19994 :cont
19995 n
19996 s/.\{148\}/&'"$ac_delim"'/g
19997 t clear
19998 :clear
19999 s/\\$//
20000 t bsnlc
20001 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20002 d
20003 :bsnlc
20004 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20005 b cont
20006 ' <confdefs.h | sed '
20007 s/'"$ac_delim"'/"\\\
20008 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20009
20010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20011   for (key in D) D_is_set[key] = 1
20012   FS = "\a"
20013 }
20014 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20015   line = \$ 0
20016   split(line, arg, " ")
20017   if (arg[1] == "#") {
20018     defundef = arg[2]
20019     mac1 = arg[3]
20020   } else {
20021     defundef = substr(arg[1], 2)
20022     mac1 = arg[2]
20023   }
20024   split(mac1, mac2, "(") #)
20025   macro = mac2[1]
20026   prefix = substr(line, 1, index(line, defundef) - 1)
20027   if (D_is_set[macro]) {
20028     # Preserve the white space surrounding the "#".
20029     print prefix "define", macro P[macro] D[macro]
20030     next
20031   } else {
20032     # Replace #undef with comments.  This is necessary, for example,
20033     # in the case of _POSIX_SOURCE, which is predefined and required
20034     # on some systems where configure will not decide to define it.
20035     if (defundef == "undef") {
20036       print "/*", prefix defundef, macro, "*/"
20037       next
20038     }
20039   }
20040 }
20041 { print }
20042 _ACAWK
20043 _ACEOF
20044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20045   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20046 fi # test -n "$CONFIG_HEADERS"
20047
20048
20049 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20050 shift
20051 for ac_tag
20052 do
20053   case $ac_tag in
20054   :[FHLC]) ac_mode=$ac_tag; continue;;
20055   esac
20056   case $ac_mode$ac_tag in
20057   :[FHL]*:*);;
20058   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
20059   :[FH]-) ac_tag=-:-;;
20060   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20061   esac
20062   ac_save_IFS=$IFS
20063   IFS=:
20064   set x $ac_tag
20065   IFS=$ac_save_IFS
20066   shift
20067   ac_file=$1
20068   shift
20069
20070   case $ac_mode in
20071   :L) ac_source=$1;;
20072   :[FH])
20073     ac_file_inputs=
20074     for ac_f
20075     do
20076       case $ac_f in
20077       -) ac_f="$tmp/stdin";;
20078       *) # Look for the file first in the build tree, then in the source tree
20079          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20080          # because $ac_f cannot contain `:'.
20081          test -f "$ac_f" ||
20082            case $ac_f in
20083            [\\/$]*) false;;
20084            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20085            esac ||
20086            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
20087       esac
20088       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20089       as_fn_append ac_file_inputs " '$ac_f'"
20090     done
20091
20092     # Let's still pretend it is `configure' which instantiates (i.e., don't
20093     # use $as_me), people would be surprised to read:
20094     #    /* config.h.  Generated by config.status.  */
20095     configure_input='Generated from '`
20096           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20097         `' by configure.'
20098     if test x"$ac_file" != x-; then
20099       configure_input="$ac_file.  $configure_input"
20100       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20101 $as_echo "$as_me: creating $ac_file" >&6;}
20102     fi
20103     # Neutralize special characters interpreted by sed in replacement strings.
20104     case $configure_input in #(
20105     *\&* | *\|* | *\\* )
20106        ac_sed_conf_input=`$as_echo "$configure_input" |
20107        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20108     *) ac_sed_conf_input=$configure_input;;
20109     esac
20110
20111     case $ac_tag in
20112     *:-:* | *:-) cat >"$tmp/stdin" \
20113       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
20114     esac
20115     ;;
20116   esac
20117
20118   ac_dir=`$as_dirname -- "$ac_file" ||
20119 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20120          X"$ac_file" : 'X\(//\)[^/]' \| \
20121          X"$ac_file" : 'X\(//\)$' \| \
20122          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20123 $as_echo X"$ac_file" |
20124     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20125             s//\1/
20126             q
20127           }
20128           /^X\(\/\/\)[^/].*/{
20129             s//\1/
20130             q
20131           }
20132           /^X\(\/\/\)$/{
20133             s//\1/
20134             q
20135           }
20136           /^X\(\/\).*/{
20137             s//\1/
20138             q
20139           }
20140           s/.*/./; q'`
20141   as_dir="$ac_dir"; as_fn_mkdir_p
20142   ac_builddir=.
20143
20144 case "$ac_dir" in
20145 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20146 *)
20147   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20148   # A ".." for each directory in $ac_dir_suffix.
20149   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20150   case $ac_top_builddir_sub in
20151   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20152   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20153   esac ;;
20154 esac
20155 ac_abs_top_builddir=$ac_pwd
20156 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20157 # for backward compatibility:
20158 ac_top_builddir=$ac_top_build_prefix
20159
20160 case $srcdir in
20161   .)  # We are building in place.
20162     ac_srcdir=.
20163     ac_top_srcdir=$ac_top_builddir_sub
20164     ac_abs_top_srcdir=$ac_pwd ;;
20165   [\\/]* | ?:[\\/]* )  # Absolute name.
20166     ac_srcdir=$srcdir$ac_dir_suffix;
20167     ac_top_srcdir=$srcdir
20168     ac_abs_top_srcdir=$srcdir ;;
20169   *) # Relative name.
20170     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20171     ac_top_srcdir=$ac_top_build_prefix$srcdir
20172     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20173 esac
20174 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20175
20176
20177   case $ac_mode in
20178   :F)
20179   #
20180   # CONFIG_FILE
20181   #
20182
20183   case $INSTALL in
20184   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20185   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20186   esac
20187   ac_MKDIR_P=$MKDIR_P
20188   case $MKDIR_P in
20189   [\\/$]* | ?:[\\/]* ) ;;
20190   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20191   esac
20192 _ACEOF
20193
20194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20195 # If the template does not know about datarootdir, expand it.
20196 # FIXME: This hack should be removed a few years after 2.60.
20197 ac_datarootdir_hack=; ac_datarootdir_seen=
20198 ac_sed_dataroot='
20199 /datarootdir/ {
20200   p
20201   q
20202 }
20203 /@datadir@/p
20204 /@docdir@/p
20205 /@infodir@/p
20206 /@localedir@/p
20207 /@mandir@/p'
20208 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20209 *datarootdir*) ac_datarootdir_seen=yes;;
20210 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20211   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20212 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20213 _ACEOF
20214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20215   ac_datarootdir_hack='
20216   s&@datadir@&$datadir&g
20217   s&@docdir@&$docdir&g
20218   s&@infodir@&$infodir&g
20219   s&@localedir@&$localedir&g
20220   s&@mandir@&$mandir&g
20221   s&\\\${datarootdir}&$datarootdir&g' ;;
20222 esac
20223 _ACEOF
20224
20225 # Neutralize VPATH when `$srcdir' = `.'.
20226 # Shell code in configure.ac might set extrasub.
20227 # FIXME: do we really want to maintain this feature?
20228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20229 ac_sed_extra="$ac_vpsub
20230 $extrasub
20231 _ACEOF
20232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20233 :t
20234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20235 s|@configure_input@|$ac_sed_conf_input|;t t
20236 s&@top_builddir@&$ac_top_builddir_sub&;t t
20237 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20238 s&@srcdir@&$ac_srcdir&;t t
20239 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20240 s&@top_srcdir@&$ac_top_srcdir&;t t
20241 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20242 s&@builddir@&$ac_builddir&;t t
20243 s&@abs_builddir@&$ac_abs_builddir&;t t
20244 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20245 s&@INSTALL@&$ac_INSTALL&;t t
20246 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20247 $ac_datarootdir_hack
20248 "
20249 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20250   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20251
20252 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20253   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20254   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20255   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20256 which seems to be undefined.  Please make sure it is defined" >&5
20257 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20258 which seems to be undefined.  Please make sure it is defined" >&2;}
20259
20260   rm -f "$tmp/stdin"
20261   case $ac_file in
20262   -) cat "$tmp/out" && rm -f "$tmp/out";;
20263   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20264   esac \
20265   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20266  ;;
20267   :H)
20268   #
20269   # CONFIG_HEADER
20270   #
20271   if test x"$ac_file" != x-; then
20272     {
20273       $as_echo "/* $configure_input  */" \
20274       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20275     } >"$tmp/config.h" \
20276       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20277     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20278       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20279 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20280     else
20281       rm -f "$ac_file"
20282       mv "$tmp/config.h" "$ac_file" \
20283         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20284     fi
20285   else
20286     $as_echo "/* $configure_input  */" \
20287       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20288       || as_fn_error $? "could not create -" "$LINENO" 5
20289   fi
20290 # Compute "$ac_file"'s index in $config_headers.
20291 _am_arg="$ac_file"
20292 _am_stamp_count=1
20293 for _am_header in $config_headers :; do
20294   case $_am_header in
20295     $_am_arg | $_am_arg:* )
20296       break ;;
20297     * )
20298       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20299   esac
20300 done
20301 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20302 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20303          X"$_am_arg" : 'X\(//\)[^/]' \| \
20304          X"$_am_arg" : 'X\(//\)$' \| \
20305          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20306 $as_echo X"$_am_arg" |
20307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20308             s//\1/
20309             q
20310           }
20311           /^X\(\/\/\)[^/].*/{
20312             s//\1/
20313             q
20314           }
20315           /^X\(\/\/\)$/{
20316             s//\1/
20317             q
20318           }
20319           /^X\(\/\).*/{
20320             s//\1/
20321             q
20322           }
20323           s/.*/./; q'`/stamp-h$_am_stamp_count
20324  ;;
20325
20326   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20327 $as_echo "$as_me: executing $ac_file commands" >&6;}
20328  ;;
20329   esac
20330
20331
20332   case $ac_file$ac_mode in
20333     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20334   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20335   # are listed without --file.  Let's play safe and only enable the eval
20336   # if we detect the quoting.
20337   case $CONFIG_FILES in
20338   *\'*) eval set x "$CONFIG_FILES" ;;
20339   *)   set x $CONFIG_FILES ;;
20340   esac
20341   shift
20342   for mf
20343   do
20344     # Strip MF so we end up with the name of the file.
20345     mf=`echo "$mf" | sed -e 's/:.*$//'`
20346     # Check whether this is an Automake generated Makefile or not.
20347     # We used to match only the files named `Makefile.in', but
20348     # some people rename them; so instead we look at the file content.
20349     # Grep'ing the first line is not enough: some people post-process
20350     # each Makefile.in and add a new line on top of each file to say so.
20351     # Grep'ing the whole file is not good either: AIX grep has a line
20352     # limit of 2048, but all sed's we know have understand at least 4000.
20353     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20354       dirpart=`$as_dirname -- "$mf" ||
20355 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20356          X"$mf" : 'X\(//\)[^/]' \| \
20357          X"$mf" : 'X\(//\)$' \| \
20358          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20359 $as_echo X"$mf" |
20360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20361             s//\1/
20362             q
20363           }
20364           /^X\(\/\/\)[^/].*/{
20365             s//\1/
20366             q
20367           }
20368           /^X\(\/\/\)$/{
20369             s//\1/
20370             q
20371           }
20372           /^X\(\/\).*/{
20373             s//\1/
20374             q
20375           }
20376           s/.*/./; q'`
20377     else
20378       continue
20379     fi
20380     # Extract the definition of DEPDIR, am__include, and am__quote
20381     # from the Makefile without running `make'.
20382     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20383     test -z "$DEPDIR" && continue
20384     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20385     test -z "am__include" && continue
20386     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20387     # When using ansi2knr, U may be empty or an underscore; expand it
20388     U=`sed -n 's/^U = //p' < "$mf"`
20389     # Find all dependency output files, they are included files with
20390     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20391     # simplest approach to changing $(DEPDIR) to its actual value in the
20392     # expansion.
20393     for file in `sed -n "
20394       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20395          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20396       # Make sure the directory exists.
20397       test -f "$dirpart/$file" && continue
20398       fdir=`$as_dirname -- "$file" ||
20399 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20400          X"$file" : 'X\(//\)[^/]' \| \
20401          X"$file" : 'X\(//\)$' \| \
20402          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20403 $as_echo X"$file" |
20404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20405             s//\1/
20406             q
20407           }
20408           /^X\(\/\/\)[^/].*/{
20409             s//\1/
20410             q
20411           }
20412           /^X\(\/\/\)$/{
20413             s//\1/
20414             q
20415           }
20416           /^X\(\/\).*/{
20417             s//\1/
20418             q
20419           }
20420           s/.*/./; q'`
20421       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20422       # echo "creating $dirpart/$file"
20423       echo '# dummy' > "$dirpart/$file"
20424     done
20425   done
20426 }
20427  ;;
20428     "libtool":C)
20429
20430     # See if we are running on zsh, and set the options which allow our
20431     # commands through without removal of \ escapes.
20432     if test -n "${ZSH_VERSION+set}" ; then
20433       setopt NO_GLOB_SUBST
20434     fi
20435
20436     cfgfile="${ofile}T"
20437     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20438     $RM "$cfgfile"
20439
20440     cat <<_LT_EOF >> "$cfgfile"
20441 #! $SHELL
20442
20443 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20444 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20445 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20446 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20447 #
20448 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20449 #                 2006, 2007, 2008 Free Software Foundation, Inc.
20450 #   Written by Gordon Matzigkeit, 1996
20451 #
20452 #   This file is part of GNU Libtool.
20453 #
20454 # GNU Libtool is free software; you can redistribute it and/or
20455 # modify it under the terms of the GNU General Public License as
20456 # published by the Free Software Foundation; either version 2 of
20457 # the License, or (at your option) any later version.
20458 #
20459 # As a special exception to the GNU General Public License,
20460 # if you distribute this file as part of a program or library that
20461 # is built using GNU Libtool, you may include this file under the
20462 # same distribution terms that you use for the rest of that program.
20463 #
20464 # GNU Libtool is distributed in the hope that it will be useful,
20465 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20466 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20467 # GNU General Public License for more details.
20468 #
20469 # You should have received a copy of the GNU General Public License
20470 # along with GNU Libtool; see the file COPYING.  If not, a copy
20471 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20472 # obtained by writing to the Free Software Foundation, Inc.,
20473 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20474
20475
20476 # The names of the tagged configurations supported by this script.
20477 available_tags="CXX "
20478
20479 # ### BEGIN LIBTOOL CONFIG
20480
20481 # Whether or not to build static libraries.
20482 build_old_libs=$enable_static
20483
20484 # Which release of libtool.m4 was used?
20485 macro_version=$macro_version
20486 macro_revision=$macro_revision
20487
20488 # Whether or not to build shared libraries.
20489 build_libtool_libs=$enable_shared
20490
20491 # What type of objects to build.
20492 pic_mode=$pic_mode
20493
20494 # Whether or not to optimize for fast installation.
20495 fast_install=$enable_fast_install
20496
20497 # The host system.
20498 host_alias=$host_alias
20499 host=$host
20500 host_os=$host_os
20501
20502 # The build system.
20503 build_alias=$build_alias
20504 build=$build
20505 build_os=$build_os
20506
20507 # A sed program that does not truncate output.
20508 SED=$lt_SED
20509
20510 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20511 Xsed="\$SED -e 1s/^X//"
20512
20513 # A grep program that handles long lines.
20514 GREP=$lt_GREP
20515
20516 # An ERE matcher.
20517 EGREP=$lt_EGREP
20518
20519 # A literal string matcher.
20520 FGREP=$lt_FGREP
20521
20522 # A BSD- or MS-compatible name lister.
20523 NM=$lt_NM
20524
20525 # Whether we need soft or hard links.
20526 LN_S=$lt_LN_S
20527
20528 # What is the maximum length of a command?
20529 max_cmd_len=$max_cmd_len
20530
20531 # Object file suffix (normally "o").
20532 objext=$ac_objext
20533
20534 # Executable file suffix (normally "").
20535 exeext=$exeext
20536
20537 # whether the shell understands "unset".
20538 lt_unset=$lt_unset
20539
20540 # turn spaces into newlines.
20541 SP2NL=$lt_lt_SP2NL
20542
20543 # turn newlines into spaces.
20544 NL2SP=$lt_lt_NL2SP
20545
20546 # How to create reloadable object files.
20547 reload_flag=$lt_reload_flag
20548 reload_cmds=$lt_reload_cmds
20549
20550 # An object symbol dumper.
20551 OBJDUMP=$lt_OBJDUMP
20552
20553 # Method to check whether dependent libraries are shared objects.
20554 deplibs_check_method=$lt_deplibs_check_method
20555
20556 # Command to use when deplibs_check_method == "file_magic".
20557 file_magic_cmd=$lt_file_magic_cmd
20558
20559 # The archiver.
20560 AR=$lt_AR
20561 AR_FLAGS=$lt_AR_FLAGS
20562
20563 # A symbol stripping program.
20564 STRIP=$lt_STRIP
20565
20566 # Commands used to install an old-style archive.
20567 RANLIB=$lt_RANLIB
20568 old_postinstall_cmds=$lt_old_postinstall_cmds
20569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20570
20571 # A C compiler.
20572 LTCC=$lt_CC
20573
20574 # LTCC compiler flags.
20575 LTCFLAGS=$lt_CFLAGS
20576
20577 # Take the output of nm and produce a listing of raw symbols and C names.
20578 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20579
20580 # Transform the output of nm in a proper C declaration.
20581 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20582
20583 # Transform the output of nm in a C name address pair.
20584 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20585
20586 # Transform the output of nm in a C name address pair when lib prefix is needed.
20587 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20588
20589 # The name of the directory that contains temporary libtool files.
20590 objdir=$objdir
20591
20592 # Shell to use when invoking shell scripts.
20593 SHELL=$lt_SHELL
20594
20595 # An echo program that does not interpret backslashes.
20596 ECHO=$lt_ECHO
20597
20598 # Used to examine libraries when file_magic_cmd begins with "file".
20599 MAGIC_CMD=$MAGIC_CMD
20600
20601 # Must we lock files when doing compilation?
20602 need_locks=$lt_need_locks
20603
20604 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20605 DSYMUTIL=$lt_DSYMUTIL
20606
20607 # Tool to change global to local symbols on Mac OS X.
20608 NMEDIT=$lt_NMEDIT
20609
20610 # Tool to manipulate fat objects and archives on Mac OS X.
20611 LIPO=$lt_LIPO
20612
20613 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20614 OTOOL=$lt_OTOOL
20615
20616 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20617 OTOOL64=$lt_OTOOL64
20618
20619 # Old archive suffix (normally "a").
20620 libext=$libext
20621
20622 # Shared library suffix (normally ".so").
20623 shrext_cmds=$lt_shrext_cmds
20624
20625 # The commands to extract the exported symbol list from a shared archive.
20626 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20627
20628 # Variables whose values should be saved in libtool wrapper scripts and
20629 # restored at link time.
20630 variables_saved_for_relink=$lt_variables_saved_for_relink
20631
20632 # Do we need the "lib" prefix for modules?
20633 need_lib_prefix=$need_lib_prefix
20634
20635 # Do we need a version for libraries?
20636 need_version=$need_version
20637
20638 # Library versioning type.
20639 version_type=$version_type
20640
20641 # Shared library runtime path variable.
20642 runpath_var=$runpath_var
20643
20644 # Shared library path variable.
20645 shlibpath_var=$shlibpath_var
20646
20647 # Is shlibpath searched before the hard-coded library search path?
20648 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20649
20650 # Format of library name prefix.
20651 libname_spec=$lt_libname_spec
20652
20653 # List of archive names.  First name is the real one, the rest are links.
20654 # The last name is the one that the linker finds with -lNAME
20655 library_names_spec=$lt_library_names_spec
20656
20657 # The coded name of the library, if different from the real name.
20658 soname_spec=$lt_soname_spec
20659
20660 # Command to use after installation of a shared archive.
20661 postinstall_cmds=$lt_postinstall_cmds
20662
20663 # Command to use after uninstallation of a shared archive.
20664 postuninstall_cmds=$lt_postuninstall_cmds
20665
20666 # Commands used to finish a libtool library installation in a directory.
20667 finish_cmds=$lt_finish_cmds
20668
20669 # As "finish_cmds", except a single script fragment to be evaled but
20670 # not shown.
20671 finish_eval=$lt_finish_eval
20672
20673 # Whether we should hardcode library paths into libraries.
20674 hardcode_into_libs=$hardcode_into_libs
20675
20676 # Compile-time system search path for libraries.
20677 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20678
20679 # Run-time system search path for libraries.
20680 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20681
20682 # Whether dlopen is supported.
20683 dlopen_support=$enable_dlopen
20684
20685 # Whether dlopen of programs is supported.
20686 dlopen_self=$enable_dlopen_self
20687
20688 # Whether dlopen of statically linked programs is supported.
20689 dlopen_self_static=$enable_dlopen_self_static
20690
20691 # Commands to strip libraries.
20692 old_striplib=$lt_old_striplib
20693 striplib=$lt_striplib
20694
20695
20696 # The linker used to build libraries.
20697 LD=$lt_LD
20698
20699 # Commands used to build an old-style archive.
20700 old_archive_cmds=$lt_old_archive_cmds
20701
20702 # A language specific compiler.
20703 CC=$lt_compiler
20704
20705 # Is the compiler the GNU compiler?
20706 with_gcc=$GCC
20707
20708 # Compiler flag to turn off builtin functions.
20709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20710
20711 # How to pass a linker flag through the compiler.
20712 wl=$lt_lt_prog_compiler_wl
20713
20714 # Additional compiler flags for building library objects.
20715 pic_flag=$lt_lt_prog_compiler_pic
20716
20717 # Compiler flag to prevent dynamic linking.
20718 link_static_flag=$lt_lt_prog_compiler_static
20719
20720 # Does compiler simultaneously support -c and -o options?
20721 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20722
20723 # Whether or not to add -lc for building shared libraries.
20724 build_libtool_need_lc=$archive_cmds_need_lc
20725
20726 # Whether or not to disallow shared libs when runtime libs are static.
20727 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20728
20729 # Compiler flag to allow reflexive dlopens.
20730 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20731
20732 # Compiler flag to generate shared objects directly from archives.
20733 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20734
20735 # Whether the compiler copes with passing no objects directly.
20736 compiler_needs_object=$lt_compiler_needs_object
20737
20738 # Create an old-style archive from a shared archive.
20739 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20740
20741 # Create a temporary old-style archive to link instead of a shared archive.
20742 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20743
20744 # Commands used to build a shared archive.
20745 archive_cmds=$lt_archive_cmds
20746 archive_expsym_cmds=$lt_archive_expsym_cmds
20747
20748 # Commands used to build a loadable module if different from building
20749 # a shared archive.
20750 module_cmds=$lt_module_cmds
20751 module_expsym_cmds=$lt_module_expsym_cmds
20752
20753 # Whether we are building with GNU ld or not.
20754 with_gnu_ld=$lt_with_gnu_ld
20755
20756 # Flag that allows shared libraries with undefined symbols to be built.
20757 allow_undefined_flag=$lt_allow_undefined_flag
20758
20759 # Flag that enforces no undefined symbols.
20760 no_undefined_flag=$lt_no_undefined_flag
20761
20762 # Flag to hardcode \$libdir into a binary during linking.
20763 # This must work even if \$libdir does not exist
20764 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20765
20766 # If ld is used when linking, flag to hardcode \$libdir into a binary
20767 # during linking.  This must work even if \$libdir does not exist.
20768 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20769
20770 # Whether we need a single "-rpath" flag with a separated argument.
20771 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20772
20773 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20774 # DIR into the resulting binary.
20775 hardcode_direct=$hardcode_direct
20776
20777 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20778 # DIR into the resulting binary and the resulting library dependency is
20779 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20780 # library is relocated.
20781 hardcode_direct_absolute=$hardcode_direct_absolute
20782
20783 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20784 # into the resulting binary.
20785 hardcode_minus_L=$hardcode_minus_L
20786
20787 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20788 # into the resulting binary.
20789 hardcode_shlibpath_var=$hardcode_shlibpath_var
20790
20791 # Set to "yes" if building a shared library automatically hardcodes DIR
20792 # into the library and all subsequent libraries and executables linked
20793 # against it.
20794 hardcode_automatic=$hardcode_automatic
20795
20796 # Set to yes if linker adds runtime paths of dependent libraries
20797 # to runtime path list.
20798 inherit_rpath=$inherit_rpath
20799
20800 # Whether libtool must link a program against all its dependency libraries.
20801 link_all_deplibs=$link_all_deplibs
20802
20803 # Fix the shell variable \$srcfile for the compiler.
20804 fix_srcfile_path=$lt_fix_srcfile_path
20805
20806 # Set to "yes" if exported symbols are required.
20807 always_export_symbols=$always_export_symbols
20808
20809 # The commands to list exported symbols.
20810 export_symbols_cmds=$lt_export_symbols_cmds
20811
20812 # Symbols that should not be listed in the preloaded symbols.
20813 exclude_expsyms=$lt_exclude_expsyms
20814
20815 # Symbols that must always be exported.
20816 include_expsyms=$lt_include_expsyms
20817
20818 # Commands necessary for linking programs (against libraries) with templates.
20819 prelink_cmds=$lt_prelink_cmds
20820
20821 # Specify filename containing input files.
20822 file_list_spec=$lt_file_list_spec
20823
20824 # How to hardcode a shared library path into an executable.
20825 hardcode_action=$hardcode_action
20826
20827 # The directories searched by this compiler when creating a shared library.
20828 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20829
20830 # Dependencies to place before and after the objects being linked to
20831 # create a shared library.
20832 predep_objects=$lt_predep_objects
20833 postdep_objects=$lt_postdep_objects
20834 predeps=$lt_predeps
20835 postdeps=$lt_postdeps
20836
20837 # The library search path used internally by the compiler when linking
20838 # a shared library.
20839 compiler_lib_search_path=$lt_compiler_lib_search_path
20840
20841 # ### END LIBTOOL CONFIG
20842
20843 _LT_EOF
20844
20845   case $host_os in
20846   aix3*)
20847     cat <<\_LT_EOF >> "$cfgfile"
20848 # AIX sometimes has problems with the GCC collect2 program.  For some
20849 # reason, if we set the COLLECT_NAMES environment variable, the problems
20850 # vanish in a puff of smoke.
20851 if test "X${COLLECT_NAMES+set}" != Xset; then
20852   COLLECT_NAMES=
20853   export COLLECT_NAMES
20854 fi
20855 _LT_EOF
20856     ;;
20857   esac
20858
20859
20860 ltmain="$ac_aux_dir/ltmain.sh"
20861
20862
20863   # We use sed instead of cat because bash on DJGPP gets confused if
20864   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20865   # text mode, it properly converts lines to CR/LF.  This bash problem
20866   # is reportedly fixed, but why not run on old versions too?
20867   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20868     || (rm -f "$cfgfile"; exit 1)
20869
20870   case $xsi_shell in
20871   yes)
20872     cat << \_LT_EOF >> "$cfgfile"
20873
20874 # func_dirname file append nondir_replacement
20875 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20876 # otherwise set result to NONDIR_REPLACEMENT.
20877 func_dirname ()
20878 {
20879   case ${1} in
20880     */*) func_dirname_result="${1%/*}${2}" ;;
20881     *  ) func_dirname_result="${3}" ;;
20882   esac
20883 }
20884
20885 # func_basename file
20886 func_basename ()
20887 {
20888   func_basename_result="${1##*/}"
20889 }
20890
20891 # func_dirname_and_basename file append nondir_replacement
20892 # perform func_basename and func_dirname in a single function
20893 # call:
20894 #   dirname:  Compute the dirname of FILE.  If nonempty,
20895 #             add APPEND to the result, otherwise set result
20896 #             to NONDIR_REPLACEMENT.
20897 #             value returned in "$func_dirname_result"
20898 #   basename: Compute filename of FILE.
20899 #             value retuned in "$func_basename_result"
20900 # Implementation must be kept synchronized with func_dirname
20901 # and func_basename. For efficiency, we do not delegate to
20902 # those functions but instead duplicate the functionality here.
20903 func_dirname_and_basename ()
20904 {
20905   case ${1} in
20906     */*) func_dirname_result="${1%/*}${2}" ;;
20907     *  ) func_dirname_result="${3}" ;;
20908   esac
20909   func_basename_result="${1##*/}"
20910 }
20911
20912 # func_stripname prefix suffix name
20913 # strip PREFIX and SUFFIX off of NAME.
20914 # PREFIX and SUFFIX must not contain globbing or regex special
20915 # characters, hashes, percent signs, but SUFFIX may contain a leading
20916 # dot (in which case that matches only a dot).
20917 func_stripname ()
20918 {
20919   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20920   # positional parameters, so assign one to ordinary parameter first.
20921   func_stripname_result=${3}
20922   func_stripname_result=${func_stripname_result#"${1}"}
20923   func_stripname_result=${func_stripname_result%"${2}"}
20924 }
20925
20926 # func_opt_split
20927 func_opt_split ()
20928 {
20929   func_opt_split_opt=${1%%=*}
20930   func_opt_split_arg=${1#*=}
20931 }
20932
20933 # func_lo2o object
20934 func_lo2o ()
20935 {
20936   case ${1} in
20937     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20938     *)    func_lo2o_result=${1} ;;
20939   esac
20940 }
20941
20942 # func_xform libobj-or-source
20943 func_xform ()
20944 {
20945   func_xform_result=${1%.*}.lo
20946 }
20947
20948 # func_arith arithmetic-term...
20949 func_arith ()
20950 {
20951   func_arith_result=$(( $* ))
20952 }
20953
20954 # func_len string
20955 # STRING may not start with a hyphen.
20956 func_len ()
20957 {
20958   func_len_result=${#1}
20959 }
20960
20961 _LT_EOF
20962     ;;
20963   *) # Bourne compatible functions.
20964     cat << \_LT_EOF >> "$cfgfile"
20965
20966 # func_dirname file append nondir_replacement
20967 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20968 # otherwise set result to NONDIR_REPLACEMENT.
20969 func_dirname ()
20970 {
20971   # Extract subdirectory from the argument.
20972   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20973   if test "X$func_dirname_result" = "X${1}"; then
20974     func_dirname_result="${3}"
20975   else
20976     func_dirname_result="$func_dirname_result${2}"
20977   fi
20978 }
20979
20980 # func_basename file
20981 func_basename ()
20982 {
20983   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20984 }
20985
20986
20987 # func_stripname prefix suffix name
20988 # strip PREFIX and SUFFIX off of NAME.
20989 # PREFIX and SUFFIX must not contain globbing or regex special
20990 # characters, hashes, percent signs, but SUFFIX may contain a leading
20991 # dot (in which case that matches only a dot).
20992 # func_strip_suffix prefix name
20993 func_stripname ()
20994 {
20995   case ${2} in
20996     .*) func_stripname_result=`$ECHO "X${3}" \
20997            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20998     *)  func_stripname_result=`$ECHO "X${3}" \
20999            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21000   esac
21001 }
21002
21003 # sed scripts:
21004 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21005 my_sed_long_arg='1s/^-[^=]*=//'
21006
21007 # func_opt_split
21008 func_opt_split ()
21009 {
21010   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21011   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21012 }
21013
21014 # func_lo2o object
21015 func_lo2o ()
21016 {
21017   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21018 }
21019
21020 # func_xform libobj-or-source
21021 func_xform ()
21022 {
21023   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21024 }
21025
21026 # func_arith arithmetic-term...
21027 func_arith ()
21028 {
21029   func_arith_result=`expr "$@"`
21030 }
21031
21032 # func_len string
21033 # STRING may not start with a hyphen.
21034 func_len ()
21035 {
21036   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21037 }
21038
21039 _LT_EOF
21040 esac
21041
21042 case $lt_shell_append in
21043   yes)
21044     cat << \_LT_EOF >> "$cfgfile"
21045
21046 # func_append var value
21047 # Append VALUE to the end of shell variable VAR.
21048 func_append ()
21049 {
21050   eval "$1+=\$2"
21051 }
21052 _LT_EOF
21053     ;;
21054   *)
21055     cat << \_LT_EOF >> "$cfgfile"
21056
21057 # func_append var value
21058 # Append VALUE to the end of shell variable VAR.
21059 func_append ()
21060 {
21061   eval "$1=\$$1\$2"
21062 }
21063
21064 _LT_EOF
21065     ;;
21066   esac
21067
21068
21069   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21070     || (rm -f "$cfgfile"; exit 1)
21071
21072   mv -f "$cfgfile" "$ofile" ||
21073     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21074   chmod +x "$ofile"
21075
21076
21077     cat <<_LT_EOF >> "$ofile"
21078
21079 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21080
21081 # The linker used to build libraries.
21082 LD=$lt_LD_CXX
21083
21084 # Commands used to build an old-style archive.
21085 old_archive_cmds=$lt_old_archive_cmds_CXX
21086
21087 # A language specific compiler.
21088 CC=$lt_compiler_CXX
21089
21090 # Is the compiler the GNU compiler?
21091 with_gcc=$GCC_CXX
21092
21093 # Compiler flag to turn off builtin functions.
21094 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21095
21096 # How to pass a linker flag through the compiler.
21097 wl=$lt_lt_prog_compiler_wl_CXX
21098
21099 # Additional compiler flags for building library objects.
21100 pic_flag=$lt_lt_prog_compiler_pic_CXX
21101
21102 # Compiler flag to prevent dynamic linking.
21103 link_static_flag=$lt_lt_prog_compiler_static_CXX
21104
21105 # Does compiler simultaneously support -c and -o options?
21106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21107
21108 # Whether or not to add -lc for building shared libraries.
21109 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21110
21111 # Whether or not to disallow shared libs when runtime libs are static.
21112 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21113
21114 # Compiler flag to allow reflexive dlopens.
21115 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21116
21117 # Compiler flag to generate shared objects directly from archives.
21118 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21119
21120 # Whether the compiler copes with passing no objects directly.
21121 compiler_needs_object=$lt_compiler_needs_object_CXX
21122
21123 # Create an old-style archive from a shared archive.
21124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21125
21126 # Create a temporary old-style archive to link instead of a shared archive.
21127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21128
21129 # Commands used to build a shared archive.
21130 archive_cmds=$lt_archive_cmds_CXX
21131 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21132
21133 # Commands used to build a loadable module if different from building
21134 # a shared archive.
21135 module_cmds=$lt_module_cmds_CXX
21136 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21137
21138 # Whether we are building with GNU ld or not.
21139 with_gnu_ld=$lt_with_gnu_ld_CXX
21140
21141 # Flag that allows shared libraries with undefined symbols to be built.
21142 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21143
21144 # Flag that enforces no undefined symbols.
21145 no_undefined_flag=$lt_no_undefined_flag_CXX
21146
21147 # Flag to hardcode \$libdir into a binary during linking.
21148 # This must work even if \$libdir does not exist
21149 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21150
21151 # If ld is used when linking, flag to hardcode \$libdir into a binary
21152 # during linking.  This must work even if \$libdir does not exist.
21153 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21154
21155 # Whether we need a single "-rpath" flag with a separated argument.
21156 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21157
21158 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21159 # DIR into the resulting binary.
21160 hardcode_direct=$hardcode_direct_CXX
21161
21162 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21163 # DIR into the resulting binary and the resulting library dependency is
21164 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21165 # library is relocated.
21166 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21167
21168 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21169 # into the resulting binary.
21170 hardcode_minus_L=$hardcode_minus_L_CXX
21171
21172 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21173 # into the resulting binary.
21174 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21175
21176 # Set to "yes" if building a shared library automatically hardcodes DIR
21177 # into the library and all subsequent libraries and executables linked
21178 # against it.
21179 hardcode_automatic=$hardcode_automatic_CXX
21180
21181 # Set to yes if linker adds runtime paths of dependent libraries
21182 # to runtime path list.
21183 inherit_rpath=$inherit_rpath_CXX
21184
21185 # Whether libtool must link a program against all its dependency libraries.
21186 link_all_deplibs=$link_all_deplibs_CXX
21187
21188 # Fix the shell variable \$srcfile for the compiler.
21189 fix_srcfile_path=$lt_fix_srcfile_path_CXX
21190
21191 # Set to "yes" if exported symbols are required.
21192 always_export_symbols=$always_export_symbols_CXX
21193
21194 # The commands to list exported symbols.
21195 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21196
21197 # Symbols that should not be listed in the preloaded symbols.
21198 exclude_expsyms=$lt_exclude_expsyms_CXX
21199
21200 # Symbols that must always be exported.
21201 include_expsyms=$lt_include_expsyms_CXX
21202
21203 # Commands necessary for linking programs (against libraries) with templates.
21204 prelink_cmds=$lt_prelink_cmds_CXX
21205
21206 # Specify filename containing input files.
21207 file_list_spec=$lt_file_list_spec_CXX
21208
21209 # How to hardcode a shared library path into an executable.
21210 hardcode_action=$hardcode_action_CXX
21211
21212 # The directories searched by this compiler when creating a shared library.
21213 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21214
21215 # Dependencies to place before and after the objects being linked to
21216 # create a shared library.
21217 predep_objects=$lt_predep_objects_CXX
21218 postdep_objects=$lt_postdep_objects_CXX
21219 predeps=$lt_predeps_CXX
21220 postdeps=$lt_postdeps_CXX
21221
21222 # The library search path used internally by the compiler when linking
21223 # a shared library.
21224 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21225
21226 # ### END LIBTOOL TAG CONFIG: CXX
21227 _LT_EOF
21228
21229  ;;
21230     "$ax_create_pkgconfig_generate":C)
21231 pkgconfig_generate="$ax_create_pkgconfig_generate"
21232 if test ! -f "$pkgconfig_generate.in"
21233 then generate="true"
21234 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
21235 then generate="true"
21236 else generate="false";
21237 fi
21238 if $generate ; then
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
21240 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
21241 cat > $pkgconfig_generate.in <<AXEOF
21242 # generated by configure / remove this line to disable regeneration
21243 prefix=@prefix@
21244 exec_prefix=@exec_prefix@
21245 bindir=@bindir@
21246 libdir=@libdir@
21247 datarootdir=@datarootdir@
21248 datadir=@datadir@
21249 sysconfdir=@sysconfdir@
21250 includedir=@includedir@
21251 package=@PACKAGE@
21252 suffix=@suffix@
21253
21254 Name: @PACKAGE_NAME@
21255 Description: @PACKAGE_DESCRIPTION@
21256 Version: @PACKAGE_VERSION@
21257 Requires: @PACKAGE_REQUIRES@
21258 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
21259 Cflags: -I\${includedir} @CPPFLAGS@
21260 AXEOF
21261 fi # DONE generate $pkgconfig_generate.in
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
21263 $as_echo "$as_me: creating $pkgconfig_generate" >&6;}
21264 cat >conftest.sed <<AXEOF
21265 s|@prefix@|${pkgconfig_prefix}|
21266 s|@exec_prefix@|${pkgconfig_execprefix}|
21267 s|@bindir@|${pkgconfig_bindir}|
21268 s|@libdir@|${pkgconfig_libdir}|
21269 s|@datarootdir@|${pkgconfig_datarootdir}|
21270 s|@datadir@|${pkgconfig_datadir}|
21271 s|@sysconfdir@|${pkgconfig_sysconfdir}|
21272 s|@includedir@|${pkgconfig_includedir}|
21273 s|@suffix@|${pkgconfig_suffix}|
21274 s|@PACKAGE@|${pkgconfig_package}|
21275 s|@PACKAGE_NAME@|${pkgconfig_libname}|
21276 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
21277 s|@PACKAGE_VERSION@|${pkgconfig_version}|
21278 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
21279 s|@LIBS@|${pkgconfig_libs}|
21280 s|@LDFLAGS@|${pkgconfig_ldflags}|
21281 s|@CPPFLAGS@|${pkgconfig_cppflags}|
21282 AXEOF
21283 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_generate
21284 if test ! -s $pkgconfig_generate ; then
21285     as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
21286 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
21287 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
21289 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
21290 cat >conftest.sed <<AXEOF
21291 s|@prefix@|${pkgconfig_prefix}|
21292 s|@exec_prefix@|${pkgconfig_execprefix}|
21293 s|@bindir@|${pkgconfig_bindir}|
21294 s|@libdir@|${pkgconfig_src_libdir}|
21295 s|@datarootdir@|${pkgconfig_datarootdir}|
21296 s|@datadir@|${pkgconfig_datadir}|
21297 s|@sysconfdir@|${pkgconfig_sysconfdir}|
21298 s|@includedir@|${pkgconfig_src_headers}|
21299 s|@suffix@|${pkgconfig_suffix}|
21300 s|@PACKAGE@|${pkgconfig_package}|
21301 s|@PACKAGE_NAME@|${pkgconfig_libname}|
21302 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
21303 s|@PACKAGE_VERSION@|${pkgconfig_version}|
21304 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
21305 s|@LIBS@|${pkgconfig_libs}|
21306 s|@LDFLAGS@|${pkgconfig_ldflags}|
21307 s|@CPPFLAGS@|${pkgconfig_cppflags}|
21308 AXEOF
21309 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
21310 if test ! -s $pkgconfig_uninstalled ; then
21311     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
21312 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
21313            pkgconfig_requires_add=`echo ${pkgconfig_requires}`
21314 if test ".$pkgconfig_requires_add" != "." ; then
21315            pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
21316     else   pkgconfig_requires_add=":" ; fi
21317 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
21319 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
21320 cat >conftest.sed <<AXEOF
21321 s|@prefix@|\"${pkgconfig_prefix}\"|
21322 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
21323 s|@bindir@|\"${pkgconfig_bindir}\"|
21324 s|@libdir@|\"${pkgconfig_src_libdir}\"|
21325 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
21326 s|@datadir@|\"${pkgconfig_datadir}\"|
21327 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
21328 s|@includedir@|\"${pkgconfig_src_headers}\"|
21329 s|@suffix@|\"${pkgconfig_suffix}\"|
21330 s|@PACKAGE@|\"${pkgconfig_package}\"|
21331 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
21332 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
21333 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
21334 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
21335 s|@LIBS@|\"${pkgconfig_libs}\"|
21336 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
21337 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
21338 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
21339 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
21340 s>Version: *>\\;\\; --modversion|--version) echo >
21341 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
21342 s>Libs: *>\\;\\; --libs) echo >
21343 s>Cflags: *>\\;\\; --cflags) echo >
21344 /--libs)/a\\
21345        $pkgconfig_requires_add
21346 /--cflags)/a\\
21347        $pkgconfig_requires_add\\
21348 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
21349 ;; --uninstalled) exit 0 \\
21350 ;; *) ;; esac done
21351 AXEOF
21352 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_uninstalled
21353 if test ! -s $pkgconfig_uninstalled ; then
21354     as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
21355 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
21356  ;;
21357
21358   esac
21359 done # for ac_tag
21360
21361
21362 as_fn_exit 0
21363 _ACEOF
21364 ac_clean_files=$ac_clean_files_save
21365
21366 test $ac_write_fail = 0 ||
21367   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21368
21369
21370 # configure is writing to config.log, and then calls config.status.
21371 # config.status does its own redirection, appending to config.log.
21372 # Unfortunately, on DOS this fails, as config.log is still kept open
21373 # by configure, so config.status won't be able to write to it; its
21374 # output is simply discarded.  So we exec the FD to /dev/null,
21375 # effectively closing config.log, so it can be properly (re)opened and
21376 # appended to by config.status.  When coming back to configure, we
21377 # need to make the FD available again.
21378 if test "$no_create" != yes; then
21379   ac_cs_success=:
21380   ac_config_status_args=
21381   test "$silent" = yes &&
21382     ac_config_status_args="$ac_config_status_args --quiet"
21383   exec 5>/dev/null
21384   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21385   exec 5>>config.log
21386   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21387   # would make configure fail if this is the last instruction.
21388   $ac_cs_success || as_fn_exit 1
21389 fi
21390 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21391   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21392 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21393 fi
21394