fix build dependency
[mech_eap.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mech_eap 0.9.1.
4 #
5 # Report bugs to <bugs@project-moonshot.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: bugs@project-moonshot.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='mech_eap'
592 PACKAGE_TARNAME='mech_eap'
593 PACKAGE_VERSION='0.9.1'
594 PACKAGE_STRING='mech_eap 0.9.1'
595 PACKAGE_BUGREPORT='bugs@project-moonshot.org'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBMOONSHOT_FALSE
638 LIBMOONSHOT_TRUE
639 LIBMOONSHOT_LIBS
640 LIBMOONSHOT_LDFLAGS
641 LIBMOONSHOT_CFLAGS
642 JANSSON_LIBS
643 JANSSON_LDFLAGS
644 JANSSON_CFLAGS
645 RADSEC_LIBS
646 RADSEC_LDFLAGS
647 RADSEC_CFLAGS
648 OPENSSL_LIBS
649 OPENSSL_LDFLAGS
650 OPENSSL_CFLAGS
651 SHIBSP_LIBS
652 SHIBSP_LDFLAGS
653 SHIBSP_CXXFLAGS
654 SHIBRESOLVER_FALSE
655 SHIBRESOLVER_TRUE
656 SHIBRESOLVER_LIBS
657 SHIBRESOLVER_LDFLAGS
658 SHIBRESOLVER_CXXFLAGS
659 OPENSAML_FALSE
660 OPENSAML_TRUE
661 OPENSAML_LIBS
662 OPENSAML_LDFLAGS
663 OPENSAML_CXXFLAGS
664 HEIMDAL_FALSE
665 HEIMDAL_TRUE
666 KRB5_LIBS
667 KRB5_LDFLAGS
668 KRB5_CFLAGS
669 COMPILE_ET
670 TARGET_WINDOWS_FALSE
671 TARGET_WINDOWS_TRUE
672 TARGET_LDFLAGS
673 TARGET_CFLAGS
674 GSSEAP_ENABLE_ACCEPTOR_FALSE
675 GSSEAP_ENABLE_ACCEPTOR_TRUE
676 GSSEAP_ENABLE_REAUTH_FALSE
677 GSSEAP_ENABLE_REAUTH_TRUE
678 LIBOBJS
679 CXXCPP
680 am__fastdepCXX_FALSE
681 am__fastdepCXX_TRUE
682 CXXDEPMODE
683 ac_ct_CXX
684 CXXFLAGS
685 CXX
686 OTOOL64
687 OTOOL
688 LIPO
689 NMEDIT
690 DSYMUTIL
691 MANIFEST_TOOL
692 RANLIB
693 ac_ct_AR
694 AR
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 SED
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 LIBTOOL
711 OBJDUMP
712 DLLTOOL
713 AS
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 AM_BACKSLASH
718 AM_DEFAULT_VERBOSITY
719 AM_DEFAULT_V
720 AM_V
721 am__fastdepCC_FALSE
722 am__fastdepCC_TRUE
723 CCDEPMODE
724 am__nodep
725 AMDEPBACKSLASH
726 AMDEP_FALSE
727 AMDEP_TRUE
728 am__quote
729 am__include
730 DEPDIR
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 EGREP
755 GREP
756 CPP
757 OBJEXT
758 EXEEXT
759 ac_ct_CC
760 CPPFLAGS
761 LDFLAGS
762 CFLAGS
763 CC
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 enable_dependency_tracking
806 enable_silent_rules
807 enable_maintainer_mode
808 enable_static
809 enable_shared
810 with_pic
811 enable_fast_install
812 with_gnu_ld
813 with_sysroot
814 enable_libtool_lock
815 enable_reauth
816 enable_acceptor
817 with_krb5
818 with_opensaml
819 with_shibresolver
820 with_shibsp
821 with_openssl
822 with_radsec
823 with_jansson
824 with_libmoonshot
825 '
826       ac_precious_vars='build_alias
827 host_alias
828 target_alias
829 CC
830 CFLAGS
831 LDFLAGS
832 LIBS
833 CPPFLAGS
834 CPP
835 CXX
836 CXXFLAGS
837 CCC
838 CXXCPP'
839
840
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
862
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
888
889 ac_prev=
890 ac_dashdash=
891 for ac_option
892 do
893   # If the previous option needs an argument, assign it.
894   if test -n "$ac_prev"; then
895     eval $ac_prev=\$ac_option
896     ac_prev=
897     continue
898   fi
899
900   case $ac_option in
901   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902   *=)   ac_optarg= ;;
903   *)    ac_optarg=yes ;;
904   esac
905
906   # Accept the important Cygnus configure options, so we can diagnose typos.
907
908   case $ac_dashdash$ac_option in
909   --)
910     ac_dashdash=yes ;;
911
912   -bindir | --bindir | --bindi | --bind | --bin | --bi)
913     ac_prev=bindir ;;
914   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915     bindir=$ac_optarg ;;
916
917   -build | --build | --buil | --bui | --bu)
918     ac_prev=build_alias ;;
919   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920     build_alias=$ac_optarg ;;
921
922   -cache-file | --cache-file | --cache-fil | --cache-fi \
923   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924     ac_prev=cache_file ;;
925   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927     cache_file=$ac_optarg ;;
928
929   --config-cache | -C)
930     cache_file=config.cache ;;
931
932   -datadir | --datadir | --datadi | --datad)
933     ac_prev=datadir ;;
934   -datadir=* | --datadir=* | --datadi=* | --datad=*)
935     datadir=$ac_optarg ;;
936
937   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938   | --dataroo | --dataro | --datar)
939     ac_prev=datarootdir ;;
940   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942     datarootdir=$ac_optarg ;;
943
944   -disable-* | --disable-*)
945     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946     # Reject names that are not valid shell variable names.
947     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948       as_fn_error $? "invalid feature name: $ac_useropt"
949     ac_useropt_orig=$ac_useropt
950     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951     case $ac_user_opts in
952       *"
953 "enable_$ac_useropt"
954 "*) ;;
955       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956          ac_unrecognized_sep=', ';;
957     esac
958     eval enable_$ac_useropt=no ;;
959
960   -docdir | --docdir | --docdi | --doc | --do)
961     ac_prev=docdir ;;
962   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963     docdir=$ac_optarg ;;
964
965   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966     ac_prev=dvidir ;;
967   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968     dvidir=$ac_optarg ;;
969
970   -enable-* | --enable-*)
971     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972     # Reject names that are not valid shell variable names.
973     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974       as_fn_error $? "invalid feature name: $ac_useropt"
975     ac_useropt_orig=$ac_useropt
976     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977     case $ac_user_opts in
978       *"
979 "enable_$ac_useropt"
980 "*) ;;
981       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982          ac_unrecognized_sep=', ';;
983     esac
984     eval enable_$ac_useropt=\$ac_optarg ;;
985
986   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988   | --exec | --exe | --ex)
989     ac_prev=exec_prefix ;;
990   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992   | --exec=* | --exe=* | --ex=*)
993     exec_prefix=$ac_optarg ;;
994
995   -gas | --gas | --ga | --g)
996     # Obsolete; use --with-gas.
997     with_gas=yes ;;
998
999   -help | --help | --hel | --he | -h)
1000     ac_init_help=long ;;
1001   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002     ac_init_help=recursive ;;
1003   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004     ac_init_help=short ;;
1005
1006   -host | --host | --hos | --ho)
1007     ac_prev=host_alias ;;
1008   -host=* | --host=* | --hos=* | --ho=*)
1009     host_alias=$ac_optarg ;;
1010
1011   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012     ac_prev=htmldir ;;
1013   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014   | --ht=*)
1015     htmldir=$ac_optarg ;;
1016
1017   -includedir | --includedir | --includedi | --included | --include \
1018   | --includ | --inclu | --incl | --inc)
1019     ac_prev=includedir ;;
1020   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021   | --includ=* | --inclu=* | --incl=* | --inc=*)
1022     includedir=$ac_optarg ;;
1023
1024   -infodir | --infodir | --infodi | --infod | --info | --inf)
1025     ac_prev=infodir ;;
1026   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027     infodir=$ac_optarg ;;
1028
1029   -libdir | --libdir | --libdi | --libd)
1030     ac_prev=libdir ;;
1031   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032     libdir=$ac_optarg ;;
1033
1034   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035   | --libexe | --libex | --libe)
1036     ac_prev=libexecdir ;;
1037   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038   | --libexe=* | --libex=* | --libe=*)
1039     libexecdir=$ac_optarg ;;
1040
1041   -localedir | --localedir | --localedi | --localed | --locale)
1042     ac_prev=localedir ;;
1043   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044     localedir=$ac_optarg ;;
1045
1046   -localstatedir | --localstatedir | --localstatedi | --localstated \
1047   | --localstate | --localstat | --localsta | --localst | --locals)
1048     ac_prev=localstatedir ;;
1049   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051     localstatedir=$ac_optarg ;;
1052
1053   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054     ac_prev=mandir ;;
1055   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056     mandir=$ac_optarg ;;
1057
1058   -nfp | --nfp | --nf)
1059     # Obsolete; use --without-fp.
1060     with_fp=no ;;
1061
1062   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063   | --no-cr | --no-c | -n)
1064     no_create=yes ;;
1065
1066   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068     no_recursion=yes ;;
1069
1070   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072   | --oldin | --oldi | --old | --ol | --o)
1073     ac_prev=oldincludedir ;;
1074   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077     oldincludedir=$ac_optarg ;;
1078
1079   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080     ac_prev=prefix ;;
1081   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082     prefix=$ac_optarg ;;
1083
1084   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085   | --program-pre | --program-pr | --program-p)
1086     ac_prev=program_prefix ;;
1087   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089     program_prefix=$ac_optarg ;;
1090
1091   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092   | --program-suf | --program-su | --program-s)
1093     ac_prev=program_suffix ;;
1094   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096     program_suffix=$ac_optarg ;;
1097
1098   -program-transform-name | --program-transform-name \
1099   | --program-transform-nam | --program-transform-na \
1100   | --program-transform-n | --program-transform- \
1101   | --program-transform | --program-transfor \
1102   | --program-transfo | --program-transf \
1103   | --program-trans | --program-tran \
1104   | --progr-tra | --program-tr | --program-t)
1105     ac_prev=program_transform_name ;;
1106   -program-transform-name=* | --program-transform-name=* \
1107   | --program-transform-nam=* | --program-transform-na=* \
1108   | --program-transform-n=* | --program-transform-=* \
1109   | --program-transform=* | --program-transfor=* \
1110   | --program-transfo=* | --program-transf=* \
1111   | --program-trans=* | --program-tran=* \
1112   | --progr-tra=* | --program-tr=* | --program-t=*)
1113     program_transform_name=$ac_optarg ;;
1114
1115   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116     ac_prev=pdfdir ;;
1117   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118     pdfdir=$ac_optarg ;;
1119
1120   -psdir | --psdir | --psdi | --psd | --ps)
1121     ac_prev=psdir ;;
1122   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123     psdir=$ac_optarg ;;
1124
1125   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126   | -silent | --silent | --silen | --sile | --sil)
1127     silent=yes ;;
1128
1129   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130     ac_prev=sbindir ;;
1131   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132   | --sbi=* | --sb=*)
1133     sbindir=$ac_optarg ;;
1134
1135   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137   | --sharedst | --shareds | --shared | --share | --shar \
1138   | --sha | --sh)
1139     ac_prev=sharedstatedir ;;
1140   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143   | --sha=* | --sh=*)
1144     sharedstatedir=$ac_optarg ;;
1145
1146   -site | --site | --sit)
1147     ac_prev=site ;;
1148   -site=* | --site=* | --sit=*)
1149     site=$ac_optarg ;;
1150
1151   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152     ac_prev=srcdir ;;
1153   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154     srcdir=$ac_optarg ;;
1155
1156   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157   | --syscon | --sysco | --sysc | --sys | --sy)
1158     ac_prev=sysconfdir ;;
1159   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161     sysconfdir=$ac_optarg ;;
1162
1163   -target | --target | --targe | --targ | --tar | --ta | --t)
1164     ac_prev=target_alias ;;
1165   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166     target_alias=$ac_optarg ;;
1167
1168   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169     verbose=yes ;;
1170
1171   -version | --version | --versio | --versi | --vers | -V)
1172     ac_init_version=: ;;
1173
1174   -with-* | --with-*)
1175     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178       as_fn_error $? "invalid package name: $ac_useropt"
1179     ac_useropt_orig=$ac_useropt
1180     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181     case $ac_user_opts in
1182       *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186          ac_unrecognized_sep=', ';;
1187     esac
1188     eval with_$ac_useropt=\$ac_optarg ;;
1189
1190   -without-* | --without-*)
1191     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194       as_fn_error $? "invalid package name: $ac_useropt"
1195     ac_useropt_orig=$ac_useropt
1196     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197     case $ac_user_opts in
1198       *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202          ac_unrecognized_sep=', ';;
1203     esac
1204     eval with_$ac_useropt=no ;;
1205
1206   --x)
1207     # Obsolete; use --with-x.
1208     with_x=yes ;;
1209
1210   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211   | --x-incl | --x-inc | --x-in | --x-i)
1212     ac_prev=x_includes ;;
1213   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215     x_includes=$ac_optarg ;;
1216
1217   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219     ac_prev=x_libraries ;;
1220   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222     x_libraries=$ac_optarg ;;
1223
1224   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1226     ;;
1227
1228   *=*)
1229     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230     # Reject names that are not valid shell variable names.
1231     case $ac_envvar in #(
1232       '' | [0-9]* | *[!_$as_cr_alnum]* )
1233       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234     esac
1235     eval $ac_envvar=\$ac_optarg
1236     export $ac_envvar ;;
1237
1238   *)
1239     # FIXME: should be removed in autoconf 3.0.
1240     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244     ;;
1245
1246   esac
1247 done
1248
1249 if test -n "$ac_prev"; then
1250   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251   as_fn_error $? "missing argument to $ac_option"
1252 fi
1253
1254 if test -n "$ac_unrecognized_opts"; then
1255   case $enable_option_checking in
1256     no) ;;
1257     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259   esac
1260 fi
1261
1262 # Check all directory arguments for consistency.
1263 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264                 datadir sysconfdir sharedstatedir localstatedir includedir \
1265                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266                 libdir localedir mandir
1267 do
1268   eval ac_val=\$$ac_var
1269   # Remove trailing slashes.
1270   case $ac_val in
1271     */ )
1272       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273       eval $ac_var=\$ac_val;;
1274   esac
1275   # Be sure to have absolute directory names.
1276   case $ac_val in
1277     [\\/$]* | ?:[\\/]* )  continue;;
1278     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279   esac
1280   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1282
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1289
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292   if test "x$build_alias" = x; then
1293     cross_compiling=maybe
1294   elif test "x$build_alias" != "x$host_alias"; then
1295     cross_compiling=yes
1296   fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308   as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310   as_fn_error $? "pwd does not report name of working directory"
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315   ac_srcdir_defaulted=yes
1316   # Try the directory containing this script, then the parent directory.
1317   ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319          X"$as_myself" : 'X\(//\)[^/]' \| \
1320          X"$as_myself" : 'X\(//\)$' \| \
1321          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)[^/].*/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\/\)$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\).*/{
1336             s//\1/
1337             q
1338           }
1339           s/.*/./; q'`
1340   srcdir=$ac_confdir
1341   if test ! -r "$srcdir/$ac_unique_file"; then
1342     srcdir=..
1343   fi
1344 else
1345   ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 fi
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354         pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357   srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367   eval ac_env_${ac_var}_value=\$${ac_var}
1368   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376   # Omit some internal or obsolete options to make the list less imposing.
1377   # This message is too long to be a string in the A/UX 3.1 sh.
1378   cat <<_ACEOF
1379 \`configure' configures mech_eap 0.9.1 to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE.  See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389   -h, --help              display this help and exit
1390       --help=short        display options specific to this package
1391       --help=recursive    display the short help of all the included packages
1392   -V, --version           display version information and exit
1393   -q, --quiet, --silent   do not print \`checking ...' messages
1394       --cache-file=FILE   cache test results in FILE [disabled]
1395   -C, --config-cache      alias for \`--cache-file=config.cache'
1396   -n, --no-create         do not create output files
1397       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1398
1399 Installation directories:
1400   --prefix=PREFIX         install architecture-independent files in PREFIX
1401                           [$ac_default_prefix]
1402   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1403                           [PREFIX]
1404
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413   --bindir=DIR            user executables [EPREFIX/bin]
1414   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1415   --libexecdir=DIR        program executables [EPREFIX/libexec]
1416   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1417   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1418   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1419   --libdir=DIR            object code libraries [EPREFIX/lib]
1420   --includedir=DIR        C header files [PREFIX/include]
1421   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1422   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1423   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1424   --infodir=DIR           info documentation [DATAROOTDIR/info]
1425   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1426   --mandir=DIR            man documentation [DATAROOTDIR/man]
1427   --docdir=DIR            documentation root [DATAROOTDIR/doc/mech_eap]
1428   --htmldir=DIR           html documentation [DOCDIR]
1429   --dvidir=DIR            dvi documentation [DOCDIR]
1430   --pdfdir=DIR            pdf documentation [DOCDIR]
1431   --psdir=DIR             ps documentation [DOCDIR]
1432 _ACEOF
1433
1434   cat <<\_ACEOF
1435
1436 Program names:
1437   --program-prefix=PREFIX            prepend PREFIX to installed program names
1438   --program-suffix=SUFFIX            append SUFFIX to installed program names
1439   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1440
1441 System types:
1442   --build=BUILD     configure for building on BUILD [guessed]
1443   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448   case $ac_init_help in
1449      short | recursive ) echo "Configuration of mech_eap 0.9.1:";;
1450    esac
1451   cat <<\_ACEOF
1452
1453 Optional Features:
1454   --disable-option-checking  ignore unrecognized --enable/--with options
1455   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1456   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1457   --enable-dependency-tracking
1458                           do not reject slow dependency extractors
1459   --disable-dependency-tracking
1460                           speeds up one-time build
1461   --enable-silent-rules   less verbose build output (undo: "make V=1")
1462   --disable-silent-rules  verbose build output (undo: "make V=0")
1463   --enable-maintainer-mode
1464                           enable make rules and dependencies not useful (and
1465                           sometimes confusing) to the casual installer
1466   --enable-static[=PKGS]  build static libraries [default=no]
1467   --enable-shared[=PKGS]  build shared libraries [default=yes]
1468   --enable-fast-install[=PKGS]
1469                           optimize for fast installation [default=yes]
1470   --disable-libtool-lock  avoid locking (might break parallel builds)
1471   --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no
1472   --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes
1473
1474 Optional Packages:
1475   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1476   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1477   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1478                           both]
1479   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1480   --with-sysroot=DIR Search for dependent libraries within DIR
1481                         (or the compiler's sysroot if not specified).
1482   --with-krb5             Use krb5 (in specified installation directory)
1483   --with-opensaml         Use OpenSAML (in specified installation directory)
1484   --with-shibresolver     Use Shibboleth resolver (in specified installation
1485                           directory)
1486   --with-shibsp           Use shibspboleth (in specified installation
1487                           directory)
1488   --with-openssl          Use OpenSSL (in specified installation directory)
1489   --with-radsec           Use radsec (in specified installation directory)
1490   --with-jansson          Use jansson (in specified installation directory)
1491   --with-libmoonshot      Use libmoonshot (in specified installation
1492                           directory)
1493
1494 Some influential environment variables:
1495   CC          C compiler command
1496   CFLAGS      C compiler flags
1497   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1498               nonstandard directory <lib dir>
1499   LIBS        libraries to pass to the linker, e.g. -l<library>
1500   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501               you have headers in a nonstandard directory <include dir>
1502   CPP         C preprocessor
1503   CXX         C++ compiler command
1504   CXXFLAGS    C++ compiler flags
1505   CXXCPP      C++ preprocessor
1506
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1509
1510 Report bugs to <bugs@project-moonshot.org>.
1511 _ACEOF
1512 ac_status=$?
1513 fi
1514
1515 if test "$ac_init_help" = "recursive"; then
1516   # If there are subdirs, report their specific --help.
1517   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518     test -d "$ac_dir" ||
1519       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520       continue
1521     ac_builddir=.
1522
1523 case "$ac_dir" in
1524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *)
1526   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527   # A ".." for each directory in $ac_dir_suffix.
1528   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529   case $ac_top_builddir_sub in
1530   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532   esac ;;
1533 esac
1534 ac_abs_top_builddir=$ac_pwd
1535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir=$ac_top_build_prefix
1538
1539 case $srcdir in
1540   .)  # We are building in place.
1541     ac_srcdir=.
1542     ac_top_srcdir=$ac_top_builddir_sub
1543     ac_abs_top_srcdir=$ac_pwd ;;
1544   [\\/]* | ?:[\\/]* )  # Absolute name.
1545     ac_srcdir=$srcdir$ac_dir_suffix;
1546     ac_top_srcdir=$srcdir
1547     ac_abs_top_srcdir=$srcdir ;;
1548   *) # Relative name.
1549     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550     ac_top_srcdir=$ac_top_build_prefix$srcdir
1551     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 esac
1553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554
1555     cd "$ac_dir" || { ac_status=$?; continue; }
1556     # Check for guested configure.
1557     if test -f "$ac_srcdir/configure.gnu"; then
1558       echo &&
1559       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560     elif test -f "$ac_srcdir/configure"; then
1561       echo &&
1562       $SHELL "$ac_srcdir/configure" --help=recursive
1563     else
1564       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565     fi || ac_status=$?
1566     cd "$ac_pwd" || { ac_status=$?; break; }
1567   done
1568 fi
1569
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1572   cat <<\_ACEOF
1573 mech_eap configure 0.9.1
1574 generated by GNU Autoconf 2.69
1575
1576 Copyright (C) 2012 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1579 _ACEOF
1580   exit
1581 fi
1582
1583 ## ------------------------ ##
1584 ## Autoconf initialization. ##
1585 ## ------------------------ ##
1586
1587 # ac_fn_c_try_compile LINENO
1588 # --------------------------
1589 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_compile ()
1591 {
1592   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593   rm -f conftest.$ac_objext
1594   if { { ac_try="$ac_compile"
1595 case "(($ac_try" in
1596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597   *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601   (eval "$ac_compile") 2>conftest.err
1602   ac_status=$?
1603   if test -s conftest.err; then
1604     grep -v '^ *+' conftest.err >conftest.er1
1605     cat conftest.er1 >&5
1606     mv -f conftest.er1 conftest.err
1607   fi
1608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609   test $ac_status = 0; } && {
1610          test -z "$ac_c_werror_flag" ||
1611          test ! -s conftest.err
1612        } && test -s conftest.$ac_objext; then :
1613   ac_retval=0
1614 else
1615   $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618         ac_retval=1
1619 fi
1620   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621   as_fn_set_status $ac_retval
1622
1623 } # ac_fn_c_try_compile
1624
1625 # ac_fn_c_try_cpp LINENO
1626 # ----------------------
1627 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_cpp ()
1629 {
1630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631   if { { ac_try="$ac_cpp conftest.$ac_ext"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639   ac_status=$?
1640   if test -s conftest.err; then
1641     grep -v '^ *+' conftest.err >conftest.er1
1642     cat conftest.er1 >&5
1643     mv -f conftest.er1 conftest.err
1644   fi
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } > conftest.i && {
1647          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648          test ! -s conftest.err
1649        }; then :
1650   ac_retval=0
1651 else
1652   $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655     ac_retval=1
1656 fi
1657   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658   as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_cpp
1661
1662 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1663 # -------------------------------------------------------
1664 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1665 # the include files in INCLUDES and setting the cache variable VAR
1666 # accordingly.
1667 ac_fn_c_check_header_mongrel ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   if eval \${$3+:} false; then :
1671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \${$3+:} false; then :
1674   $as_echo_n "(cached) " >&6
1675 fi
1676 eval ac_res=\$$3
1677                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 else
1680   # Is the header compilable?
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1682 $as_echo_n "checking $2 usability... " >&6; }
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h.  */
1685 $4
1686 #include <$2>
1687 _ACEOF
1688 if ac_fn_c_try_compile "$LINENO"; then :
1689   ac_header_compiler=yes
1690 else
1691   ac_header_compiler=no
1692 fi
1693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1695 $as_echo "$ac_header_compiler" >&6; }
1696
1697 # Is the header present?
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1699 $as_echo_n "checking $2 presence... " >&6; }
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h.  */
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_cpp "$LINENO"; then :
1705   ac_header_preproc=yes
1706 else
1707   ac_header_preproc=no
1708 fi
1709 rm -f conftest.err conftest.i conftest.$ac_ext
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1711 $as_echo "$ac_header_preproc" >&6; }
1712
1713 # So?  What about this header?
1714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1715   yes:no: )
1716     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1717 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1718     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720     ;;
1721   no:yes:* )
1722     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1723 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1724     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1725 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1726     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1727 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1728     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1729 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1731 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1732 ( $as_echo "## ---------------------------------------- ##
1733 ## Report this to bugs@project-moonshot.org ##
1734 ## ---------------------------------------- ##"
1735      ) | sed "s/^/$as_me: WARNING:     /" >&2
1736     ;;
1737 esac
1738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741   $as_echo_n "(cached) " >&6
1742 else
1743   eval "$3=\$ac_header_compiler"
1744 fi
1745 eval ac_res=\$$3
1746                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 fi
1749   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750
1751 } # ac_fn_c_check_header_mongrel
1752
1753 # ac_fn_c_try_run LINENO
1754 # ----------------------
1755 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1756 # that executables *can* be run.
1757 ac_fn_c_try_run ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   if { { ac_try="$ac_link"
1761 case "(($ac_try" in
1762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763   *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767   (eval "$ac_link") 2>&5
1768   ac_status=$?
1769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1771   { { case "(($ac_try" in
1772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773   *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777   (eval "$ac_try") 2>&5
1778   ac_status=$?
1779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780   test $ac_status = 0; }; }; then :
1781   ac_retval=0
1782 else
1783   $as_echo "$as_me: program exited with status $ac_status" >&5
1784        $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787        ac_retval=$ac_status
1788 fi
1789   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791   as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_run
1794
1795 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists and can be compiled using the include files in
1798 # INCLUDES, setting the cache variable VAR accordingly.
1799 ac_fn_c_check_header_compile ()
1800 {
1801   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805   $as_echo_n "(cached) " >&6
1806 else
1807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h.  */
1809 $4
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813   eval "$3=yes"
1814 else
1815   eval "$3=no"
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 fi
1819 eval ac_res=\$$3
1820                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824 } # ac_fn_c_check_header_compile
1825
1826 # ac_fn_c_try_link LINENO
1827 # -----------------------
1828 # Try to link conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_c_try_link ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   rm -f conftest.$ac_objext conftest$ac_exeext
1833   if { { ac_try="$ac_link"
1834 case "(($ac_try" in
1835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836   *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840   (eval "$ac_link") 2>conftest.err
1841   ac_status=$?
1842   if test -s conftest.err; then
1843     grep -v '^ *+' conftest.err >conftest.er1
1844     cat conftest.er1 >&5
1845     mv -f conftest.er1 conftest.err
1846   fi
1847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; } && {
1849          test -z "$ac_c_werror_flag" ||
1850          test ! -s conftest.err
1851        } && test -s conftest$ac_exeext && {
1852          test "$cross_compiling" = yes ||
1853          test -x conftest$ac_exeext
1854        }; then :
1855   ac_retval=0
1856 else
1857   $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1859
1860         ac_retval=1
1861 fi
1862   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1863   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1864   # interfere with the next link command; also delete a directory that is
1865   # left behind by Apple's compiler.  We do this before executing the actions.
1866   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868   as_fn_set_status $ac_retval
1869
1870 } # ac_fn_c_try_link
1871
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881   $as_echo_n "(cached) " >&6
1882 else
1883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h.  */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1887 #define $2 innocuous_$2
1888
1889 /* System header to define __stub macros and hopefully few prototypes,
1890     which can conflict with char $2 (); below.
1891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892     <limits.h> exists even on freestanding compilers.  */
1893
1894 #ifdef __STDC__
1895 # include <limits.h>
1896 #else
1897 # include <assert.h>
1898 #endif
1899
1900 #undef $2
1901
1902 /* Override any GCC internal prototype to avoid an error.
1903    Use char because int might match the return type of a GCC
1904    builtin and then its argument prototype would still apply.  */
1905 #ifdef __cplusplus
1906 extern "C"
1907 #endif
1908 char $2 ();
1909 /* The GNU C library defines this for functions which it implements
1910     to always fail with ENOSYS.  Some functions are actually named
1911     something starting with __ and the normal name is an alias.  */
1912 #if defined __stub_$2 || defined __stub___$2
1913 choke me
1914 #endif
1915
1916 int
1917 main ()
1918 {
1919 return $2 ();
1920   ;
1921   return 0;
1922 }
1923 _ACEOF
1924 if ac_fn_c_try_link "$LINENO"; then :
1925   eval "$3=yes"
1926 else
1927   eval "$3=no"
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext \
1930     conftest$ac_exeext conftest.$ac_ext
1931 fi
1932 eval ac_res=\$$3
1933                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937 } # ac_fn_c_check_func
1938
1939 # ac_fn_cxx_try_compile LINENO
1940 # ----------------------------
1941 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_cxx_try_compile ()
1943 {
1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945   rm -f conftest.$ac_objext
1946   if { { ac_try="$ac_compile"
1947 case "(($ac_try" in
1948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949   *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953   (eval "$ac_compile") 2>conftest.err
1954   ac_status=$?
1955   if test -s conftest.err; then
1956     grep -v '^ *+' conftest.err >conftest.er1
1957     cat conftest.er1 >&5
1958     mv -f conftest.er1 conftest.err
1959   fi
1960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961   test $ac_status = 0; } && {
1962          test -z "$ac_cxx_werror_flag" ||
1963          test ! -s conftest.err
1964        } && test -s conftest.$ac_objext; then :
1965   ac_retval=0
1966 else
1967   $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970         ac_retval=1
1971 fi
1972   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973   as_fn_set_status $ac_retval
1974
1975 } # ac_fn_cxx_try_compile
1976
1977 # ac_fn_cxx_try_cpp LINENO
1978 # ------------------------
1979 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_cxx_try_cpp ()
1981 {
1982   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983   if { { ac_try="$ac_cpp conftest.$ac_ext"
1984 case "(($ac_try" in
1985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986   *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1991   ac_status=$?
1992   if test -s conftest.err; then
1993     grep -v '^ *+' conftest.err >conftest.er1
1994     cat conftest.er1 >&5
1995     mv -f conftest.er1 conftest.err
1996   fi
1997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998   test $ac_status = 0; } > conftest.i && {
1999          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2000          test ! -s conftest.err
2001        }; then :
2002   ac_retval=0
2003 else
2004   $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007     ac_retval=1
2008 fi
2009   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010   as_fn_set_status $ac_retval
2011
2012 } # ac_fn_cxx_try_cpp
2013
2014 # ac_fn_cxx_try_link LINENO
2015 # -------------------------
2016 # Try to link conftest.$ac_ext, and return whether this succeeded.
2017 ac_fn_cxx_try_link ()
2018 {
2019   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020   rm -f conftest.$ac_objext conftest$ac_exeext
2021   if { { ac_try="$ac_link"
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_link") 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; } && {
2037          test -z "$ac_cxx_werror_flag" ||
2038          test ! -s conftest.err
2039        } && test -s conftest$ac_exeext && {
2040          test "$cross_compiling" = yes ||
2041          test -x conftest$ac_exeext
2042        }; then :
2043   ac_retval=0
2044 else
2045   $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048         ac_retval=1
2049 fi
2050   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2051   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2052   # interfere with the next link command; also delete a directory that is
2053   # left behind by Apple's compiler.  We do this before executing the actions.
2054   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2055   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056   as_fn_set_status $ac_retval
2057
2058 } # ac_fn_cxx_try_link
2059 cat >config.log <<_ACEOF
2060 This file contains any messages produced by compilers while
2061 running configure, to aid debugging if configure makes a mistake.
2062
2063 It was created by mech_eap $as_me 0.9.1, which was
2064 generated by GNU Autoconf 2.69.  Invocation command line was
2065
2066   $ $0 $@
2067
2068 _ACEOF
2069 exec 5>>config.log
2070 {
2071 cat <<_ASUNAME
2072 ## --------- ##
2073 ## Platform. ##
2074 ## --------- ##
2075
2076 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2077 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2078 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2079 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2080 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2081
2082 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2083 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2084
2085 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2086 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2087 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2088 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2089 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2090 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2091 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2092
2093 _ASUNAME
2094
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098   IFS=$as_save_IFS
2099   test -z "$as_dir" && as_dir=.
2100     $as_echo "PATH: $as_dir"
2101   done
2102 IFS=$as_save_IFS
2103
2104 } >&5
2105
2106 cat >&5 <<_ACEOF
2107
2108
2109 ## ----------- ##
2110 ## Core tests. ##
2111 ## ----------- ##
2112
2113 _ACEOF
2114
2115
2116 # Keep a trace of the command line.
2117 # Strip out --no-create and --no-recursion so they do not pile up.
2118 # Strip out --silent because we don't want to record it for future runs.
2119 # Also quote any args containing shell meta-characters.
2120 # Make two passes to allow for proper duplicate-argument suppression.
2121 ac_configure_args=
2122 ac_configure_args0=
2123 ac_configure_args1=
2124 ac_must_keep_next=false
2125 for ac_pass in 1 2
2126 do
2127   for ac_arg
2128   do
2129     case $ac_arg in
2130     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2131     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2132     | -silent | --silent | --silen | --sile | --sil)
2133       continue ;;
2134     *\'*)
2135       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2136     esac
2137     case $ac_pass in
2138     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2139     2)
2140       as_fn_append ac_configure_args1 " '$ac_arg'"
2141       if test $ac_must_keep_next = true; then
2142         ac_must_keep_next=false # Got value, back to normal.
2143       else
2144         case $ac_arg in
2145           *=* | --config-cache | -C | -disable-* | --disable-* \
2146           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2147           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2148           | -with-* | --with-* | -without-* | --without-* | --x)
2149             case "$ac_configure_args0 " in
2150               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2151             esac
2152             ;;
2153           -* ) ac_must_keep_next=true ;;
2154         esac
2155       fi
2156       as_fn_append ac_configure_args " '$ac_arg'"
2157       ;;
2158     esac
2159   done
2160 done
2161 { ac_configure_args0=; unset ac_configure_args0;}
2162 { ac_configure_args1=; unset ac_configure_args1;}
2163
2164 # When interrupted or exit'd, cleanup temporary files, and complete
2165 # config.log.  We remove comments because anyway the quotes in there
2166 # would cause problems or look ugly.
2167 # WARNING: Use '\'' to represent an apostrophe within the trap.
2168 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2169 trap 'exit_status=$?
2170   # Save into config.log some information that might help in debugging.
2171   {
2172     echo
2173
2174     $as_echo "## ---------------- ##
2175 ## Cache variables. ##
2176 ## ---------------- ##"
2177     echo
2178     # The following way of writing the cache mishandles newlines in values,
2179 (
2180   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2181     eval ac_val=\$$ac_var
2182     case $ac_val in #(
2183     *${as_nl}*)
2184       case $ac_var in #(
2185       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2187       esac
2188       case $ac_var in #(
2189       _ | IFS | as_nl) ;; #(
2190       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191       *) { eval $ac_var=; unset $ac_var;} ;;
2192       esac ;;
2193     esac
2194   done
2195   (set) 2>&1 |
2196     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2197     *${as_nl}ac_space=\ *)
2198       sed -n \
2199         "s/'\''/'\''\\\\'\'''\''/g;
2200           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2201       ;; #(
2202     *)
2203       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2204       ;;
2205     esac |
2206     sort
2207 )
2208     echo
2209
2210     $as_echo "## ----------------- ##
2211 ## Output variables. ##
2212 ## ----------------- ##"
2213     echo
2214     for ac_var in $ac_subst_vars
2215     do
2216       eval ac_val=\$$ac_var
2217       case $ac_val in
2218       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219       esac
2220       $as_echo "$ac_var='\''$ac_val'\''"
2221     done | sort
2222     echo
2223
2224     if test -n "$ac_subst_files"; then
2225       $as_echo "## ------------------- ##
2226 ## File substitutions. ##
2227 ## ------------------- ##"
2228       echo
2229       for ac_var in $ac_subst_files
2230       do
2231         eval ac_val=\$$ac_var
2232         case $ac_val in
2233         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234         esac
2235         $as_echo "$ac_var='\''$ac_val'\''"
2236       done | sort
2237       echo
2238     fi
2239
2240     if test -s confdefs.h; then
2241       $as_echo "## ----------- ##
2242 ## confdefs.h. ##
2243 ## ----------- ##"
2244       echo
2245       cat confdefs.h
2246       echo
2247     fi
2248     test "$ac_signal" != 0 &&
2249       $as_echo "$as_me: caught signal $ac_signal"
2250     $as_echo "$as_me: exit $exit_status"
2251   } >&5
2252   rm -f core *.core core.conftest.* &&
2253     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2254     exit $exit_status
2255 ' 0
2256 for ac_signal in 1 2 13 15; do
2257   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2258 done
2259 ac_signal=0
2260
2261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2262 rm -f -r conftest* confdefs.h
2263
2264 $as_echo "/* confdefs.h */" > confdefs.h
2265
2266 # Predefined preprocessor variables.
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_NAME "$PACKAGE_NAME"
2270 _ACEOF
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2274 _ACEOF
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2278 _ACEOF
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_STRING "$PACKAGE_STRING"
2282 _ACEOF
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2286 _ACEOF
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_URL "$PACKAGE_URL"
2290 _ACEOF
2291
2292
2293 # Let the site file select an alternate cache file if it wants to.
2294 # Prefer an explicitly selected file to automatically selected ones.
2295 ac_site_file1=NONE
2296 ac_site_file2=NONE
2297 if test -n "$CONFIG_SITE"; then
2298   # We do not want a PATH search for config.site.
2299   case $CONFIG_SITE in #((
2300     -*)  ac_site_file1=./$CONFIG_SITE;;
2301     */*) ac_site_file1=$CONFIG_SITE;;
2302     *)   ac_site_file1=./$CONFIG_SITE;;
2303   esac
2304 elif test "x$prefix" != xNONE; then
2305   ac_site_file1=$prefix/share/config.site
2306   ac_site_file2=$prefix/etc/config.site
2307 else
2308   ac_site_file1=$ac_default_prefix/share/config.site
2309   ac_site_file2=$ac_default_prefix/etc/config.site
2310 fi
2311 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2312 do
2313   test "x$ac_site_file" = xNONE && continue
2314   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2315     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2316 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2317     sed 's/^/| /' "$ac_site_file" >&5
2318     . "$ac_site_file" \
2319       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 as_fn_error $? "failed to load site script $ac_site_file
2322 See \`config.log' for more details" "$LINENO" 5; }
2323   fi
2324 done
2325
2326 if test -r "$cache_file"; then
2327   # Some versions of bash will fail to source /dev/null (special files
2328   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2329   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2330     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331 $as_echo "$as_me: loading cache $cache_file" >&6;}
2332     case $cache_file in
2333       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334       *)                      . "./$cache_file";;
2335     esac
2336   fi
2337 else
2338   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339 $as_echo "$as_me: creating cache $cache_file" >&6;}
2340   >$cache_file
2341 fi
2342
2343 # Check that the precious variables saved in the cache have kept the same
2344 # value.
2345 ac_cache_corrupted=false
2346 for ac_var in $ac_precious_vars; do
2347   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2348   eval ac_new_set=\$ac_env_${ac_var}_set
2349   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2350   eval ac_new_val=\$ac_env_${ac_var}_value
2351   case $ac_old_set,$ac_new_set in
2352     set,)
2353       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2354 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2355       ac_cache_corrupted=: ;;
2356     ,set)
2357       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2358 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2359       ac_cache_corrupted=: ;;
2360     ,);;
2361     *)
2362       if test "x$ac_old_val" != "x$ac_new_val"; then
2363         # differences in whitespace do not lead to failure.
2364         ac_old_val_w=`echo x $ac_old_val`
2365         ac_new_val_w=`echo x $ac_new_val`
2366         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2367           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2368 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2369           ac_cache_corrupted=:
2370         else
2371           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2372 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2373           eval $ac_var=\$ac_old_val
2374         fi
2375         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2376 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2377         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2378 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2379       fi;;
2380   esac
2381   # Pass precious variables to config.status.
2382   if test "$ac_new_set" = set; then
2383     case $ac_new_val in
2384     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2385     *) ac_arg=$ac_var=$ac_new_val ;;
2386     esac
2387     case " $ac_configure_args " in
2388       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2389       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2390     esac
2391   fi
2392 done
2393 if $ac_cache_corrupted; then
2394   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2397 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2398   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2399 fi
2400 ## -------------------- ##
2401 ## Main body of script. ##
2402 ## -------------------- ##
2403
2404 ac_ext=c
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409
2410
2411
2412 ac_aux_dir=
2413 for ac_dir in build-aux "$srcdir"/build-aux; do
2414   if test -f "$ac_dir/install-sh"; then
2415     ac_aux_dir=$ac_dir
2416     ac_install_sh="$ac_aux_dir/install-sh -c"
2417     break
2418   elif test -f "$ac_dir/install.sh"; then
2419     ac_aux_dir=$ac_dir
2420     ac_install_sh="$ac_aux_dir/install.sh -c"
2421     break
2422   elif test -f "$ac_dir/shtool"; then
2423     ac_aux_dir=$ac_dir
2424     ac_install_sh="$ac_aux_dir/shtool install -c"
2425     break
2426   fi
2427 done
2428 if test -z "$ac_aux_dir"; then
2429   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2430 fi
2431
2432 # These three variables are undocumented and unsupported,
2433 # and are intended to be withdrawn in a future Autoconf release.
2434 # They can cause serious problems if a builder's source tree is in a directory
2435 # whose full name contains unusual characters.
2436 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2437 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2438 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2439
2440
2441
2442 # expand $ac_aux_dir to an absolute path
2443 am_aux_dir=`cd $ac_aux_dir && pwd`
2444
2445 ac_ext=c
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450 if test -n "$ac_tool_prefix"; then
2451   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2452 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if ${ac_cv_prog_CC+:} false; then :
2456   $as_echo_n "(cached) " >&6
2457 else
2458   if test -n "$CC"; then
2459   ac_cv_prog_CC="$CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464   IFS=$as_save_IFS
2465   test -z "$as_dir" && as_dir=.
2466     for ac_exec_ext in '' $ac_executable_extensions; do
2467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470     break 2
2471   fi
2472 done
2473   done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 CC=$ac_cv_prog_CC
2479 if test -n "$CC"; then
2480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2481 $as_echo "$CC" >&6; }
2482 else
2483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484 $as_echo "no" >&6; }
2485 fi
2486
2487
2488 fi
2489 if test -z "$ac_cv_prog_CC"; then
2490   ac_ct_CC=$CC
2491   # Extract the first word of "gcc", so it can be a program name with args.
2492 set dummy gcc; ac_word=$2
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2494 $as_echo_n "checking for $ac_word... " >&6; }
2495 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2496   $as_echo_n "(cached) " >&6
2497 else
2498   if test -n "$ac_ct_CC"; then
2499   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504   IFS=$as_save_IFS
2505   test -z "$as_dir" && as_dir=.
2506     for ac_exec_ext in '' $ac_executable_extensions; do
2507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508     ac_cv_prog_ac_ct_CC="gcc"
2509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2510     break 2
2511   fi
2512 done
2513   done
2514 IFS=$as_save_IFS
2515
2516 fi
2517 fi
2518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2519 if test -n "$ac_ct_CC"; then
2520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2521 $as_echo "$ac_ct_CC" >&6; }
2522 else
2523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2524 $as_echo "no" >&6; }
2525 fi
2526
2527   if test "x$ac_ct_CC" = x; then
2528     CC=""
2529   else
2530     case $cross_compiling:$ac_tool_warned in
2531 yes:)
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2534 ac_tool_warned=yes ;;
2535 esac
2536     CC=$ac_ct_CC
2537   fi
2538 else
2539   CC="$ac_cv_prog_CC"
2540 fi
2541
2542 if test -z "$CC"; then
2543           if test -n "$ac_tool_prefix"; then
2544     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}cc; ac_word=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if ${ac_cv_prog_CC+:} false; then :
2549   $as_echo_n "(cached) " >&6
2550 else
2551   if test -n "$CC"; then
2552   ac_cv_prog_CC="$CC" # Let the user override the test.
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557   IFS=$as_save_IFS
2558   test -z "$as_dir" && as_dir=.
2559     for ac_exec_ext in '' $ac_executable_extensions; do
2560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2561     ac_cv_prog_CC="${ac_tool_prefix}cc"
2562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563     break 2
2564   fi
2565 done
2566   done
2567 IFS=$as_save_IFS
2568
2569 fi
2570 fi
2571 CC=$ac_cv_prog_CC
2572 if test -n "$CC"; then
2573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2574 $as_echo "$CC" >&6; }
2575 else
2576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577 $as_echo "no" >&6; }
2578 fi
2579
2580
2581   fi
2582 fi
2583 if test -z "$CC"; then
2584   # Extract the first word of "cc", so it can be a program name with args.
2585 set dummy cc; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_CC+:} false; then :
2589   $as_echo_n "(cached) " >&6
2590 else
2591   if test -n "$CC"; then
2592   ac_cv_prog_CC="$CC" # Let the user override the test.
2593 else
2594   ac_prog_rejected=no
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598   IFS=$as_save_IFS
2599   test -z "$as_dir" && as_dir=.
2600     for ac_exec_ext in '' $ac_executable_extensions; do
2601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2603        ac_prog_rejected=yes
2604        continue
2605      fi
2606     ac_cv_prog_CC="cc"
2607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608     break 2
2609   fi
2610 done
2611   done
2612 IFS=$as_save_IFS
2613
2614 if test $ac_prog_rejected = yes; then
2615   # We found a bogon in the path, so make sure we never use it.
2616   set dummy $ac_cv_prog_CC
2617   shift
2618   if test $# != 0; then
2619     # We chose a different compiler from the bogus one.
2620     # However, it has the same basename, so the bogon will be chosen
2621     # first if we set CC to just the basename; use the full file name.
2622     shift
2623     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2624   fi
2625 fi
2626 fi
2627 fi
2628 CC=$ac_cv_prog_CC
2629 if test -n "$CC"; then
2630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2631 $as_echo "$CC" >&6; }
2632 else
2633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634 $as_echo "no" >&6; }
2635 fi
2636
2637
2638 fi
2639 if test -z "$CC"; then
2640   if test -n "$ac_tool_prefix"; then
2641   for ac_prog in cl.exe
2642   do
2643     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if ${ac_cv_prog_CC+:} false; then :
2648   $as_echo_n "(cached) " >&6
2649 else
2650   if test -n "$CC"; then
2651   ac_cv_prog_CC="$CC" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658     for ac_exec_ext in '' $ac_executable_extensions; do
2659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665   done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 CC=$ac_cv_prog_CC
2671 if test -n "$CC"; then
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673 $as_echo "$CC" >&6; }
2674 else
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680     test -n "$CC" && break
2681   done
2682 fi
2683 if test -z "$CC"; then
2684   ac_ct_CC=$CC
2685   for ac_prog in cl.exe
2686 do
2687   # Extract the first word of "$ac_prog", so it can be a program name with args.
2688 set dummy $ac_prog; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2692   $as_echo_n "(cached) " >&6
2693 else
2694   if test -n "$ac_ct_CC"; then
2695   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700   IFS=$as_save_IFS
2701   test -z "$as_dir" && as_dir=.
2702     for ac_exec_ext in '' $ac_executable_extensions; do
2703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704     ac_cv_prog_ac_ct_CC="$ac_prog"
2705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706     break 2
2707   fi
2708 done
2709   done
2710 IFS=$as_save_IFS
2711
2712 fi
2713 fi
2714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2715 if test -n "$ac_ct_CC"; then
2716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2717 $as_echo "$ac_ct_CC" >&6; }
2718 else
2719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2721 fi
2722
2723
2724   test -n "$ac_ct_CC" && break
2725 done
2726
2727   if test "x$ac_ct_CC" = x; then
2728     CC=""
2729   else
2730     case $cross_compiling:$ac_tool_warned in
2731 yes:)
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734 ac_tool_warned=yes ;;
2735 esac
2736     CC=$ac_ct_CC
2737   fi
2738 fi
2739
2740 fi
2741
2742
2743 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745 as_fn_error $? "no acceptable C compiler found in \$PATH
2746 See \`config.log' for more details" "$LINENO" 5; }
2747
2748 # Provide some information about the compiler.
2749 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2750 set X $ac_compile
2751 ac_compiler=$2
2752 for ac_option in --version -v -V -qversion; do
2753   { { ac_try="$ac_compiler $ac_option >&5"
2754 case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2759 $as_echo "$ac_try_echo"; } >&5
2760   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2761   ac_status=$?
2762   if test -s conftest.err; then
2763     sed '10a\
2764 ... rest of stderr output deleted ...
2765          10q' conftest.err >conftest.er1
2766     cat conftest.er1 >&5
2767   fi
2768   rm -f conftest.er1 conftest.err
2769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2770   test $ac_status = 0; }
2771 done
2772
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h.  */
2775
2776 int
2777 main ()
2778 {
2779
2780   ;
2781   return 0;
2782 }
2783 _ACEOF
2784 ac_clean_files_save=$ac_clean_files
2785 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2786 # Try to create an executable without -o first, disregard a.out.
2787 # It will help us diagnose broken compilers, and finding out an intuition
2788 # of exeext.
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2790 $as_echo_n "checking whether the C compiler works... " >&6; }
2791 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2792
2793 # The possible output files:
2794 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2795
2796 ac_rmfiles=
2797 for ac_file in $ac_files
2798 do
2799   case $ac_file in
2800     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2801     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2802   esac
2803 done
2804 rm -f $ac_rmfiles
2805
2806 if { { ac_try="$ac_link_default"
2807 case "(($ac_try" in
2808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809   *) ac_try_echo=$ac_try;;
2810 esac
2811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812 $as_echo "$ac_try_echo"; } >&5
2813   (eval "$ac_link_default") 2>&5
2814   ac_status=$?
2815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2816   test $ac_status = 0; }; then :
2817   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2818 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2819 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2820 # so that the user can short-circuit this test for compilers unknown to
2821 # Autoconf.
2822 for ac_file in $ac_files ''
2823 do
2824   test -f "$ac_file" || continue
2825   case $ac_file in
2826     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2827         ;;
2828     [ab].out )
2829         # We found the default executable, but exeext='' is most
2830         # certainly right.
2831         break;;
2832     *.* )
2833         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2834         then :; else
2835            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2836         fi
2837         # We set ac_cv_exeext here because the later test for it is not
2838         # safe: cross compilers may not add the suffix if given an `-o'
2839         # argument, so we may need to know it at that point already.
2840         # Even if this section looks crufty: it has the advantage of
2841         # actually working.
2842         break;;
2843     * )
2844         break;;
2845   esac
2846 done
2847 test "$ac_cv_exeext" = no && ac_cv_exeext=
2848
2849 else
2850   ac_file=''
2851 fi
2852 if test -z "$ac_file"; then :
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 $as_echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2860 as_fn_error 77 "C compiler cannot create executables
2861 See \`config.log' for more details" "$LINENO" 5; }
2862 else
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2864 $as_echo "yes" >&6; }
2865 fi
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2867 $as_echo_n "checking for C compiler default output file name... " >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2869 $as_echo "$ac_file" >&6; }
2870 ac_exeext=$ac_cv_exeext
2871
2872 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2873 ac_clean_files=$ac_clean_files_save
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2875 $as_echo_n "checking for suffix of executables... " >&6; }
2876 if { { ac_try="$ac_link"
2877 case "(($ac_try" in
2878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879   *) ac_try_echo=$ac_try;;
2880 esac
2881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2882 $as_echo "$ac_try_echo"; } >&5
2883   (eval "$ac_link") 2>&5
2884   ac_status=$?
2885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886   test $ac_status = 0; }; then :
2887   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2890 # `rm'.
2891 for ac_file in conftest.exe conftest conftest.*; do
2892   test -f "$ac_file" || continue
2893   case $ac_file in
2894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2895     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2896           break;;
2897     * ) break;;
2898   esac
2899 done
2900 else
2901   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2903 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details" "$LINENO" 5; }
2905 fi
2906 rm -f conftest conftest$ac_cv_exeext
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2908 $as_echo "$ac_cv_exeext" >&6; }
2909
2910 rm -f conftest.$ac_ext
2911 EXEEXT=$ac_cv_exeext
2912 ac_exeext=$EXEEXT
2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914 /* end confdefs.h.  */
2915 #include <stdio.h>
2916 int
2917 main ()
2918 {
2919 FILE *f = fopen ("conftest.out", "w");
2920  return ferror (f) || fclose (f) != 0;
2921
2922   ;
2923   return 0;
2924 }
2925 _ACEOF
2926 ac_clean_files="$ac_clean_files conftest.out"
2927 # Check that the compiler produces executables we can run.  If not, either
2928 # the compiler is broken, or we cross compile.
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2930 $as_echo_n "checking whether we are cross compiling... " >&6; }
2931 if test "$cross_compiling" != yes; then
2932   { { ac_try="$ac_link"
2933 case "(($ac_try" in
2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935   *) ac_try_echo=$ac_try;;
2936 esac
2937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2938 $as_echo "$ac_try_echo"; } >&5
2939   (eval "$ac_link") 2>&5
2940   ac_status=$?
2941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942   test $ac_status = 0; }
2943   if { ac_try='./conftest$ac_cv_exeext'
2944   { { case "(($ac_try" in
2945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946   *) ac_try_echo=$ac_try;;
2947 esac
2948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949 $as_echo "$ac_try_echo"; } >&5
2950   (eval "$ac_try") 2>&5
2951   ac_status=$?
2952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953   test $ac_status = 0; }; }; then
2954     cross_compiling=no
2955   else
2956     if test "$cross_compiling" = maybe; then
2957         cross_compiling=yes
2958     else
2959         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2961 as_fn_error $? "cannot run C compiled programs.
2962 If you meant to cross compile, use \`--host'.
2963 See \`config.log' for more details" "$LINENO" 5; }
2964     fi
2965   fi
2966 fi
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2968 $as_echo "$cross_compiling" >&6; }
2969
2970 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2971 ac_clean_files=$ac_clean_files_save
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2973 $as_echo_n "checking for suffix of object files... " >&6; }
2974 if ${ac_cv_objext+:} false; then :
2975   $as_echo_n "(cached) " >&6
2976 else
2977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978 /* end confdefs.h.  */
2979
2980 int
2981 main ()
2982 {
2983
2984   ;
2985   return 0;
2986 }
2987 _ACEOF
2988 rm -f conftest.o conftest.obj
2989 if { { ac_try="$ac_compile"
2990 case "(($ac_try" in
2991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992   *) ac_try_echo=$ac_try;;
2993 esac
2994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995 $as_echo "$ac_try_echo"; } >&5
2996   (eval "$ac_compile") 2>&5
2997   ac_status=$?
2998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999   test $ac_status = 0; }; then :
3000   for ac_file in conftest.o conftest.obj conftest.*; do
3001   test -f "$ac_file" || continue;
3002   case $ac_file in
3003     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3004     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3005        break;;
3006   esac
3007 done
3008 else
3009   $as_echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014 as_fn_error $? "cannot compute suffix of object files: cannot compile
3015 See \`config.log' for more details" "$LINENO" 5; }
3016 fi
3017 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3018 fi
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3020 $as_echo "$ac_cv_objext" >&6; }
3021 OBJEXT=$ac_cv_objext
3022 ac_objext=$OBJEXT
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3024 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3025 if ${ac_cv_c_compiler_gnu+:} false; then :
3026   $as_echo_n "(cached) " >&6
3027 else
3028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029 /* end confdefs.h.  */
3030
3031 int
3032 main ()
3033 {
3034 #ifndef __GNUC__
3035        choke me
3036 #endif
3037
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 if ac_fn_c_try_compile "$LINENO"; then :
3043   ac_compiler_gnu=yes
3044 else
3045   ac_compiler_gnu=no
3046 fi
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3049
3050 fi
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3053 if test $ac_compiler_gnu = yes; then
3054   GCC=yes
3055 else
3056   GCC=
3057 fi
3058 ac_test_CFLAGS=${CFLAGS+set}
3059 ac_save_CFLAGS=$CFLAGS
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3062 if ${ac_cv_prog_cc_g+:} false; then :
3063   $as_echo_n "(cached) " >&6
3064 else
3065   ac_save_c_werror_flag=$ac_c_werror_flag
3066    ac_c_werror_flag=yes
3067    ac_cv_prog_cc_g=no
3068    CFLAGS="-g"
3069    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h.  */
3071
3072 int
3073 main ()
3074 {
3075
3076   ;
3077   return 0;
3078 }
3079 _ACEOF
3080 if ac_fn_c_try_compile "$LINENO"; then :
3081   ac_cv_prog_cc_g=yes
3082 else
3083   CFLAGS=""
3084       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085 /* end confdefs.h.  */
3086
3087 int
3088 main ()
3089 {
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 if ac_fn_c_try_compile "$LINENO"; then :
3096
3097 else
3098   ac_c_werror_flag=$ac_save_c_werror_flag
3099          CFLAGS="-g"
3100          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h.  */
3102
3103 int
3104 main ()
3105 {
3106
3107   ;
3108   return 0;
3109 }
3110 _ACEOF
3111 if ac_fn_c_try_compile "$LINENO"; then :
3112   ac_cv_prog_cc_g=yes
3113 fi
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115 fi
3116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117 fi
3118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119    ac_c_werror_flag=$ac_save_c_werror_flag
3120 fi
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3122 $as_echo "$ac_cv_prog_cc_g" >&6; }
3123 if test "$ac_test_CFLAGS" = set; then
3124   CFLAGS=$ac_save_CFLAGS
3125 elif test $ac_cv_prog_cc_g = yes; then
3126   if test "$GCC" = yes; then
3127     CFLAGS="-g -O2"
3128   else
3129     CFLAGS="-g"
3130   fi
3131 else
3132   if test "$GCC" = yes; then
3133     CFLAGS="-O2"
3134   else
3135     CFLAGS=
3136   fi
3137 fi
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3139 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3140 if ${ac_cv_prog_cc_c89+:} false; then :
3141   $as_echo_n "(cached) " >&6
3142 else
3143   ac_cv_prog_cc_c89=no
3144 ac_save_CC=$CC
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h.  */
3147 #include <stdarg.h>
3148 #include <stdio.h>
3149 struct stat;
3150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3151 struct buf { int x; };
3152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3153 static char *e (p, i)
3154      char **p;
3155      int i;
3156 {
3157   return p[i];
3158 }
3159 static char *f (char * (*g) (char **, int), char **p, ...)
3160 {
3161   char *s;
3162   va_list v;
3163   va_start (v,p);
3164   s = g (p, va_arg (v,int));
3165   va_end (v);
3166   return s;
3167 }
3168
3169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3170    function prototypes and stuff, but not '\xHH' hex character constants.
3171    These don't provoke an error unfortunately, instead are silently treated
3172    as 'x'.  The following induces an error, until -std is added to get
3173    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3174    array size at least.  It's necessary to write '\x00'==0 to get something
3175    that's true only with -std.  */
3176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3177
3178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3179    inside strings and character constants.  */
3180 #define FOO(x) 'x'
3181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3182
3183 int test (int i, double x);
3184 struct s1 {int (*f) (int a);};
3185 struct s2 {int (*f) (double a);};
3186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187 int argc;
3188 char **argv;
3189 int
3190 main ()
3191 {
3192 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3198         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3199 do
3200   CC="$ac_save_CC $ac_arg"
3201   if ac_fn_c_try_compile "$LINENO"; then :
3202   ac_cv_prog_cc_c89=$ac_arg
3203 fi
3204 rm -f core conftest.err conftest.$ac_objext
3205   test "x$ac_cv_prog_cc_c89" != "xno" && break
3206 done
3207 rm -f conftest.$ac_ext
3208 CC=$ac_save_CC
3209
3210 fi
3211 # AC_CACHE_VAL
3212 case "x$ac_cv_prog_cc_c89" in
3213   x)
3214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3215 $as_echo "none needed" >&6; } ;;
3216   xno)
3217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3218 $as_echo "unsupported" >&6; } ;;
3219   *)
3220     CC="$CC $ac_cv_prog_cc_c89"
3221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3222 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3223 esac
3224 if test "x$ac_cv_prog_cc_c89" != xno; then :
3225
3226 fi
3227
3228 ac_ext=c
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3240 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3241 if ${am_cv_prog_cc_c_o+:} false; then :
3242   $as_echo_n "(cached) " >&6
3243 else
3244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h.  */
3246
3247 int
3248 main ()
3249 {
3250
3251   ;
3252   return 0;
3253 }
3254 _ACEOF
3255   # Make sure it works both with $CC and with simple cc.
3256   # Following AC_PROG_CC_C_O, we do the test twice because some
3257   # compilers refuse to overwrite an existing .o file with -o,
3258   # though they will create one.
3259   am_cv_prog_cc_c_o=yes
3260   for am_i in 1 2; do
3261     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3262    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3263    ac_status=$?
3264    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265    (exit $ac_status); } \
3266          && test -f conftest2.$ac_objext; then
3267       : OK
3268     else
3269       am_cv_prog_cc_c_o=no
3270       break
3271     fi
3272   done
3273   rm -f core conftest*
3274   unset am_i
3275 fi
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3277 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3278 if test "$am_cv_prog_cc_c_o" != yes; then
3279    # Losing compiler, so override with the script.
3280    # FIXME: It is wrong to rewrite CC.
3281    # But if we don't then we get into trouble of one sort or another.
3282    # A longer-term fix would be to have automake use am__CC in this case,
3283    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3284    CC="$am_aux_dir/compile $CC"
3285 fi
3286 ac_ext=c
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291
3292
3293
3294 ac_ext=c
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3300 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3301 # On Suns, sometimes $CPP names a directory.
3302 if test -n "$CPP" && test -d "$CPP"; then
3303   CPP=
3304 fi
3305 if test -z "$CPP"; then
3306   if ${ac_cv_prog_CPP+:} false; then :
3307   $as_echo_n "(cached) " >&6
3308 else
3309       # Double quotes because CPP needs to be expanded
3310     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3311     do
3312       ac_preproc_ok=false
3313 for ac_c_preproc_warn_flag in '' yes
3314 do
3315   # Use a header file that comes with gcc, so configuring glibc
3316   # with a fresh cross-compiler works.
3317   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3318   # <limits.h> exists even on freestanding compilers.
3319   # On the NeXT, cc -E runs the code through the compiler's parser,
3320   # not just through cpp. "Syntax error" is here to catch this case.
3321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h.  */
3323 #ifdef __STDC__
3324 # include <limits.h>
3325 #else
3326 # include <assert.h>
3327 #endif
3328                      Syntax error
3329 _ACEOF
3330 if ac_fn_c_try_cpp "$LINENO"; then :
3331
3332 else
3333   # Broken: fails on valid input.
3334 continue
3335 fi
3336 rm -f conftest.err conftest.i conftest.$ac_ext
3337
3338   # OK, works on sane cases.  Now check whether nonexistent headers
3339   # can be detected and how.
3340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h.  */
3342 #include <ac_nonexistent.h>
3343 _ACEOF
3344 if ac_fn_c_try_cpp "$LINENO"; then :
3345   # Broken: success on invalid input.
3346 continue
3347 else
3348   # Passes both tests.
3349 ac_preproc_ok=:
3350 break
3351 fi
3352 rm -f conftest.err conftest.i conftest.$ac_ext
3353
3354 done
3355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3356 rm -f conftest.i conftest.err conftest.$ac_ext
3357 if $ac_preproc_ok; then :
3358   break
3359 fi
3360
3361     done
3362     ac_cv_prog_CPP=$CPP
3363
3364 fi
3365   CPP=$ac_cv_prog_CPP
3366 else
3367   ac_cv_prog_CPP=$CPP
3368 fi
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3370 $as_echo "$CPP" >&6; }
3371 ac_preproc_ok=false
3372 for ac_c_preproc_warn_flag in '' yes
3373 do
3374   # Use a header file that comes with gcc, so configuring glibc
3375   # with a fresh cross-compiler works.
3376   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377   # <limits.h> exists even on freestanding compilers.
3378   # On the NeXT, cc -E runs the code through the compiler's parser,
3379   # not just through cpp. "Syntax error" is here to catch this case.
3380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h.  */
3382 #ifdef __STDC__
3383 # include <limits.h>
3384 #else
3385 # include <assert.h>
3386 #endif
3387                      Syntax error
3388 _ACEOF
3389 if ac_fn_c_try_cpp "$LINENO"; then :
3390
3391 else
3392   # Broken: fails on valid input.
3393 continue
3394 fi
3395 rm -f conftest.err conftest.i conftest.$ac_ext
3396
3397   # OK, works on sane cases.  Now check whether nonexistent headers
3398   # can be detected and how.
3399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h.  */
3401 #include <ac_nonexistent.h>
3402 _ACEOF
3403 if ac_fn_c_try_cpp "$LINENO"; then :
3404   # Broken: success on invalid input.
3405 continue
3406 else
3407   # Passes both tests.
3408 ac_preproc_ok=:
3409 break
3410 fi
3411 rm -f conftest.err conftest.i conftest.$ac_ext
3412
3413 done
3414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3415 rm -f conftest.i conftest.err conftest.$ac_ext
3416 if $ac_preproc_ok; then :
3417
3418 else
3419   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3422 See \`config.log' for more details" "$LINENO" 5; }
3423 fi
3424
3425 ac_ext=c
3426 ac_cpp='$CPP $CPPFLAGS'
3427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430
3431
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3433 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3434 if ${ac_cv_path_GREP+:} false; then :
3435   $as_echo_n "(cached) " >&6
3436 else
3437   if test -z "$GREP"; then
3438   ac_path_GREP_found=false
3439   # Loop through the user's path and test for each of PROGNAME-LIST
3440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3442 do
3443   IFS=$as_save_IFS
3444   test -z "$as_dir" && as_dir=.
3445     for ac_prog in grep ggrep; do
3446     for ac_exec_ext in '' $ac_executable_extensions; do
3447       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3448       as_fn_executable_p "$ac_path_GREP" || continue
3449 # Check for GNU ac_path_GREP and select it if it is found.
3450   # Check for GNU $ac_path_GREP
3451 case `"$ac_path_GREP" --version 2>&1` in
3452 *GNU*)
3453   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3454 *)
3455   ac_count=0
3456   $as_echo_n 0123456789 >"conftest.in"
3457   while :
3458   do
3459     cat "conftest.in" "conftest.in" >"conftest.tmp"
3460     mv "conftest.tmp" "conftest.in"
3461     cp "conftest.in" "conftest.nl"
3462     $as_echo 'GREP' >> "conftest.nl"
3463     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3464     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3465     as_fn_arith $ac_count + 1 && ac_count=$as_val
3466     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3467       # Best one so far, save it but keep looking for a better one
3468       ac_cv_path_GREP="$ac_path_GREP"
3469       ac_path_GREP_max=$ac_count
3470     fi
3471     # 10*(2^10) chars as input seems more than enough
3472     test $ac_count -gt 10 && break
3473   done
3474   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3475 esac
3476
3477       $ac_path_GREP_found && break 3
3478     done
3479   done
3480   done
3481 IFS=$as_save_IFS
3482   if test -z "$ac_cv_path_GREP"; then
3483     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3484   fi
3485 else
3486   ac_cv_path_GREP=$GREP
3487 fi
3488
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3491 $as_echo "$ac_cv_path_GREP" >&6; }
3492  GREP="$ac_cv_path_GREP"
3493
3494
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3496 $as_echo_n "checking for egrep... " >&6; }
3497 if ${ac_cv_path_EGREP+:} false; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3501    then ac_cv_path_EGREP="$GREP -E"
3502    else
3503      if test -z "$EGREP"; then
3504   ac_path_EGREP_found=false
3505   # Loop through the user's path and test for each of PROGNAME-LIST
3506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511     for ac_prog in egrep; do
3512     for ac_exec_ext in '' $ac_executable_extensions; do
3513       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3514       as_fn_executable_p "$ac_path_EGREP" || continue
3515 # Check for GNU ac_path_EGREP and select it if it is found.
3516   # Check for GNU $ac_path_EGREP
3517 case `"$ac_path_EGREP" --version 2>&1` in
3518 *GNU*)
3519   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3520 *)
3521   ac_count=0
3522   $as_echo_n 0123456789 >"conftest.in"
3523   while :
3524   do
3525     cat "conftest.in" "conftest.in" >"conftest.tmp"
3526     mv "conftest.tmp" "conftest.in"
3527     cp "conftest.in" "conftest.nl"
3528     $as_echo 'EGREP' >> "conftest.nl"
3529     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3530     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3531     as_fn_arith $ac_count + 1 && ac_count=$as_val
3532     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3533       # Best one so far, save it but keep looking for a better one
3534       ac_cv_path_EGREP="$ac_path_EGREP"
3535       ac_path_EGREP_max=$ac_count
3536     fi
3537     # 10*(2^10) chars as input seems more than enough
3538     test $ac_count -gt 10 && break
3539   done
3540   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3541 esac
3542
3543       $ac_path_EGREP_found && break 3
3544     done
3545   done
3546   done
3547 IFS=$as_save_IFS
3548   if test -z "$ac_cv_path_EGREP"; then
3549     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3550   fi
3551 else
3552   ac_cv_path_EGREP=$EGREP
3553 fi
3554
3555    fi
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3558 $as_echo "$ac_cv_path_EGREP" >&6; }
3559  EGREP="$ac_cv_path_EGREP"
3560
3561
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3563 $as_echo_n "checking for ANSI C header files... " >&6; }
3564 if ${ac_cv_header_stdc+:} false; then :
3565   $as_echo_n "(cached) " >&6
3566 else
3567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h.  */
3569 #include <stdlib.h>
3570 #include <stdarg.h>
3571 #include <string.h>
3572 #include <float.h>
3573
3574 int
3575 main ()
3576 {
3577
3578   ;
3579   return 0;
3580 }
3581 _ACEOF
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583   ac_cv_header_stdc=yes
3584 else
3585   ac_cv_header_stdc=no
3586 fi
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588
3589 if test $ac_cv_header_stdc = yes; then
3590   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h.  */
3593 #include <string.h>
3594
3595 _ACEOF
3596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3597   $EGREP "memchr" >/dev/null 2>&1; then :
3598
3599 else
3600   ac_cv_header_stdc=no
3601 fi
3602 rm -f conftest*
3603
3604 fi
3605
3606 if test $ac_cv_header_stdc = yes; then
3607   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h.  */
3610 #include <stdlib.h>
3611
3612 _ACEOF
3613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3614   $EGREP "free" >/dev/null 2>&1; then :
3615
3616 else
3617   ac_cv_header_stdc=no
3618 fi
3619 rm -f conftest*
3620
3621 fi
3622
3623 if test $ac_cv_header_stdc = yes; then
3624   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3625   if test "$cross_compiling" = yes; then :
3626   :
3627 else
3628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h.  */
3630 #include <ctype.h>
3631 #include <stdlib.h>
3632 #if ((' ' & 0x0FF) == 0x020)
3633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3635 #else
3636 # define ISLOWER(c) \
3637                    (('a' <= (c) && (c) <= 'i') \
3638                      || ('j' <= (c) && (c) <= 'r') \
3639                      || ('s' <= (c) && (c) <= 'z'))
3640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3641 #endif
3642
3643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3644 int
3645 main ()
3646 {
3647   int i;
3648   for (i = 0; i < 256; i++)
3649     if (XOR (islower (i), ISLOWER (i))
3650         || toupper (i) != TOUPPER (i))
3651       return 2;
3652   return 0;
3653 }
3654 _ACEOF
3655 if ac_fn_c_try_run "$LINENO"; then :
3656
3657 else
3658   ac_cv_header_stdc=no
3659 fi
3660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3661   conftest.$ac_objext conftest.beam conftest.$ac_ext
3662 fi
3663
3664 fi
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3667 $as_echo "$ac_cv_header_stdc" >&6; }
3668 if test $ac_cv_header_stdc = yes; then
3669
3670 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3671
3672 fi
3673
3674 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3675 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3676                   inttypes.h stdint.h unistd.h
3677 do :
3678   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3679 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3680 "
3681 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3682   cat >>confdefs.h <<_ACEOF
3683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3684 _ACEOF
3685
3686 fi
3687
3688 done
3689
3690
3691
3692   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3693 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3694   MINIX=yes
3695 else
3696   MINIX=
3697 fi
3698
3699
3700   if test "$MINIX" = yes; then
3701
3702 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3703
3704
3705 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3706
3707
3708 $as_echo "#define _MINIX 1" >>confdefs.h
3709
3710   fi
3711
3712
3713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3714 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3715 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3716   $as_echo_n "(cached) " >&6
3717 else
3718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h.  */
3720
3721 #         define __EXTENSIONS__ 1
3722           $ac_includes_default
3723 int
3724 main ()
3725 {
3726
3727   ;
3728   return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732   ac_cv_safe_to_define___extensions__=yes
3733 else
3734   ac_cv_safe_to_define___extensions__=no
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 fi
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3739 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3740   test $ac_cv_safe_to_define___extensions__ = yes &&
3741     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3742
3743   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3744
3745   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3746
3747   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3748
3749   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3750
3751
3752 am__api_version='1.14'
3753
3754 # Find a good install program.  We prefer a C program (faster),
3755 # so one script is as good as another.  But avoid the broken or
3756 # incompatible versions:
3757 # SysV /etc/install, /usr/sbin/install
3758 # SunOS /usr/etc/install
3759 # IRIX /sbin/install
3760 # AIX /bin/install
3761 # AmigaOS /C/install, which installs bootblocks on floppy discs
3762 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3763 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3764 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3765 # OS/2's system install, which has a completely different semantic
3766 # ./install, which can be erroneously created by make from ./install.sh.
3767 # Reject install programs that cannot install multiple files.
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3769 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3770 if test -z "$INSTALL"; then
3771 if ${ac_cv_path_install+:} false; then :
3772   $as_echo_n "(cached) " >&6
3773 else
3774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3776 do
3777   IFS=$as_save_IFS
3778   test -z "$as_dir" && as_dir=.
3779     # Account for people who put trailing slashes in PATH elements.
3780 case $as_dir/ in #((
3781   ./ | .// | /[cC]/* | \
3782   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3783   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3784   /usr/ucb/* ) ;;
3785   *)
3786     # OSF1 and SCO ODT 3.0 have their own names for install.
3787     # Don't use installbsd from OSF since it installs stuff as root
3788     # by default.
3789     for ac_prog in ginstall scoinst install; do
3790       for ac_exec_ext in '' $ac_executable_extensions; do
3791         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3792           if test $ac_prog = install &&
3793             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3794             # AIX install.  It has an incompatible calling convention.
3795             :
3796           elif test $ac_prog = install &&
3797             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3798             # program-specific install script used by HP pwplus--don't use.
3799             :
3800           else
3801             rm -rf conftest.one conftest.two conftest.dir
3802             echo one > conftest.one
3803             echo two > conftest.two
3804             mkdir conftest.dir
3805             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3806               test -s conftest.one && test -s conftest.two &&
3807               test -s conftest.dir/conftest.one &&
3808               test -s conftest.dir/conftest.two
3809             then
3810               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3811               break 3
3812             fi
3813           fi
3814         fi
3815       done
3816     done
3817     ;;
3818 esac
3819
3820   done
3821 IFS=$as_save_IFS
3822
3823 rm -rf conftest.one conftest.two conftest.dir
3824
3825 fi
3826   if test "${ac_cv_path_install+set}" = set; then
3827     INSTALL=$ac_cv_path_install
3828   else
3829     # As a last resort, use the slow shell script.  Don't cache a
3830     # value for INSTALL within a source directory, because that will
3831     # break other packages using the cache if that directory is
3832     # removed, or if the value is a relative name.
3833     INSTALL=$ac_install_sh
3834   fi
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3837 $as_echo "$INSTALL" >&6; }
3838
3839 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3840 # It thinks the first close brace ends the variable substitution.
3841 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3842
3843 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3844
3845 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3846
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3848 $as_echo_n "checking whether build environment is sane... " >&6; }
3849 # Reject unsafe characters in $srcdir or the absolute working directory
3850 # name.  Accept space and tab only in the latter.
3851 am_lf='
3852 '
3853 case `pwd` in
3854   *[\\\"\#\$\&\'\`$am_lf]*)
3855     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3856 esac
3857 case $srcdir in
3858   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3859     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3860 esac
3861
3862 # Do 'set' in a subshell so we don't clobber the current shell's
3863 # arguments.  Must try -L first in case configure is actually a
3864 # symlink; some systems play weird games with the mod time of symlinks
3865 # (eg FreeBSD returns the mod time of the symlink's containing
3866 # directory).
3867 if (
3868    am_has_slept=no
3869    for am_try in 1 2; do
3870      echo "timestamp, slept: $am_has_slept" > conftest.file
3871      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3872      if test "$*" = "X"; then
3873         # -L didn't work.
3874         set X `ls -t "$srcdir/configure" conftest.file`
3875      fi
3876      if test "$*" != "X $srcdir/configure conftest.file" \
3877         && test "$*" != "X conftest.file $srcdir/configure"; then
3878
3879         # If neither matched, then we have a broken ls.  This can happen
3880         # if, for instance, CONFIG_SHELL is bash and it inherits a
3881         # broken ls alias from the environment.  This has actually
3882         # happened.  Such a system could not be considered "sane".
3883         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3884   alias in your environment" "$LINENO" 5
3885      fi
3886      if test "$2" = conftest.file || test $am_try -eq 2; then
3887        break
3888      fi
3889      # Just in case.
3890      sleep 1
3891      am_has_slept=yes
3892    done
3893    test "$2" = conftest.file
3894    )
3895 then
3896    # Ok.
3897    :
3898 else
3899    as_fn_error $? "newly created file is older than distributed files!
3900 Check your system clock" "$LINENO" 5
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3903 $as_echo "yes" >&6; }
3904 # If we didn't sleep, we still need to ensure time stamps of config.status and
3905 # generated files are strictly newer.
3906 am_sleep_pid=
3907 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3908   ( sleep 1 ) &
3909   am_sleep_pid=$!
3910 fi
3911
3912 rm -f conftest.file
3913
3914 test "$program_prefix" != NONE &&
3915   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3916 # Use a double $ so make ignores it.
3917 test "$program_suffix" != NONE &&
3918   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3919 # Double any \ or $.
3920 # By default was `s,x,x', remove it if useless.
3921 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3922 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3923
3924 if test x"${MISSING+set}" != xset; then
3925   case $am_aux_dir in
3926   *\ * | *\     *)
3927     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3928   *)
3929     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3930   esac
3931 fi
3932 # Use eval to expand $SHELL
3933 if eval "$MISSING --is-lightweight"; then
3934   am_missing_run="$MISSING "
3935 else
3936   am_missing_run=
3937   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3938 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3939 fi
3940
3941 if test x"${install_sh}" != xset; then
3942   case $am_aux_dir in
3943   *\ * | *\     *)
3944     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3945   *)
3946     install_sh="\${SHELL} $am_aux_dir/install-sh"
3947   esac
3948 fi
3949
3950 # Installed binaries are usually stripped using 'strip' when the user
3951 # run "make install-strip".  However 'strip' might not be the right
3952 # tool to use in cross-compilation environments, therefore Automake
3953 # will honor the 'STRIP' environment variable to overrule this program.
3954 if test "$cross_compiling" != no; then
3955   if test -n "$ac_tool_prefix"; then
3956   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3957 set dummy ${ac_tool_prefix}strip; ac_word=$2
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959 $as_echo_n "checking for $ac_word... " >&6; }
3960 if ${ac_cv_prog_STRIP+:} false; then :
3961   $as_echo_n "(cached) " >&6
3962 else
3963   if test -n "$STRIP"; then
3964   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3965 else
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH
3968 do
3969   IFS=$as_save_IFS
3970   test -z "$as_dir" && as_dir=.
3971     for ac_exec_ext in '' $ac_executable_extensions; do
3972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975     break 2
3976   fi
3977 done
3978   done
3979 IFS=$as_save_IFS
3980
3981 fi
3982 fi
3983 STRIP=$ac_cv_prog_STRIP
3984 if test -n "$STRIP"; then
3985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3986 $as_echo "$STRIP" >&6; }
3987 else
3988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3990 fi
3991
3992
3993 fi
3994 if test -z "$ac_cv_prog_STRIP"; then
3995   ac_ct_STRIP=$STRIP
3996   # Extract the first word of "strip", so it can be a program name with args.
3997 set dummy strip; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   if test -n "$ac_ct_STRIP"; then
4004   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4005 else
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4008 do
4009   IFS=$as_save_IFS
4010   test -z "$as_dir" && as_dir=.
4011     for ac_exec_ext in '' $ac_executable_extensions; do
4012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013     ac_cv_prog_ac_ct_STRIP="strip"
4014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015     break 2
4016   fi
4017 done
4018   done
4019 IFS=$as_save_IFS
4020
4021 fi
4022 fi
4023 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4024 if test -n "$ac_ct_STRIP"; then
4025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4026 $as_echo "$ac_ct_STRIP" >&6; }
4027 else
4028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4030 fi
4031
4032   if test "x$ac_ct_STRIP" = x; then
4033     STRIP=":"
4034   else
4035     case $cross_compiling:$ac_tool_warned in
4036 yes:)
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4039 ac_tool_warned=yes ;;
4040 esac
4041     STRIP=$ac_ct_STRIP
4042   fi
4043 else
4044   STRIP="$ac_cv_prog_STRIP"
4045 fi
4046
4047 fi
4048 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4049
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4051 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4052 if test -z "$MKDIR_P"; then
4053   if ${ac_cv_path_mkdir+:} false; then :
4054   $as_echo_n "(cached) " >&6
4055 else
4056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061     for ac_prog in mkdir gmkdir; do
4062          for ac_exec_ext in '' $ac_executable_extensions; do
4063            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4064            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4065              'mkdir (GNU coreutils) '* | \
4066              'mkdir (coreutils) '* | \
4067              'mkdir (fileutils) '4.1*)
4068                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4069                break 3;;
4070            esac
4071          done
4072        done
4073   done
4074 IFS=$as_save_IFS
4075
4076 fi
4077
4078   test -d ./--version && rmdir ./--version
4079   if test "${ac_cv_path_mkdir+set}" = set; then
4080     MKDIR_P="$ac_cv_path_mkdir -p"
4081   else
4082     # As a last resort, use the slow shell script.  Don't cache a
4083     # value for MKDIR_P within a source directory, because that will
4084     # break other packages using the cache if that directory is
4085     # removed, or if the value is a relative name.
4086     MKDIR_P="$ac_install_sh -d"
4087   fi
4088 fi
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4090 $as_echo "$MKDIR_P" >&6; }
4091
4092 for ac_prog in gawk mawk nawk awk
4093 do
4094   # Extract the first word of "$ac_prog", so it can be a program name with args.
4095 set dummy $ac_prog; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_AWK+:} false; then :
4099   $as_echo_n "(cached) " >&6
4100 else
4101   if test -n "$AWK"; then
4102   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107   IFS=$as_save_IFS
4108   test -z "$as_dir" && as_dir=.
4109     for ac_exec_ext in '' $ac_executable_extensions; do
4110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111     ac_cv_prog_AWK="$ac_prog"
4112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113     break 2
4114   fi
4115 done
4116   done
4117 IFS=$as_save_IFS
4118
4119 fi
4120 fi
4121 AWK=$ac_cv_prog_AWK
4122 if test -n "$AWK"; then
4123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4124 $as_echo "$AWK" >&6; }
4125 else
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4128 fi
4129
4130
4131   test -n "$AWK" && break
4132 done
4133
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4135 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4136 set x ${MAKE-make}
4137 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4138 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4139   $as_echo_n "(cached) " >&6
4140 else
4141   cat >conftest.make <<\_ACEOF
4142 SHELL = /bin/sh
4143 all:
4144         @echo '@@@%%%=$(MAKE)=@@@%%%'
4145 _ACEOF
4146 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4147 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4148   *@@@%%%=?*=@@@%%%*)
4149     eval ac_cv_prog_make_${ac_make}_set=yes;;
4150   *)
4151     eval ac_cv_prog_make_${ac_make}_set=no;;
4152 esac
4153 rm -f conftest.make
4154 fi
4155 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4157 $as_echo "yes" >&6; }
4158   SET_MAKE=
4159 else
4160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4162   SET_MAKE="MAKE=${MAKE-make}"
4163 fi
4164
4165 rm -rf .tst 2>/dev/null
4166 mkdir .tst 2>/dev/null
4167 if test -d .tst; then
4168   am__leading_dot=.
4169 else
4170   am__leading_dot=_
4171 fi
4172 rmdir .tst 2>/dev/null
4173
4174 DEPDIR="${am__leading_dot}deps"
4175
4176 ac_config_commands="$ac_config_commands depfiles"
4177
4178
4179 am_make=${MAKE-make}
4180 cat > confinc << 'END'
4181 am__doit:
4182         @echo this is the am__doit target
4183 .PHONY: am__doit
4184 END
4185 # If we don't find an include directive, just comment out the code.
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4187 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4188 am__include="#"
4189 am__quote=
4190 _am_result=none
4191 # First try GNU make style include.
4192 echo "include confinc" > confmf
4193 # Ignore all kinds of additional output from 'make'.
4194 case `$am_make -s -f confmf 2> /dev/null` in #(
4195 *the\ am__doit\ target*)
4196   am__include=include
4197   am__quote=
4198   _am_result=GNU
4199   ;;
4200 esac
4201 # Now try BSD make style include.
4202 if test "$am__include" = "#"; then
4203    echo '.include "confinc"' > confmf
4204    case `$am_make -s -f confmf 2> /dev/null` in #(
4205    *the\ am__doit\ target*)
4206      am__include=.include
4207      am__quote="\""
4208      _am_result=BSD
4209      ;;
4210    esac
4211 fi
4212
4213
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4215 $as_echo "$_am_result" >&6; }
4216 rm -f confinc confmf
4217
4218 # Check whether --enable-dependency-tracking was given.
4219 if test "${enable_dependency_tracking+set}" = set; then :
4220   enableval=$enable_dependency_tracking;
4221 fi
4222
4223 if test "x$enable_dependency_tracking" != xno; then
4224   am_depcomp="$ac_aux_dir/depcomp"
4225   AMDEPBACKSLASH='\'
4226   am__nodep='_no'
4227 fi
4228  if test "x$enable_dependency_tracking" != xno; then
4229   AMDEP_TRUE=
4230   AMDEP_FALSE='#'
4231 else
4232   AMDEP_TRUE='#'
4233   AMDEP_FALSE=
4234 fi
4235
4236
4237 # Check whether --enable-silent-rules was given.
4238 if test "${enable_silent_rules+set}" = set; then :
4239   enableval=$enable_silent_rules;
4240 fi
4241
4242 case $enable_silent_rules in # (((
4243   yes) AM_DEFAULT_VERBOSITY=0;;
4244    no) AM_DEFAULT_VERBOSITY=1;;
4245     *) AM_DEFAULT_VERBOSITY=1;;
4246 esac
4247 am_make=${MAKE-make}
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4249 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4250 if ${am_cv_make_support_nested_variables+:} false; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253   if $as_echo 'TRUE=$(BAR$(V))
4254 BAR0=false
4255 BAR1=true
4256 V=1
4257 am__doit:
4258         @$(TRUE)
4259 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4260   am_cv_make_support_nested_variables=yes
4261 else
4262   am_cv_make_support_nested_variables=no
4263 fi
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4266 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4267 if test $am_cv_make_support_nested_variables = yes; then
4268     AM_V='$(V)'
4269   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4270 else
4271   AM_V=$AM_DEFAULT_VERBOSITY
4272   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4273 fi
4274 AM_BACKSLASH='\'
4275
4276 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4277   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4278   # is not polluted with repeated "-I."
4279   am__isrc=' -I$(srcdir)'
4280   # test to see if srcdir already configured
4281   if test -f $srcdir/config.status; then
4282     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4283   fi
4284 fi
4285
4286 # test whether we have cygpath
4287 if test -z "$CYGPATH_W"; then
4288   if (cygpath --version) >/dev/null 2>/dev/null; then
4289     CYGPATH_W='cygpath -w'
4290   else
4291     CYGPATH_W=echo
4292   fi
4293 fi
4294
4295
4296 # Define the identity of the package.
4297  PACKAGE='mech_eap'
4298  VERSION='0.9.1'
4299
4300
4301 cat >>confdefs.h <<_ACEOF
4302 #define PACKAGE "$PACKAGE"
4303 _ACEOF
4304
4305
4306 cat >>confdefs.h <<_ACEOF
4307 #define VERSION "$VERSION"
4308 _ACEOF
4309
4310 # Some tools Automake needs.
4311
4312 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4313
4314
4315 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4316
4317
4318 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4319
4320
4321 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4322
4323
4324 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4325
4326 # For better backward compatibility.  To be removed once Automake 1.9.x
4327 # dies out for good.  For more background, see:
4328 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4329 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4330 mkdir_p='$(MKDIR_P)'
4331
4332 # We need awk for the "check" target.  The system "awk" is bad on
4333 # some platforms.
4334 # Always define AMTAR for backward compatibility.  Yes, it's still used
4335 # in the wild :-(  We should find a proper way to deprecate it ...
4336 AMTAR='$${TAR-tar}'
4337
4338
4339 # We'll loop over all known methods to create a tar archive until one works.
4340 _am_tools='gnutar  pax cpio none'
4341
4342 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4343
4344
4345
4346
4347
4348 depcc="$CC"   am_compiler_list=
4349
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4351 $as_echo_n "checking dependency style of $depcc... " >&6; }
4352 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4353   $as_echo_n "(cached) " >&6
4354 else
4355   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4356   # We make a subdir and do the tests there.  Otherwise we can end up
4357   # making bogus files that we don't know about and never remove.  For
4358   # instance it was reported that on HP-UX the gcc test will end up
4359   # making a dummy file named 'D' -- because '-MD' means "put the output
4360   # in D".
4361   rm -rf conftest.dir
4362   mkdir conftest.dir
4363   # Copy depcomp to subdir because otherwise we won't find it if we're
4364   # using a relative directory.
4365   cp "$am_depcomp" conftest.dir
4366   cd conftest.dir
4367   # We will build objects and dependencies in a subdirectory because
4368   # it helps to detect inapplicable dependency modes.  For instance
4369   # both Tru64's cc and ICC support -MD to output dependencies as a
4370   # side effect of compilation, but ICC will put the dependencies in
4371   # the current directory while Tru64 will put them in the object
4372   # directory.
4373   mkdir sub
4374
4375   am_cv_CC_dependencies_compiler_type=none
4376   if test "$am_compiler_list" = ""; then
4377      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4378   fi
4379   am__universal=false
4380   case " $depcc " in #(
4381      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4382      esac
4383
4384   for depmode in $am_compiler_list; do
4385     # Setup a source with many dependencies, because some compilers
4386     # like to wrap large dependency lists on column 80 (with \), and
4387     # we should not choose a depcomp mode which is confused by this.
4388     #
4389     # We need to recreate these files for each test, as the compiler may
4390     # overwrite some of them when testing with obscure command lines.
4391     # This happens at least with the AIX C compiler.
4392     : > sub/conftest.c
4393     for i in 1 2 3 4 5 6; do
4394       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4395       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4396       # Solaris 10 /bin/sh.
4397       echo '/* dummy */' > sub/conftst$i.h
4398     done
4399     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4400
4401     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4402     # mode.  It turns out that the SunPro C++ compiler does not properly
4403     # handle '-M -o', and we need to detect this.  Also, some Intel
4404     # versions had trouble with output in subdirs.
4405     am__obj=sub/conftest.${OBJEXT-o}
4406     am__minus_obj="-o $am__obj"
4407     case $depmode in
4408     gcc)
4409       # This depmode causes a compiler race in universal mode.
4410       test "$am__universal" = false || continue
4411       ;;
4412     nosideeffect)
4413       # After this tag, mechanisms are not by side-effect, so they'll
4414       # only be used when explicitly requested.
4415       if test "x$enable_dependency_tracking" = xyes; then
4416         continue
4417       else
4418         break
4419       fi
4420       ;;
4421     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4422       # This compiler won't grok '-c -o', but also, the minuso test has
4423       # not run yet.  These depmodes are late enough in the game, and
4424       # so weak that their functioning should not be impacted.
4425       am__obj=conftest.${OBJEXT-o}
4426       am__minus_obj=
4427       ;;
4428     none) break ;;
4429     esac
4430     if depmode=$depmode \
4431        source=sub/conftest.c object=$am__obj \
4432        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4433        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4434          >/dev/null 2>conftest.err &&
4435        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4436        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4437        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4438        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4439       # icc doesn't choke on unknown options, it will just issue warnings
4440       # or remarks (even with -Werror).  So we grep stderr for any message
4441       # that says an option was ignored or not supported.
4442       # When given -MP, icc 7.0 and 7.1 complain thusly:
4443       #   icc: Command line warning: ignoring option '-M'; no argument required
4444       # The diagnosis changed in icc 8.0:
4445       #   icc: Command line remark: option '-MP' not supported
4446       if (grep 'ignoring option' conftest.err ||
4447           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4448         am_cv_CC_dependencies_compiler_type=$depmode
4449         break
4450       fi
4451     fi
4452   done
4453
4454   cd ..
4455   rm -rf conftest.dir
4456 else
4457   am_cv_CC_dependencies_compiler_type=none
4458 fi
4459
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4462 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4463 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4464
4465  if
4466   test "x$enable_dependency_tracking" != xno \
4467   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4468   am__fastdepCC_TRUE=
4469   am__fastdepCC_FALSE='#'
4470 else
4471   am__fastdepCC_TRUE='#'
4472   am__fastdepCC_FALSE=
4473 fi
4474
4475
4476
4477 # POSIX will say in a future version that running "rm -f" with no argument
4478 # is OK; and we want to be able to make that assumption in our Makefile
4479 # recipes.  So use an aggressive probe to check that the usage we want is
4480 # actually supported "in the wild" to an acceptable degree.
4481 # See automake bug#10828.
4482 # To make any issue more visible, cause the running configure to be aborted
4483 # by default if the 'rm' program in use doesn't match our expectations; the
4484 # user can still override this though.
4485 if rm -f && rm -fr && rm -rf; then : OK; else
4486   cat >&2 <<'END'
4487 Oops!
4488
4489 Your 'rm' program seems unable to run without file operands specified
4490 on the command line, even when the '-f' option is present.  This is contrary
4491 to the behaviour of most rm programs out there, and not conforming with
4492 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4493
4494 Please tell bug-automake@gnu.org about your system, including the value
4495 of your $PATH and any error possibly output before this message.  This
4496 can help us improve future automake versions.
4497
4498 END
4499   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4500     echo 'Configuration will proceed anyway, since you have set the' >&2
4501     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4502     echo >&2
4503   else
4504     cat >&2 <<'END'
4505 Aborting the configuration process, to ensure you take notice of the issue.
4506
4507 You can download and install GNU coreutils to get an 'rm' implementation
4508 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4509
4510 If you want to complete the configuration process using your problematic
4511 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4512 to "yes", and re-run configure.
4513
4514 END
4515     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4516   fi
4517 fi
4518
4519 if test "x$CC" != xcc; then
4520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4521 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4522 else
4523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4524 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4525 fi
4526 set dummy $CC; ac_cc=`$as_echo "$2" |
4527                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4528 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4529   $as_echo_n "(cached) " >&6
4530 else
4531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h.  */
4533
4534 int
4535 main ()
4536 {
4537
4538   ;
4539   return 0;
4540 }
4541 _ACEOF
4542 # Make sure it works both with $CC and with simple cc.
4543 # We do the test twice because some compilers refuse to overwrite an
4544 # existing .o file with -o, though they will create one.
4545 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4546 rm -f conftest2.*
4547 if { { case "(($ac_try" in
4548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549   *) ac_try_echo=$ac_try;;
4550 esac
4551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4552 $as_echo "$ac_try_echo"; } >&5
4553   (eval "$ac_try") 2>&5
4554   ac_status=$?
4555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4556   test $ac_status = 0; } &&
4557    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559   *) ac_try_echo=$ac_try;;
4560 esac
4561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4562 $as_echo "$ac_try_echo"; } >&5
4563   (eval "$ac_try") 2>&5
4564   ac_status=$?
4565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4566   test $ac_status = 0; };
4567 then
4568   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4569   if test "x$CC" != xcc; then
4570     # Test first that cc exists at all.
4571     if { ac_try='cc -c conftest.$ac_ext >&5'
4572   { { case "(($ac_try" in
4573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574   *) ac_try_echo=$ac_try;;
4575 esac
4576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4577 $as_echo "$ac_try_echo"; } >&5
4578   (eval "$ac_try") 2>&5
4579   ac_status=$?
4580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4581   test $ac_status = 0; }; }; then
4582       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4583       rm -f conftest2.*
4584       if { { case "(($ac_try" in
4585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586   *) ac_try_echo=$ac_try;;
4587 esac
4588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4589 $as_echo "$ac_try_echo"; } >&5
4590   (eval "$ac_try") 2>&5
4591   ac_status=$?
4592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4593   test $ac_status = 0; } &&
4594          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596   *) ac_try_echo=$ac_try;;
4597 esac
4598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4599 $as_echo "$ac_try_echo"; } >&5
4600   (eval "$ac_try") 2>&5
4601   ac_status=$?
4602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4603   test $ac_status = 0; };
4604       then
4605         # cc works too.
4606         :
4607       else
4608         # cc exists but doesn't like -o.
4609         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4610       fi
4611     fi
4612   fi
4613 else
4614   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4615 fi
4616 rm -f core conftest*
4617
4618 fi
4619 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4621 $as_echo "yes" >&6; }
4622 else
4623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4625
4626 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4627
4628 fi
4629
4630 # FIXME: we rely on the cache variable name because
4631 # there is no other way.
4632 set dummy $CC
4633 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4634 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4635 if test "$am_t" != yes; then
4636    # Losing compiler, so override with the script.
4637    # FIXME: It is wrong to rewrite CC.
4638    # But if we don't then we get into trouble of one sort or another.
4639    # A longer-term fix would be to have automake use am__CC in this case,
4640    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4641    CC="$am_aux_dir/compile $CC"
4642 fi
4643
4644
4645
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4647 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4648     # Check whether --enable-maintainer-mode was given.
4649 if test "${enable_maintainer_mode+set}" = set; then :
4650   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4651 else
4652   USE_MAINTAINER_MODE=no
4653 fi
4654
4655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4656 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4657    if test $USE_MAINTAINER_MODE = yes; then
4658   MAINTAINER_MODE_TRUE=
4659   MAINTAINER_MODE_FALSE='#'
4660 else
4661   MAINTAINER_MODE_TRUE='#'
4662   MAINTAINER_MODE_FALSE=
4663 fi
4664
4665   MAINT=$MAINTAINER_MODE_TRUE
4666
4667
4668
4669 case `pwd` in
4670   *\ * | *\     *)
4671     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4672 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4673 esac
4674
4675
4676
4677 macro_version='2.4.2'
4678 macro_revision='1.3337'
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692 ltmain="$ac_aux_dir/ltmain.sh"
4693
4694 # Make sure we can run config.sub.
4695 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4696   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4699 $as_echo_n "checking build system type... " >&6; }
4700 if ${ac_cv_build+:} false; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   ac_build_alias=$build_alias
4704 test "x$ac_build_alias" = x &&
4705   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4706 test "x$ac_build_alias" = x &&
4707   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4708 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4709   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4710
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4713 $as_echo "$ac_cv_build" >&6; }
4714 case $ac_cv_build in
4715 *-*-*) ;;
4716 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4717 esac
4718 build=$ac_cv_build
4719 ac_save_IFS=$IFS; IFS='-'
4720 set x $ac_cv_build
4721 shift
4722 build_cpu=$1
4723 build_vendor=$2
4724 shift; shift
4725 # Remember, the first character of IFS is used to create $*,
4726 # except with old shells:
4727 build_os=$*
4728 IFS=$ac_save_IFS
4729 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4730
4731
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4733 $as_echo_n "checking host system type... " >&6; }
4734 if ${ac_cv_host+:} false; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737   if test "x$host_alias" = x; then
4738   ac_cv_host=$ac_cv_build
4739 else
4740   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4741     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4742 fi
4743
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4746 $as_echo "$ac_cv_host" >&6; }
4747 case $ac_cv_host in
4748 *-*-*) ;;
4749 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4750 esac
4751 host=$ac_cv_host
4752 ac_save_IFS=$IFS; IFS='-'
4753 set x $ac_cv_host
4754 shift
4755 host_cpu=$1
4756 host_vendor=$2
4757 shift; shift
4758 # Remember, the first character of IFS is used to create $*,
4759 # except with old shells:
4760 host_os=$*
4761 IFS=$ac_save_IFS
4762 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4763
4764
4765 # Backslashify metacharacters that are still active within
4766 # double-quoted strings.
4767 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4768
4769 # Same as above, but do not quote variable references.
4770 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4771
4772 # Sed substitution to delay expansion of an escaped shell variable in a
4773 # double_quote_subst'ed string.
4774 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4775
4776 # Sed substitution to delay expansion of an escaped single quote.
4777 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4778
4779 # Sed substitution to avoid accidental globbing in evaled expressions
4780 no_glob_subst='s/\*/\\\*/g'
4781
4782 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4783 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4784 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4787 $as_echo_n "checking how to print strings... " >&6; }
4788 # Test print first, because it will be a builtin if present.
4789 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4790    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4791   ECHO='print -r --'
4792 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4793   ECHO='printf %s\n'
4794 else
4795   # Use this function as a fallback that always works.
4796   func_fallback_echo ()
4797   {
4798     eval 'cat <<_LTECHO_EOF
4799 $1
4800 _LTECHO_EOF'
4801   }
4802   ECHO='func_fallback_echo'
4803 fi
4804
4805 # func_echo_all arg...
4806 # Invoke $ECHO with all args, space-separated.
4807 func_echo_all ()
4808 {
4809     $ECHO ""
4810 }
4811
4812 case "$ECHO" in
4813   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4814 $as_echo "printf" >&6; } ;;
4815   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4816 $as_echo "print -r" >&6; } ;;
4817   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4818 $as_echo "cat" >&6; } ;;
4819 esac
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4835 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4836 if ${ac_cv_path_SED+:} false; then :
4837   $as_echo_n "(cached) " >&6
4838 else
4839             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4840      for ac_i in 1 2 3 4 5 6 7; do
4841        ac_script="$ac_script$as_nl$ac_script"
4842      done
4843      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4844      { ac_script=; unset ac_script;}
4845      if test -z "$SED"; then
4846   ac_path_SED_found=false
4847   # Loop through the user's path and test for each of PROGNAME-LIST
4848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4850 do
4851   IFS=$as_save_IFS
4852   test -z "$as_dir" && as_dir=.
4853     for ac_prog in sed gsed; do
4854     for ac_exec_ext in '' $ac_executable_extensions; do
4855       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4856       as_fn_executable_p "$ac_path_SED" || continue
4857 # Check for GNU ac_path_SED and select it if it is found.
4858   # Check for GNU $ac_path_SED
4859 case `"$ac_path_SED" --version 2>&1` in
4860 *GNU*)
4861   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4862 *)
4863   ac_count=0
4864   $as_echo_n 0123456789 >"conftest.in"
4865   while :
4866   do
4867     cat "conftest.in" "conftest.in" >"conftest.tmp"
4868     mv "conftest.tmp" "conftest.in"
4869     cp "conftest.in" "conftest.nl"
4870     $as_echo '' >> "conftest.nl"
4871     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4872     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4873     as_fn_arith $ac_count + 1 && ac_count=$as_val
4874     if test $ac_count -gt ${ac_path_SED_max-0}; then
4875       # Best one so far, save it but keep looking for a better one
4876       ac_cv_path_SED="$ac_path_SED"
4877       ac_path_SED_max=$ac_count
4878     fi
4879     # 10*(2^10) chars as input seems more than enough
4880     test $ac_count -gt 10 && break
4881   done
4882   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4883 esac
4884
4885       $ac_path_SED_found && break 3
4886     done
4887   done
4888   done
4889 IFS=$as_save_IFS
4890   if test -z "$ac_cv_path_SED"; then
4891     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4892   fi
4893 else
4894   ac_cv_path_SED=$SED
4895 fi
4896
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4899 $as_echo "$ac_cv_path_SED" >&6; }
4900  SED="$ac_cv_path_SED"
4901   rm -f conftest.sed
4902
4903 test -z "$SED" && SED=sed
4904 Xsed="$SED -e 1s/^X//"
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4917 $as_echo_n "checking for fgrep... " >&6; }
4918 if ${ac_cv_path_FGREP+:} false; then :
4919   $as_echo_n "(cached) " >&6
4920 else
4921   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4922    then ac_cv_path_FGREP="$GREP -F"
4923    else
4924      if test -z "$FGREP"; then
4925   ac_path_FGREP_found=false
4926   # Loop through the user's path and test for each of PROGNAME-LIST
4927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4929 do
4930   IFS=$as_save_IFS
4931   test -z "$as_dir" && as_dir=.
4932     for ac_prog in fgrep; do
4933     for ac_exec_ext in '' $ac_executable_extensions; do
4934       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4935       as_fn_executable_p "$ac_path_FGREP" || continue
4936 # Check for GNU ac_path_FGREP and select it if it is found.
4937   # Check for GNU $ac_path_FGREP
4938 case `"$ac_path_FGREP" --version 2>&1` in
4939 *GNU*)
4940   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4941 *)
4942   ac_count=0
4943   $as_echo_n 0123456789 >"conftest.in"
4944   while :
4945   do
4946     cat "conftest.in" "conftest.in" >"conftest.tmp"
4947     mv "conftest.tmp" "conftest.in"
4948     cp "conftest.in" "conftest.nl"
4949     $as_echo 'FGREP' >> "conftest.nl"
4950     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4951     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4952     as_fn_arith $ac_count + 1 && ac_count=$as_val
4953     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4954       # Best one so far, save it but keep looking for a better one
4955       ac_cv_path_FGREP="$ac_path_FGREP"
4956       ac_path_FGREP_max=$ac_count
4957     fi
4958     # 10*(2^10) chars as input seems more than enough
4959     test $ac_count -gt 10 && break
4960   done
4961   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4962 esac
4963
4964       $ac_path_FGREP_found && break 3
4965     done
4966   done
4967   done
4968 IFS=$as_save_IFS
4969   if test -z "$ac_cv_path_FGREP"; then
4970     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4971   fi
4972 else
4973   ac_cv_path_FGREP=$FGREP
4974 fi
4975
4976    fi
4977 fi
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4979 $as_echo "$ac_cv_path_FGREP" >&6; }
4980  FGREP="$ac_cv_path_FGREP"
4981
4982
4983 test -z "$GREP" && GREP=grep
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003 # Check whether --with-gnu-ld was given.
5004 if test "${with_gnu_ld+set}" = set; then :
5005   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5006 else
5007   with_gnu_ld=no
5008 fi
5009
5010 ac_prog=ld
5011 if test "$GCC" = yes; then
5012   # Check if gcc -print-prog-name=ld gives a path.
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5014 $as_echo_n "checking for ld used by $CC... " >&6; }
5015   case $host in
5016   *-*-mingw*)
5017     # gcc leaves a trailing carriage return which upsets mingw
5018     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5019   *)
5020     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5021   esac
5022   case $ac_prog in
5023     # Accept absolute paths.
5024     [\\/]* | ?:[\\/]*)
5025       re_direlt='/[^/][^/]*/\.\./'
5026       # Canonicalize the pathname of ld
5027       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5028       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5029         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5030       done
5031       test -z "$LD" && LD="$ac_prog"
5032       ;;
5033   "")
5034     # If it fails, then pretend we aren't using GCC.
5035     ac_prog=ld
5036     ;;
5037   *)
5038     # If it is relative, then search for the first ld in PATH.
5039     with_gnu_ld=unknown
5040     ;;
5041   esac
5042 elif test "$with_gnu_ld" = yes; then
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5044 $as_echo_n "checking for GNU ld... " >&6; }
5045 else
5046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5047 $as_echo_n "checking for non-GNU ld... " >&6; }
5048 fi
5049 if ${lt_cv_path_LD+:} false; then :
5050   $as_echo_n "(cached) " >&6
5051 else
5052   if test -z "$LD"; then
5053   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5054   for ac_dir in $PATH; do
5055     IFS="$lt_save_ifs"
5056     test -z "$ac_dir" && ac_dir=.
5057     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5058       lt_cv_path_LD="$ac_dir/$ac_prog"
5059       # Check to see if the program is GNU ld.  I'd rather use --version,
5060       # but apparently some variants of GNU ld only accept -v.
5061       # Break only if it was the GNU/non-GNU ld that we prefer.
5062       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5063       *GNU* | *'with BFD'*)
5064         test "$with_gnu_ld" != no && break
5065         ;;
5066       *)
5067         test "$with_gnu_ld" != yes && break
5068         ;;
5069       esac
5070     fi
5071   done
5072   IFS="$lt_save_ifs"
5073 else
5074   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5075 fi
5076 fi
5077
5078 LD="$lt_cv_path_LD"
5079 if test -n "$LD"; then
5080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5081 $as_echo "$LD" >&6; }
5082 else
5083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5085 fi
5086 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5088 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5089 if ${lt_cv_prog_gnu_ld+:} false; then :
5090   $as_echo_n "(cached) " >&6
5091 else
5092   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5093 case `$LD -v 2>&1 </dev/null` in
5094 *GNU* | *'with BFD'*)
5095   lt_cv_prog_gnu_ld=yes
5096   ;;
5097 *)
5098   lt_cv_prog_gnu_ld=no
5099   ;;
5100 esac
5101 fi
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5103 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5104 with_gnu_ld=$lt_cv_prog_gnu_ld
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5115 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5116 if ${lt_cv_path_NM+:} false; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   if test -n "$NM"; then
5120   # Let the user override the test.
5121   lt_cv_path_NM="$NM"
5122 else
5123   lt_nm_to_check="${ac_tool_prefix}nm"
5124   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5125     lt_nm_to_check="$lt_nm_to_check nm"
5126   fi
5127   for lt_tmp_nm in $lt_nm_to_check; do
5128     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5129     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5130       IFS="$lt_save_ifs"
5131       test -z "$ac_dir" && ac_dir=.
5132       tmp_nm="$ac_dir/$lt_tmp_nm"
5133       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5134         # Check to see if the nm accepts a BSD-compat flag.
5135         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5136         #   nm: unknown option "B" ignored
5137         # Tru64's nm complains that /dev/null is an invalid object file
5138         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5139         */dev/null* | *'Invalid file or object type'*)
5140           lt_cv_path_NM="$tmp_nm -B"
5141           break
5142           ;;
5143         *)
5144           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5145           */dev/null*)
5146             lt_cv_path_NM="$tmp_nm -p"
5147             break
5148             ;;
5149           *)
5150             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5151             continue # so that we can try to find one that supports BSD flags
5152             ;;
5153           esac
5154           ;;
5155         esac
5156       fi
5157     done
5158     IFS="$lt_save_ifs"
5159   done
5160   : ${lt_cv_path_NM=no}
5161 fi
5162 fi
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5164 $as_echo "$lt_cv_path_NM" >&6; }
5165 if test "$lt_cv_path_NM" != "no"; then
5166   NM="$lt_cv_path_NM"
5167 else
5168   # Didn't find any BSD compatible name lister, look for dumpbin.
5169   if test -n "$DUMPBIN"; then :
5170     # Let the user override the test.
5171   else
5172     if test -n "$ac_tool_prefix"; then
5173   for ac_prog in dumpbin "link -dump"
5174   do
5175     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_DUMPBIN+:} false; then :
5180   $as_echo_n "(cached) " >&6
5181 else
5182   if test -n "$DUMPBIN"; then
5183   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188   IFS=$as_save_IFS
5189   test -z "$as_dir" && as_dir=.
5190     for ac_exec_ext in '' $ac_executable_extensions; do
5191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194     break 2
5195   fi
5196 done
5197   done
5198 IFS=$as_save_IFS
5199
5200 fi
5201 fi
5202 DUMPBIN=$ac_cv_prog_DUMPBIN
5203 if test -n "$DUMPBIN"; then
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5205 $as_echo "$DUMPBIN" >&6; }
5206 else
5207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5209 fi
5210
5211
5212     test -n "$DUMPBIN" && break
5213   done
5214 fi
5215 if test -z "$DUMPBIN"; then
5216   ac_ct_DUMPBIN=$DUMPBIN
5217   for ac_prog in dumpbin "link -dump"
5218 do
5219   # Extract the first word of "$ac_prog", so it can be a program name with args.
5220 set dummy $ac_prog; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5224   $as_echo_n "(cached) " >&6
5225 else
5226   if test -n "$ac_ct_DUMPBIN"; then
5227   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232   IFS=$as_save_IFS
5233   test -z "$as_dir" && as_dir=.
5234     for ac_exec_ext in '' $ac_executable_extensions; do
5235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238     break 2
5239   fi
5240 done
5241   done
5242 IFS=$as_save_IFS
5243
5244 fi
5245 fi
5246 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5247 if test -n "$ac_ct_DUMPBIN"; then
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5249 $as_echo "$ac_ct_DUMPBIN" >&6; }
5250 else
5251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253 fi
5254
5255
5256   test -n "$ac_ct_DUMPBIN" && break
5257 done
5258
5259   if test "x$ac_ct_DUMPBIN" = x; then
5260     DUMPBIN=":"
5261   else
5262     case $cross_compiling:$ac_tool_warned in
5263 yes:)
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5266 ac_tool_warned=yes ;;
5267 esac
5268     DUMPBIN=$ac_ct_DUMPBIN
5269   fi
5270 fi
5271
5272     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5273     *COFF*)
5274       DUMPBIN="$DUMPBIN -symbols"
5275       ;;
5276     *)
5277       DUMPBIN=:
5278       ;;
5279     esac
5280   fi
5281
5282   if test "$DUMPBIN" != ":"; then
5283     NM="$DUMPBIN"
5284   fi
5285 fi
5286 test -z "$NM" && NM=nm
5287
5288
5289
5290
5291
5292
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5294 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5295 if ${lt_cv_nm_interface+:} false; then :
5296   $as_echo_n "(cached) " >&6
5297 else
5298   lt_cv_nm_interface="BSD nm"
5299   echo "int some_variable = 0;" > conftest.$ac_ext
5300   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5301   (eval "$ac_compile" 2>conftest.err)
5302   cat conftest.err >&5
5303   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5304   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5305   cat conftest.err >&5
5306   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5307   cat conftest.out >&5
5308   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5309     lt_cv_nm_interface="MS dumpbin"
5310   fi
5311   rm -f conftest*
5312 fi
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5314 $as_echo "$lt_cv_nm_interface" >&6; }
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5317 $as_echo_n "checking whether ln -s works... " >&6; }
5318 LN_S=$as_ln_s
5319 if test "$LN_S" = "ln -s"; then
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5321 $as_echo "yes" >&6; }
5322 else
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5324 $as_echo "no, using $LN_S" >&6; }
5325 fi
5326
5327 # find the maximum length of command line arguments
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5329 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5330 if ${lt_cv_sys_max_cmd_len+:} false; then :
5331   $as_echo_n "(cached) " >&6
5332 else
5333     i=0
5334   teststring="ABCD"
5335
5336   case $build_os in
5337   msdosdjgpp*)
5338     # On DJGPP, this test can blow up pretty badly due to problems in libc
5339     # (any single argument exceeding 2000 bytes causes a buffer overrun
5340     # during glob expansion).  Even if it were fixed, the result of this
5341     # check would be larger than it should be.
5342     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5343     ;;
5344
5345   gnu*)
5346     # Under GNU Hurd, this test is not required because there is
5347     # no limit to the length of command line arguments.
5348     # Libtool will interpret -1 as no limit whatsoever
5349     lt_cv_sys_max_cmd_len=-1;
5350     ;;
5351
5352   cygwin* | mingw* | cegcc*)
5353     # On Win9x/ME, this test blows up -- it succeeds, but takes
5354     # about 5 minutes as the teststring grows exponentially.
5355     # Worse, since 9x/ME are not pre-emptively multitasking,
5356     # you end up with a "frozen" computer, even though with patience
5357     # the test eventually succeeds (with a max line length of 256k).
5358     # Instead, let's just punt: use the minimum linelength reported by
5359     # all of the supported platforms: 8192 (on NT/2K/XP).
5360     lt_cv_sys_max_cmd_len=8192;
5361     ;;
5362
5363   mint*)
5364     # On MiNT this can take a long time and run out of memory.
5365     lt_cv_sys_max_cmd_len=8192;
5366     ;;
5367
5368   amigaos*)
5369     # On AmigaOS with pdksh, this test takes hours, literally.
5370     # So we just punt and use a minimum line length of 8192.
5371     lt_cv_sys_max_cmd_len=8192;
5372     ;;
5373
5374   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5375     # This has been around since 386BSD, at least.  Likely further.
5376     if test -x /sbin/sysctl; then
5377       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5378     elif test -x /usr/sbin/sysctl; then
5379       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5380     else
5381       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5382     fi
5383     # And add a safety zone
5384     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5385     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5386     ;;
5387
5388   interix*)
5389     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5390     lt_cv_sys_max_cmd_len=196608
5391     ;;
5392
5393   os2*)
5394     # The test takes a long time on OS/2.
5395     lt_cv_sys_max_cmd_len=8192
5396     ;;
5397
5398   osf*)
5399     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5400     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5401     # nice to cause kernel panics so lets avoid the loop below.
5402     # First set a reasonable default.
5403     lt_cv_sys_max_cmd_len=16384
5404     #
5405     if test -x /sbin/sysconfig; then
5406       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5407         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5408       esac
5409     fi
5410     ;;
5411   sco3.2v5*)
5412     lt_cv_sys_max_cmd_len=102400
5413     ;;
5414   sysv5* | sco5v6* | sysv4.2uw2*)
5415     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5416     if test -n "$kargmax"; then
5417       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5418     else
5419       lt_cv_sys_max_cmd_len=32768
5420     fi
5421     ;;
5422   *)
5423     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5424     if test -n "$lt_cv_sys_max_cmd_len"; then
5425       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5426       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5427     else
5428       # Make teststring a little bigger before we do anything with it.
5429       # a 1K string should be a reasonable start.
5430       for i in 1 2 3 4 5 6 7 8 ; do
5431         teststring=$teststring$teststring
5432       done
5433       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5434       # If test is not a shell built-in, we'll probably end up computing a
5435       # maximum length that is only half of the actual maximum length, but
5436       # we can't tell.
5437       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5438                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5439               test $i != 17 # 1/2 MB should be enough
5440       do
5441         i=`expr $i + 1`
5442         teststring=$teststring$teststring
5443       done
5444       # Only check the string length outside the loop.
5445       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5446       teststring=
5447       # Add a significant safety factor because C++ compilers can tack on
5448       # massive amounts of additional arguments before passing them to the
5449       # linker.  It appears as though 1/2 is a usable value.
5450       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5451     fi
5452     ;;
5453   esac
5454
5455 fi
5456
5457 if test -n $lt_cv_sys_max_cmd_len ; then
5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5459 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5460 else
5461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5462 $as_echo "none" >&6; }
5463 fi
5464 max_cmd_len=$lt_cv_sys_max_cmd_len
5465
5466
5467
5468
5469
5470
5471 : ${CP="cp -f"}
5472 : ${MV="mv -f"}
5473 : ${RM="rm -f"}
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5476 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5477 # Try some XSI features
5478 xsi_shell=no
5479 ( _lt_dummy="a/b/c"
5480   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5481       = c,a/b,b/c, \
5482     && eval 'test $(( 1 + 1 )) -eq 2 \
5483     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5484   && xsi_shell=yes
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5486 $as_echo "$xsi_shell" >&6; }
5487
5488
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5490 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5491 lt_shell_append=no
5492 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5493     >/dev/null 2>&1 \
5494   && lt_shell_append=yes
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5496 $as_echo "$lt_shell_append" >&6; }
5497
5498
5499 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5500   lt_unset=unset
5501 else
5502   lt_unset=false
5503 fi
5504
5505
5506
5507
5508
5509 # test EBCDIC or ASCII
5510 case `echo X|tr X '\101'` in
5511  A) # ASCII based system
5512     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5513   lt_SP2NL='tr \040 \012'
5514   lt_NL2SP='tr \015\012 \040\040'
5515   ;;
5516  *) # EBCDIC based system
5517   lt_SP2NL='tr \100 \n'
5518   lt_NL2SP='tr \r\n \100\100'
5519   ;;
5520 esac
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5531 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5532 if ${lt_cv_to_host_file_cmd+:} false; then :
5533   $as_echo_n "(cached) " >&6
5534 else
5535   case $host in
5536   *-*-mingw* )
5537     case $build in
5538       *-*-mingw* ) # actually msys
5539         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5540         ;;
5541       *-*-cygwin* )
5542         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5543         ;;
5544       * ) # otherwise, assume *nix
5545         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5546         ;;
5547     esac
5548     ;;
5549   *-*-cygwin* )
5550     case $build in
5551       *-*-mingw* ) # actually msys
5552         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5553         ;;
5554       *-*-cygwin* )
5555         lt_cv_to_host_file_cmd=func_convert_file_noop
5556         ;;
5557       * ) # otherwise, assume *nix
5558         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5559         ;;
5560     esac
5561     ;;
5562   * ) # unhandled hosts (and "normal" native builds)
5563     lt_cv_to_host_file_cmd=func_convert_file_noop
5564     ;;
5565 esac
5566
5567 fi
5568
5569 to_host_file_cmd=$lt_cv_to_host_file_cmd
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5571 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5572
5573
5574
5575
5576
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5578 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5579 if ${lt_cv_to_tool_file_cmd+:} false; then :
5580   $as_echo_n "(cached) " >&6
5581 else
5582   #assume ordinary cross tools, or native build.
5583 lt_cv_to_tool_file_cmd=func_convert_file_noop
5584 case $host in
5585   *-*-mingw* )
5586     case $build in
5587       *-*-mingw* ) # actually msys
5588         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5589         ;;
5590     esac
5591     ;;
5592 esac
5593
5594 fi
5595
5596 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5598 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5599
5600
5601
5602
5603
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5605 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5606 if ${lt_cv_ld_reload_flag+:} false; then :
5607   $as_echo_n "(cached) " >&6
5608 else
5609   lt_cv_ld_reload_flag='-r'
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5612 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5613 reload_flag=$lt_cv_ld_reload_flag
5614 case $reload_flag in
5615 "" | " "*) ;;
5616 *) reload_flag=" $reload_flag" ;;
5617 esac
5618 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5619 case $host_os in
5620   cygwin* | mingw* | pw32* | cegcc*)
5621     if test "$GCC" != yes; then
5622       reload_cmds=false
5623     fi
5624     ;;
5625   darwin*)
5626     if test "$GCC" = yes; then
5627       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5628     else
5629       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5630     fi
5631     ;;
5632 esac
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642 if test -n "$ac_tool_prefix"; then
5643   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5644 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_prog_OBJDUMP+:} false; then :
5648   $as_echo_n "(cached) " >&6
5649 else
5650   if test -n "$OBJDUMP"; then
5651   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656   IFS=$as_save_IFS
5657   test -z "$as_dir" && as_dir=.
5658     for ac_exec_ext in '' $ac_executable_extensions; do
5659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662     break 2
5663   fi
5664 done
5665   done
5666 IFS=$as_save_IFS
5667
5668 fi
5669 fi
5670 OBJDUMP=$ac_cv_prog_OBJDUMP
5671 if test -n "$OBJDUMP"; then
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5673 $as_echo "$OBJDUMP" >&6; }
5674 else
5675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5677 fi
5678
5679
5680 fi
5681 if test -z "$ac_cv_prog_OBJDUMP"; then
5682   ac_ct_OBJDUMP=$OBJDUMP
5683   # Extract the first word of "objdump", so it can be a program name with args.
5684 set dummy objdump; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   if test -n "$ac_ct_OBJDUMP"; then
5691   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5692 else
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696   IFS=$as_save_IFS
5697   test -z "$as_dir" && as_dir=.
5698     for ac_exec_ext in '' $ac_executable_extensions; do
5699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702     break 2
5703   fi
5704 done
5705   done
5706 IFS=$as_save_IFS
5707
5708 fi
5709 fi
5710 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5711 if test -n "$ac_ct_OBJDUMP"; then
5712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5713 $as_echo "$ac_ct_OBJDUMP" >&6; }
5714 else
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5717 fi
5718
5719   if test "x$ac_ct_OBJDUMP" = x; then
5720     OBJDUMP="false"
5721   else
5722     case $cross_compiling:$ac_tool_warned in
5723 yes:)
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726 ac_tool_warned=yes ;;
5727 esac
5728     OBJDUMP=$ac_ct_OBJDUMP
5729   fi
5730 else
5731   OBJDUMP="$ac_cv_prog_OBJDUMP"
5732 fi
5733
5734 test -z "$OBJDUMP" && OBJDUMP=objdump
5735
5736
5737
5738
5739
5740
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5742 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5743 if ${lt_cv_deplibs_check_method+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746   lt_cv_file_magic_cmd='$MAGIC_CMD'
5747 lt_cv_file_magic_test_file=
5748 lt_cv_deplibs_check_method='unknown'
5749 # Need to set the preceding variable on all platforms that support
5750 # interlibrary dependencies.
5751 # 'none' -- dependencies not supported.
5752 # `unknown' -- same as none, but documents that we really don't know.
5753 # 'pass_all' -- all dependencies passed with no checks.
5754 # 'test_compile' -- check by making test program.
5755 # 'file_magic [[regex]]' -- check by looking for files in library path
5756 # which responds to the $file_magic_cmd with a given extended regex.
5757 # If you have `file' or equivalent on your system and you're not sure
5758 # whether `pass_all' will *always* work, you probably want this one.
5759
5760 case $host_os in
5761 aix[4-9]*)
5762   lt_cv_deplibs_check_method=pass_all
5763   ;;
5764
5765 beos*)
5766   lt_cv_deplibs_check_method=pass_all
5767   ;;
5768
5769 bsdi[45]*)
5770   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5771   lt_cv_file_magic_cmd='/usr/bin/file -L'
5772   lt_cv_file_magic_test_file=/shlib/libc.so
5773   ;;
5774
5775 cygwin*)
5776   # func_win32_libid is a shell function defined in ltmain.sh
5777   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5778   lt_cv_file_magic_cmd='func_win32_libid'
5779   ;;
5780
5781 mingw* | pw32*)
5782   # Base MSYS/MinGW do not provide the 'file' command needed by
5783   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5784   # unless we find 'file', for example because we are cross-compiling.
5785   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5786   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5787     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5788     lt_cv_file_magic_cmd='func_win32_libid'
5789   else
5790     # Keep this pattern in sync with the one in func_win32_libid.
5791     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5792     lt_cv_file_magic_cmd='$OBJDUMP -f'
5793   fi
5794   ;;
5795
5796 cegcc*)
5797   # use the weaker test based on 'objdump'. See mingw*.
5798   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5799   lt_cv_file_magic_cmd='$OBJDUMP -f'
5800   ;;
5801
5802 darwin* | rhapsody*)
5803   lt_cv_deplibs_check_method=pass_all
5804   ;;
5805
5806 freebsd* | dragonfly*)
5807   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5808     case $host_cpu in
5809     i*86 )
5810       # Not sure whether the presence of OpenBSD here was a mistake.
5811       # Let's accept both of them until this is cleared up.
5812       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5813       lt_cv_file_magic_cmd=/usr/bin/file
5814       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5815       ;;
5816     esac
5817   else
5818     lt_cv_deplibs_check_method=pass_all
5819   fi
5820   ;;
5821
5822 haiku*)
5823   lt_cv_deplibs_check_method=pass_all
5824   ;;
5825
5826 hpux10.20* | hpux11*)
5827   lt_cv_file_magic_cmd=/usr/bin/file
5828   case $host_cpu in
5829   ia64*)
5830     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5831     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5832     ;;
5833   hppa*64*)
5834     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5835     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5836     ;;
5837   *)
5838     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5839     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5840     ;;
5841   esac
5842   ;;
5843
5844 interix[3-9]*)
5845   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5846   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5847   ;;
5848
5849 irix5* | irix6* | nonstopux*)
5850   case $LD in
5851   *-32|*"-32 ") libmagic=32-bit;;
5852   *-n32|*"-n32 ") libmagic=N32;;
5853   *-64|*"-64 ") libmagic=64-bit;;
5854   *) libmagic=never-match;;
5855   esac
5856   lt_cv_deplibs_check_method=pass_all
5857   ;;
5858
5859 # This must be glibc/ELF.
5860 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5861   lt_cv_deplibs_check_method=pass_all
5862   ;;
5863
5864 netbsd* | netbsdelf*-gnu)
5865   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5866     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5867   else
5868     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5869   fi
5870   ;;
5871
5872 newos6*)
5873   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5874   lt_cv_file_magic_cmd=/usr/bin/file
5875   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5876   ;;
5877
5878 *nto* | *qnx*)
5879   lt_cv_deplibs_check_method=pass_all
5880   ;;
5881
5882 openbsd*)
5883   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5884     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5885   else
5886     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5887   fi
5888   ;;
5889
5890 osf3* | osf4* | osf5*)
5891   lt_cv_deplibs_check_method=pass_all
5892   ;;
5893
5894 rdos*)
5895   lt_cv_deplibs_check_method=pass_all
5896   ;;
5897
5898 solaris*)
5899   lt_cv_deplibs_check_method=pass_all
5900   ;;
5901
5902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5903   lt_cv_deplibs_check_method=pass_all
5904   ;;
5905
5906 sysv4 | sysv4.3*)
5907   case $host_vendor in
5908   motorola)
5909     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]'
5910     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5911     ;;
5912   ncr)
5913     lt_cv_deplibs_check_method=pass_all
5914     ;;
5915   sequent)
5916     lt_cv_file_magic_cmd='/bin/file'
5917     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5918     ;;
5919   sni)
5920     lt_cv_file_magic_cmd='/bin/file'
5921     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5922     lt_cv_file_magic_test_file=/lib/libc.so
5923     ;;
5924   siemens)
5925     lt_cv_deplibs_check_method=pass_all
5926     ;;
5927   pc)
5928     lt_cv_deplibs_check_method=pass_all
5929     ;;
5930   esac
5931   ;;
5932
5933 tpf*)
5934   lt_cv_deplibs_check_method=pass_all
5935   ;;
5936 esac
5937
5938 fi
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5940 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5941
5942 file_magic_glob=
5943 want_nocaseglob=no
5944 if test "$build" = "$host"; then
5945   case $host_os in
5946   mingw* | pw32*)
5947     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5948       want_nocaseglob=yes
5949     else
5950       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5951     fi
5952     ;;
5953   esac
5954 fi
5955
5956 file_magic_cmd=$lt_cv_file_magic_cmd
5957 deplibs_check_method=$lt_cv_deplibs_check_method
5958 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981 if test -n "$ac_tool_prefix"; then
5982   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5983 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_prog_DLLTOOL+:} false; then :
5987   $as_echo_n "(cached) " >&6
5988 else
5989   if test -n "$DLLTOOL"; then
5990   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997     for ac_exec_ext in '' $ac_executable_extensions; do
5998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001     break 2
6002   fi
6003 done
6004   done
6005 IFS=$as_save_IFS
6006
6007 fi
6008 fi
6009 DLLTOOL=$ac_cv_prog_DLLTOOL
6010 if test -n "$DLLTOOL"; then
6011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6012 $as_echo "$DLLTOOL" >&6; }
6013 else
6014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6016 fi
6017
6018
6019 fi
6020 if test -z "$ac_cv_prog_DLLTOOL"; then
6021   ac_ct_DLLTOOL=$DLLTOOL
6022   # Extract the first word of "dlltool", so it can be a program name with args.
6023 set dummy dlltool; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6027   $as_echo_n "(cached) " >&6
6028 else
6029   if test -n "$ac_ct_DLLTOOL"; then
6030   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6034 do
6035   IFS=$as_save_IFS
6036   test -z "$as_dir" && as_dir=.
6037     for ac_exec_ext in '' $ac_executable_extensions; do
6038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041     break 2
6042   fi
6043 done
6044   done
6045 IFS=$as_save_IFS
6046
6047 fi
6048 fi
6049 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6050 if test -n "$ac_ct_DLLTOOL"; then
6051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6052 $as_echo "$ac_ct_DLLTOOL" >&6; }
6053 else
6054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6056 fi
6057
6058   if test "x$ac_ct_DLLTOOL" = x; then
6059     DLLTOOL="false"
6060   else
6061     case $cross_compiling:$ac_tool_warned in
6062 yes:)
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6065 ac_tool_warned=yes ;;
6066 esac
6067     DLLTOOL=$ac_ct_DLLTOOL
6068   fi
6069 else
6070   DLLTOOL="$ac_cv_prog_DLLTOOL"
6071 fi
6072
6073 test -z "$DLLTOOL" && DLLTOOL=dlltool
6074
6075
6076
6077
6078
6079
6080
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6082 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6083 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6084   $as_echo_n "(cached) " >&6
6085 else
6086   lt_cv_sharedlib_from_linklib_cmd='unknown'
6087
6088 case $host_os in
6089 cygwin* | mingw* | pw32* | cegcc*)
6090   # two different shell functions defined in ltmain.sh
6091   # decide which to use based on capabilities of $DLLTOOL
6092   case `$DLLTOOL --help 2>&1` in
6093   *--identify-strict*)
6094     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6095     ;;
6096   *)
6097     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6098     ;;
6099   esac
6100   ;;
6101 *)
6102   # fallback: assume linklib IS sharedlib
6103   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6104   ;;
6105 esac
6106
6107 fi
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6109 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6110 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6111 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6112
6113
6114
6115
6116
6117
6118
6119 if test -n "$ac_tool_prefix"; then
6120   for ac_prog in ar
6121   do
6122     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if ${ac_cv_prog_AR+:} false; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   if test -n "$AR"; then
6130   ac_cv_prog_AR="$AR" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6134 do
6135   IFS=$as_save_IFS
6136   test -z "$as_dir" && as_dir=.
6137     for ac_exec_ext in '' $ac_executable_extensions; do
6138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6139     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141     break 2
6142   fi
6143 done
6144   done
6145 IFS=$as_save_IFS
6146
6147 fi
6148 fi
6149 AR=$ac_cv_prog_AR
6150 if test -n "$AR"; then
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6152 $as_echo "$AR" >&6; }
6153 else
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6156 fi
6157
6158
6159     test -n "$AR" && break
6160   done
6161 fi
6162 if test -z "$AR"; then
6163   ac_ct_AR=$AR
6164   for ac_prog in ar
6165 do
6166   # Extract the first word of "$ac_prog", so it can be a program name with args.
6167 set dummy $ac_prog; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6171   $as_echo_n "(cached) " >&6
6172 else
6173   if test -n "$ac_ct_AR"; then
6174   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181     for ac_exec_ext in '' $ac_executable_extensions; do
6182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183     ac_cv_prog_ac_ct_AR="$ac_prog"
6184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185     break 2
6186   fi
6187 done
6188   done
6189 IFS=$as_save_IFS
6190
6191 fi
6192 fi
6193 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6194 if test -n "$ac_ct_AR"; then
6195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6196 $as_echo "$ac_ct_AR" >&6; }
6197 else
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6200 fi
6201
6202
6203   test -n "$ac_ct_AR" && break
6204 done
6205
6206   if test "x$ac_ct_AR" = x; then
6207     AR="false"
6208   else
6209     case $cross_compiling:$ac_tool_warned in
6210 yes:)
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213 ac_tool_warned=yes ;;
6214 esac
6215     AR=$ac_ct_AR
6216   fi
6217 fi
6218
6219 : ${AR=ar}
6220 : ${AR_FLAGS=cru}
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6233 $as_echo_n "checking for archiver @FILE support... " >&6; }
6234 if ${lt_cv_ar_at_file+:} false; then :
6235   $as_echo_n "(cached) " >&6
6236 else
6237   lt_cv_ar_at_file=no
6238    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h.  */
6240
6241 int
6242 main ()
6243 {
6244
6245   ;
6246   return 0;
6247 }
6248 _ACEOF
6249 if ac_fn_c_try_compile "$LINENO"; then :
6250   echo conftest.$ac_objext > conftest.lst
6251       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6252       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6253   (eval $lt_ar_try) 2>&5
6254   ac_status=$?
6255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256   test $ac_status = 0; }
6257       if test "$ac_status" -eq 0; then
6258         # Ensure the archiver fails upon bogus file names.
6259         rm -f conftest.$ac_objext libconftest.a
6260         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6261   (eval $lt_ar_try) 2>&5
6262   ac_status=$?
6263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264   test $ac_status = 0; }
6265         if test "$ac_status" -ne 0; then
6266           lt_cv_ar_at_file=@
6267         fi
6268       fi
6269       rm -f conftest.* libconftest.a
6270
6271 fi
6272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273
6274 fi
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6276 $as_echo "$lt_cv_ar_at_file" >&6; }
6277
6278 if test "x$lt_cv_ar_at_file" = xno; then
6279   archiver_list_spec=
6280 else
6281   archiver_list_spec=$lt_cv_ar_at_file
6282 fi
6283
6284
6285
6286
6287
6288
6289
6290 if test -n "$ac_tool_prefix"; then
6291   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6292 set dummy ${ac_tool_prefix}strip; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_STRIP+:} false; then :
6296   $as_echo_n "(cached) " >&6
6297 else
6298   if test -n "$STRIP"; then
6299   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306     for ac_exec_ext in '' $ac_executable_extensions; do
6307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310     break 2
6311   fi
6312 done
6313   done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 STRIP=$ac_cv_prog_STRIP
6319 if test -n "$STRIP"; then
6320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6321 $as_echo "$STRIP" >&6; }
6322 else
6323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6325 fi
6326
6327
6328 fi
6329 if test -z "$ac_cv_prog_STRIP"; then
6330   ac_ct_STRIP=$STRIP
6331   # Extract the first word of "strip", so it can be a program name with args.
6332 set dummy strip; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6336   $as_echo_n "(cached) " >&6
6337 else
6338   if test -n "$ac_ct_STRIP"; then
6339   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344   IFS=$as_save_IFS
6345   test -z "$as_dir" && as_dir=.
6346     for ac_exec_ext in '' $ac_executable_extensions; do
6347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348     ac_cv_prog_ac_ct_STRIP="strip"
6349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350     break 2
6351   fi
6352 done
6353   done
6354 IFS=$as_save_IFS
6355
6356 fi
6357 fi
6358 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6359 if test -n "$ac_ct_STRIP"; then
6360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6361 $as_echo "$ac_ct_STRIP" >&6; }
6362 else
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6365 fi
6366
6367   if test "x$ac_ct_STRIP" = x; then
6368     STRIP=":"
6369   else
6370     case $cross_compiling:$ac_tool_warned in
6371 yes:)
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6374 ac_tool_warned=yes ;;
6375 esac
6376     STRIP=$ac_ct_STRIP
6377   fi
6378 else
6379   STRIP="$ac_cv_prog_STRIP"
6380 fi
6381
6382 test -z "$STRIP" && STRIP=:
6383
6384
6385
6386
6387
6388
6389 if test -n "$ac_tool_prefix"; then
6390   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_prog_RANLIB+:} false; then :
6395   $as_echo_n "(cached) " >&6
6396 else
6397   if test -n "$RANLIB"; then
6398   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403   IFS=$as_save_IFS
6404   test -z "$as_dir" && as_dir=.
6405     for ac_exec_ext in '' $ac_executable_extensions; do
6406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409     break 2
6410   fi
6411 done
6412   done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 RANLIB=$ac_cv_prog_RANLIB
6418 if test -n "$RANLIB"; then
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6420 $as_echo "$RANLIB" >&6; }
6421 else
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6424 fi
6425
6426
6427 fi
6428 if test -z "$ac_cv_prog_RANLIB"; then
6429   ac_ct_RANLIB=$RANLIB
6430   # Extract the first word of "ranlib", so it can be a program name with args.
6431 set dummy ranlib; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6435   $as_echo_n "(cached) " >&6
6436 else
6437   if test -n "$ac_ct_RANLIB"; then
6438   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445     for ac_exec_ext in '' $ac_executable_extensions; do
6446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447     ac_cv_prog_ac_ct_RANLIB="ranlib"
6448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452   done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6458 if test -n "$ac_ct_RANLIB"; then
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6460 $as_echo "$ac_ct_RANLIB" >&6; }
6461 else
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466   if test "x$ac_ct_RANLIB" = x; then
6467     RANLIB=":"
6468   else
6469     case $cross_compiling:$ac_tool_warned in
6470 yes:)
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6473 ac_tool_warned=yes ;;
6474 esac
6475     RANLIB=$ac_ct_RANLIB
6476   fi
6477 else
6478   RANLIB="$ac_cv_prog_RANLIB"
6479 fi
6480
6481 test -z "$RANLIB" && RANLIB=:
6482
6483
6484
6485
6486
6487
6488 # Determine commands to create old-style static archives.
6489 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6490 old_postinstall_cmds='chmod 644 $oldlib'
6491 old_postuninstall_cmds=
6492
6493 if test -n "$RANLIB"; then
6494   case $host_os in
6495   openbsd*)
6496     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6497     ;;
6498   *)
6499     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6500     ;;
6501   esac
6502   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6503 fi
6504
6505 case $host_os in
6506   darwin*)
6507     lock_old_archive_extraction=yes ;;
6508   *)
6509     lock_old_archive_extraction=no ;;
6510 esac
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550 # If no C compiler was specified, use CC.
6551 LTCC=${LTCC-"$CC"}
6552
6553 # If no C compiler flags were specified, use CFLAGS.
6554 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6555
6556 # Allow CC to be a program name with arguments.
6557 compiler=$CC
6558
6559
6560 # Check for command to grab the raw symbol name followed by C symbol from nm.
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6562 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6563 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6564   $as_echo_n "(cached) " >&6
6565 else
6566
6567 # These are sane defaults that work on at least a few old systems.
6568 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6569
6570 # Character class describing NM global symbol codes.
6571 symcode='[BCDEGRST]'
6572
6573 # Regexp to match symbols that can be accessed directly from C.
6574 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6575
6576 # Define system-specific variables.
6577 case $host_os in
6578 aix*)
6579   symcode='[BCDT]'
6580   ;;
6581 cygwin* | mingw* | pw32* | cegcc*)
6582   symcode='[ABCDGISTW]'
6583   ;;
6584 hpux*)
6585   if test "$host_cpu" = ia64; then
6586     symcode='[ABCDEGRST]'
6587   fi
6588   ;;
6589 irix* | nonstopux*)
6590   symcode='[BCDEGRST]'
6591   ;;
6592 osf*)
6593   symcode='[BCDEGQRST]'
6594   ;;
6595 solaris*)
6596   symcode='[BDRT]'
6597   ;;
6598 sco3.2v5*)
6599   symcode='[DT]'
6600   ;;
6601 sysv4.2uw2*)
6602   symcode='[DT]'
6603   ;;
6604 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6605   symcode='[ABDT]'
6606   ;;
6607 sysv4)
6608   symcode='[DFNSTU]'
6609   ;;
6610 esac
6611
6612 # If we're using GNU nm, then use its standard symbol codes.
6613 case `$NM -V 2>&1` in
6614 *GNU* | *'with BFD'*)
6615   symcode='[ABCDGIRSTW]' ;;
6616 esac
6617
6618 # Transform an extracted symbol line into a proper C declaration.
6619 # Some systems (esp. on ia64) link data and code symbols differently,
6620 # so use this general approach.
6621 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6622
6623 # Transform an extracted symbol line into symbol name and symbol address
6624 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6625 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'"
6626
6627 # Handle CRLF in mingw tool chain
6628 opt_cr=
6629 case $build_os in
6630 mingw*)
6631   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6632   ;;
6633 esac
6634
6635 # Try without a prefix underscore, then with it.
6636 for ac_symprfx in "" "_"; do
6637
6638   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6639   symxfrm="\\1 $ac_symprfx\\2 \\2"
6640
6641   # Write the raw and C identifiers.
6642   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6643     # Fake it for dumpbin and say T for any non-static function
6644     # and D for any global variable.
6645     # Also find C++ and __fastcall symbols from MSVC++,
6646     # which start with @ or ?.
6647     lt_cv_sys_global_symbol_pipe="$AWK '"\
6648 "     {last_section=section; section=\$ 3};"\
6649 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6650 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6651 "     \$ 0!~/External *\|/{next};"\
6652 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6653 "     {if(hide[section]) next};"\
6654 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6655 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6656 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6657 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6658 "     ' prfx=^$ac_symprfx"
6659   else
6660     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6661   fi
6662   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6663
6664   # Check to see that the pipe works correctly.
6665   pipe_works=no
6666
6667   rm -f conftest*
6668   cat > conftest.$ac_ext <<_LT_EOF
6669 #ifdef __cplusplus
6670 extern "C" {
6671 #endif
6672 char nm_test_var;
6673 void nm_test_func(void);
6674 void nm_test_func(void){}
6675 #ifdef __cplusplus
6676 }
6677 #endif
6678 int main(){nm_test_var='a';nm_test_func();return(0);}
6679 _LT_EOF
6680
6681   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6682   (eval $ac_compile) 2>&5
6683   ac_status=$?
6684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685   test $ac_status = 0; }; then
6686     # Now try to grab the symbols.
6687     nlist=conftest.nm
6688     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6689   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6690   ac_status=$?
6691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692   test $ac_status = 0; } && test -s "$nlist"; then
6693       # Try sorting and uniquifying the output.
6694       if sort "$nlist" | uniq > "$nlist"T; then
6695         mv -f "$nlist"T "$nlist"
6696       else
6697         rm -f "$nlist"T
6698       fi
6699
6700       # Make sure that we snagged all the symbols we need.
6701       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6702         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6703           cat <<_LT_EOF > conftest.$ac_ext
6704 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6705 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6706 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6707    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6708 # define LT_DLSYM_CONST
6709 #elif defined(__osf__)
6710 /* This system does not cope well with relocations in const data.  */
6711 # define LT_DLSYM_CONST
6712 #else
6713 # define LT_DLSYM_CONST const
6714 #endif
6715
6716 #ifdef __cplusplus
6717 extern "C" {
6718 #endif
6719
6720 _LT_EOF
6721           # Now generate the symbol file.
6722           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6723
6724           cat <<_LT_EOF >> conftest.$ac_ext
6725
6726 /* The mapping between symbol names and symbols.  */
6727 LT_DLSYM_CONST struct {
6728   const char *name;
6729   void       *address;
6730 }
6731 lt__PROGRAM__LTX_preloaded_symbols[] =
6732 {
6733   { "@PROGRAM@", (void *) 0 },
6734 _LT_EOF
6735           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6736           cat <<\_LT_EOF >> conftest.$ac_ext
6737   {0, (void *) 0}
6738 };
6739
6740 /* This works around a problem in FreeBSD linker */
6741 #ifdef FREEBSD_WORKAROUND
6742 static const void *lt_preloaded_setup() {
6743   return lt__PROGRAM__LTX_preloaded_symbols;
6744 }
6745 #endif
6746
6747 #ifdef __cplusplus
6748 }
6749 #endif
6750 _LT_EOF
6751           # Now try linking the two files.
6752           mv conftest.$ac_objext conftstm.$ac_objext
6753           lt_globsym_save_LIBS=$LIBS
6754           lt_globsym_save_CFLAGS=$CFLAGS
6755           LIBS="conftstm.$ac_objext"
6756           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6757           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6758   (eval $ac_link) 2>&5
6759   ac_status=$?
6760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6761   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6762             pipe_works=yes
6763           fi
6764           LIBS=$lt_globsym_save_LIBS
6765           CFLAGS=$lt_globsym_save_CFLAGS
6766         else
6767           echo "cannot find nm_test_func in $nlist" >&5
6768         fi
6769       else
6770         echo "cannot find nm_test_var in $nlist" >&5
6771       fi
6772     else
6773       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6774     fi
6775   else
6776     echo "$progname: failed program was:" >&5
6777     cat conftest.$ac_ext >&5
6778   fi
6779   rm -rf conftest* conftst*
6780
6781   # Do not use the global_symbol_pipe unless it works.
6782   if test "$pipe_works" = yes; then
6783     break
6784   else
6785     lt_cv_sys_global_symbol_pipe=
6786   fi
6787 done
6788
6789 fi
6790
6791 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6792   lt_cv_sys_global_symbol_to_cdecl=
6793 fi
6794 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6796 $as_echo "failed" >&6; }
6797 else
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6799 $as_echo "ok" >&6; }
6800 fi
6801
6802 # Response file support.
6803 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6804   nm_file_list_spec='@'
6805 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6806   nm_file_list_spec='@'
6807 fi
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6836 $as_echo_n "checking for sysroot... " >&6; }
6837
6838 # Check whether --with-sysroot was given.
6839 if test "${with_sysroot+set}" = set; then :
6840   withval=$with_sysroot;
6841 else
6842   with_sysroot=no
6843 fi
6844
6845
6846 lt_sysroot=
6847 case ${with_sysroot} in #(
6848  yes)
6849    if test "$GCC" = yes; then
6850      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6851    fi
6852    ;; #(
6853  /*)
6854    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6855    ;; #(
6856  no|'')
6857    ;; #(
6858  *)
6859    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6860 $as_echo "${with_sysroot}" >&6; }
6861    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6862    ;;
6863 esac
6864
6865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6866 $as_echo "${lt_sysroot:-no}" >&6; }
6867
6868
6869
6870
6871
6872 # Check whether --enable-libtool-lock was given.
6873 if test "${enable_libtool_lock+set}" = set; then :
6874   enableval=$enable_libtool_lock;
6875 fi
6876
6877 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6878
6879 # Some flags need to be propagated to the compiler or linker for good
6880 # libtool support.
6881 case $host in
6882 ia64-*-hpux*)
6883   # Find out which ABI we are using.
6884   echo 'int i;' > conftest.$ac_ext
6885   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6886   (eval $ac_compile) 2>&5
6887   ac_status=$?
6888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889   test $ac_status = 0; }; then
6890     case `/usr/bin/file conftest.$ac_objext` in
6891       *ELF-32*)
6892         HPUX_IA64_MODE="32"
6893         ;;
6894       *ELF-64*)
6895         HPUX_IA64_MODE="64"
6896         ;;
6897     esac
6898   fi
6899   rm -rf conftest*
6900   ;;
6901 *-*-irix6*)
6902   # Find out which ABI we are using.
6903   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6904   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6905   (eval $ac_compile) 2>&5
6906   ac_status=$?
6907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6908   test $ac_status = 0; }; then
6909     if test "$lt_cv_prog_gnu_ld" = yes; then
6910       case `/usr/bin/file conftest.$ac_objext` in
6911         *32-bit*)
6912           LD="${LD-ld} -melf32bsmip"
6913           ;;
6914         *N32*)
6915           LD="${LD-ld} -melf32bmipn32"
6916           ;;
6917         *64-bit*)
6918           LD="${LD-ld} -melf64bmip"
6919         ;;
6920       esac
6921     else
6922       case `/usr/bin/file conftest.$ac_objext` in
6923         *32-bit*)
6924           LD="${LD-ld} -32"
6925           ;;
6926         *N32*)
6927           LD="${LD-ld} -n32"
6928           ;;
6929         *64-bit*)
6930           LD="${LD-ld} -64"
6931           ;;
6932       esac
6933     fi
6934   fi
6935   rm -rf conftest*
6936   ;;
6937
6938 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6939 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6940   # Find out which ABI we are using.
6941   echo 'int i;' > conftest.$ac_ext
6942   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6943   (eval $ac_compile) 2>&5
6944   ac_status=$?
6945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6946   test $ac_status = 0; }; then
6947     case `/usr/bin/file conftest.o` in
6948       *32-bit*)
6949         case $host in
6950           x86_64-*kfreebsd*-gnu)
6951             LD="${LD-ld} -m elf_i386_fbsd"
6952             ;;
6953           x86_64-*linux*)
6954             LD="${LD-ld} -m elf_i386"
6955             ;;
6956           ppc64-*linux*|powerpc64-*linux*)
6957             LD="${LD-ld} -m elf32ppclinux"
6958             ;;
6959           s390x-*linux*)
6960             LD="${LD-ld} -m elf_s390"
6961             ;;
6962           sparc64-*linux*)
6963             LD="${LD-ld} -m elf32_sparc"
6964             ;;
6965         esac
6966         ;;
6967       *64-bit*)
6968         case $host in
6969           x86_64-*kfreebsd*-gnu)
6970             LD="${LD-ld} -m elf_x86_64_fbsd"
6971             ;;
6972           x86_64-*linux*)
6973             LD="${LD-ld} -m elf_x86_64"
6974             ;;
6975           ppc*-*linux*|powerpc*-*linux*)
6976             LD="${LD-ld} -m elf64ppc"
6977             ;;
6978           s390*-*linux*|s390*-*tpf*)
6979             LD="${LD-ld} -m elf64_s390"
6980             ;;
6981           sparc*-*linux*)
6982             LD="${LD-ld} -m elf64_sparc"
6983             ;;
6984         esac
6985         ;;
6986     esac
6987   fi
6988   rm -rf conftest*
6989   ;;
6990
6991 *-*-sco3.2v5*)
6992   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6993   SAVE_CFLAGS="$CFLAGS"
6994   CFLAGS="$CFLAGS -belf"
6995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6996 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6997 if ${lt_cv_cc_needs_belf+:} false; then :
6998   $as_echo_n "(cached) " >&6
6999 else
7000   ac_ext=c
7001 ac_cpp='$CPP $CPPFLAGS'
7002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7005
7006      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h.  */
7008
7009 int
7010 main ()
7011 {
7012
7013   ;
7014   return 0;
7015 }
7016 _ACEOF
7017 if ac_fn_c_try_link "$LINENO"; then :
7018   lt_cv_cc_needs_belf=yes
7019 else
7020   lt_cv_cc_needs_belf=no
7021 fi
7022 rm -f core conftest.err conftest.$ac_objext \
7023     conftest$ac_exeext conftest.$ac_ext
7024      ac_ext=c
7025 ac_cpp='$CPP $CPPFLAGS'
7026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7029
7030 fi
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7032 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7033   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7034     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7035     CFLAGS="$SAVE_CFLAGS"
7036   fi
7037   ;;
7038 *-*solaris*)
7039   # Find out which ABI we are using.
7040   echo 'int i;' > conftest.$ac_ext
7041   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7042   (eval $ac_compile) 2>&5
7043   ac_status=$?
7044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7045   test $ac_status = 0; }; then
7046     case `/usr/bin/file conftest.o` in
7047     *64-bit*)
7048       case $lt_cv_prog_gnu_ld in
7049       yes*)
7050         case $host in
7051         i?86-*-solaris*)
7052           LD="${LD-ld} -m elf_x86_64"
7053           ;;
7054         sparc*-*-solaris*)
7055           LD="${LD-ld} -m elf64_sparc"
7056           ;;
7057         esac
7058         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7059         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7060           LD="${LD-ld}_sol2"
7061         fi
7062         ;;
7063       *)
7064         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7065           LD="${LD-ld} -64"
7066         fi
7067         ;;
7068       esac
7069       ;;
7070     esac
7071   fi
7072   rm -rf conftest*
7073   ;;
7074 esac
7075
7076 need_locks="$enable_libtool_lock"
7077
7078 if test -n "$ac_tool_prefix"; then
7079   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}mt; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7084   $as_echo_n "(cached) " >&6
7085 else
7086   if test -n "$MANIFEST_TOOL"; then
7087   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094     for ac_exec_ext in '' $ac_executable_extensions; do
7095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101   done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7107 if test -n "$MANIFEST_TOOL"; then
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7109 $as_echo "$MANIFEST_TOOL" >&6; }
7110 else
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7113 fi
7114
7115
7116 fi
7117 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7118   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7119   # Extract the first word of "mt", so it can be a program name with args.
7120 set dummy mt; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7124   $as_echo_n "(cached) " >&6
7125 else
7126   if test -n "$ac_ct_MANIFEST_TOOL"; then
7127   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134     for ac_exec_ext in '' $ac_executable_extensions; do
7135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141   done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7147 if test -n "$ac_ct_MANIFEST_TOOL"; then
7148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7149 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7150 else
7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7153 fi
7154
7155   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7156     MANIFEST_TOOL=":"
7157   else
7158     case $cross_compiling:$ac_tool_warned in
7159 yes:)
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7162 ac_tool_warned=yes ;;
7163 esac
7164     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7165   fi
7166 else
7167   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7168 fi
7169
7170 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7172 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7173 if ${lt_cv_path_mainfest_tool+:} false; then :
7174   $as_echo_n "(cached) " >&6
7175 else
7176   lt_cv_path_mainfest_tool=no
7177   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7178   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7179   cat conftest.err >&5
7180   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7181     lt_cv_path_mainfest_tool=yes
7182   fi
7183   rm -f conftest*
7184 fi
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7186 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7187 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7188   MANIFEST_TOOL=:
7189 fi
7190
7191
7192
7193
7194
7195
7196   case $host_os in
7197     rhapsody* | darwin*)
7198     if test -n "$ac_tool_prefix"; then
7199   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7200 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202 $as_echo_n "checking for $ac_word... " >&6; }
7203 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7204   $as_echo_n "(cached) " >&6
7205 else
7206   if test -n "$DSYMUTIL"; then
7207   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214     for ac_exec_ext in '' $ac_executable_extensions; do
7215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221   done
7222 IFS=$as_save_IFS
7223
7224 fi
7225 fi
7226 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7227 if test -n "$DSYMUTIL"; then
7228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7229 $as_echo "$DSYMUTIL" >&6; }
7230 else
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7233 fi
7234
7235
7236 fi
7237 if test -z "$ac_cv_prog_DSYMUTIL"; then
7238   ac_ct_DSYMUTIL=$DSYMUTIL
7239   # Extract the first word of "dsymutil", so it can be a program name with args.
7240 set dummy dsymutil; ac_word=$2
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242 $as_echo_n "checking for $ac_word... " >&6; }
7243 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7244   $as_echo_n "(cached) " >&6
7245 else
7246   if test -n "$ac_ct_DSYMUTIL"; then
7247   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7248 else
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252   IFS=$as_save_IFS
7253   test -z "$as_dir" && as_dir=.
7254     for ac_exec_ext in '' $ac_executable_extensions; do
7255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258     break 2
7259   fi
7260 done
7261   done
7262 IFS=$as_save_IFS
7263
7264 fi
7265 fi
7266 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7267 if test -n "$ac_ct_DSYMUTIL"; then
7268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7269 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7270 else
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7273 fi
7274
7275   if test "x$ac_ct_DSYMUTIL" = x; then
7276     DSYMUTIL=":"
7277   else
7278     case $cross_compiling:$ac_tool_warned in
7279 yes:)
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7282 ac_tool_warned=yes ;;
7283 esac
7284     DSYMUTIL=$ac_ct_DSYMUTIL
7285   fi
7286 else
7287   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7288 fi
7289
7290     if test -n "$ac_tool_prefix"; then
7291   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7292 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_prog_NMEDIT+:} false; then :
7296   $as_echo_n "(cached) " >&6
7297 else
7298   if test -n "$NMEDIT"; then
7299   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
7304   IFS=$as_save_IFS
7305   test -z "$as_dir" && as_dir=.
7306     for ac_exec_ext in '' $ac_executable_extensions; do
7307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310     break 2
7311   fi
7312 done
7313   done
7314 IFS=$as_save_IFS
7315
7316 fi
7317 fi
7318 NMEDIT=$ac_cv_prog_NMEDIT
7319 if test -n "$NMEDIT"; then
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7321 $as_echo "$NMEDIT" >&6; }
7322 else
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7325 fi
7326
7327
7328 fi
7329 if test -z "$ac_cv_prog_NMEDIT"; then
7330   ac_ct_NMEDIT=$NMEDIT
7331   # Extract the first word of "nmedit", so it can be a program name with args.
7332 set dummy nmedit; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   if test -n "$ac_ct_NMEDIT"; then
7339   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344   IFS=$as_save_IFS
7345   test -z "$as_dir" && as_dir=.
7346     for ac_exec_ext in '' $ac_executable_extensions; do
7347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350     break 2
7351   fi
7352 done
7353   done
7354 IFS=$as_save_IFS
7355
7356 fi
7357 fi
7358 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7359 if test -n "$ac_ct_NMEDIT"; then
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7361 $as_echo "$ac_ct_NMEDIT" >&6; }
7362 else
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7365 fi
7366
7367   if test "x$ac_ct_NMEDIT" = x; then
7368     NMEDIT=":"
7369   else
7370     case $cross_compiling:$ac_tool_warned in
7371 yes:)
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7374 ac_tool_warned=yes ;;
7375 esac
7376     NMEDIT=$ac_ct_NMEDIT
7377   fi
7378 else
7379   NMEDIT="$ac_cv_prog_NMEDIT"
7380 fi
7381
7382     if test -n "$ac_tool_prefix"; then
7383   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7384 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_prog_LIPO+:} false; then :
7388   $as_echo_n "(cached) " >&6
7389 else
7390   if test -n "$LIPO"; then
7391   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7392 else
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396   IFS=$as_save_IFS
7397   test -z "$as_dir" && as_dir=.
7398     for ac_exec_ext in '' $ac_executable_extensions; do
7399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402     break 2
7403   fi
7404 done
7405   done
7406 IFS=$as_save_IFS
7407
7408 fi
7409 fi
7410 LIPO=$ac_cv_prog_LIPO
7411 if test -n "$LIPO"; then
7412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7413 $as_echo "$LIPO" >&6; }
7414 else
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7417 fi
7418
7419
7420 fi
7421 if test -z "$ac_cv_prog_LIPO"; then
7422   ac_ct_LIPO=$LIPO
7423   # Extract the first word of "lipo", so it can be a program name with args.
7424 set dummy lipo; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7428   $as_echo_n "(cached) " >&6
7429 else
7430   if test -n "$ac_ct_LIPO"; then
7431   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7432 else
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7435 do
7436   IFS=$as_save_IFS
7437   test -z "$as_dir" && as_dir=.
7438     for ac_exec_ext in '' $ac_executable_extensions; do
7439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440     ac_cv_prog_ac_ct_LIPO="lipo"
7441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442     break 2
7443   fi
7444 done
7445   done
7446 IFS=$as_save_IFS
7447
7448 fi
7449 fi
7450 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7451 if test -n "$ac_ct_LIPO"; then
7452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7453 $as_echo "$ac_ct_LIPO" >&6; }
7454 else
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7457 fi
7458
7459   if test "x$ac_ct_LIPO" = x; then
7460     LIPO=":"
7461   else
7462     case $cross_compiling:$ac_tool_warned in
7463 yes:)
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7466 ac_tool_warned=yes ;;
7467 esac
7468     LIPO=$ac_ct_LIPO
7469   fi
7470 else
7471   LIPO="$ac_cv_prog_LIPO"
7472 fi
7473
7474     if test -n "$ac_tool_prefix"; then
7475   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}otool; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_OTOOL+:} false; then :
7480   $as_echo_n "(cached) " >&6
7481 else
7482   if test -n "$OTOOL"; then
7483   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488   IFS=$as_save_IFS
7489   test -z "$as_dir" && as_dir=.
7490     for ac_exec_ext in '' $ac_executable_extensions; do
7491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494     break 2
7495   fi
7496 done
7497   done
7498 IFS=$as_save_IFS
7499
7500 fi
7501 fi
7502 OTOOL=$ac_cv_prog_OTOOL
7503 if test -n "$OTOOL"; then
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7505 $as_echo "$OTOOL" >&6; }
7506 else
7507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7509 fi
7510
7511
7512 fi
7513 if test -z "$ac_cv_prog_OTOOL"; then
7514   ac_ct_OTOOL=$OTOOL
7515   # Extract the first word of "otool", so it can be a program name with args.
7516 set dummy otool; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   if test -n "$ac_ct_OTOOL"; then
7523   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530     for ac_exec_ext in '' $ac_executable_extensions; do
7531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532     ac_cv_prog_ac_ct_OTOOL="otool"
7533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534     break 2
7535   fi
7536 done
7537   done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7543 if test -n "$ac_ct_OTOOL"; then
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7545 $as_echo "$ac_ct_OTOOL" >&6; }
7546 else
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550
7551   if test "x$ac_ct_OTOOL" = x; then
7552     OTOOL=":"
7553   else
7554     case $cross_compiling:$ac_tool_warned in
7555 yes:)
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7558 ac_tool_warned=yes ;;
7559 esac
7560     OTOOL=$ac_ct_OTOOL
7561   fi
7562 else
7563   OTOOL="$ac_cv_prog_OTOOL"
7564 fi
7565
7566     if test -n "$ac_tool_prefix"; then
7567   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7568 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_OTOOL64+:} false; then :
7572   $as_echo_n "(cached) " >&6
7573 else
7574   if test -n "$OTOOL64"; then
7575   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580   IFS=$as_save_IFS
7581   test -z "$as_dir" && as_dir=.
7582     for ac_exec_ext in '' $ac_executable_extensions; do
7583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586     break 2
7587   fi
7588 done
7589   done
7590 IFS=$as_save_IFS
7591
7592 fi
7593 fi
7594 OTOOL64=$ac_cv_prog_OTOOL64
7595 if test -n "$OTOOL64"; then
7596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7597 $as_echo "$OTOOL64" >&6; }
7598 else
7599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7601 fi
7602
7603
7604 fi
7605 if test -z "$ac_cv_prog_OTOOL64"; then
7606   ac_ct_OTOOL64=$OTOOL64
7607   # Extract the first word of "otool64", so it can be a program name with args.
7608 set dummy otool64; ac_word=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7612   $as_echo_n "(cached) " >&6
7613 else
7614   if test -n "$ac_ct_OTOOL64"; then
7615   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7616 else
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7619 do
7620   IFS=$as_save_IFS
7621   test -z "$as_dir" && as_dir=.
7622     for ac_exec_ext in '' $ac_executable_extensions; do
7623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624     ac_cv_prog_ac_ct_OTOOL64="otool64"
7625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626     break 2
7627   fi
7628 done
7629   done
7630 IFS=$as_save_IFS
7631
7632 fi
7633 fi
7634 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7635 if test -n "$ac_ct_OTOOL64"; then
7636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7637 $as_echo "$ac_ct_OTOOL64" >&6; }
7638 else
7639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7641 fi
7642
7643   if test "x$ac_ct_OTOOL64" = x; then
7644     OTOOL64=":"
7645   else
7646     case $cross_compiling:$ac_tool_warned in
7647 yes:)
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7650 ac_tool_warned=yes ;;
7651 esac
7652     OTOOL64=$ac_ct_OTOOL64
7653   fi
7654 else
7655   OTOOL64="$ac_cv_prog_OTOOL64"
7656 fi
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7685 $as_echo_n "checking for -single_module linker flag... " >&6; }
7686 if ${lt_cv_apple_cc_single_mod+:} false; then :
7687   $as_echo_n "(cached) " >&6
7688 else
7689   lt_cv_apple_cc_single_mod=no
7690       if test -z "${LT_MULTI_MODULE}"; then
7691         # By default we will add the -single_module flag. You can override
7692         # by either setting the environment variable LT_MULTI_MODULE
7693         # non-empty at configure time, or by adding -multi_module to the
7694         # link flags.
7695         rm -rf libconftest.dylib*
7696         echo "int foo(void){return 1;}" > conftest.c
7697         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7698 -dynamiclib -Wl,-single_module conftest.c" >&5
7699         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7700           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7701         _lt_result=$?
7702         # If there is a non-empty error log, and "single_module"
7703         # appears in it, assume the flag caused a linker warning
7704         if test -s conftest.err && $GREP single_module conftest.err; then
7705           cat conftest.err >&5
7706         # Otherwise, if the output was created with a 0 exit code from
7707         # the compiler, it worked.
7708         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7709           lt_cv_apple_cc_single_mod=yes
7710         else
7711           cat conftest.err >&5
7712         fi
7713         rm -rf libconftest.dylib*
7714         rm -f conftest.*
7715       fi
7716 fi
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7718 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7719
7720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7721 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7722 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7723   $as_echo_n "(cached) " >&6
7724 else
7725   lt_cv_ld_exported_symbols_list=no
7726       save_LDFLAGS=$LDFLAGS
7727       echo "_main" > conftest.sym
7728       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7729       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h.  */
7731
7732 int
7733 main ()
7734 {
7735
7736   ;
7737   return 0;
7738 }
7739 _ACEOF
7740 if ac_fn_c_try_link "$LINENO"; then :
7741   lt_cv_ld_exported_symbols_list=yes
7742 else
7743   lt_cv_ld_exported_symbols_list=no
7744 fi
7745 rm -f core conftest.err conftest.$ac_objext \
7746     conftest$ac_exeext conftest.$ac_ext
7747         LDFLAGS="$save_LDFLAGS"
7748
7749 fi
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7751 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7752
7753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7754 $as_echo_n "checking for -force_load linker flag... " >&6; }
7755 if ${lt_cv_ld_force_load+:} false; then :
7756   $as_echo_n "(cached) " >&6
7757 else
7758   lt_cv_ld_force_load=no
7759       cat > conftest.c << _LT_EOF
7760 int forced_loaded() { return 2;}
7761 _LT_EOF
7762       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7763       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7764       echo "$AR cru libconftest.a conftest.o" >&5
7765       $AR cru libconftest.a conftest.o 2>&5
7766       echo "$RANLIB libconftest.a" >&5
7767       $RANLIB libconftest.a 2>&5
7768       cat > conftest.c << _LT_EOF
7769 int main() { return 0;}
7770 _LT_EOF
7771       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7772       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7773       _lt_result=$?
7774       if test -s conftest.err && $GREP force_load conftest.err; then
7775         cat conftest.err >&5
7776       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7777         lt_cv_ld_force_load=yes
7778       else
7779         cat conftest.err >&5
7780       fi
7781         rm -f conftest.err libconftest.a conftest conftest.c
7782         rm -rf conftest.dSYM
7783
7784 fi
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7786 $as_echo "$lt_cv_ld_force_load" >&6; }
7787     case $host_os in
7788     rhapsody* | darwin1.[012])
7789       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7790     darwin1.*)
7791       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7792     darwin*) # darwin 5.x on
7793       # if running on 10.5 or later, the deployment target defaults
7794       # to the OS version, if on x86, and 10.4, the deployment
7795       # target defaults to 10.4. Don't you love it?
7796       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7797         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7798           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7799         10.[012]*)
7800           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7801         10.*)
7802           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7803       esac
7804     ;;
7805   esac
7806     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7807       _lt_dar_single_mod='$single_module'
7808     fi
7809     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7810       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7811     else
7812       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7813     fi
7814     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7815       _lt_dsymutil='~$DSYMUTIL $lib || :'
7816     else
7817       _lt_dsymutil=
7818     fi
7819     ;;
7820   esac
7821
7822 for ac_header in dlfcn.h
7823 do :
7824   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7825 "
7826 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7827   cat >>confdefs.h <<_ACEOF
7828 #define HAVE_DLFCN_H 1
7829 _ACEOF
7830
7831 fi
7832
7833 done
7834
7835
7836
7837
7838
7839 # Set options
7840 enable_dlopen=yes
7841 # Check whether --enable-static was given.
7842 if test "${enable_static+set}" = set; then :
7843   enableval=$enable_static; p=${PACKAGE-default}
7844     case $enableval in
7845     yes) enable_static=yes ;;
7846     no) enable_static=no ;;
7847     *)
7848      enable_static=no
7849       # Look at the argument we got.  We use all the common list separators.
7850       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7851       for pkg in $enableval; do
7852         IFS="$lt_save_ifs"
7853         if test "X$pkg" = "X$p"; then
7854           enable_static=yes
7855         fi
7856       done
7857       IFS="$lt_save_ifs"
7858       ;;
7859     esac
7860 else
7861   enable_static=no
7862 fi
7863
7864
7865
7866
7867
7868
7869
7870 enable_win32_dll=yes
7871
7872 case $host in
7873 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7874   if test -n "$ac_tool_prefix"; then
7875   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7876 set dummy ${ac_tool_prefix}as; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if ${ac_cv_prog_AS+:} false; then :
7880   $as_echo_n "(cached) " >&6
7881 else
7882   if test -n "$AS"; then
7883   ac_cv_prog_AS="$AS" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7887 do
7888   IFS=$as_save_IFS
7889   test -z "$as_dir" && as_dir=.
7890     for ac_exec_ext in '' $ac_executable_extensions; do
7891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892     ac_cv_prog_AS="${ac_tool_prefix}as"
7893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894     break 2
7895   fi
7896 done
7897   done
7898 IFS=$as_save_IFS
7899
7900 fi
7901 fi
7902 AS=$ac_cv_prog_AS
7903 if test -n "$AS"; then
7904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7905 $as_echo "$AS" >&6; }
7906 else
7907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7909 fi
7910
7911
7912 fi
7913 if test -z "$ac_cv_prog_AS"; then
7914   ac_ct_AS=$AS
7915   # Extract the first word of "as", so it can be a program name with args.
7916 set dummy as; ac_word=$2
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918 $as_echo_n "checking for $ac_word... " >&6; }
7919 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7920   $as_echo_n "(cached) " >&6
7921 else
7922   if test -n "$ac_ct_AS"; then
7923   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7924 else
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH
7927 do
7928   IFS=$as_save_IFS
7929   test -z "$as_dir" && as_dir=.
7930     for ac_exec_ext in '' $ac_executable_extensions; do
7931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7932     ac_cv_prog_ac_ct_AS="as"
7933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7934     break 2
7935   fi
7936 done
7937   done
7938 IFS=$as_save_IFS
7939
7940 fi
7941 fi
7942 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7943 if test -n "$ac_ct_AS"; then
7944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7945 $as_echo "$ac_ct_AS" >&6; }
7946 else
7947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7949 fi
7950
7951   if test "x$ac_ct_AS" = x; then
7952     AS="false"
7953   else
7954     case $cross_compiling:$ac_tool_warned in
7955 yes:)
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7958 ac_tool_warned=yes ;;
7959 esac
7960     AS=$ac_ct_AS
7961   fi
7962 else
7963   AS="$ac_cv_prog_AS"
7964 fi
7965
7966   if test -n "$ac_tool_prefix"; then
7967   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7968 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if ${ac_cv_prog_DLLTOOL+:} false; then :
7972   $as_echo_n "(cached) " >&6
7973 else
7974   if test -n "$DLLTOOL"; then
7975   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7979 do
7980   IFS=$as_save_IFS
7981   test -z "$as_dir" && as_dir=.
7982     for ac_exec_ext in '' $ac_executable_extensions; do
7983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986     break 2
7987   fi
7988 done
7989   done
7990 IFS=$as_save_IFS
7991
7992 fi
7993 fi
7994 DLLTOOL=$ac_cv_prog_DLLTOOL
7995 if test -n "$DLLTOOL"; then
7996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7997 $as_echo "$DLLTOOL" >&6; }
7998 else
7999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8001 fi
8002
8003
8004 fi
8005 if test -z "$ac_cv_prog_DLLTOOL"; then
8006   ac_ct_DLLTOOL=$DLLTOOL
8007   # Extract the first word of "dlltool", so it can be a program name with args.
8008 set dummy dlltool; ac_word=$2
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010 $as_echo_n "checking for $ac_word... " >&6; }
8011 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8012   $as_echo_n "(cached) " >&6
8013 else
8014   if test -n "$ac_ct_DLLTOOL"; then
8015   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8016 else
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8019 do
8020   IFS=$as_save_IFS
8021   test -z "$as_dir" && as_dir=.
8022     for ac_exec_ext in '' $ac_executable_extensions; do
8023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026     break 2
8027   fi
8028 done
8029   done
8030 IFS=$as_save_IFS
8031
8032 fi
8033 fi
8034 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8035 if test -n "$ac_ct_DLLTOOL"; then
8036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8037 $as_echo "$ac_ct_DLLTOOL" >&6; }
8038 else
8039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040 $as_echo "no" >&6; }
8041 fi
8042
8043   if test "x$ac_ct_DLLTOOL" = x; then
8044     DLLTOOL="false"
8045   else
8046     case $cross_compiling:$ac_tool_warned in
8047 yes:)
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8050 ac_tool_warned=yes ;;
8051 esac
8052     DLLTOOL=$ac_ct_DLLTOOL
8053   fi
8054 else
8055   DLLTOOL="$ac_cv_prog_DLLTOOL"
8056 fi
8057
8058   if test -n "$ac_tool_prefix"; then
8059   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8060 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if ${ac_cv_prog_OBJDUMP+:} false; then :
8064   $as_echo_n "(cached) " >&6
8065 else
8066   if test -n "$OBJDUMP"; then
8067   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8071 do
8072   IFS=$as_save_IFS
8073   test -z "$as_dir" && as_dir=.
8074     for ac_exec_ext in '' $ac_executable_extensions; do
8075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078     break 2
8079   fi
8080 done
8081   done
8082 IFS=$as_save_IFS
8083
8084 fi
8085 fi
8086 OBJDUMP=$ac_cv_prog_OBJDUMP
8087 if test -n "$OBJDUMP"; then
8088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8089 $as_echo "$OBJDUMP" >&6; }
8090 else
8091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8093 fi
8094
8095
8096 fi
8097 if test -z "$ac_cv_prog_OBJDUMP"; then
8098   ac_ct_OBJDUMP=$OBJDUMP
8099   # Extract the first word of "objdump", so it can be a program name with args.
8100 set dummy objdump; ac_word=$2
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102 $as_echo_n "checking for $ac_word... " >&6; }
8103 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8104   $as_echo_n "(cached) " >&6
8105 else
8106   if test -n "$ac_ct_OBJDUMP"; then
8107   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8108 else
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8111 do
8112   IFS=$as_save_IFS
8113   test -z "$as_dir" && as_dir=.
8114     for ac_exec_ext in '' $ac_executable_extensions; do
8115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118     break 2
8119   fi
8120 done
8121   done
8122 IFS=$as_save_IFS
8123
8124 fi
8125 fi
8126 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8127 if test -n "$ac_ct_OBJDUMP"; then
8128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8129 $as_echo "$ac_ct_OBJDUMP" >&6; }
8130 else
8131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 $as_echo "no" >&6; }
8133 fi
8134
8135   if test "x$ac_ct_OBJDUMP" = x; then
8136     OBJDUMP="false"
8137   else
8138     case $cross_compiling:$ac_tool_warned in
8139 yes:)
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8142 ac_tool_warned=yes ;;
8143 esac
8144     OBJDUMP=$ac_ct_OBJDUMP
8145   fi
8146 else
8147   OBJDUMP="$ac_cv_prog_OBJDUMP"
8148 fi
8149
8150   ;;
8151 esac
8152
8153 test -z "$AS" && AS=as
8154
8155
8156
8157
8158
8159 test -z "$DLLTOOL" && DLLTOOL=dlltool
8160
8161
8162
8163
8164
8165 test -z "$OBJDUMP" && OBJDUMP=objdump
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175             # Check whether --enable-shared was given.
8176 if test "${enable_shared+set}" = set; then :
8177   enableval=$enable_shared; p=${PACKAGE-default}
8178     case $enableval in
8179     yes) enable_shared=yes ;;
8180     no) enable_shared=no ;;
8181     *)
8182       enable_shared=no
8183       # Look at the argument we got.  We use all the common list separators.
8184       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8185       for pkg in $enableval; do
8186         IFS="$lt_save_ifs"
8187         if test "X$pkg" = "X$p"; then
8188           enable_shared=yes
8189         fi
8190       done
8191       IFS="$lt_save_ifs"
8192       ;;
8193     esac
8194 else
8195   enable_shared=yes
8196 fi
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208 # Check whether --with-pic was given.
8209 if test "${with_pic+set}" = set; then :
8210   withval=$with_pic; lt_p=${PACKAGE-default}
8211     case $withval in
8212     yes|no) pic_mode=$withval ;;
8213     *)
8214       pic_mode=default
8215       # Look at the argument we got.  We use all the common list separators.
8216       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8217       for lt_pkg in $withval; do
8218         IFS="$lt_save_ifs"
8219         if test "X$lt_pkg" = "X$lt_p"; then
8220           pic_mode=yes
8221         fi
8222       done
8223       IFS="$lt_save_ifs"
8224       ;;
8225     esac
8226 else
8227   pic_mode=default
8228 fi
8229
8230
8231 test -z "$pic_mode" && pic_mode=default
8232
8233
8234
8235
8236
8237
8238
8239   # Check whether --enable-fast-install was given.
8240 if test "${enable_fast_install+set}" = set; then :
8241   enableval=$enable_fast_install; p=${PACKAGE-default}
8242     case $enableval in
8243     yes) enable_fast_install=yes ;;
8244     no) enable_fast_install=no ;;
8245     *)
8246       enable_fast_install=no
8247       # Look at the argument we got.  We use all the common list separators.
8248       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8249       for pkg in $enableval; do
8250         IFS="$lt_save_ifs"
8251         if test "X$pkg" = "X$p"; then
8252           enable_fast_install=yes
8253         fi
8254       done
8255       IFS="$lt_save_ifs"
8256       ;;
8257     esac
8258 else
8259   enable_fast_install=yes
8260 fi
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272 # This can be used to rebuild libtool when needed
8273 LIBTOOL_DEPS="$ltmain"
8274
8275 # Always use our own libtool.
8276 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307 test -z "$LN_S" && LN_S="ln -s"
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322 if test -n "${ZSH_VERSION+set}" ; then
8323    setopt NO_GLOB_SUBST
8324 fi
8325
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8327 $as_echo_n "checking for objdir... " >&6; }
8328 if ${lt_cv_objdir+:} false; then :
8329   $as_echo_n "(cached) " >&6
8330 else
8331   rm -f .libs 2>/dev/null
8332 mkdir .libs 2>/dev/null
8333 if test -d .libs; then
8334   lt_cv_objdir=.libs
8335 else
8336   # MS-DOS does not allow filenames that begin with a dot.
8337   lt_cv_objdir=_libs
8338 fi
8339 rmdir .libs 2>/dev/null
8340 fi
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8342 $as_echo "$lt_cv_objdir" >&6; }
8343 objdir=$lt_cv_objdir
8344
8345
8346
8347
8348
8349 cat >>confdefs.h <<_ACEOF
8350 #define LT_OBJDIR "$lt_cv_objdir/"
8351 _ACEOF
8352
8353
8354
8355
8356 case $host_os in
8357 aix3*)
8358   # AIX sometimes has problems with the GCC collect2 program.  For some
8359   # reason, if we set the COLLECT_NAMES environment variable, the problems
8360   # vanish in a puff of smoke.
8361   if test "X${COLLECT_NAMES+set}" != Xset; then
8362     COLLECT_NAMES=
8363     export COLLECT_NAMES
8364   fi
8365   ;;
8366 esac
8367
8368 # Global variables:
8369 ofile=libtool
8370 can_build_shared=yes
8371
8372 # All known linkers require a `.a' archive for static linking (except MSVC,
8373 # which needs '.lib').
8374 libext=a
8375
8376 with_gnu_ld="$lt_cv_prog_gnu_ld"
8377
8378 old_CC="$CC"
8379 old_CFLAGS="$CFLAGS"
8380
8381 # Set sane defaults for various variables
8382 test -z "$CC" && CC=cc
8383 test -z "$LTCC" && LTCC=$CC
8384 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8385 test -z "$LD" && LD=ld
8386 test -z "$ac_objext" && ac_objext=o
8387
8388 for cc_temp in $compiler""; do
8389   case $cc_temp in
8390     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8391     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8392     \-*) ;;
8393     *) break;;
8394   esac
8395 done
8396 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8397
8398
8399 # Only perform the check for file, if the check method requires it
8400 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8401 case $deplibs_check_method in
8402 file_magic*)
8403   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8405 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8406 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8407   $as_echo_n "(cached) " >&6
8408 else
8409   case $MAGIC_CMD in
8410 [\\/*] |  ?:[\\/]*)
8411   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8412   ;;
8413 *)
8414   lt_save_MAGIC_CMD="$MAGIC_CMD"
8415   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8416   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8417   for ac_dir in $ac_dummy; do
8418     IFS="$lt_save_ifs"
8419     test -z "$ac_dir" && ac_dir=.
8420     if test -f $ac_dir/${ac_tool_prefix}file; then
8421       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8422       if test -n "$file_magic_test_file"; then
8423         case $deplibs_check_method in
8424         "file_magic "*)
8425           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8426           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8427           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8428             $EGREP "$file_magic_regex" > /dev/null; then
8429             :
8430           else
8431             cat <<_LT_EOF 1>&2
8432
8433 *** Warning: the command libtool uses to detect shared libraries,
8434 *** $file_magic_cmd, produces output that libtool cannot recognize.
8435 *** The result is that libtool may fail to recognize shared libraries
8436 *** as such.  This will affect the creation of libtool libraries that
8437 *** depend on shared libraries, but programs linked with such libtool
8438 *** libraries will work regardless of this problem.  Nevertheless, you
8439 *** may want to report the problem to your system manager and/or to
8440 *** bug-libtool@gnu.org
8441
8442 _LT_EOF
8443           fi ;;
8444         esac
8445       fi
8446       break
8447     fi
8448   done
8449   IFS="$lt_save_ifs"
8450   MAGIC_CMD="$lt_save_MAGIC_CMD"
8451   ;;
8452 esac
8453 fi
8454
8455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8456 if test -n "$MAGIC_CMD"; then
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8458 $as_echo "$MAGIC_CMD" >&6; }
8459 else
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8462 fi
8463
8464
8465
8466
8467
8468 if test -z "$lt_cv_path_MAGIC_CMD"; then
8469   if test -n "$ac_tool_prefix"; then
8470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8471 $as_echo_n "checking for file... " >&6; }
8472 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8473   $as_echo_n "(cached) " >&6
8474 else
8475   case $MAGIC_CMD in
8476 [\\/*] |  ?:[\\/]*)
8477   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8478   ;;
8479 *)
8480   lt_save_MAGIC_CMD="$MAGIC_CMD"
8481   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8482   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8483   for ac_dir in $ac_dummy; do
8484     IFS="$lt_save_ifs"
8485     test -z "$ac_dir" && ac_dir=.
8486     if test -f $ac_dir/file; then
8487       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8488       if test -n "$file_magic_test_file"; then
8489         case $deplibs_check_method in
8490         "file_magic "*)
8491           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8492           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8493           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8494             $EGREP "$file_magic_regex" > /dev/null; then
8495             :
8496           else
8497             cat <<_LT_EOF 1>&2
8498
8499 *** Warning: the command libtool uses to detect shared libraries,
8500 *** $file_magic_cmd, produces output that libtool cannot recognize.
8501 *** The result is that libtool may fail to recognize shared libraries
8502 *** as such.  This will affect the creation of libtool libraries that
8503 *** depend on shared libraries, but programs linked with such libtool
8504 *** libraries will work regardless of this problem.  Nevertheless, you
8505 *** may want to report the problem to your system manager and/or to
8506 *** bug-libtool@gnu.org
8507
8508 _LT_EOF
8509           fi ;;
8510         esac
8511       fi
8512       break
8513     fi
8514   done
8515   IFS="$lt_save_ifs"
8516   MAGIC_CMD="$lt_save_MAGIC_CMD"
8517   ;;
8518 esac
8519 fi
8520
8521 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8522 if test -n "$MAGIC_CMD"; then
8523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8524 $as_echo "$MAGIC_CMD" >&6; }
8525 else
8526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527 $as_echo "no" >&6; }
8528 fi
8529
8530
8531   else
8532     MAGIC_CMD=:
8533   fi
8534 fi
8535
8536   fi
8537   ;;
8538 esac
8539
8540 # Use C for the default configuration in the libtool script
8541
8542 lt_save_CC="$CC"
8543 ac_ext=c
8544 ac_cpp='$CPP $CPPFLAGS'
8545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8548
8549
8550 # Source file extension for C test sources.
8551 ac_ext=c
8552
8553 # Object file extension for compiled C test sources.
8554 objext=o
8555 objext=$objext
8556
8557 # Code to be used in simple compile tests
8558 lt_simple_compile_test_code="int some_variable = 0;"
8559
8560 # Code to be used in simple link tests
8561 lt_simple_link_test_code='int main(){return(0);}'
8562
8563
8564
8565
8566
8567
8568
8569 # If no C compiler was specified, use CC.
8570 LTCC=${LTCC-"$CC"}
8571
8572 # If no C compiler flags were specified, use CFLAGS.
8573 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8574
8575 # Allow CC to be a program name with arguments.
8576 compiler=$CC
8577
8578 # Save the default compiler, since it gets overwritten when the other
8579 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8580 compiler_DEFAULT=$CC
8581
8582 # save warnings/boilerplate of simple test code
8583 ac_outfile=conftest.$ac_objext
8584 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8585 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8586 _lt_compiler_boilerplate=`cat conftest.err`
8587 $RM conftest*
8588
8589 ac_outfile=conftest.$ac_objext
8590 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8591 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8592 _lt_linker_boilerplate=`cat conftest.err`
8593 $RM -r conftest*
8594
8595
8596 ## CAVEAT EMPTOR:
8597 ## There is no encapsulation within the following macros, do not change
8598 ## the running order or otherwise move them around unless you know exactly
8599 ## what you are doing...
8600 if test -n "$compiler"; then
8601
8602 lt_prog_compiler_no_builtin_flag=
8603
8604 if test "$GCC" = yes; then
8605   case $cc_basename in
8606   nvcc*)
8607     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8608   *)
8609     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8610   esac
8611
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8613 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8614 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8615   $as_echo_n "(cached) " >&6
8616 else
8617   lt_cv_prog_compiler_rtti_exceptions=no
8618    ac_outfile=conftest.$ac_objext
8619    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8620    lt_compiler_flag="-fno-rtti -fno-exceptions"
8621    # Insert the option either (1) after the last *FLAGS variable, or
8622    # (2) before a word containing "conftest.", or (3) at the end.
8623    # Note that $ac_compile itself does not contain backslashes and begins
8624    # with a dollar sign (not a hyphen), so the echo should work correctly.
8625    # The option is referenced via a variable to avoid confusing sed.
8626    lt_compile=`echo "$ac_compile" | $SED \
8627    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8628    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8629    -e 's:$: $lt_compiler_flag:'`
8630    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8631    (eval "$lt_compile" 2>conftest.err)
8632    ac_status=$?
8633    cat conftest.err >&5
8634    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635    if (exit $ac_status) && test -s "$ac_outfile"; then
8636      # The compiler can only warn and ignore the option if not recognized
8637      # So say no if there are warnings other than the usual output.
8638      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8639      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8640      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8641        lt_cv_prog_compiler_rtti_exceptions=yes
8642      fi
8643    fi
8644    $RM conftest*
8645
8646 fi
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8648 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8649
8650 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8651     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8652 else
8653     :
8654 fi
8655
8656 fi
8657
8658
8659
8660
8661
8662
8663   lt_prog_compiler_wl=
8664 lt_prog_compiler_pic=
8665 lt_prog_compiler_static=
8666
8667
8668   if test "$GCC" = yes; then
8669     lt_prog_compiler_wl='-Wl,'
8670     lt_prog_compiler_static='-static'
8671
8672     case $host_os in
8673       aix*)
8674       # All AIX code is PIC.
8675       if test "$host_cpu" = ia64; then
8676         # AIX 5 now supports IA64 processor
8677         lt_prog_compiler_static='-Bstatic'
8678       fi
8679       ;;
8680
8681     amigaos*)
8682       case $host_cpu in
8683       powerpc)
8684             # see comment about AmigaOS4 .so support
8685             lt_prog_compiler_pic='-fPIC'
8686         ;;
8687       m68k)
8688             # FIXME: we need at least 68020 code to build shared libraries, but
8689             # adding the `-m68020' flag to GCC prevents building anything better,
8690             # like `-m68040'.
8691             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8692         ;;
8693       esac
8694       ;;
8695
8696     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8697       # PIC is the default for these OSes.
8698       ;;
8699
8700     mingw* | cygwin* | pw32* | os2* | cegcc*)
8701       # This hack is so that the source file can tell whether it is being
8702       # built for inclusion in a dll (and should export symbols for example).
8703       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8704       # (--disable-auto-import) libraries
8705       lt_prog_compiler_pic='-DDLL_EXPORT'
8706       ;;
8707
8708     darwin* | rhapsody*)
8709       # PIC is the default on this platform
8710       # Common symbols not allowed in MH_DYLIB files
8711       lt_prog_compiler_pic='-fno-common'
8712       ;;
8713
8714     haiku*)
8715       # PIC is the default for Haiku.
8716       # The "-static" flag exists, but is broken.
8717       lt_prog_compiler_static=
8718       ;;
8719
8720     hpux*)
8721       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8722       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8723       # sets the default TLS model and affects inlining.
8724       case $host_cpu in
8725       hppa*64*)
8726         # +Z the default
8727         ;;
8728       *)
8729         lt_prog_compiler_pic='-fPIC'
8730         ;;
8731       esac
8732       ;;
8733
8734     interix[3-9]*)
8735       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8736       # Instead, we relocate shared libraries at runtime.
8737       ;;
8738
8739     msdosdjgpp*)
8740       # Just because we use GCC doesn't mean we suddenly get shared libraries
8741       # on systems that don't support them.
8742       lt_prog_compiler_can_build_shared=no
8743       enable_shared=no
8744       ;;
8745
8746     *nto* | *qnx*)
8747       # QNX uses GNU C++, but need to define -shared option too, otherwise
8748       # it will coredump.
8749       lt_prog_compiler_pic='-fPIC -shared'
8750       ;;
8751
8752     sysv4*MP*)
8753       if test -d /usr/nec; then
8754         lt_prog_compiler_pic=-Kconform_pic
8755       fi
8756       ;;
8757
8758     *)
8759       lt_prog_compiler_pic='-fPIC'
8760       ;;
8761     esac
8762
8763     case $cc_basename in
8764     nvcc*) # Cuda Compiler Driver 2.2
8765       lt_prog_compiler_wl='-Xlinker '
8766       if test -n "$lt_prog_compiler_pic"; then
8767         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8768       fi
8769       ;;
8770     esac
8771   else
8772     # PORTME Check for flag to pass linker flags through the system compiler.
8773     case $host_os in
8774     aix*)
8775       lt_prog_compiler_wl='-Wl,'
8776       if test "$host_cpu" = ia64; then
8777         # AIX 5 now supports IA64 processor
8778         lt_prog_compiler_static='-Bstatic'
8779       else
8780         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8781       fi
8782       ;;
8783
8784     mingw* | cygwin* | pw32* | os2* | cegcc*)
8785       # This hack is so that the source file can tell whether it is being
8786       # built for inclusion in a dll (and should export symbols for example).
8787       lt_prog_compiler_pic='-DDLL_EXPORT'
8788       ;;
8789
8790     hpux9* | hpux10* | hpux11*)
8791       lt_prog_compiler_wl='-Wl,'
8792       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8793       # not for PA HP-UX.
8794       case $host_cpu in
8795       hppa*64*|ia64*)
8796         # +Z the default
8797         ;;
8798       *)
8799         lt_prog_compiler_pic='+Z'
8800         ;;
8801       esac
8802       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8803       lt_prog_compiler_static='${wl}-a ${wl}archive'
8804       ;;
8805
8806     irix5* | irix6* | nonstopux*)
8807       lt_prog_compiler_wl='-Wl,'
8808       # PIC (with -KPIC) is the default.
8809       lt_prog_compiler_static='-non_shared'
8810       ;;
8811
8812     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8813       case $cc_basename in
8814       # old Intel for x86_64 which still supported -KPIC.
8815       ecc*)
8816         lt_prog_compiler_wl='-Wl,'
8817         lt_prog_compiler_pic='-KPIC'
8818         lt_prog_compiler_static='-static'
8819         ;;
8820       # icc used to be incompatible with GCC.
8821       # ICC 10 doesn't accept -KPIC any more.
8822       icc* | ifort*)
8823         lt_prog_compiler_wl='-Wl,'
8824         lt_prog_compiler_pic='-fPIC'
8825         lt_prog_compiler_static='-static'
8826         ;;
8827       # Lahey Fortran 8.1.
8828       lf95*)
8829         lt_prog_compiler_wl='-Wl,'
8830         lt_prog_compiler_pic='--shared'
8831         lt_prog_compiler_static='--static'
8832         ;;
8833       nagfor*)
8834         # NAG Fortran compiler
8835         lt_prog_compiler_wl='-Wl,-Wl,,'
8836         lt_prog_compiler_pic='-PIC'
8837         lt_prog_compiler_static='-Bstatic'
8838         ;;
8839       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8840         # Portland Group compilers (*not* the Pentium gcc compiler,
8841         # which looks to be a dead project)
8842         lt_prog_compiler_wl='-Wl,'
8843         lt_prog_compiler_pic='-fpic'
8844         lt_prog_compiler_static='-Bstatic'
8845         ;;
8846       ccc*)
8847         lt_prog_compiler_wl='-Wl,'
8848         # All Alpha code is PIC.
8849         lt_prog_compiler_static='-non_shared'
8850         ;;
8851       xl* | bgxl* | bgf* | mpixl*)
8852         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8853         lt_prog_compiler_wl='-Wl,'
8854         lt_prog_compiler_pic='-qpic'
8855         lt_prog_compiler_static='-qstaticlink'
8856         ;;
8857       *)
8858         case `$CC -V 2>&1 | sed 5q` in
8859         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8860           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8861           lt_prog_compiler_pic='-KPIC'
8862           lt_prog_compiler_static='-Bstatic'
8863           lt_prog_compiler_wl=''
8864           ;;
8865         *Sun\ F* | *Sun*Fortran*)
8866           lt_prog_compiler_pic='-KPIC'
8867           lt_prog_compiler_static='-Bstatic'
8868           lt_prog_compiler_wl='-Qoption ld '
8869           ;;
8870         *Sun\ C*)
8871           # Sun C 5.9
8872           lt_prog_compiler_pic='-KPIC'
8873           lt_prog_compiler_static='-Bstatic'
8874           lt_prog_compiler_wl='-Wl,'
8875           ;;
8876         *Intel*\ [CF]*Compiler*)
8877           lt_prog_compiler_wl='-Wl,'
8878           lt_prog_compiler_pic='-fPIC'
8879           lt_prog_compiler_static='-static'
8880           ;;
8881         *Portland\ Group*)
8882           lt_prog_compiler_wl='-Wl,'
8883           lt_prog_compiler_pic='-fpic'
8884           lt_prog_compiler_static='-Bstatic'
8885           ;;
8886         esac
8887         ;;
8888       esac
8889       ;;
8890
8891     newsos6)
8892       lt_prog_compiler_pic='-KPIC'
8893       lt_prog_compiler_static='-Bstatic'
8894       ;;
8895
8896     *nto* | *qnx*)
8897       # QNX uses GNU C++, but need to define -shared option too, otherwise
8898       # it will coredump.
8899       lt_prog_compiler_pic='-fPIC -shared'
8900       ;;
8901
8902     osf3* | osf4* | osf5*)
8903       lt_prog_compiler_wl='-Wl,'
8904       # All OSF/1 code is PIC.
8905       lt_prog_compiler_static='-non_shared'
8906       ;;
8907
8908     rdos*)
8909       lt_prog_compiler_static='-non_shared'
8910       ;;
8911
8912     solaris*)
8913       lt_prog_compiler_pic='-KPIC'
8914       lt_prog_compiler_static='-Bstatic'
8915       case $cc_basename in
8916       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8917         lt_prog_compiler_wl='-Qoption ld ';;
8918       *)
8919         lt_prog_compiler_wl='-Wl,';;
8920       esac
8921       ;;
8922
8923     sunos4*)
8924       lt_prog_compiler_wl='-Qoption ld '
8925       lt_prog_compiler_pic='-PIC'
8926       lt_prog_compiler_static='-Bstatic'
8927       ;;
8928
8929     sysv4 | sysv4.2uw2* | sysv4.3*)
8930       lt_prog_compiler_wl='-Wl,'
8931       lt_prog_compiler_pic='-KPIC'
8932       lt_prog_compiler_static='-Bstatic'
8933       ;;
8934
8935     sysv4*MP*)
8936       if test -d /usr/nec ;then
8937         lt_prog_compiler_pic='-Kconform_pic'
8938         lt_prog_compiler_static='-Bstatic'
8939       fi
8940       ;;
8941
8942     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8943       lt_prog_compiler_wl='-Wl,'
8944       lt_prog_compiler_pic='-KPIC'
8945       lt_prog_compiler_static='-Bstatic'
8946       ;;
8947
8948     unicos*)
8949       lt_prog_compiler_wl='-Wl,'
8950       lt_prog_compiler_can_build_shared=no
8951       ;;
8952
8953     uts4*)
8954       lt_prog_compiler_pic='-pic'
8955       lt_prog_compiler_static='-Bstatic'
8956       ;;
8957
8958     *)
8959       lt_prog_compiler_can_build_shared=no
8960       ;;
8961     esac
8962   fi
8963
8964 case $host_os in
8965   # For platforms which do not support PIC, -DPIC is meaningless:
8966   *djgpp*)
8967     lt_prog_compiler_pic=
8968     ;;
8969   *)
8970     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8971     ;;
8972 esac
8973
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8975 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8976 if ${lt_cv_prog_compiler_pic+:} false; then :
8977   $as_echo_n "(cached) " >&6
8978 else
8979   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8980 fi
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8982 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8983 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8984
8985 #
8986 # Check to make sure the PIC flag actually works.
8987 #
8988 if test -n "$lt_prog_compiler_pic"; then
8989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8990 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8991 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8992   $as_echo_n "(cached) " >&6
8993 else
8994   lt_cv_prog_compiler_pic_works=no
8995    ac_outfile=conftest.$ac_objext
8996    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8997    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8998    # Insert the option either (1) after the last *FLAGS variable, or
8999    # (2) before a word containing "conftest.", or (3) at the end.
9000    # Note that $ac_compile itself does not contain backslashes and begins
9001    # with a dollar sign (not a hyphen), so the echo should work correctly.
9002    # The option is referenced via a variable to avoid confusing sed.
9003    lt_compile=`echo "$ac_compile" | $SED \
9004    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9005    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9006    -e 's:$: $lt_compiler_flag:'`
9007    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9008    (eval "$lt_compile" 2>conftest.err)
9009    ac_status=$?
9010    cat conftest.err >&5
9011    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012    if (exit $ac_status) && test -s "$ac_outfile"; then
9013      # The compiler can only warn and ignore the option if not recognized
9014      # So say no if there are warnings other than the usual output.
9015      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9016      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9017      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9018        lt_cv_prog_compiler_pic_works=yes
9019      fi
9020    fi
9021    $RM conftest*
9022
9023 fi
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9025 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9026
9027 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9028     case $lt_prog_compiler_pic in
9029      "" | " "*) ;;
9030      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9031      esac
9032 else
9033     lt_prog_compiler_pic=
9034      lt_prog_compiler_can_build_shared=no
9035 fi
9036
9037 fi
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049 #
9050 # Check to make sure the static flag actually works.
9051 #
9052 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9054 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9055 if ${lt_cv_prog_compiler_static_works+:} false; then :
9056   $as_echo_n "(cached) " >&6
9057 else
9058   lt_cv_prog_compiler_static_works=no
9059    save_LDFLAGS="$LDFLAGS"
9060    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9061    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9062    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9063      # The linker can only warn and ignore the option if not recognized
9064      # So say no if there are warnings
9065      if test -s conftest.err; then
9066        # Append any errors to the config.log.
9067        cat conftest.err 1>&5
9068        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9069        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9070        if diff conftest.exp conftest.er2 >/dev/null; then
9071          lt_cv_prog_compiler_static_works=yes
9072        fi
9073      else
9074        lt_cv_prog_compiler_static_works=yes
9075      fi
9076    fi
9077    $RM -r conftest*
9078    LDFLAGS="$save_LDFLAGS"
9079
9080 fi
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9082 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9083
9084 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9085     :
9086 else
9087     lt_prog_compiler_static=
9088 fi
9089
9090
9091
9092
9093
9094
9095
9096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9097 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9098 if ${lt_cv_prog_compiler_c_o+:} false; then :
9099   $as_echo_n "(cached) " >&6
9100 else
9101   lt_cv_prog_compiler_c_o=no
9102    $RM -r conftest 2>/dev/null
9103    mkdir conftest
9104    cd conftest
9105    mkdir out
9106    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9107
9108    lt_compiler_flag="-o out/conftest2.$ac_objext"
9109    # Insert the option either (1) after the last *FLAGS variable, or
9110    # (2) before a word containing "conftest.", or (3) at the end.
9111    # Note that $ac_compile itself does not contain backslashes and begins
9112    # with a dollar sign (not a hyphen), so the echo should work correctly.
9113    lt_compile=`echo "$ac_compile" | $SED \
9114    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9116    -e 's:$: $lt_compiler_flag:'`
9117    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9118    (eval "$lt_compile" 2>out/conftest.err)
9119    ac_status=$?
9120    cat out/conftest.err >&5
9121    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9123    then
9124      # The compiler can only warn and ignore the option if not recognized
9125      # So say no if there are warnings
9126      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9127      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9128      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9129        lt_cv_prog_compiler_c_o=yes
9130      fi
9131    fi
9132    chmod u+w . 2>&5
9133    $RM conftest*
9134    # SGI C++ compiler will create directory out/ii_files/ for
9135    # template instantiation
9136    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9137    $RM out/* && rmdir out
9138    cd ..
9139    $RM -r conftest
9140    $RM conftest*
9141
9142 fi
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9144 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9145
9146
9147
9148
9149
9150
9151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9152 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9153 if ${lt_cv_prog_compiler_c_o+:} false; then :
9154   $as_echo_n "(cached) " >&6
9155 else
9156   lt_cv_prog_compiler_c_o=no
9157    $RM -r conftest 2>/dev/null
9158    mkdir conftest
9159    cd conftest
9160    mkdir out
9161    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9162
9163    lt_compiler_flag="-o out/conftest2.$ac_objext"
9164    # Insert the option either (1) after the last *FLAGS variable, or
9165    # (2) before a word containing "conftest.", or (3) at the end.
9166    # Note that $ac_compile itself does not contain backslashes and begins
9167    # with a dollar sign (not a hyphen), so the echo should work correctly.
9168    lt_compile=`echo "$ac_compile" | $SED \
9169    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9170    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9171    -e 's:$: $lt_compiler_flag:'`
9172    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9173    (eval "$lt_compile" 2>out/conftest.err)
9174    ac_status=$?
9175    cat out/conftest.err >&5
9176    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9178    then
9179      # The compiler can only warn and ignore the option if not recognized
9180      # So say no if there are warnings
9181      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9182      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9183      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9184        lt_cv_prog_compiler_c_o=yes
9185      fi
9186    fi
9187    chmod u+w . 2>&5
9188    $RM conftest*
9189    # SGI C++ compiler will create directory out/ii_files/ for
9190    # template instantiation
9191    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9192    $RM out/* && rmdir out
9193    cd ..
9194    $RM -r conftest
9195    $RM conftest*
9196
9197 fi
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9199 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9200
9201
9202
9203
9204 hard_links="nottested"
9205 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9206   # do not overwrite the value of need_locks provided by the user
9207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9208 $as_echo_n "checking if we can lock with hard links... " >&6; }
9209   hard_links=yes
9210   $RM conftest*
9211   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9212   touch conftest.a
9213   ln conftest.a conftest.b 2>&5 || hard_links=no
9214   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9216 $as_echo "$hard_links" >&6; }
9217   if test "$hard_links" = no; then
9218     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9219 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9220     need_locks=warn
9221   fi
9222 else
9223   need_locks=no
9224 fi
9225
9226
9227
9228
9229
9230
9231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9232 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9233
9234   runpath_var=
9235   allow_undefined_flag=
9236   always_export_symbols=no
9237   archive_cmds=
9238   archive_expsym_cmds=
9239   compiler_needs_object=no
9240   enable_shared_with_static_runtimes=no
9241   export_dynamic_flag_spec=
9242   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9243   hardcode_automatic=no
9244   hardcode_direct=no
9245   hardcode_direct_absolute=no
9246   hardcode_libdir_flag_spec=
9247   hardcode_libdir_separator=
9248   hardcode_minus_L=no
9249   hardcode_shlibpath_var=unsupported
9250   inherit_rpath=no
9251   link_all_deplibs=unknown
9252   module_cmds=
9253   module_expsym_cmds=
9254   old_archive_from_new_cmds=
9255   old_archive_from_expsyms_cmds=
9256   thread_safe_flag_spec=
9257   whole_archive_flag_spec=
9258   # include_expsyms should be a list of space-separated symbols to be *always*
9259   # included in the symbol list
9260   include_expsyms=
9261   # exclude_expsyms can be an extended regexp of symbols to exclude
9262   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9263   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9264   # as well as any symbol that contains `d'.
9265   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9266   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9267   # platforms (ab)use it in PIC code, but their linkers get confused if
9268   # the symbol is explicitly referenced.  Since portable code cannot
9269   # rely on this symbol name, it's probably fine to never include it in
9270   # preloaded symbol tables.
9271   # Exclude shared library initialization/finalization symbols.
9272   extract_expsyms_cmds=
9273
9274   case $host_os in
9275   cygwin* | mingw* | pw32* | cegcc*)
9276     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9277     # When not using gcc, we currently assume that we are using
9278     # Microsoft Visual C++.
9279     if test "$GCC" != yes; then
9280       with_gnu_ld=no
9281     fi
9282     ;;
9283   interix*)
9284     # we just hope/assume this is gcc and not c89 (= MSVC++)
9285     with_gnu_ld=yes
9286     ;;
9287   openbsd*)
9288     with_gnu_ld=no
9289     ;;
9290   linux* | k*bsd*-gnu | gnu*)
9291     link_all_deplibs=no
9292     ;;
9293   esac
9294
9295   ld_shlibs=yes
9296
9297   # On some targets, GNU ld is compatible enough with the native linker
9298   # that we're better off using the native interface for both.
9299   lt_use_gnu_ld_interface=no
9300   if test "$with_gnu_ld" = yes; then
9301     case $host_os in
9302       aix*)
9303         # The AIX port of GNU ld has always aspired to compatibility
9304         # with the native linker.  However, as the warning in the GNU ld
9305         # block says, versions before 2.19.5* couldn't really create working
9306         # shared libraries, regardless of the interface used.
9307         case `$LD -v 2>&1` in
9308           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9309           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9310           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9311           *)
9312             lt_use_gnu_ld_interface=yes
9313             ;;
9314         esac
9315         ;;
9316       *)
9317         lt_use_gnu_ld_interface=yes
9318         ;;
9319     esac
9320   fi
9321
9322   if test "$lt_use_gnu_ld_interface" = yes; then
9323     # If archive_cmds runs LD, not CC, wlarc should be empty
9324     wlarc='${wl}'
9325
9326     # Set some defaults for GNU ld with shared library support. These
9327     # are reset later if shared libraries are not supported. Putting them
9328     # here allows them to be overridden if necessary.
9329     runpath_var=LD_RUN_PATH
9330     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9331     export_dynamic_flag_spec='${wl}--export-dynamic'
9332     # ancient GNU ld didn't support --whole-archive et. al.
9333     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9334       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9335     else
9336       whole_archive_flag_spec=
9337     fi
9338     supports_anon_versioning=no
9339     case `$LD -v 2>&1` in
9340       *GNU\ gold*) supports_anon_versioning=yes ;;
9341       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9342       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9343       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9344       *\ 2.11.*) ;; # other 2.11 versions
9345       *) supports_anon_versioning=yes ;;
9346     esac
9347
9348     # See if GNU ld supports shared libraries.
9349     case $host_os in
9350     aix[3-9]*)
9351       # On AIX/PPC, the GNU linker is very broken
9352       if test "$host_cpu" != ia64; then
9353         ld_shlibs=no
9354         cat <<_LT_EOF 1>&2
9355
9356 *** Warning: the GNU linker, at least up to release 2.19, is reported
9357 *** to be unable to reliably create shared libraries on AIX.
9358 *** Therefore, libtool is disabling shared libraries support.  If you
9359 *** really care for shared libraries, you may want to install binutils
9360 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9361 *** You will then need to restart the configuration process.
9362
9363 _LT_EOF
9364       fi
9365       ;;
9366
9367     amigaos*)
9368       case $host_cpu in
9369       powerpc)
9370             # see comment about AmigaOS4 .so support
9371             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372             archive_expsym_cmds=''
9373         ;;
9374       m68k)
9375             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)'
9376             hardcode_libdir_flag_spec='-L$libdir'
9377             hardcode_minus_L=yes
9378         ;;
9379       esac
9380       ;;
9381
9382     beos*)
9383       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9384         allow_undefined_flag=unsupported
9385         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9386         # support --undefined.  This deserves some investigation.  FIXME
9387         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9388       else
9389         ld_shlibs=no
9390       fi
9391       ;;
9392
9393     cygwin* | mingw* | pw32* | cegcc*)
9394       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9395       # as there is no search path for DLLs.
9396       hardcode_libdir_flag_spec='-L$libdir'
9397       export_dynamic_flag_spec='${wl}--export-all-symbols'
9398       allow_undefined_flag=unsupported
9399       always_export_symbols=no
9400       enable_shared_with_static_runtimes=yes
9401       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9402       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9403
9404       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9405         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9406         # If the export-symbols file already is a .def file (1st line
9407         # is EXPORTS), use it as is; otherwise, prepend...
9408         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9409           cp $export_symbols $output_objdir/$soname.def;
9410         else
9411           echo EXPORTS > $output_objdir/$soname.def;
9412           cat $export_symbols >> $output_objdir/$soname.def;
9413         fi~
9414         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9415       else
9416         ld_shlibs=no
9417       fi
9418       ;;
9419
9420     haiku*)
9421       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422       link_all_deplibs=yes
9423       ;;
9424
9425     interix[3-9]*)
9426       hardcode_direct=no
9427       hardcode_shlibpath_var=no
9428       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9429       export_dynamic_flag_spec='${wl}-E'
9430       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9431       # Instead, shared libraries are loaded at an image base (0x10000000 by
9432       # default) and relocated if they conflict, which is a slow very memory
9433       # consuming and fragmenting process.  To avoid this, we pick a random,
9434       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9435       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9436       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9437       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'
9438       ;;
9439
9440     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9441       tmp_diet=no
9442       if test "$host_os" = linux-dietlibc; then
9443         case $cc_basename in
9444           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9445         esac
9446       fi
9447       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9448          && test "$tmp_diet" = no
9449       then
9450         tmp_addflag=' $pic_flag'
9451         tmp_sharedflag='-shared'
9452         case $cc_basename,$host_cpu in
9453         pgcc*)                          # Portland Group C compiler
9454           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9455           tmp_addflag=' $pic_flag'
9456           ;;
9457         pgf77* | pgf90* | pgf95* | pgfortran*)
9458                                         # Portland Group f77 and f90 compilers
9459           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9460           tmp_addflag=' $pic_flag -Mnomain' ;;
9461         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9462           tmp_addflag=' -i_dynamic' ;;
9463         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9464           tmp_addflag=' -i_dynamic -nofor_main' ;;
9465         ifc* | ifort*)                  # Intel Fortran compiler
9466           tmp_addflag=' -nofor_main' ;;
9467         lf95*)                          # Lahey Fortran 8.1
9468           whole_archive_flag_spec=
9469           tmp_sharedflag='--shared' ;;
9470         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9471           tmp_sharedflag='-qmkshrobj'
9472           tmp_addflag= ;;
9473         nvcc*)  # Cuda Compiler Driver 2.2
9474           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9475           compiler_needs_object=yes
9476           ;;
9477         esac
9478         case `$CC -V 2>&1 | sed 5q` in
9479         *Sun\ C*)                       # Sun C 5.9
9480           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9481           compiler_needs_object=yes
9482           tmp_sharedflag='-G' ;;
9483         *Sun\ F*)                       # Sun Fortran 8.3
9484           tmp_sharedflag='-G' ;;
9485         esac
9486         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9487
9488         if test "x$supports_anon_versioning" = xyes; then
9489           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9490             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9491             echo "local: *; };" >> $output_objdir/$libname.ver~
9492             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9493         fi
9494
9495         case $cc_basename in
9496         xlf* | bgf* | bgxlf* | mpixlf*)
9497           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9498           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9499           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9500           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9501           if test "x$supports_anon_versioning" = xyes; then
9502             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9503               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9504               echo "local: *; };" >> $output_objdir/$libname.ver~
9505               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9506           fi
9507           ;;
9508         esac
9509       else
9510         ld_shlibs=no
9511       fi
9512       ;;
9513
9514     netbsd* | netbsdelf*-gnu)
9515       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9516         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9517         wlarc=
9518       else
9519         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9520         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9521       fi
9522       ;;
9523
9524     solaris*)
9525       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9526         ld_shlibs=no
9527         cat <<_LT_EOF 1>&2
9528
9529 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9530 *** create shared libraries on Solaris systems.  Therefore, libtool
9531 *** is disabling shared libraries support.  We urge you to upgrade GNU
9532 *** binutils to release 2.9.1 or newer.  Another option is to modify
9533 *** your PATH or compiler configuration so that the native linker is
9534 *** used, and then restart.
9535
9536 _LT_EOF
9537       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9538         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9539         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9540       else
9541         ld_shlibs=no
9542       fi
9543       ;;
9544
9545     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9546       case `$LD -v 2>&1` in
9547         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9548         ld_shlibs=no
9549         cat <<_LT_EOF 1>&2
9550
9551 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9552 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9553 *** is disabling shared libraries support.  We urge you to upgrade GNU
9554 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9555 *** your PATH or compiler configuration so that the native linker is
9556 *** used, and then restart.
9557
9558 _LT_EOF
9559         ;;
9560         *)
9561           # For security reasons, it is highly recommended that you always
9562           # use absolute paths for naming shared libraries, and exclude the
9563           # DT_RUNPATH tag from executables and libraries.  But doing so
9564           # requires that you compile everything twice, which is a pain.
9565           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9566             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9567             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9569           else
9570             ld_shlibs=no
9571           fi
9572         ;;
9573       esac
9574       ;;
9575
9576     sunos4*)
9577       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9578       wlarc=
9579       hardcode_direct=yes
9580       hardcode_shlibpath_var=no
9581       ;;
9582
9583     *)
9584       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9585         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9586         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9587       else
9588         ld_shlibs=no
9589       fi
9590       ;;
9591     esac
9592
9593     if test "$ld_shlibs" = no; then
9594       runpath_var=
9595       hardcode_libdir_flag_spec=
9596       export_dynamic_flag_spec=
9597       whole_archive_flag_spec=
9598     fi
9599   else
9600     # PORTME fill in a description of your system's linker (not GNU ld)
9601     case $host_os in
9602     aix3*)
9603       allow_undefined_flag=unsupported
9604       always_export_symbols=yes
9605       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'
9606       # Note: this linker hardcodes the directories in LIBPATH if there
9607       # are no directories specified by -L.
9608       hardcode_minus_L=yes
9609       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9610         # Neither direct hardcoding nor static linking is supported with a
9611         # broken collect2.
9612         hardcode_direct=unsupported
9613       fi
9614       ;;
9615
9616     aix[4-9]*)
9617       if test "$host_cpu" = ia64; then
9618         # On IA64, the linker does run time linking by default, so we don't
9619         # have to do anything special.
9620         aix_use_runtimelinking=no
9621         exp_sym_flag='-Bexport'
9622         no_entry_flag=""
9623       else
9624         # If we're using GNU nm, then we don't want the "-C" option.
9625         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9626         # Also, AIX nm treats weak defined symbols like other global
9627         # defined symbols, whereas GNU nm marks them as "W".
9628         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9629           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9630         else
9631           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'
9632         fi
9633         aix_use_runtimelinking=no
9634
9635         # Test if we are trying to use run time linking or normal
9636         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9637         # need to do runtime linking.
9638         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9639           for ld_flag in $LDFLAGS; do
9640           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9641             aix_use_runtimelinking=yes
9642             break
9643           fi
9644           done
9645           ;;
9646         esac
9647
9648         exp_sym_flag='-bexport'
9649         no_entry_flag='-bnoentry'
9650       fi
9651
9652       # When large executables or shared objects are built, AIX ld can
9653       # have problems creating the table of contents.  If linking a library
9654       # or program results in "error TOC overflow" add -mminimal-toc to
9655       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9656       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9657
9658       archive_cmds=''
9659       hardcode_direct=yes
9660       hardcode_direct_absolute=yes
9661       hardcode_libdir_separator=':'
9662       link_all_deplibs=yes
9663       file_list_spec='${wl}-f,'
9664
9665       if test "$GCC" = yes; then
9666         case $host_os in aix4.[012]|aix4.[012].*)
9667         # We only want to do this on AIX 4.2 and lower, the check
9668         # below for broken collect2 doesn't work under 4.3+
9669           collect2name=`${CC} -print-prog-name=collect2`
9670           if test -f "$collect2name" &&
9671            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9672           then
9673           # We have reworked collect2
9674           :
9675           else
9676           # We have old collect2
9677           hardcode_direct=unsupported
9678           # It fails to find uninstalled libraries when the uninstalled
9679           # path is not listed in the libpath.  Setting hardcode_minus_L
9680           # to unsupported forces relinking
9681           hardcode_minus_L=yes
9682           hardcode_libdir_flag_spec='-L$libdir'
9683           hardcode_libdir_separator=
9684           fi
9685           ;;
9686         esac
9687         shared_flag='-shared'
9688         if test "$aix_use_runtimelinking" = yes; then
9689           shared_flag="$shared_flag "'${wl}-G'
9690         fi
9691         link_all_deplibs=no
9692       else
9693         # not using gcc
9694         if test "$host_cpu" = ia64; then
9695         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9696         # chokes on -Wl,-G. The following line is correct:
9697           shared_flag='-G'
9698         else
9699           if test "$aix_use_runtimelinking" = yes; then
9700             shared_flag='${wl}-G'
9701           else
9702             shared_flag='${wl}-bM:SRE'
9703           fi
9704         fi
9705       fi
9706
9707       export_dynamic_flag_spec='${wl}-bexpall'
9708       # It seems that -bexpall does not export symbols beginning with
9709       # underscore (_), so it is better to generate a list of symbols to export.
9710       always_export_symbols=yes
9711       if test "$aix_use_runtimelinking" = yes; then
9712         # Warning - without using the other runtime loading flags (-brtl),
9713         # -berok will link without error, but may produce a broken library.
9714         allow_undefined_flag='-berok'
9715         # Determine the default libpath from the value encoded in an
9716         # empty executable.
9717         if test "${lt_cv_aix_libpath+set}" = set; then
9718   aix_libpath=$lt_cv_aix_libpath
9719 else
9720   if ${lt_cv_aix_libpath_+:} false; then :
9721   $as_echo_n "(cached) " >&6
9722 else
9723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h.  */
9725
9726 int
9727 main ()
9728 {
9729
9730   ;
9731   return 0;
9732 }
9733 _ACEOF
9734 if ac_fn_c_try_link "$LINENO"; then :
9735
9736   lt_aix_libpath_sed='
9737       /Import File Strings/,/^$/ {
9738           /^0/ {
9739               s/^0  *\([^ ]*\) *$/\1/
9740               p
9741           }
9742       }'
9743   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9744   # Check for a 64-bit object if we didn't find anything.
9745   if test -z "$lt_cv_aix_libpath_"; then
9746     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9747   fi
9748 fi
9749 rm -f core conftest.err conftest.$ac_objext \
9750     conftest$ac_exeext conftest.$ac_ext
9751   if test -z "$lt_cv_aix_libpath_"; then
9752     lt_cv_aix_libpath_="/usr/lib:/lib"
9753   fi
9754
9755 fi
9756
9757   aix_libpath=$lt_cv_aix_libpath_
9758 fi
9759
9760         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9761         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9762       else
9763         if test "$host_cpu" = ia64; then
9764           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9765           allow_undefined_flag="-z nodefs"
9766           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"
9767         else
9768          # Determine the default libpath from the value encoded in an
9769          # empty executable.
9770          if test "${lt_cv_aix_libpath+set}" = set; then
9771   aix_libpath=$lt_cv_aix_libpath
9772 else
9773   if ${lt_cv_aix_libpath_+:} false; then :
9774   $as_echo_n "(cached) " >&6
9775 else
9776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h.  */
9778
9779 int
9780 main ()
9781 {
9782
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 if ac_fn_c_try_link "$LINENO"; then :
9788
9789   lt_aix_libpath_sed='
9790       /Import File Strings/,/^$/ {
9791           /^0/ {
9792               s/^0  *\([^ ]*\) *$/\1/
9793               p
9794           }
9795       }'
9796   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9797   # Check for a 64-bit object if we didn't find anything.
9798   if test -z "$lt_cv_aix_libpath_"; then
9799     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9800   fi
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext \
9803     conftest$ac_exeext conftest.$ac_ext
9804   if test -z "$lt_cv_aix_libpath_"; then
9805     lt_cv_aix_libpath_="/usr/lib:/lib"
9806   fi
9807
9808 fi
9809
9810   aix_libpath=$lt_cv_aix_libpath_
9811 fi
9812
9813          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9814           # Warning - without using the other run time loading flags,
9815           # -berok will link without error, but may produce a broken library.
9816           no_undefined_flag=' ${wl}-bernotok'
9817           allow_undefined_flag=' ${wl}-berok'
9818           if test "$with_gnu_ld" = yes; then
9819             # We only use this code for GNU lds that support --whole-archive.
9820             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9821           else
9822             # Exported symbols can be pulled into shared objects from archives
9823             whole_archive_flag_spec='$convenience'
9824           fi
9825           archive_cmds_need_lc=yes
9826           # This is similar to how AIX traditionally builds its shared libraries.
9827           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'
9828         fi
9829       fi
9830       ;;
9831
9832     amigaos*)
9833       case $host_cpu in
9834       powerpc)
9835             # see comment about AmigaOS4 .so support
9836             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9837             archive_expsym_cmds=''
9838         ;;
9839       m68k)
9840             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)'
9841             hardcode_libdir_flag_spec='-L$libdir'
9842             hardcode_minus_L=yes
9843         ;;
9844       esac
9845       ;;
9846
9847     bsdi[45]*)
9848       export_dynamic_flag_spec=-rdynamic
9849       ;;
9850
9851     cygwin* | mingw* | pw32* | cegcc*)
9852       # When not using gcc, we currently assume that we are using
9853       # Microsoft Visual C++.
9854       # hardcode_libdir_flag_spec is actually meaningless, as there is
9855       # no search path for DLLs.
9856       case $cc_basename in
9857       cl*)
9858         # Native MSVC
9859         hardcode_libdir_flag_spec=' '
9860         allow_undefined_flag=unsupported
9861         always_export_symbols=yes
9862         file_list_spec='@'
9863         # Tell ltmain to make .lib files, not .a files.
9864         libext=lib
9865         # Tell ltmain to make .dll files, not .so files.
9866         shrext_cmds=".dll"
9867         # FIXME: Setting linknames here is a bad hack.
9868         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9869         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9870             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9871           else
9872             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9873           fi~
9874           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9875           linknames='
9876         # The linker will not automatically build a static lib if we build a DLL.
9877         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9878         enable_shared_with_static_runtimes=yes
9879         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9880         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9881         # Don't use ranlib
9882         old_postinstall_cmds='chmod 644 $oldlib'
9883         postlink_cmds='lt_outputfile="@OUTPUT@"~
9884           lt_tool_outputfile="@TOOL_OUTPUT@"~
9885           case $lt_outputfile in
9886             *.exe|*.EXE) ;;
9887             *)
9888               lt_outputfile="$lt_outputfile.exe"
9889               lt_tool_outputfile="$lt_tool_outputfile.exe"
9890               ;;
9891           esac~
9892           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9893             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9894             $RM "$lt_outputfile.manifest";
9895           fi'
9896         ;;
9897       *)
9898         # Assume MSVC wrapper
9899         hardcode_libdir_flag_spec=' '
9900         allow_undefined_flag=unsupported
9901         # Tell ltmain to make .lib files, not .a files.
9902         libext=lib
9903         # Tell ltmain to make .dll files, not .so files.
9904         shrext_cmds=".dll"
9905         # FIXME: Setting linknames here is a bad hack.
9906         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9907         # The linker will automatically build a .lib file if we build a DLL.
9908         old_archive_from_new_cmds='true'
9909         # FIXME: Should let the user specify the lib program.
9910         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9911         enable_shared_with_static_runtimes=yes
9912         ;;
9913       esac
9914       ;;
9915
9916     darwin* | rhapsody*)
9917
9918
9919   archive_cmds_need_lc=no
9920   hardcode_direct=no
9921   hardcode_automatic=yes
9922   hardcode_shlibpath_var=unsupported
9923   if test "$lt_cv_ld_force_load" = "yes"; then
9924     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9925
9926   else
9927     whole_archive_flag_spec=''
9928   fi
9929   link_all_deplibs=yes
9930   allow_undefined_flag="$_lt_dar_allow_undefined"
9931   case $cc_basename in
9932      ifort*) _lt_dar_can_shared=yes ;;
9933      *) _lt_dar_can_shared=$GCC ;;
9934   esac
9935   if test "$_lt_dar_can_shared" = "yes"; then
9936     output_verbose_link_cmd=func_echo_all
9937     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9938     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9939     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}"
9940     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}"
9941
9942   else
9943   ld_shlibs=no
9944   fi
9945
9946       ;;
9947
9948     dgux*)
9949       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9950       hardcode_libdir_flag_spec='-L$libdir'
9951       hardcode_shlibpath_var=no
9952       ;;
9953
9954     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9955     # support.  Future versions do this automatically, but an explicit c++rt0.o
9956     # does not break anything, and helps significantly (at the cost of a little
9957     # extra space).
9958     freebsd2.2*)
9959       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9960       hardcode_libdir_flag_spec='-R$libdir'
9961       hardcode_direct=yes
9962       hardcode_shlibpath_var=no
9963       ;;
9964
9965     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9966     freebsd2.*)
9967       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9968       hardcode_direct=yes
9969       hardcode_minus_L=yes
9970       hardcode_shlibpath_var=no
9971       ;;
9972
9973     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9974     freebsd* | dragonfly*)
9975       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9976       hardcode_libdir_flag_spec='-R$libdir'
9977       hardcode_direct=yes
9978       hardcode_shlibpath_var=no
9979       ;;
9980
9981     hpux9*)
9982       if test "$GCC" = yes; then
9983         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9984       else
9985         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'
9986       fi
9987       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9988       hardcode_libdir_separator=:
9989       hardcode_direct=yes
9990
9991       # hardcode_minus_L: Not really in the search PATH,
9992       # but as the default location of the library.
9993       hardcode_minus_L=yes
9994       export_dynamic_flag_spec='${wl}-E'
9995       ;;
9996
9997     hpux10*)
9998       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9999         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10000       else
10001         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10002       fi
10003       if test "$with_gnu_ld" = no; then
10004         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10005         hardcode_libdir_separator=:
10006         hardcode_direct=yes
10007         hardcode_direct_absolute=yes
10008         export_dynamic_flag_spec='${wl}-E'
10009         # hardcode_minus_L: Not really in the search PATH,
10010         # but as the default location of the library.
10011         hardcode_minus_L=yes
10012       fi
10013       ;;
10014
10015     hpux11*)
10016       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10017         case $host_cpu in
10018         hppa*64*)
10019           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10020           ;;
10021         ia64*)
10022           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10023           ;;
10024         *)
10025           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10026           ;;
10027         esac
10028       else
10029         case $host_cpu in
10030         hppa*64*)
10031           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10032           ;;
10033         ia64*)
10034           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10035           ;;
10036         *)
10037
10038           # Older versions of the 11.00 compiler do not understand -b yet
10039           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10040           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10041 $as_echo_n "checking if $CC understands -b... " >&6; }
10042 if ${lt_cv_prog_compiler__b+:} false; then :
10043   $as_echo_n "(cached) " >&6
10044 else
10045   lt_cv_prog_compiler__b=no
10046    save_LDFLAGS="$LDFLAGS"
10047    LDFLAGS="$LDFLAGS -b"
10048    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10049    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10050      # The linker can only warn and ignore the option if not recognized
10051      # So say no if there are warnings
10052      if test -s conftest.err; then
10053        # Append any errors to the config.log.
10054        cat conftest.err 1>&5
10055        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10056        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10057        if diff conftest.exp conftest.er2 >/dev/null; then
10058          lt_cv_prog_compiler__b=yes
10059        fi
10060      else
10061        lt_cv_prog_compiler__b=yes
10062      fi
10063    fi
10064    $RM -r conftest*
10065    LDFLAGS="$save_LDFLAGS"
10066
10067 fi
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10069 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10070
10071 if test x"$lt_cv_prog_compiler__b" = xyes; then
10072     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10073 else
10074     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10075 fi
10076
10077           ;;
10078         esac
10079       fi
10080       if test "$with_gnu_ld" = no; then
10081         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10082         hardcode_libdir_separator=:
10083
10084         case $host_cpu in
10085         hppa*64*|ia64*)
10086           hardcode_direct=no
10087           hardcode_shlibpath_var=no
10088           ;;
10089         *)
10090           hardcode_direct=yes
10091           hardcode_direct_absolute=yes
10092           export_dynamic_flag_spec='${wl}-E'
10093
10094           # hardcode_minus_L: Not really in the search PATH,
10095           # but as the default location of the library.
10096           hardcode_minus_L=yes
10097           ;;
10098         esac
10099       fi
10100       ;;
10101
10102     irix5* | irix6* | nonstopux*)
10103       if test "$GCC" = yes; then
10104         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10105         # Try to use the -exported_symbol ld option, if it does not
10106         # work, assume that -exports_file does not work either and
10107         # implicitly export all symbols.
10108         # This should be the same for all languages, so no per-tag cache variable.
10109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10110 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10111 if ${lt_cv_irix_exported_symbol+:} false; then :
10112   $as_echo_n "(cached) " >&6
10113 else
10114   save_LDFLAGS="$LDFLAGS"
10115            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10116            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h.  */
10118 int foo (void) { return 0; }
10119 _ACEOF
10120 if ac_fn_c_try_link "$LINENO"; then :
10121   lt_cv_irix_exported_symbol=yes
10122 else
10123   lt_cv_irix_exported_symbol=no
10124 fi
10125 rm -f core conftest.err conftest.$ac_objext \
10126     conftest$ac_exeext conftest.$ac_ext
10127            LDFLAGS="$save_LDFLAGS"
10128 fi
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10130 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10131         if test "$lt_cv_irix_exported_symbol" = yes; then
10132           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10133         fi
10134       else
10135         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10136         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10137       fi
10138       archive_cmds_need_lc='no'
10139       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10140       hardcode_libdir_separator=:
10141       inherit_rpath=yes
10142       link_all_deplibs=yes
10143       ;;
10144
10145     netbsd* | netbsdelf*-gnu)
10146       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10147         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10148       else
10149         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10150       fi
10151       hardcode_libdir_flag_spec='-R$libdir'
10152       hardcode_direct=yes
10153       hardcode_shlibpath_var=no
10154       ;;
10155
10156     newsos6)
10157       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158       hardcode_direct=yes
10159       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10160       hardcode_libdir_separator=:
10161       hardcode_shlibpath_var=no
10162       ;;
10163
10164     *nto* | *qnx*)
10165       ;;
10166
10167     openbsd*)
10168       if test -f /usr/libexec/ld.so; then
10169         hardcode_direct=yes
10170         hardcode_shlibpath_var=no
10171         hardcode_direct_absolute=yes
10172         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10173           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10174           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10175           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10176           export_dynamic_flag_spec='${wl}-E'
10177         else
10178           case $host_os in
10179            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10180              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10181              hardcode_libdir_flag_spec='-R$libdir'
10182              ;;
10183            *)
10184              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10185              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10186              ;;
10187           esac
10188         fi
10189       else
10190         ld_shlibs=no
10191       fi
10192       ;;
10193
10194     os2*)
10195       hardcode_libdir_flag_spec='-L$libdir'
10196       hardcode_minus_L=yes
10197       allow_undefined_flag=unsupported
10198       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'
10199       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10200       ;;
10201
10202     osf3*)
10203       if test "$GCC" = yes; then
10204         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10205         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10206       else
10207         allow_undefined_flag=' -expect_unresolved \*'
10208         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10209       fi
10210       archive_cmds_need_lc='no'
10211       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10212       hardcode_libdir_separator=:
10213       ;;
10214
10215     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10216       if test "$GCC" = yes; then
10217         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10218         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10219         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10220       else
10221         allow_undefined_flag=' -expect_unresolved \*'
10222         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10223         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~
10224         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10225
10226         # Both c and cxx compiler support -rpath directly
10227         hardcode_libdir_flag_spec='-rpath $libdir'
10228       fi
10229       archive_cmds_need_lc='no'
10230       hardcode_libdir_separator=:
10231       ;;
10232
10233     solaris*)
10234       no_undefined_flag=' -z defs'
10235       if test "$GCC" = yes; then
10236         wlarc='${wl}'
10237         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10238         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10239           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10240       else
10241         case `$CC -V 2>&1` in
10242         *"Compilers 5.0"*)
10243           wlarc=''
10244           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10245           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10246           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10247           ;;
10248         *)
10249           wlarc='${wl}'
10250           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10251           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10252           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10253           ;;
10254         esac
10255       fi
10256       hardcode_libdir_flag_spec='-R$libdir'
10257       hardcode_shlibpath_var=no
10258       case $host_os in
10259       solaris2.[0-5] | solaris2.[0-5].*) ;;
10260       *)
10261         # The compiler driver will combine and reorder linker options,
10262         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10263         # but is careful enough not to reorder.
10264         # Supported since Solaris 2.6 (maybe 2.5.1?)
10265         if test "$GCC" = yes; then
10266           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10267         else
10268           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10269         fi
10270         ;;
10271       esac
10272       link_all_deplibs=yes
10273       ;;
10274
10275     sunos4*)
10276       if test "x$host_vendor" = xsequent; then
10277         # Use $CC to link under sequent, because it throws in some extra .o
10278         # files that make .init and .fini sections work.
10279         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10280       else
10281         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10282       fi
10283       hardcode_libdir_flag_spec='-L$libdir'
10284       hardcode_direct=yes
10285       hardcode_minus_L=yes
10286       hardcode_shlibpath_var=no
10287       ;;
10288
10289     sysv4)
10290       case $host_vendor in
10291         sni)
10292           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293           hardcode_direct=yes # is this really true???
10294         ;;
10295         siemens)
10296           ## LD is ld it makes a PLAMLIB
10297           ## CC just makes a GrossModule.
10298           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10299           reload_cmds='$CC -r -o $output$reload_objs'
10300           hardcode_direct=no
10301         ;;
10302         motorola)
10303           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10305         ;;
10306       esac
10307       runpath_var='LD_RUN_PATH'
10308       hardcode_shlibpath_var=no
10309       ;;
10310
10311     sysv4.3*)
10312       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10313       hardcode_shlibpath_var=no
10314       export_dynamic_flag_spec='-Bexport'
10315       ;;
10316
10317     sysv4*MP*)
10318       if test -d /usr/nec; then
10319         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10320         hardcode_shlibpath_var=no
10321         runpath_var=LD_RUN_PATH
10322         hardcode_runpath_var=yes
10323         ld_shlibs=yes
10324       fi
10325       ;;
10326
10327     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10328       no_undefined_flag='${wl}-z,text'
10329       archive_cmds_need_lc=no
10330       hardcode_shlibpath_var=no
10331       runpath_var='LD_RUN_PATH'
10332
10333       if test "$GCC" = yes; then
10334         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10335         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10336       else
10337         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10339       fi
10340       ;;
10341
10342     sysv5* | sco3.2v5* | sco5v6*)
10343       # Note: We can NOT use -z defs as we might desire, because we do not
10344       # link with -lc, and that would cause any symbols used from libc to
10345       # always be unresolved, which means just about no library would
10346       # ever link correctly.  If we're not using GNU ld we use -z text
10347       # though, which does catch some bad symbols but isn't as heavy-handed
10348       # as -z defs.
10349       no_undefined_flag='${wl}-z,text'
10350       allow_undefined_flag='${wl}-z,nodefs'
10351       archive_cmds_need_lc=no
10352       hardcode_shlibpath_var=no
10353       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10354       hardcode_libdir_separator=':'
10355       link_all_deplibs=yes
10356       export_dynamic_flag_spec='${wl}-Bexport'
10357       runpath_var='LD_RUN_PATH'
10358
10359       if test "$GCC" = yes; then
10360         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10362       else
10363         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10364         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10365       fi
10366       ;;
10367
10368     uts4*)
10369       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370       hardcode_libdir_flag_spec='-L$libdir'
10371       hardcode_shlibpath_var=no
10372       ;;
10373
10374     *)
10375       ld_shlibs=no
10376       ;;
10377     esac
10378
10379     if test x$host_vendor = xsni; then
10380       case $host in
10381       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10382         export_dynamic_flag_spec='${wl}-Blargedynsym'
10383         ;;
10384       esac
10385     fi
10386   fi
10387
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10389 $as_echo "$ld_shlibs" >&6; }
10390 test "$ld_shlibs" = no && can_build_shared=no
10391
10392 with_gnu_ld=$with_gnu_ld
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408 #
10409 # Do we need to explicitly link libc?
10410 #
10411 case "x$archive_cmds_need_lc" in
10412 x|xyes)
10413   # Assume -lc should be added
10414   archive_cmds_need_lc=yes
10415
10416   if test "$enable_shared" = yes && test "$GCC" = yes; then
10417     case $archive_cmds in
10418     *'~'*)
10419       # FIXME: we may have to deal with multi-command sequences.
10420       ;;
10421     '$CC '*)
10422       # Test whether the compiler implicitly links with -lc since on some
10423       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10424       # to ld, don't add -lc before -lgcc.
10425       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10426 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10427 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10428   $as_echo_n "(cached) " >&6
10429 else
10430   $RM conftest*
10431         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10432
10433         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10434   (eval $ac_compile) 2>&5
10435   ac_status=$?
10436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10437   test $ac_status = 0; } 2>conftest.err; then
10438           soname=conftest
10439           lib=conftest
10440           libobjs=conftest.$ac_objext
10441           deplibs=
10442           wl=$lt_prog_compiler_wl
10443           pic_flag=$lt_prog_compiler_pic
10444           compiler_flags=-v
10445           linker_flags=-v
10446           verstring=
10447           output_objdir=.
10448           libname=conftest
10449           lt_save_allow_undefined_flag=$allow_undefined_flag
10450           allow_undefined_flag=
10451           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10452   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10453   ac_status=$?
10454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10455   test $ac_status = 0; }
10456           then
10457             lt_cv_archive_cmds_need_lc=no
10458           else
10459             lt_cv_archive_cmds_need_lc=yes
10460           fi
10461           allow_undefined_flag=$lt_save_allow_undefined_flag
10462         else
10463           cat conftest.err 1>&5
10464         fi
10465         $RM conftest*
10466
10467 fi
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10469 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10470       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10471       ;;
10472     esac
10473   fi
10474   ;;
10475 esac
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10629 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10630
10631 if test "$GCC" = yes; then
10632   case $host_os in
10633     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10634     *) lt_awk_arg="/^libraries:/" ;;
10635   esac
10636   case $host_os in
10637     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10638     *) lt_sed_strip_eq="s,=/,/,g" ;;
10639   esac
10640   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10641   case $lt_search_path_spec in
10642   *\;*)
10643     # if the path contains ";" then we assume it to be the separator
10644     # otherwise default to the standard path separator (i.e. ":") - it is
10645     # assumed that no part of a normal pathname contains ";" but that should
10646     # okay in the real world where ";" in dirpaths is itself problematic.
10647     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10648     ;;
10649   *)
10650     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10651     ;;
10652   esac
10653   # Ok, now we have the path, separated by spaces, we can step through it
10654   # and add multilib dir if necessary.
10655   lt_tmp_lt_search_path_spec=
10656   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10657   for lt_sys_path in $lt_search_path_spec; do
10658     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10659       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10660     else
10661       test -d "$lt_sys_path" && \
10662         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10663     fi
10664   done
10665   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10666 BEGIN {RS=" "; FS="/|\n";} {
10667   lt_foo="";
10668   lt_count=0;
10669   for (lt_i = NF; lt_i > 0; lt_i--) {
10670     if ($lt_i != "" && $lt_i != ".") {
10671       if ($lt_i == "..") {
10672         lt_count++;
10673       } else {
10674         if (lt_count == 0) {
10675           lt_foo="/" $lt_i lt_foo;
10676         } else {
10677           lt_count--;
10678         }
10679       }
10680     }
10681   }
10682   if (lt_foo != "") { lt_freq[lt_foo]++; }
10683   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10684 }'`
10685   # AWK program above erroneously prepends '/' to C:/dos/paths
10686   # for these hosts.
10687   case $host_os in
10688     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10689       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10690   esac
10691   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10692 else
10693   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10694 fi
10695 library_names_spec=
10696 libname_spec='lib$name'
10697 soname_spec=
10698 shrext_cmds=".so"
10699 postinstall_cmds=
10700 postuninstall_cmds=
10701 finish_cmds=
10702 finish_eval=
10703 shlibpath_var=
10704 shlibpath_overrides_runpath=unknown
10705 version_type=none
10706 dynamic_linker="$host_os ld.so"
10707 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10708 need_lib_prefix=unknown
10709 hardcode_into_libs=no
10710
10711 # when you set need_version to no, make sure it does not cause -set_version
10712 # flags to be left without arguments
10713 need_version=unknown
10714
10715 case $host_os in
10716 aix3*)
10717   version_type=linux # correct to gnu/linux during the next big refactor
10718   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10719   shlibpath_var=LIBPATH
10720
10721   # AIX 3 has no versioning support, so we append a major version to the name.
10722   soname_spec='${libname}${release}${shared_ext}$major'
10723   ;;
10724
10725 aix[4-9]*)
10726   version_type=linux # correct to gnu/linux during the next big refactor
10727   need_lib_prefix=no
10728   need_version=no
10729   hardcode_into_libs=yes
10730   if test "$host_cpu" = ia64; then
10731     # AIX 5 supports IA64
10732     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10733     shlibpath_var=LD_LIBRARY_PATH
10734   else
10735     # With GCC up to 2.95.x, collect2 would create an import file
10736     # for dependence libraries.  The import file would start with
10737     # the line `#! .'.  This would cause the generated library to
10738     # depend on `.', always an invalid library.  This was fixed in
10739     # development snapshots of GCC prior to 3.0.
10740     case $host_os in
10741       aix4 | aix4.[01] | aix4.[01].*)
10742       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10743            echo ' yes '
10744            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10745         :
10746       else
10747         can_build_shared=no
10748       fi
10749       ;;
10750     esac
10751     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10752     # soname into executable. Probably we can add versioning support to
10753     # collect2, so additional links can be useful in future.
10754     if test "$aix_use_runtimelinking" = yes; then
10755       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10756       # instead of lib<name>.a to let people know that these are not
10757       # typical AIX shared libraries.
10758       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759     else
10760       # We preserve .a as extension for shared libraries through AIX4.2
10761       # and later when we are not doing run time linking.
10762       library_names_spec='${libname}${release}.a $libname.a'
10763       soname_spec='${libname}${release}${shared_ext}$major'
10764     fi
10765     shlibpath_var=LIBPATH
10766   fi
10767   ;;
10768
10769 amigaos*)
10770   case $host_cpu in
10771   powerpc)
10772     # Since July 2007 AmigaOS4 officially supports .so libraries.
10773     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775     ;;
10776   m68k)
10777     library_names_spec='$libname.ixlibrary $libname.a'
10778     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10779     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10780     ;;
10781   esac
10782   ;;
10783
10784 beos*)
10785   library_names_spec='${libname}${shared_ext}'
10786   dynamic_linker="$host_os ld.so"
10787   shlibpath_var=LIBRARY_PATH
10788   ;;
10789
10790 bsdi[45]*)
10791   version_type=linux # correct to gnu/linux during the next big refactor
10792   need_version=no
10793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794   soname_spec='${libname}${release}${shared_ext}$major'
10795   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10796   shlibpath_var=LD_LIBRARY_PATH
10797   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10798   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10799   # the default ld.so.conf also contains /usr/contrib/lib and
10800   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10801   # libtool to hard-code these into programs
10802   ;;
10803
10804 cygwin* | mingw* | pw32* | cegcc*)
10805   version_type=windows
10806   shrext_cmds=".dll"
10807   need_version=no
10808   need_lib_prefix=no
10809
10810   case $GCC,$cc_basename in
10811   yes,*)
10812     # gcc
10813     library_names_spec='$libname.dll.a'
10814     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10815     postinstall_cmds='base_file=`basename \${file}`~
10816       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10817       dldir=$destdir/`dirname \$dlpath`~
10818       test -d \$dldir || mkdir -p \$dldir~
10819       $install_prog $dir/$dlname \$dldir/$dlname~
10820       chmod a+x \$dldir/$dlname~
10821       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10822         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10823       fi'
10824     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10825       dlpath=$dir/\$dldll~
10826        $RM \$dlpath'
10827     shlibpath_overrides_runpath=yes
10828
10829     case $host_os in
10830     cygwin*)
10831       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10832       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10833
10834       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10835       ;;
10836     mingw* | cegcc*)
10837       # MinGW DLLs use traditional 'lib' prefix
10838       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10839       ;;
10840     pw32*)
10841       # pw32 DLLs use 'pw' prefix rather than 'lib'
10842       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10843       ;;
10844     esac
10845     dynamic_linker='Win32 ld.exe'
10846     ;;
10847
10848   *,cl*)
10849     # Native MSVC
10850     libname_spec='$name'
10851     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10852     library_names_spec='${libname}.dll.lib'
10853
10854     case $build_os in
10855     mingw*)
10856       sys_lib_search_path_spec=
10857       lt_save_ifs=$IFS
10858       IFS=';'
10859       for lt_path in $LIB
10860       do
10861         IFS=$lt_save_ifs
10862         # Let DOS variable expansion print the short 8.3 style file name.
10863         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10864         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10865       done
10866       IFS=$lt_save_ifs
10867       # Convert to MSYS style.
10868       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10869       ;;
10870     cygwin*)
10871       # Convert to unix form, then to dos form, then back to unix form
10872       # but this time dos style (no spaces!) so that the unix form looks
10873       # like /cygdrive/c/PROGRA~1:/cygdr...
10874       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10875       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10876       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10877       ;;
10878     *)
10879       sys_lib_search_path_spec="$LIB"
10880       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10881         # It is most probably a Windows format PATH.
10882         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10883       else
10884         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10885       fi
10886       # FIXME: find the short name or the path components, as spaces are
10887       # common. (e.g. "Program Files" -> "PROGRA~1")
10888       ;;
10889     esac
10890
10891     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10892     postinstall_cmds='base_file=`basename \${file}`~
10893       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10894       dldir=$destdir/`dirname \$dlpath`~
10895       test -d \$dldir || mkdir -p \$dldir~
10896       $install_prog $dir/$dlname \$dldir/$dlname'
10897     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10898       dlpath=$dir/\$dldll~
10899        $RM \$dlpath'
10900     shlibpath_overrides_runpath=yes
10901     dynamic_linker='Win32 link.exe'
10902     ;;
10903
10904   *)
10905     # Assume MSVC wrapper
10906     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10907     dynamic_linker='Win32 ld.exe'
10908     ;;
10909   esac
10910   # FIXME: first we should search . and the directory the executable is in
10911   shlibpath_var=PATH
10912   ;;
10913
10914 darwin* | rhapsody*)
10915   dynamic_linker="$host_os dyld"
10916   version_type=darwin
10917   need_lib_prefix=no
10918   need_version=no
10919   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10920   soname_spec='${libname}${release}${major}$shared_ext'
10921   shlibpath_overrides_runpath=yes
10922   shlibpath_var=DYLD_LIBRARY_PATH
10923   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10924
10925   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10926   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10927   ;;
10928
10929 dgux*)
10930   version_type=linux # correct to gnu/linux during the next big refactor
10931   need_lib_prefix=no
10932   need_version=no
10933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10934   soname_spec='${libname}${release}${shared_ext}$major'
10935   shlibpath_var=LD_LIBRARY_PATH
10936   ;;
10937
10938 freebsd* | dragonfly*)
10939   # DragonFly does not have aout.  When/if they implement a new
10940   # versioning mechanism, adjust this.
10941   if test -x /usr/bin/objformat; then
10942     objformat=`/usr/bin/objformat`
10943   else
10944     case $host_os in
10945     freebsd[23].*) objformat=aout ;;
10946     *) objformat=elf ;;
10947     esac
10948   fi
10949   version_type=freebsd-$objformat
10950   case $version_type in
10951     freebsd-elf*)
10952       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10953       need_version=no
10954       need_lib_prefix=no
10955       ;;
10956     freebsd-*)
10957       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10958       need_version=yes
10959       ;;
10960   esac
10961   shlibpath_var=LD_LIBRARY_PATH
10962   case $host_os in
10963   freebsd2.*)
10964     shlibpath_overrides_runpath=yes
10965     ;;
10966   freebsd3.[01]* | freebsdelf3.[01]*)
10967     shlibpath_overrides_runpath=yes
10968     hardcode_into_libs=yes
10969     ;;
10970   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10971   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10972     shlibpath_overrides_runpath=no
10973     hardcode_into_libs=yes
10974     ;;
10975   *) # from 4.6 on, and DragonFly
10976     shlibpath_overrides_runpath=yes
10977     hardcode_into_libs=yes
10978     ;;
10979   esac
10980   ;;
10981
10982 haiku*)
10983   version_type=linux # correct to gnu/linux during the next big refactor
10984   need_lib_prefix=no
10985   need_version=no
10986   dynamic_linker="$host_os runtime_loader"
10987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10988   soname_spec='${libname}${release}${shared_ext}$major'
10989   shlibpath_var=LIBRARY_PATH
10990   shlibpath_overrides_runpath=yes
10991   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10992   hardcode_into_libs=yes
10993   ;;
10994
10995 hpux9* | hpux10* | hpux11*)
10996   # Give a soname corresponding to the major version so that dld.sl refuses to
10997   # link against other versions.
10998   version_type=sunos
10999   need_lib_prefix=no
11000   need_version=no
11001   case $host_cpu in
11002   ia64*)
11003     shrext_cmds='.so'
11004     hardcode_into_libs=yes
11005     dynamic_linker="$host_os dld.so"
11006     shlibpath_var=LD_LIBRARY_PATH
11007     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11008     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009     soname_spec='${libname}${release}${shared_ext}$major'
11010     if test "X$HPUX_IA64_MODE" = X32; then
11011       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11012     else
11013       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11014     fi
11015     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11016     ;;
11017   hppa*64*)
11018     shrext_cmds='.sl'
11019     hardcode_into_libs=yes
11020     dynamic_linker="$host_os dld.sl"
11021     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11022     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024     soname_spec='${libname}${release}${shared_ext}$major'
11025     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11026     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11027     ;;
11028   *)
11029     shrext_cmds='.sl'
11030     dynamic_linker="$host_os dld.sl"
11031     shlibpath_var=SHLIB_PATH
11032     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034     soname_spec='${libname}${release}${shared_ext}$major'
11035     ;;
11036   esac
11037   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11038   postinstall_cmds='chmod 555 $lib'
11039   # or fails outright, so override atomically:
11040   install_override_mode=555
11041   ;;
11042
11043 interix[3-9]*)
11044   version_type=linux # correct to gnu/linux during the next big refactor
11045   need_lib_prefix=no
11046   need_version=no
11047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11048   soname_spec='${libname}${release}${shared_ext}$major'
11049   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11050   shlibpath_var=LD_LIBRARY_PATH
11051   shlibpath_overrides_runpath=no
11052   hardcode_into_libs=yes
11053   ;;
11054
11055 irix5* | irix6* | nonstopux*)
11056   case $host_os in
11057     nonstopux*) version_type=nonstopux ;;
11058     *)
11059         if test "$lt_cv_prog_gnu_ld" = yes; then
11060                 version_type=linux # correct to gnu/linux during the next big refactor
11061         else
11062                 version_type=irix
11063         fi ;;
11064   esac
11065   need_lib_prefix=no
11066   need_version=no
11067   soname_spec='${libname}${release}${shared_ext}$major'
11068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11069   case $host_os in
11070   irix5* | nonstopux*)
11071     libsuff= shlibsuff=
11072     ;;
11073   *)
11074     case $LD in # libtool.m4 will add one of these switches to LD
11075     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11076       libsuff= shlibsuff= libmagic=32-bit;;
11077     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11078       libsuff=32 shlibsuff=N32 libmagic=N32;;
11079     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11080       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11081     *) libsuff= shlibsuff= libmagic=never-match;;
11082     esac
11083     ;;
11084   esac
11085   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11086   shlibpath_overrides_runpath=no
11087   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11088   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11089   hardcode_into_libs=yes
11090   ;;
11091
11092 # No shared lib support for Linux oldld, aout, or coff.
11093 linux*oldld* | linux*aout* | linux*coff*)
11094   dynamic_linker=no
11095   ;;
11096
11097 # This must be glibc/ELF.
11098 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11099   version_type=linux # correct to gnu/linux during the next big refactor
11100   need_lib_prefix=no
11101   need_version=no
11102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103   soname_spec='${libname}${release}${shared_ext}$major'
11104   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11105   shlibpath_var=LD_LIBRARY_PATH
11106   shlibpath_overrides_runpath=no
11107
11108   # Some binutils ld are patched to set DT_RUNPATH
11109   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11110   $as_echo_n "(cached) " >&6
11111 else
11112   lt_cv_shlibpath_overrides_runpath=no
11113     save_LDFLAGS=$LDFLAGS
11114     save_libdir=$libdir
11115     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11116          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11117     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h.  */
11119
11120 int
11121 main ()
11122 {
11123
11124   ;
11125   return 0;
11126 }
11127 _ACEOF
11128 if ac_fn_c_try_link "$LINENO"; then :
11129   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11130   lt_cv_shlibpath_overrides_runpath=yes
11131 fi
11132 fi
11133 rm -f core conftest.err conftest.$ac_objext \
11134     conftest$ac_exeext conftest.$ac_ext
11135     LDFLAGS=$save_LDFLAGS
11136     libdir=$save_libdir
11137
11138 fi
11139
11140   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11141
11142   # This implies no fast_install, which is unacceptable.
11143   # Some rework will be needed to allow for fast_install
11144   # before this can be enabled.
11145   hardcode_into_libs=yes
11146
11147   # Append ld.so.conf contents to the search path
11148   if test -f /etc/ld.so.conf; then
11149     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11150     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11151   fi
11152
11153   # We used to test for /lib/ld.so.1 and disable shared libraries on
11154   # powerpc, because MkLinux only supported shared libraries with the
11155   # GNU dynamic linker.  Since this was broken with cross compilers,
11156   # most powerpc-linux boxes support dynamic linking these days and
11157   # people can always --disable-shared, the test was removed, and we
11158   # assume the GNU/Linux dynamic linker is in use.
11159   dynamic_linker='GNU/Linux ld.so'
11160   ;;
11161
11162 netbsdelf*-gnu)
11163   version_type=linux
11164   need_lib_prefix=no
11165   need_version=no
11166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11167   soname_spec='${libname}${release}${shared_ext}$major'
11168   shlibpath_var=LD_LIBRARY_PATH
11169   shlibpath_overrides_runpath=no
11170   hardcode_into_libs=yes
11171   dynamic_linker='NetBSD ld.elf_so'
11172   ;;
11173
11174 netbsd*)
11175   version_type=sunos
11176   need_lib_prefix=no
11177   need_version=no
11178   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11179     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11180     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11181     dynamic_linker='NetBSD (a.out) ld.so'
11182   else
11183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11184     soname_spec='${libname}${release}${shared_ext}$major'
11185     dynamic_linker='NetBSD ld.elf_so'
11186   fi
11187   shlibpath_var=LD_LIBRARY_PATH
11188   shlibpath_overrides_runpath=yes
11189   hardcode_into_libs=yes
11190   ;;
11191
11192 newsos6)
11193   version_type=linux # correct to gnu/linux during the next big refactor
11194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195   shlibpath_var=LD_LIBRARY_PATH
11196   shlibpath_overrides_runpath=yes
11197   ;;
11198
11199 *nto* | *qnx*)
11200   version_type=qnx
11201   need_lib_prefix=no
11202   need_version=no
11203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204   soname_spec='${libname}${release}${shared_ext}$major'
11205   shlibpath_var=LD_LIBRARY_PATH
11206   shlibpath_overrides_runpath=no
11207   hardcode_into_libs=yes
11208   dynamic_linker='ldqnx.so'
11209   ;;
11210
11211 openbsd*)
11212   version_type=sunos
11213   sys_lib_dlsearch_path_spec="/usr/lib"
11214   need_lib_prefix=no
11215   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11216   case $host_os in
11217     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11218     *)                          need_version=no  ;;
11219   esac
11220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11221   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11222   shlibpath_var=LD_LIBRARY_PATH
11223   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11224     case $host_os in
11225       openbsd2.[89] | openbsd2.[89].*)
11226         shlibpath_overrides_runpath=no
11227         ;;
11228       *)
11229         shlibpath_overrides_runpath=yes
11230         ;;
11231       esac
11232   else
11233     shlibpath_overrides_runpath=yes
11234   fi
11235   ;;
11236
11237 os2*)
11238   libname_spec='$name'
11239   shrext_cmds=".dll"
11240   need_lib_prefix=no
11241   library_names_spec='$libname${shared_ext} $libname.a'
11242   dynamic_linker='OS/2 ld.exe'
11243   shlibpath_var=LIBPATH
11244   ;;
11245
11246 osf3* | osf4* | osf5*)
11247   version_type=osf
11248   need_lib_prefix=no
11249   need_version=no
11250   soname_spec='${libname}${release}${shared_ext}$major'
11251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11252   shlibpath_var=LD_LIBRARY_PATH
11253   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11254   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11255   ;;
11256
11257 rdos*)
11258   dynamic_linker=no
11259   ;;
11260
11261 solaris*)
11262   version_type=linux # correct to gnu/linux during the next big refactor
11263   need_lib_prefix=no
11264   need_version=no
11265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266   soname_spec='${libname}${release}${shared_ext}$major'
11267   shlibpath_var=LD_LIBRARY_PATH
11268   shlibpath_overrides_runpath=yes
11269   hardcode_into_libs=yes
11270   # ldd complains unless libraries are executable
11271   postinstall_cmds='chmod +x $lib'
11272   ;;
11273
11274 sunos4*)
11275   version_type=sunos
11276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11277   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11278   shlibpath_var=LD_LIBRARY_PATH
11279   shlibpath_overrides_runpath=yes
11280   if test "$with_gnu_ld" = yes; then
11281     need_lib_prefix=no
11282   fi
11283   need_version=yes
11284   ;;
11285
11286 sysv4 | sysv4.3*)
11287   version_type=linux # correct to gnu/linux during the next big refactor
11288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289   soname_spec='${libname}${release}${shared_ext}$major'
11290   shlibpath_var=LD_LIBRARY_PATH
11291   case $host_vendor in
11292     sni)
11293       shlibpath_overrides_runpath=no
11294       need_lib_prefix=no
11295       runpath_var=LD_RUN_PATH
11296       ;;
11297     siemens)
11298       need_lib_prefix=no
11299       ;;
11300     motorola)
11301       need_lib_prefix=no
11302       need_version=no
11303       shlibpath_overrides_runpath=no
11304       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11305       ;;
11306   esac
11307   ;;
11308
11309 sysv4*MP*)
11310   if test -d /usr/nec ;then
11311     version_type=linux # correct to gnu/linux during the next big refactor
11312     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11313     soname_spec='$libname${shared_ext}.$major'
11314     shlibpath_var=LD_LIBRARY_PATH
11315   fi
11316   ;;
11317
11318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11319   version_type=freebsd-elf
11320   need_lib_prefix=no
11321   need_version=no
11322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11323   soname_spec='${libname}${release}${shared_ext}$major'
11324   shlibpath_var=LD_LIBRARY_PATH
11325   shlibpath_overrides_runpath=yes
11326   hardcode_into_libs=yes
11327   if test "$with_gnu_ld" = yes; then
11328     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11329   else
11330     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11331     case $host_os in
11332       sco3.2v5*)
11333         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11334         ;;
11335     esac
11336   fi
11337   sys_lib_dlsearch_path_spec='/usr/lib'
11338   ;;
11339
11340 tpf*)
11341   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11342   version_type=linux # correct to gnu/linux during the next big refactor
11343   need_lib_prefix=no
11344   need_version=no
11345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346   shlibpath_var=LD_LIBRARY_PATH
11347   shlibpath_overrides_runpath=no
11348   hardcode_into_libs=yes
11349   ;;
11350
11351 uts4*)
11352   version_type=linux # correct to gnu/linux during the next big refactor
11353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354   soname_spec='${libname}${release}${shared_ext}$major'
11355   shlibpath_var=LD_LIBRARY_PATH
11356   ;;
11357
11358 *)
11359   dynamic_linker=no
11360   ;;
11361 esac
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11363 $as_echo "$dynamic_linker" >&6; }
11364 test "$dynamic_linker" = no && can_build_shared=no
11365
11366 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11367 if test "$GCC" = yes; then
11368   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11369 fi
11370
11371 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11372   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11373 fi
11374 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11375   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11376 fi
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11470 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11471 hardcode_action=
11472 if test -n "$hardcode_libdir_flag_spec" ||
11473    test -n "$runpath_var" ||
11474    test "X$hardcode_automatic" = "Xyes" ; then
11475
11476   # We can hardcode non-existent directories.
11477   if test "$hardcode_direct" != no &&
11478      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11479      # have to relink, otherwise we might link with an installed library
11480      # when we should be linking with a yet-to-be-installed one
11481      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11482      test "$hardcode_minus_L" != no; then
11483     # Linking always hardcodes the temporary library directory.
11484     hardcode_action=relink
11485   else
11486     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11487     hardcode_action=immediate
11488   fi
11489 else
11490   # We cannot hardcode anything, or else we can only hardcode existing
11491   # directories.
11492   hardcode_action=unsupported
11493 fi
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11495 $as_echo "$hardcode_action" >&6; }
11496
11497 if test "$hardcode_action" = relink ||
11498    test "$inherit_rpath" = yes; then
11499   # Fast installation is not supported
11500   enable_fast_install=no
11501 elif test "$shlibpath_overrides_runpath" = yes ||
11502      test "$enable_shared" = no; then
11503   # Fast installation is not necessary
11504   enable_fast_install=needless
11505 fi
11506
11507
11508
11509
11510
11511
11512   if test "x$enable_dlopen" != xyes; then
11513   enable_dlopen=unknown
11514   enable_dlopen_self=unknown
11515   enable_dlopen_self_static=unknown
11516 else
11517   lt_cv_dlopen=no
11518   lt_cv_dlopen_libs=
11519
11520   case $host_os in
11521   beos*)
11522     lt_cv_dlopen="load_add_on"
11523     lt_cv_dlopen_libs=
11524     lt_cv_dlopen_self=yes
11525     ;;
11526
11527   mingw* | pw32* | cegcc*)
11528     lt_cv_dlopen="LoadLibrary"
11529     lt_cv_dlopen_libs=
11530     ;;
11531
11532   cygwin*)
11533     lt_cv_dlopen="dlopen"
11534     lt_cv_dlopen_libs=
11535     ;;
11536
11537   darwin*)
11538   # if libdl is installed we need to link against it
11539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11540 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11541 if ${ac_cv_lib_dl_dlopen+:} false; then :
11542   $as_echo_n "(cached) " >&6
11543 else
11544   ac_check_lib_save_LIBS=$LIBS
11545 LIBS="-ldl  $LIBS"
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h.  */
11548
11549 /* Override any GCC internal prototype to avoid an error.
11550    Use char because int might match the return type of a GCC
11551    builtin and then its argument prototype would still apply.  */
11552 #ifdef __cplusplus
11553 extern "C"
11554 #endif
11555 char dlopen ();
11556 int
11557 main ()
11558 {
11559 return dlopen ();
11560   ;
11561   return 0;
11562 }
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"; then :
11565   ac_cv_lib_dl_dlopen=yes
11566 else
11567   ac_cv_lib_dl_dlopen=no
11568 fi
11569 rm -f core conftest.err conftest.$ac_objext \
11570     conftest$ac_exeext conftest.$ac_ext
11571 LIBS=$ac_check_lib_save_LIBS
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11574 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11575 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11576   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11577 else
11578
11579     lt_cv_dlopen="dyld"
11580     lt_cv_dlopen_libs=
11581     lt_cv_dlopen_self=yes
11582
11583 fi
11584
11585     ;;
11586
11587   *)
11588     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11589 if test "x$ac_cv_func_shl_load" = xyes; then :
11590   lt_cv_dlopen="shl_load"
11591 else
11592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11593 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11594 if ${ac_cv_lib_dld_shl_load+:} false; then :
11595   $as_echo_n "(cached) " >&6
11596 else
11597   ac_check_lib_save_LIBS=$LIBS
11598 LIBS="-ldld  $LIBS"
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h.  */
11601
11602 /* Override any GCC internal prototype to avoid an error.
11603    Use char because int might match the return type of a GCC
11604    builtin and then its argument prototype would still apply.  */
11605 #ifdef __cplusplus
11606 extern "C"
11607 #endif
11608 char shl_load ();
11609 int
11610 main ()
11611 {
11612 return shl_load ();
11613   ;
11614   return 0;
11615 }
11616 _ACEOF
11617 if ac_fn_c_try_link "$LINENO"; then :
11618   ac_cv_lib_dld_shl_load=yes
11619 else
11620   ac_cv_lib_dld_shl_load=no
11621 fi
11622 rm -f core conftest.err conftest.$ac_objext \
11623     conftest$ac_exeext conftest.$ac_ext
11624 LIBS=$ac_check_lib_save_LIBS
11625 fi
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11627 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11628 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11629   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11630 else
11631   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11632 if test "x$ac_cv_func_dlopen" = xyes; then :
11633   lt_cv_dlopen="dlopen"
11634 else
11635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11636 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11637 if ${ac_cv_lib_dl_dlopen+:} false; then :
11638   $as_echo_n "(cached) " >&6
11639 else
11640   ac_check_lib_save_LIBS=$LIBS
11641 LIBS="-ldl  $LIBS"
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h.  */
11644
11645 /* Override any GCC internal prototype to avoid an error.
11646    Use char because int might match the return type of a GCC
11647    builtin and then its argument prototype would still apply.  */
11648 #ifdef __cplusplus
11649 extern "C"
11650 #endif
11651 char dlopen ();
11652 int
11653 main ()
11654 {
11655 return dlopen ();
11656   ;
11657   return 0;
11658 }
11659 _ACEOF
11660 if ac_fn_c_try_link "$LINENO"; then :
11661   ac_cv_lib_dl_dlopen=yes
11662 else
11663   ac_cv_lib_dl_dlopen=no
11664 fi
11665 rm -f core conftest.err conftest.$ac_objext \
11666     conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11670 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11671 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11672   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11673 else
11674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11675 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11676 if ${ac_cv_lib_svld_dlopen+:} false; then :
11677   $as_echo_n "(cached) " >&6
11678 else
11679   ac_check_lib_save_LIBS=$LIBS
11680 LIBS="-lsvld  $LIBS"
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h.  */
11683
11684 /* Override any GCC internal prototype to avoid an error.
11685    Use char because int might match the return type of a GCC
11686    builtin and then its argument prototype would still apply.  */
11687 #ifdef __cplusplus
11688 extern "C"
11689 #endif
11690 char dlopen ();
11691 int
11692 main ()
11693 {
11694 return dlopen ();
11695   ;
11696   return 0;
11697 }
11698 _ACEOF
11699 if ac_fn_c_try_link "$LINENO"; then :
11700   ac_cv_lib_svld_dlopen=yes
11701 else
11702   ac_cv_lib_svld_dlopen=no
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext \
11705     conftest$ac_exeext conftest.$ac_ext
11706 LIBS=$ac_check_lib_save_LIBS
11707 fi
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11709 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11710 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11711   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11712 else
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11714 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11715 if ${ac_cv_lib_dld_dld_link+:} false; then :
11716   $as_echo_n "(cached) " >&6
11717 else
11718   ac_check_lib_save_LIBS=$LIBS
11719 LIBS="-ldld  $LIBS"
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h.  */
11722
11723 /* Override any GCC internal prototype to avoid an error.
11724    Use char because int might match the return type of a GCC
11725    builtin and then its argument prototype would still apply.  */
11726 #ifdef __cplusplus
11727 extern "C"
11728 #endif
11729 char dld_link ();
11730 int
11731 main ()
11732 {
11733 return dld_link ();
11734   ;
11735   return 0;
11736 }
11737 _ACEOF
11738 if ac_fn_c_try_link "$LINENO"; then :
11739   ac_cv_lib_dld_dld_link=yes
11740 else
11741   ac_cv_lib_dld_dld_link=no
11742 fi
11743 rm -f core conftest.err conftest.$ac_objext \
11744     conftest$ac_exeext conftest.$ac_ext
11745 LIBS=$ac_check_lib_save_LIBS
11746 fi
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11748 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11749 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11750   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11751 fi
11752
11753
11754 fi
11755
11756
11757 fi
11758
11759
11760 fi
11761
11762
11763 fi
11764
11765
11766 fi
11767
11768     ;;
11769   esac
11770
11771   if test "x$lt_cv_dlopen" != xno; then
11772     enable_dlopen=yes
11773   else
11774     enable_dlopen=no
11775   fi
11776
11777   case $lt_cv_dlopen in
11778   dlopen)
11779     save_CPPFLAGS="$CPPFLAGS"
11780     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11781
11782     save_LDFLAGS="$LDFLAGS"
11783     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11784
11785     save_LIBS="$LIBS"
11786     LIBS="$lt_cv_dlopen_libs $LIBS"
11787
11788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11789 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11790 if ${lt_cv_dlopen_self+:} false; then :
11791   $as_echo_n "(cached) " >&6
11792 else
11793           if test "$cross_compiling" = yes; then :
11794   lt_cv_dlopen_self=cross
11795 else
11796   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11797   lt_status=$lt_dlunknown
11798   cat > conftest.$ac_ext <<_LT_EOF
11799 #line $LINENO "configure"
11800 #include "confdefs.h"
11801
11802 #if HAVE_DLFCN_H
11803 #include <dlfcn.h>
11804 #endif
11805
11806 #include <stdio.h>
11807
11808 #ifdef RTLD_GLOBAL
11809 #  define LT_DLGLOBAL           RTLD_GLOBAL
11810 #else
11811 #  ifdef DL_GLOBAL
11812 #    define LT_DLGLOBAL         DL_GLOBAL
11813 #  else
11814 #    define LT_DLGLOBAL         0
11815 #  endif
11816 #endif
11817
11818 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11819    find out it does not work in some platform. */
11820 #ifndef LT_DLLAZY_OR_NOW
11821 #  ifdef RTLD_LAZY
11822 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11823 #  else
11824 #    ifdef DL_LAZY
11825 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11826 #    else
11827 #      ifdef RTLD_NOW
11828 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11829 #      else
11830 #        ifdef DL_NOW
11831 #          define LT_DLLAZY_OR_NOW      DL_NOW
11832 #        else
11833 #          define LT_DLLAZY_OR_NOW      0
11834 #        endif
11835 #      endif
11836 #    endif
11837 #  endif
11838 #endif
11839
11840 /* When -fvisbility=hidden is used, assume the code has been annotated
11841    correspondingly for the symbols needed.  */
11842 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11843 int fnord () __attribute__((visibility("default")));
11844 #endif
11845
11846 int fnord () { return 42; }
11847 int main ()
11848 {
11849   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11850   int status = $lt_dlunknown;
11851
11852   if (self)
11853     {
11854       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11855       else
11856         {
11857           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11858           else puts (dlerror ());
11859         }
11860       /* dlclose (self); */
11861     }
11862   else
11863     puts (dlerror ());
11864
11865   return status;
11866 }
11867 _LT_EOF
11868   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11869   (eval $ac_link) 2>&5
11870   ac_status=$?
11871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11872   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11873     (./conftest; exit; ) >&5 2>/dev/null
11874     lt_status=$?
11875     case x$lt_status in
11876       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11877       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11878       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11879     esac
11880   else :
11881     # compilation failed
11882     lt_cv_dlopen_self=no
11883   fi
11884 fi
11885 rm -fr conftest*
11886
11887
11888 fi
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11890 $as_echo "$lt_cv_dlopen_self" >&6; }
11891
11892     if test "x$lt_cv_dlopen_self" = xyes; then
11893       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11894       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11895 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11896 if ${lt_cv_dlopen_self_static+:} false; then :
11897   $as_echo_n "(cached) " >&6
11898 else
11899           if test "$cross_compiling" = yes; then :
11900   lt_cv_dlopen_self_static=cross
11901 else
11902   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11903   lt_status=$lt_dlunknown
11904   cat > conftest.$ac_ext <<_LT_EOF
11905 #line $LINENO "configure"
11906 #include "confdefs.h"
11907
11908 #if HAVE_DLFCN_H
11909 #include <dlfcn.h>
11910 #endif
11911
11912 #include <stdio.h>
11913
11914 #ifdef RTLD_GLOBAL
11915 #  define LT_DLGLOBAL           RTLD_GLOBAL
11916 #else
11917 #  ifdef DL_GLOBAL
11918 #    define LT_DLGLOBAL         DL_GLOBAL
11919 #  else
11920 #    define LT_DLGLOBAL         0
11921 #  endif
11922 #endif
11923
11924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11925    find out it does not work in some platform. */
11926 #ifndef LT_DLLAZY_OR_NOW
11927 #  ifdef RTLD_LAZY
11928 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11929 #  else
11930 #    ifdef DL_LAZY
11931 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11932 #    else
11933 #      ifdef RTLD_NOW
11934 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11935 #      else
11936 #        ifdef DL_NOW
11937 #          define LT_DLLAZY_OR_NOW      DL_NOW
11938 #        else
11939 #          define LT_DLLAZY_OR_NOW      0
11940 #        endif
11941 #      endif
11942 #    endif
11943 #  endif
11944 #endif
11945
11946 /* When -fvisbility=hidden is used, assume the code has been annotated
11947    correspondingly for the symbols needed.  */
11948 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11949 int fnord () __attribute__((visibility("default")));
11950 #endif
11951
11952 int fnord () { return 42; }
11953 int main ()
11954 {
11955   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11956   int status = $lt_dlunknown;
11957
11958   if (self)
11959     {
11960       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11961       else
11962         {
11963           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11964           else puts (dlerror ());
11965         }
11966       /* dlclose (self); */
11967     }
11968   else
11969     puts (dlerror ());
11970
11971   return status;
11972 }
11973 _LT_EOF
11974   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11975   (eval $ac_link) 2>&5
11976   ac_status=$?
11977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11978   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11979     (./conftest; exit; ) >&5 2>/dev/null
11980     lt_status=$?
11981     case x$lt_status in
11982       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11983       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11984       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11985     esac
11986   else :
11987     # compilation failed
11988     lt_cv_dlopen_self_static=no
11989   fi
11990 fi
11991 rm -fr conftest*
11992
11993
11994 fi
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11996 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11997     fi
11998
11999     CPPFLAGS="$save_CPPFLAGS"
12000     LDFLAGS="$save_LDFLAGS"
12001     LIBS="$save_LIBS"
12002     ;;
12003   esac
12004
12005   case $lt_cv_dlopen_self in
12006   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12007   *) enable_dlopen_self=unknown ;;
12008   esac
12009
12010   case $lt_cv_dlopen_self_static in
12011   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12012   *) enable_dlopen_self_static=unknown ;;
12013   esac
12014 fi
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032 striplib=
12033 old_striplib=
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12035 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12036 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12037   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12038   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12040 $as_echo "yes" >&6; }
12041 else
12042 # FIXME - insert some real tests, host_os isn't really good enough
12043   case $host_os in
12044   darwin*)
12045     if test -n "$STRIP" ; then
12046       striplib="$STRIP -x"
12047       old_striplib="$STRIP -S"
12048       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12049 $as_echo "yes" >&6; }
12050     else
12051       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12053     fi
12054     ;;
12055   *)
12056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057 $as_echo "no" >&6; }
12058     ;;
12059   esac
12060 fi
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073   # Report which library types will actually be built
12074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12075 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12077 $as_echo "$can_build_shared" >&6; }
12078
12079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12080 $as_echo_n "checking whether to build shared libraries... " >&6; }
12081   test "$can_build_shared" = "no" && enable_shared=no
12082
12083   # On AIX, shared libraries and static libraries use the same namespace, and
12084   # are all built from PIC.
12085   case $host_os in
12086   aix3*)
12087     test "$enable_shared" = yes && enable_static=no
12088     if test -n "$RANLIB"; then
12089       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12090       postinstall_cmds='$RANLIB $lib'
12091     fi
12092     ;;
12093
12094   aix[4-9]*)
12095     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12096       test "$enable_shared" = yes && enable_static=no
12097     fi
12098     ;;
12099   esac
12100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12101 $as_echo "$enable_shared" >&6; }
12102
12103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12104 $as_echo_n "checking whether to build static libraries... " >&6; }
12105   # Make sure either enable_shared or enable_static is yes.
12106   test "$enable_shared" = yes || enable_static=yes
12107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12108 $as_echo "$enable_static" >&6; }
12109
12110
12111
12112
12113 fi
12114 ac_ext=c
12115 ac_cpp='$CPP $CPPFLAGS'
12116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12119
12120 CC="$lt_save_CC"
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136         ac_config_commands="$ac_config_commands libtool"
12137
12138
12139
12140
12141 # Only expand once:
12142
12143
12144
12145 ac_ext=cpp
12146 ac_cpp='$CXXCPP $CPPFLAGS'
12147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12150 if test -z "$CXX"; then
12151   if test -n "$CCC"; then
12152     CXX=$CCC
12153   else
12154     if test -n "$ac_tool_prefix"; then
12155   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12156   do
12157     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if ${ac_cv_prog_CXX+:} false; then :
12162   $as_echo_n "(cached) " >&6
12163 else
12164   if test -n "$CXX"; then
12165   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12166 else
12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168 for as_dir in $PATH
12169 do
12170   IFS=$as_save_IFS
12171   test -z "$as_dir" && as_dir=.
12172     for ac_exec_ext in '' $ac_executable_extensions; do
12173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12174     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12176     break 2
12177   fi
12178 done
12179   done
12180 IFS=$as_save_IFS
12181
12182 fi
12183 fi
12184 CXX=$ac_cv_prog_CXX
12185 if test -n "$CXX"; then
12186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12187 $as_echo "$CXX" >&6; }
12188 else
12189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; }
12191 fi
12192
12193
12194     test -n "$CXX" && break
12195   done
12196 fi
12197 if test -z "$CXX"; then
12198   ac_ct_CXX=$CXX
12199   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12200 do
12201   # Extract the first word of "$ac_prog", so it can be a program name with args.
12202 set dummy $ac_prog; ac_word=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12206   $as_echo_n "(cached) " >&6
12207 else
12208   if test -n "$ac_ct_CXX"; then
12209   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12210 else
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12213 do
12214   IFS=$as_save_IFS
12215   test -z "$as_dir" && as_dir=.
12216     for ac_exec_ext in '' $ac_executable_extensions; do
12217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218     ac_cv_prog_ac_ct_CXX="$ac_prog"
12219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220     break 2
12221   fi
12222 done
12223   done
12224 IFS=$as_save_IFS
12225
12226 fi
12227 fi
12228 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12229 if test -n "$ac_ct_CXX"; then
12230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12231 $as_echo "$ac_ct_CXX" >&6; }
12232 else
12233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12235 fi
12236
12237
12238   test -n "$ac_ct_CXX" && break
12239 done
12240
12241   if test "x$ac_ct_CXX" = x; then
12242     CXX="g++"
12243   else
12244     case $cross_compiling:$ac_tool_warned in
12245 yes:)
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12248 ac_tool_warned=yes ;;
12249 esac
12250     CXX=$ac_ct_CXX
12251   fi
12252 fi
12253
12254   fi
12255 fi
12256 # Provide some information about the compiler.
12257 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12258 set X $ac_compile
12259 ac_compiler=$2
12260 for ac_option in --version -v -V -qversion; do
12261   { { ac_try="$ac_compiler $ac_option >&5"
12262 case "(($ac_try" in
12263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264   *) ac_try_echo=$ac_try;;
12265 esac
12266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12267 $as_echo "$ac_try_echo"; } >&5
12268   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12269   ac_status=$?
12270   if test -s conftest.err; then
12271     sed '10a\
12272 ... rest of stderr output deleted ...
12273          10q' conftest.err >conftest.er1
12274     cat conftest.er1 >&5
12275   fi
12276   rm -f conftest.er1 conftest.err
12277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12278   test $ac_status = 0; }
12279 done
12280
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12282 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12283 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12284   $as_echo_n "(cached) " >&6
12285 else
12286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h.  */
12288
12289 int
12290 main ()
12291 {
12292 #ifndef __GNUC__
12293        choke me
12294 #endif
12295
12296   ;
12297   return 0;
12298 }
12299 _ACEOF
12300 if ac_fn_cxx_try_compile "$LINENO"; then :
12301   ac_compiler_gnu=yes
12302 else
12303   ac_compiler_gnu=no
12304 fi
12305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12306 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12307
12308 fi
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12310 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12311 if test $ac_compiler_gnu = yes; then
12312   GXX=yes
12313 else
12314   GXX=
12315 fi
12316 ac_test_CXXFLAGS=${CXXFLAGS+set}
12317 ac_save_CXXFLAGS=$CXXFLAGS
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12319 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12320 if ${ac_cv_prog_cxx_g+:} false; then :
12321   $as_echo_n "(cached) " >&6
12322 else
12323   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12324    ac_cxx_werror_flag=yes
12325    ac_cv_prog_cxx_g=no
12326    CXXFLAGS="-g"
12327    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h.  */
12329
12330 int
12331 main ()
12332 {
12333
12334   ;
12335   return 0;
12336 }
12337 _ACEOF
12338 if ac_fn_cxx_try_compile "$LINENO"; then :
12339   ac_cv_prog_cxx_g=yes
12340 else
12341   CXXFLAGS=""
12342       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h.  */
12344
12345 int
12346 main ()
12347 {
12348
12349   ;
12350   return 0;
12351 }
12352 _ACEOF
12353 if ac_fn_cxx_try_compile "$LINENO"; then :
12354
12355 else
12356   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12357          CXXFLAGS="-g"
12358          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h.  */
12360
12361 int
12362 main ()
12363 {
12364
12365   ;
12366   return 0;
12367 }
12368 _ACEOF
12369 if ac_fn_cxx_try_compile "$LINENO"; then :
12370   ac_cv_prog_cxx_g=yes
12371 fi
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 fi
12374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12375 fi
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12378 fi
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12380 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12381 if test "$ac_test_CXXFLAGS" = set; then
12382   CXXFLAGS=$ac_save_CXXFLAGS
12383 elif test $ac_cv_prog_cxx_g = yes; then
12384   if test "$GXX" = yes; then
12385     CXXFLAGS="-g -O2"
12386   else
12387     CXXFLAGS="-g"
12388   fi
12389 else
12390   if test "$GXX" = yes; then
12391     CXXFLAGS="-O2"
12392   else
12393     CXXFLAGS=
12394   fi
12395 fi
12396 ac_ext=c
12397 ac_cpp='$CPP $CPPFLAGS'
12398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12401
12402 depcc="$CXX"  am_compiler_list=
12403
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12405 $as_echo_n "checking dependency style of $depcc... " >&6; }
12406 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12407   $as_echo_n "(cached) " >&6
12408 else
12409   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12410   # We make a subdir and do the tests there.  Otherwise we can end up
12411   # making bogus files that we don't know about and never remove.  For
12412   # instance it was reported that on HP-UX the gcc test will end up
12413   # making a dummy file named 'D' -- because '-MD' means "put the output
12414   # in D".
12415   rm -rf conftest.dir
12416   mkdir conftest.dir
12417   # Copy depcomp to subdir because otherwise we won't find it if we're
12418   # using a relative directory.
12419   cp "$am_depcomp" conftest.dir
12420   cd conftest.dir
12421   # We will build objects and dependencies in a subdirectory because
12422   # it helps to detect inapplicable dependency modes.  For instance
12423   # both Tru64's cc and ICC support -MD to output dependencies as a
12424   # side effect of compilation, but ICC will put the dependencies in
12425   # the current directory while Tru64 will put them in the object
12426   # directory.
12427   mkdir sub
12428
12429   am_cv_CXX_dependencies_compiler_type=none
12430   if test "$am_compiler_list" = ""; then
12431      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12432   fi
12433   am__universal=false
12434   case " $depcc " in #(
12435      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12436      esac
12437
12438   for depmode in $am_compiler_list; do
12439     # Setup a source with many dependencies, because some compilers
12440     # like to wrap large dependency lists on column 80 (with \), and
12441     # we should not choose a depcomp mode which is confused by this.
12442     #
12443     # We need to recreate these files for each test, as the compiler may
12444     # overwrite some of them when testing with obscure command lines.
12445     # This happens at least with the AIX C compiler.
12446     : > sub/conftest.c
12447     for i in 1 2 3 4 5 6; do
12448       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12449       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12450       # Solaris 10 /bin/sh.
12451       echo '/* dummy */' > sub/conftst$i.h
12452     done
12453     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12454
12455     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12456     # mode.  It turns out that the SunPro C++ compiler does not properly
12457     # handle '-M -o', and we need to detect this.  Also, some Intel
12458     # versions had trouble with output in subdirs.
12459     am__obj=sub/conftest.${OBJEXT-o}
12460     am__minus_obj="-o $am__obj"
12461     case $depmode in
12462     gcc)
12463       # This depmode causes a compiler race in universal mode.
12464       test "$am__universal" = false || continue
12465       ;;
12466     nosideeffect)
12467       # After this tag, mechanisms are not by side-effect, so they'll
12468       # only be used when explicitly requested.
12469       if test "x$enable_dependency_tracking" = xyes; then
12470         continue
12471       else
12472         break
12473       fi
12474       ;;
12475     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12476       # This compiler won't grok '-c -o', but also, the minuso test has
12477       # not run yet.  These depmodes are late enough in the game, and
12478       # so weak that their functioning should not be impacted.
12479       am__obj=conftest.${OBJEXT-o}
12480       am__minus_obj=
12481       ;;
12482     none) break ;;
12483     esac
12484     if depmode=$depmode \
12485        source=sub/conftest.c object=$am__obj \
12486        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12487        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12488          >/dev/null 2>conftest.err &&
12489        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12490        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12491        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12492        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12493       # icc doesn't choke on unknown options, it will just issue warnings
12494       # or remarks (even with -Werror).  So we grep stderr for any message
12495       # that says an option was ignored or not supported.
12496       # When given -MP, icc 7.0 and 7.1 complain thusly:
12497       #   icc: Command line warning: ignoring option '-M'; no argument required
12498       # The diagnosis changed in icc 8.0:
12499       #   icc: Command line remark: option '-MP' not supported
12500       if (grep 'ignoring option' conftest.err ||
12501           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12502         am_cv_CXX_dependencies_compiler_type=$depmode
12503         break
12504       fi
12505     fi
12506   done
12507
12508   cd ..
12509   rm -rf conftest.dir
12510 else
12511   am_cv_CXX_dependencies_compiler_type=none
12512 fi
12513
12514 fi
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12516 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12517 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12518
12519  if
12520   test "x$enable_dependency_tracking" != xno \
12521   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12522   am__fastdepCXX_TRUE=
12523   am__fastdepCXX_FALSE='#'
12524 else
12525   am__fastdepCXX_TRUE='#'
12526   am__fastdepCXX_FALSE=
12527 fi
12528
12529
12530
12531
12532 func_stripname_cnf ()
12533 {
12534   case ${2} in
12535   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12536   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12537   esac
12538 } # func_stripname_cnf
12539
12540       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12541     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12542     (test "X$CXX" != "Xg++"))) ; then
12543   ac_ext=cpp
12544 ac_cpp='$CXXCPP $CPPFLAGS'
12545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12549 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12550 if test -z "$CXXCPP"; then
12551   if ${ac_cv_prog_CXXCPP+:} false; then :
12552   $as_echo_n "(cached) " >&6
12553 else
12554       # Double quotes because CXXCPP needs to be expanded
12555     for CXXCPP in "$CXX -E" "/lib/cpp"
12556     do
12557       ac_preproc_ok=false
12558 for ac_cxx_preproc_warn_flag in '' yes
12559 do
12560   # Use a header file that comes with gcc, so configuring glibc
12561   # with a fresh cross-compiler works.
12562   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12563   # <limits.h> exists even on freestanding compilers.
12564   # On the NeXT, cc -E runs the code through the compiler's parser,
12565   # not just through cpp. "Syntax error" is here to catch this case.
12566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h.  */
12568 #ifdef __STDC__
12569 # include <limits.h>
12570 #else
12571 # include <assert.h>
12572 #endif
12573                      Syntax error
12574 _ACEOF
12575 if ac_fn_cxx_try_cpp "$LINENO"; then :
12576
12577 else
12578   # Broken: fails on valid input.
12579 continue
12580 fi
12581 rm -f conftest.err conftest.i conftest.$ac_ext
12582
12583   # OK, works on sane cases.  Now check whether nonexistent headers
12584   # can be detected and how.
12585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h.  */
12587 #include <ac_nonexistent.h>
12588 _ACEOF
12589 if ac_fn_cxx_try_cpp "$LINENO"; then :
12590   # Broken: success on invalid input.
12591 continue
12592 else
12593   # Passes both tests.
12594 ac_preproc_ok=:
12595 break
12596 fi
12597 rm -f conftest.err conftest.i conftest.$ac_ext
12598
12599 done
12600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12601 rm -f conftest.i conftest.err conftest.$ac_ext
12602 if $ac_preproc_ok; then :
12603   break
12604 fi
12605
12606     done
12607     ac_cv_prog_CXXCPP=$CXXCPP
12608
12609 fi
12610   CXXCPP=$ac_cv_prog_CXXCPP
12611 else
12612   ac_cv_prog_CXXCPP=$CXXCPP
12613 fi
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12615 $as_echo "$CXXCPP" >&6; }
12616 ac_preproc_ok=false
12617 for ac_cxx_preproc_warn_flag in '' yes
12618 do
12619   # Use a header file that comes with gcc, so configuring glibc
12620   # with a fresh cross-compiler works.
12621   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12622   # <limits.h> exists even on freestanding compilers.
12623   # On the NeXT, cc -E runs the code through the compiler's parser,
12624   # not just through cpp. "Syntax error" is here to catch this case.
12625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h.  */
12627 #ifdef __STDC__
12628 # include <limits.h>
12629 #else
12630 # include <assert.h>
12631 #endif
12632                      Syntax error
12633 _ACEOF
12634 if ac_fn_cxx_try_cpp "$LINENO"; then :
12635
12636 else
12637   # Broken: fails on valid input.
12638 continue
12639 fi
12640 rm -f conftest.err conftest.i conftest.$ac_ext
12641
12642   # OK, works on sane cases.  Now check whether nonexistent headers
12643   # can be detected and how.
12644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h.  */
12646 #include <ac_nonexistent.h>
12647 _ACEOF
12648 if ac_fn_cxx_try_cpp "$LINENO"; then :
12649   # Broken: success on invalid input.
12650 continue
12651 else
12652   # Passes both tests.
12653 ac_preproc_ok=:
12654 break
12655 fi
12656 rm -f conftest.err conftest.i conftest.$ac_ext
12657
12658 done
12659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12660 rm -f conftest.i conftest.err conftest.$ac_ext
12661 if $ac_preproc_ok; then :
12662
12663 else
12664   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12666 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12667 See \`config.log' for more details" "$LINENO" 5; }
12668 fi
12669
12670 ac_ext=c
12671 ac_cpp='$CPP $CPPFLAGS'
12672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12675
12676 else
12677   _lt_caught_CXX_error=yes
12678 fi
12679
12680 ac_ext=cpp
12681 ac_cpp='$CXXCPP $CPPFLAGS'
12682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12685
12686 archive_cmds_need_lc_CXX=no
12687 allow_undefined_flag_CXX=
12688 always_export_symbols_CXX=no
12689 archive_expsym_cmds_CXX=
12690 compiler_needs_object_CXX=no
12691 export_dynamic_flag_spec_CXX=
12692 hardcode_direct_CXX=no
12693 hardcode_direct_absolute_CXX=no
12694 hardcode_libdir_flag_spec_CXX=
12695 hardcode_libdir_separator_CXX=
12696 hardcode_minus_L_CXX=no
12697 hardcode_shlibpath_var_CXX=unsupported
12698 hardcode_automatic_CXX=no
12699 inherit_rpath_CXX=no
12700 module_cmds_CXX=
12701 module_expsym_cmds_CXX=
12702 link_all_deplibs_CXX=unknown
12703 old_archive_cmds_CXX=$old_archive_cmds
12704 reload_flag_CXX=$reload_flag
12705 reload_cmds_CXX=$reload_cmds
12706 no_undefined_flag_CXX=
12707 whole_archive_flag_spec_CXX=
12708 enable_shared_with_static_runtimes_CXX=no
12709
12710 # Source file extension for C++ test sources.
12711 ac_ext=cpp
12712
12713 # Object file extension for compiled C++ test sources.
12714 objext=o
12715 objext_CXX=$objext
12716
12717 # No sense in running all these tests if we already determined that
12718 # the CXX compiler isn't working.  Some variables (like enable_shared)
12719 # are currently assumed to apply to all compilers on this platform,
12720 # and will be corrupted by setting them based on a non-working compiler.
12721 if test "$_lt_caught_CXX_error" != yes; then
12722   # Code to be used in simple compile tests
12723   lt_simple_compile_test_code="int some_variable = 0;"
12724
12725   # Code to be used in simple link tests
12726   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12727
12728   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12729
12730
12731
12732
12733
12734
12735 # If no C compiler was specified, use CC.
12736 LTCC=${LTCC-"$CC"}
12737
12738 # If no C compiler flags were specified, use CFLAGS.
12739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12740
12741 # Allow CC to be a program name with arguments.
12742 compiler=$CC
12743
12744
12745   # save warnings/boilerplate of simple test code
12746   ac_outfile=conftest.$ac_objext
12747 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12748 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12749 _lt_compiler_boilerplate=`cat conftest.err`
12750 $RM conftest*
12751
12752   ac_outfile=conftest.$ac_objext
12753 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12754 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12755 _lt_linker_boilerplate=`cat conftest.err`
12756 $RM -r conftest*
12757
12758
12759   # Allow CC to be a program name with arguments.
12760   lt_save_CC=$CC
12761   lt_save_CFLAGS=$CFLAGS
12762   lt_save_LD=$LD
12763   lt_save_GCC=$GCC
12764   GCC=$GXX
12765   lt_save_with_gnu_ld=$with_gnu_ld
12766   lt_save_path_LD=$lt_cv_path_LD
12767   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12768     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12769   else
12770     $as_unset lt_cv_prog_gnu_ld
12771   fi
12772   if test -n "${lt_cv_path_LDCXX+set}"; then
12773     lt_cv_path_LD=$lt_cv_path_LDCXX
12774   else
12775     $as_unset lt_cv_path_LD
12776   fi
12777   test -z "${LDCXX+set}" || LD=$LDCXX
12778   CC=${CXX-"c++"}
12779   CFLAGS=$CXXFLAGS
12780   compiler=$CC
12781   compiler_CXX=$CC
12782   for cc_temp in $compiler""; do
12783   case $cc_temp in
12784     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12785     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12786     \-*) ;;
12787     *) break;;
12788   esac
12789 done
12790 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12791
12792
12793   if test -n "$compiler"; then
12794     # We don't want -fno-exception when compiling C++ code, so set the
12795     # no_builtin_flag separately
12796     if test "$GXX" = yes; then
12797       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12798     else
12799       lt_prog_compiler_no_builtin_flag_CXX=
12800     fi
12801
12802     if test "$GXX" = yes; then
12803       # Set up default GNU C++ configuration
12804
12805
12806
12807 # Check whether --with-gnu-ld was given.
12808 if test "${with_gnu_ld+set}" = set; then :
12809   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12810 else
12811   with_gnu_ld=no
12812 fi
12813
12814 ac_prog=ld
12815 if test "$GCC" = yes; then
12816   # Check if gcc -print-prog-name=ld gives a path.
12817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12818 $as_echo_n "checking for ld used by $CC... " >&6; }
12819   case $host in
12820   *-*-mingw*)
12821     # gcc leaves a trailing carriage return which upsets mingw
12822     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12823   *)
12824     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12825   esac
12826   case $ac_prog in
12827     # Accept absolute paths.
12828     [\\/]* | ?:[\\/]*)
12829       re_direlt='/[^/][^/]*/\.\./'
12830       # Canonicalize the pathname of ld
12831       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12832       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12833         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12834       done
12835       test -z "$LD" && LD="$ac_prog"
12836       ;;
12837   "")
12838     # If it fails, then pretend we aren't using GCC.
12839     ac_prog=ld
12840     ;;
12841   *)
12842     # If it is relative, then search for the first ld in PATH.
12843     with_gnu_ld=unknown
12844     ;;
12845   esac
12846 elif test "$with_gnu_ld" = yes; then
12847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12848 $as_echo_n "checking for GNU ld... " >&6; }
12849 else
12850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12851 $as_echo_n "checking for non-GNU ld... " >&6; }
12852 fi
12853 if ${lt_cv_path_LD+:} false; then :
12854   $as_echo_n "(cached) " >&6
12855 else
12856   if test -z "$LD"; then
12857   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12858   for ac_dir in $PATH; do
12859     IFS="$lt_save_ifs"
12860     test -z "$ac_dir" && ac_dir=.
12861     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12862       lt_cv_path_LD="$ac_dir/$ac_prog"
12863       # Check to see if the program is GNU ld.  I'd rather use --version,
12864       # but apparently some variants of GNU ld only accept -v.
12865       # Break only if it was the GNU/non-GNU ld that we prefer.
12866       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12867       *GNU* | *'with BFD'*)
12868         test "$with_gnu_ld" != no && break
12869         ;;
12870       *)
12871         test "$with_gnu_ld" != yes && break
12872         ;;
12873       esac
12874     fi
12875   done
12876   IFS="$lt_save_ifs"
12877 else
12878   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12879 fi
12880 fi
12881
12882 LD="$lt_cv_path_LD"
12883 if test -n "$LD"; then
12884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12885 $as_echo "$LD" >&6; }
12886 else
12887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12889 fi
12890 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12892 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12893 if ${lt_cv_prog_gnu_ld+:} false; then :
12894   $as_echo_n "(cached) " >&6
12895 else
12896   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12897 case `$LD -v 2>&1 </dev/null` in
12898 *GNU* | *'with BFD'*)
12899   lt_cv_prog_gnu_ld=yes
12900   ;;
12901 *)
12902   lt_cv_prog_gnu_ld=no
12903   ;;
12904 esac
12905 fi
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12907 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12908 with_gnu_ld=$lt_cv_prog_gnu_ld
12909
12910
12911
12912
12913
12914
12915
12916       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12917       # archiving commands below assume that GNU ld is being used.
12918       if test "$with_gnu_ld" = yes; then
12919         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12920         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12921
12922         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12923         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12924
12925         # If archive_cmds runs LD, not CC, wlarc should be empty
12926         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12927         #     investigate it a little bit more. (MM)
12928         wlarc='${wl}'
12929
12930         # ancient GNU ld didn't support --whole-archive et. al.
12931         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12932           $GREP 'no-whole-archive' > /dev/null; then
12933           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12934         else
12935           whole_archive_flag_spec_CXX=
12936         fi
12937       else
12938         with_gnu_ld=no
12939         wlarc=
12940
12941         # A generic and very simple default shared library creation
12942         # command for GNU C++ for the case where it uses the native
12943         # linker, instead of GNU ld.  If possible, this setting should
12944         # overridden to take advantage of the native linker features on
12945         # the platform it is being used on.
12946         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12947       fi
12948
12949       # Commands to make compiler produce verbose output that lists
12950       # what "hidden" libraries, object files and flags are used when
12951       # linking a shared library.
12952       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12953
12954     else
12955       GXX=no
12956       with_gnu_ld=no
12957       wlarc=
12958     fi
12959
12960     # PORTME: fill in a description of your system's C++ link characteristics
12961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12962 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12963     ld_shlibs_CXX=yes
12964     case $host_os in
12965       aix3*)
12966         # FIXME: insert proper C++ library support
12967         ld_shlibs_CXX=no
12968         ;;
12969       aix[4-9]*)
12970         if test "$host_cpu" = ia64; then
12971           # On IA64, the linker does run time linking by default, so we don't
12972           # have to do anything special.
12973           aix_use_runtimelinking=no
12974           exp_sym_flag='-Bexport'
12975           no_entry_flag=""
12976         else
12977           aix_use_runtimelinking=no
12978
12979           # Test if we are trying to use run time linking or normal
12980           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12981           # need to do runtime linking.
12982           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12983             for ld_flag in $LDFLAGS; do
12984               case $ld_flag in
12985               *-brtl*)
12986                 aix_use_runtimelinking=yes
12987                 break
12988                 ;;
12989               esac
12990             done
12991             ;;
12992           esac
12993
12994           exp_sym_flag='-bexport'
12995           no_entry_flag='-bnoentry'
12996         fi
12997
12998         # When large executables or shared objects are built, AIX ld can
12999         # have problems creating the table of contents.  If linking a library
13000         # or program results in "error TOC overflow" add -mminimal-toc to
13001         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13002         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13003
13004         archive_cmds_CXX=''
13005         hardcode_direct_CXX=yes
13006         hardcode_direct_absolute_CXX=yes
13007         hardcode_libdir_separator_CXX=':'
13008         link_all_deplibs_CXX=yes
13009         file_list_spec_CXX='${wl}-f,'
13010
13011         if test "$GXX" = yes; then
13012           case $host_os in aix4.[012]|aix4.[012].*)
13013           # We only want to do this on AIX 4.2 and lower, the check
13014           # below for broken collect2 doesn't work under 4.3+
13015           collect2name=`${CC} -print-prog-name=collect2`
13016           if test -f "$collect2name" &&
13017              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13018           then
13019             # We have reworked collect2
13020             :
13021           else
13022             # We have old collect2
13023             hardcode_direct_CXX=unsupported
13024             # It fails to find uninstalled libraries when the uninstalled
13025             # path is not listed in the libpath.  Setting hardcode_minus_L
13026             # to unsupported forces relinking
13027             hardcode_minus_L_CXX=yes
13028             hardcode_libdir_flag_spec_CXX='-L$libdir'
13029             hardcode_libdir_separator_CXX=
13030           fi
13031           esac
13032           shared_flag='-shared'
13033           if test "$aix_use_runtimelinking" = yes; then
13034             shared_flag="$shared_flag "'${wl}-G'
13035           fi
13036         else
13037           # not using gcc
13038           if test "$host_cpu" = ia64; then
13039           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13040           # chokes on -Wl,-G. The following line is correct:
13041           shared_flag='-G'
13042           else
13043             if test "$aix_use_runtimelinking" = yes; then
13044               shared_flag='${wl}-G'
13045             else
13046               shared_flag='${wl}-bM:SRE'
13047             fi
13048           fi
13049         fi
13050
13051         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13052         # It seems that -bexpall does not export symbols beginning with
13053         # underscore (_), so it is better to generate a list of symbols to
13054         # export.
13055         always_export_symbols_CXX=yes
13056         if test "$aix_use_runtimelinking" = yes; then
13057           # Warning - without using the other runtime loading flags (-brtl),
13058           # -berok will link without error, but may produce a broken library.
13059           allow_undefined_flag_CXX='-berok'
13060           # Determine the default libpath from the value encoded in an empty
13061           # executable.
13062           if test "${lt_cv_aix_libpath+set}" = set; then
13063   aix_libpath=$lt_cv_aix_libpath
13064 else
13065   if ${lt_cv_aix_libpath__CXX+:} false; then :
13066   $as_echo_n "(cached) " >&6
13067 else
13068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h.  */
13070
13071 int
13072 main ()
13073 {
13074
13075   ;
13076   return 0;
13077 }
13078 _ACEOF
13079 if ac_fn_cxx_try_link "$LINENO"; then :
13080
13081   lt_aix_libpath_sed='
13082       /Import File Strings/,/^$/ {
13083           /^0/ {
13084               s/^0  *\([^ ]*\) *$/\1/
13085               p
13086           }
13087       }'
13088   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13089   # Check for a 64-bit object if we didn't find anything.
13090   if test -z "$lt_cv_aix_libpath__CXX"; then
13091     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13092   fi
13093 fi
13094 rm -f core conftest.err conftest.$ac_objext \
13095     conftest$ac_exeext conftest.$ac_ext
13096   if test -z "$lt_cv_aix_libpath__CXX"; then
13097     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13098   fi
13099
13100 fi
13101
13102   aix_libpath=$lt_cv_aix_libpath__CXX
13103 fi
13104
13105           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13106
13107           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13108         else
13109           if test "$host_cpu" = ia64; then
13110             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13111             allow_undefined_flag_CXX="-z nodefs"
13112             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"
13113           else
13114             # Determine the default libpath from the value encoded in an
13115             # empty executable.
13116             if test "${lt_cv_aix_libpath+set}" = set; then
13117   aix_libpath=$lt_cv_aix_libpath
13118 else
13119   if ${lt_cv_aix_libpath__CXX+:} false; then :
13120   $as_echo_n "(cached) " >&6
13121 else
13122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h.  */
13124
13125 int
13126 main ()
13127 {
13128
13129   ;
13130   return 0;
13131 }
13132 _ACEOF
13133 if ac_fn_cxx_try_link "$LINENO"; then :
13134
13135   lt_aix_libpath_sed='
13136       /Import File Strings/,/^$/ {
13137           /^0/ {
13138               s/^0  *\([^ ]*\) *$/\1/
13139               p
13140           }
13141       }'
13142   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13143   # Check for a 64-bit object if we didn't find anything.
13144   if test -z "$lt_cv_aix_libpath__CXX"; then
13145     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13146   fi
13147 fi
13148 rm -f core conftest.err conftest.$ac_objext \
13149     conftest$ac_exeext conftest.$ac_ext
13150   if test -z "$lt_cv_aix_libpath__CXX"; then
13151     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13152   fi
13153
13154 fi
13155
13156   aix_libpath=$lt_cv_aix_libpath__CXX
13157 fi
13158
13159             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13160             # Warning - without using the other run time loading flags,
13161             # -berok will link without error, but may produce a broken library.
13162             no_undefined_flag_CXX=' ${wl}-bernotok'
13163             allow_undefined_flag_CXX=' ${wl}-berok'
13164             if test "$with_gnu_ld" = yes; then
13165               # We only use this code for GNU lds that support --whole-archive.
13166               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13167             else
13168               # Exported symbols can be pulled into shared objects from archives
13169               whole_archive_flag_spec_CXX='$convenience'
13170             fi
13171             archive_cmds_need_lc_CXX=yes
13172             # This is similar to how AIX traditionally builds its shared
13173             # libraries.
13174             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'
13175           fi
13176         fi
13177         ;;
13178
13179       beos*)
13180         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13181           allow_undefined_flag_CXX=unsupported
13182           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13183           # support --undefined.  This deserves some investigation.  FIXME
13184           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13185         else
13186           ld_shlibs_CXX=no
13187         fi
13188         ;;
13189
13190       chorus*)
13191         case $cc_basename in
13192           *)
13193           # FIXME: insert proper C++ library support
13194           ld_shlibs_CXX=no
13195           ;;
13196         esac
13197         ;;
13198
13199       cygwin* | mingw* | pw32* | cegcc*)
13200         case $GXX,$cc_basename in
13201         ,cl* | no,cl*)
13202           # Native MSVC
13203           # hardcode_libdir_flag_spec is actually meaningless, as there is
13204           # no search path for DLLs.
13205           hardcode_libdir_flag_spec_CXX=' '
13206           allow_undefined_flag_CXX=unsupported
13207           always_export_symbols_CXX=yes
13208           file_list_spec_CXX='@'
13209           # Tell ltmain to make .lib files, not .a files.
13210           libext=lib
13211           # Tell ltmain to make .dll files, not .so files.
13212           shrext_cmds=".dll"
13213           # FIXME: Setting linknames here is a bad hack.
13214           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13215           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13216               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13217             else
13218               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13219             fi~
13220             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13221             linknames='
13222           # The linker will not automatically build a static lib if we build a DLL.
13223           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13224           enable_shared_with_static_runtimes_CXX=yes
13225           # Don't use ranlib
13226           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13227           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13228             lt_tool_outputfile="@TOOL_OUTPUT@"~
13229             case $lt_outputfile in
13230               *.exe|*.EXE) ;;
13231               *)
13232                 lt_outputfile="$lt_outputfile.exe"
13233                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13234                 ;;
13235             esac~
13236             func_to_tool_file "$lt_outputfile"~
13237             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13238               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13239               $RM "$lt_outputfile.manifest";
13240             fi'
13241           ;;
13242         *)
13243           # g++
13244           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13245           # as there is no search path for DLLs.
13246           hardcode_libdir_flag_spec_CXX='-L$libdir'
13247           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13248           allow_undefined_flag_CXX=unsupported
13249           always_export_symbols_CXX=no
13250           enable_shared_with_static_runtimes_CXX=yes
13251
13252           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13253             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'
13254             # If the export-symbols file already is a .def file (1st line
13255             # is EXPORTS), use it as is; otherwise, prepend...
13256             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13257               cp $export_symbols $output_objdir/$soname.def;
13258             else
13259               echo EXPORTS > $output_objdir/$soname.def;
13260               cat $export_symbols >> $output_objdir/$soname.def;
13261             fi~
13262             $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'
13263           else
13264             ld_shlibs_CXX=no
13265           fi
13266           ;;
13267         esac
13268         ;;
13269       darwin* | rhapsody*)
13270
13271
13272   archive_cmds_need_lc_CXX=no
13273   hardcode_direct_CXX=no
13274   hardcode_automatic_CXX=yes
13275   hardcode_shlibpath_var_CXX=unsupported
13276   if test "$lt_cv_ld_force_load" = "yes"; then
13277     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13278
13279   else
13280     whole_archive_flag_spec_CXX=''
13281   fi
13282   link_all_deplibs_CXX=yes
13283   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13284   case $cc_basename in
13285      ifort*) _lt_dar_can_shared=yes ;;
13286      *) _lt_dar_can_shared=$GCC ;;
13287   esac
13288   if test "$_lt_dar_can_shared" = "yes"; then
13289     output_verbose_link_cmd=func_echo_all
13290     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}"
13291     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13292     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}"
13293     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}"
13294        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13295       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}"
13296       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}"
13297     fi
13298
13299   else
13300   ld_shlibs_CXX=no
13301   fi
13302
13303         ;;
13304
13305       dgux*)
13306         case $cc_basename in
13307           ec++*)
13308             # FIXME: insert proper C++ library support
13309             ld_shlibs_CXX=no
13310             ;;
13311           ghcx*)
13312             # Green Hills C++ Compiler
13313             # FIXME: insert proper C++ library support
13314             ld_shlibs_CXX=no
13315             ;;
13316           *)
13317             # FIXME: insert proper C++ library support
13318             ld_shlibs_CXX=no
13319             ;;
13320         esac
13321         ;;
13322
13323       freebsd2.*)
13324         # C++ shared libraries reported to be fairly broken before
13325         # switch to ELF
13326         ld_shlibs_CXX=no
13327         ;;
13328
13329       freebsd-elf*)
13330         archive_cmds_need_lc_CXX=no
13331         ;;
13332
13333       freebsd* | dragonfly*)
13334         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13335         # conventions
13336         ld_shlibs_CXX=yes
13337         ;;
13338
13339       haiku*)
13340         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341         link_all_deplibs_CXX=yes
13342         ;;
13343
13344       hpux9*)
13345         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13346         hardcode_libdir_separator_CXX=:
13347         export_dynamic_flag_spec_CXX='${wl}-E'
13348         hardcode_direct_CXX=yes
13349         hardcode_minus_L_CXX=yes # Not in the search PATH,
13350                                              # but as the default
13351                                              # location of the library.
13352
13353         case $cc_basename in
13354           CC*)
13355             # FIXME: insert proper C++ library support
13356             ld_shlibs_CXX=no
13357             ;;
13358           aCC*)
13359             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'
13360             # Commands to make compiler produce verbose output that lists
13361             # what "hidden" libraries, object files and flags are used when
13362             # linking a shared library.
13363             #
13364             # There doesn't appear to be a way to prevent this compiler from
13365             # explicitly linking system object files so we need to strip them
13366             # from the output so that they don't get included in the library
13367             # dependencies.
13368             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13369             ;;
13370           *)
13371             if test "$GXX" = yes; then
13372               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13373             else
13374               # FIXME: insert proper C++ library support
13375               ld_shlibs_CXX=no
13376             fi
13377             ;;
13378         esac
13379         ;;
13380
13381       hpux10*|hpux11*)
13382         if test $with_gnu_ld = no; then
13383           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13384           hardcode_libdir_separator_CXX=:
13385
13386           case $host_cpu in
13387             hppa*64*|ia64*)
13388               ;;
13389             *)
13390               export_dynamic_flag_spec_CXX='${wl}-E'
13391               ;;
13392           esac
13393         fi
13394         case $host_cpu in
13395           hppa*64*|ia64*)
13396             hardcode_direct_CXX=no
13397             hardcode_shlibpath_var_CXX=no
13398             ;;
13399           *)
13400             hardcode_direct_CXX=yes
13401             hardcode_direct_absolute_CXX=yes
13402             hardcode_minus_L_CXX=yes # Not in the search PATH,
13403                                                  # but as the default
13404                                                  # location of the library.
13405             ;;
13406         esac
13407
13408         case $cc_basename in
13409           CC*)
13410             # FIXME: insert proper C++ library support
13411             ld_shlibs_CXX=no
13412             ;;
13413           aCC*)
13414             case $host_cpu in
13415               hppa*64*)
13416                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13417                 ;;
13418               ia64*)
13419                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13420                 ;;
13421               *)
13422                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13423                 ;;
13424             esac
13425             # Commands to make compiler produce verbose output that lists
13426             # what "hidden" libraries, object files and flags are used when
13427             # linking a shared library.
13428             #
13429             # There doesn't appear to be a way to prevent this compiler from
13430             # explicitly linking system object files so we need to strip them
13431             # from the output so that they don't get included in the library
13432             # dependencies.
13433             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13434             ;;
13435           *)
13436             if test "$GXX" = yes; then
13437               if test $with_gnu_ld = no; then
13438                 case $host_cpu in
13439                   hppa*64*)
13440                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13441                     ;;
13442                   ia64*)
13443                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13444                     ;;
13445                   *)
13446                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13447                     ;;
13448                 esac
13449               fi
13450             else
13451               # FIXME: insert proper C++ library support
13452               ld_shlibs_CXX=no
13453             fi
13454             ;;
13455         esac
13456         ;;
13457
13458       interix[3-9]*)
13459         hardcode_direct_CXX=no
13460         hardcode_shlibpath_var_CXX=no
13461         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13462         export_dynamic_flag_spec_CXX='${wl}-E'
13463         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13464         # Instead, shared libraries are loaded at an image base (0x10000000 by
13465         # default) and relocated if they conflict, which is a slow very memory
13466         # consuming and fragmenting process.  To avoid this, we pick a random,
13467         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13468         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13469         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'
13470         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'
13471         ;;
13472       irix5* | irix6*)
13473         case $cc_basename in
13474           CC*)
13475             # SGI C++
13476             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13477
13478             # Archives containing C++ object files must be created using
13479             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13480             # necessary to make sure instantiated templates are included
13481             # in the archive.
13482             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13483             ;;
13484           *)
13485             if test "$GXX" = yes; then
13486               if test "$with_gnu_ld" = no; then
13487                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13488               else
13489                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13490               fi
13491             fi
13492             link_all_deplibs_CXX=yes
13493             ;;
13494         esac
13495         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13496         hardcode_libdir_separator_CXX=:
13497         inherit_rpath_CXX=yes
13498         ;;
13499
13500       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13501         case $cc_basename in
13502           KCC*)
13503             # Kuck and Associates, Inc. (KAI) C++ Compiler
13504
13505             # KCC will only create a shared library if the output file
13506             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13507             # to its proper name (with version) after linking.
13508             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'
13509             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'
13510             # Commands to make compiler produce verbose output that lists
13511             # what "hidden" libraries, object files and flags are used when
13512             # linking a shared library.
13513             #
13514             # There doesn't appear to be a way to prevent this compiler from
13515             # explicitly linking system object files so we need to strip them
13516             # from the output so that they don't get included in the library
13517             # dependencies.
13518             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13519
13520             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13521             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13522
13523             # Archives containing C++ object files must be created using
13524             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13525             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13526             ;;
13527           icpc* | ecpc* )
13528             # Intel C++
13529             with_gnu_ld=yes
13530             # version 8.0 and above of icpc choke on multiply defined symbols
13531             # if we add $predep_objects and $postdep_objects, however 7.1 and
13532             # earlier do not add the objects themselves.
13533             case `$CC -V 2>&1` in
13534               *"Version 7."*)
13535                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13536                 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'
13537                 ;;
13538               *)  # Version 8.0 or newer
13539                 tmp_idyn=
13540                 case $host_cpu in
13541                   ia64*) tmp_idyn=' -i_dynamic';;
13542                 esac
13543                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13544                 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'
13545                 ;;
13546             esac
13547             archive_cmds_need_lc_CXX=no
13548             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13549             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13550             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13551             ;;
13552           pgCC* | pgcpp*)
13553             # Portland Group C++ compiler
13554             case `$CC -V` in
13555             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13556               prelink_cmds_CXX='tpldir=Template.dir~
13557                 rm -rf $tpldir~
13558                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13559                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13560               old_archive_cmds_CXX='tpldir=Template.dir~
13561                 rm -rf $tpldir~
13562                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13563                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13564                 $RANLIB $oldlib'
13565               archive_cmds_CXX='tpldir=Template.dir~
13566                 rm -rf $tpldir~
13567                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13568                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13569               archive_expsym_cmds_CXX='tpldir=Template.dir~
13570                 rm -rf $tpldir~
13571                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13572                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13573               ;;
13574             *) # Version 6 and above use weak symbols
13575               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13576               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'
13577               ;;
13578             esac
13579
13580             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13581             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13582             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13583             ;;
13584           cxx*)
13585             # Compaq C++
13586             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13587             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'
13588
13589             runpath_var=LD_RUN_PATH
13590             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13591             hardcode_libdir_separator_CXX=:
13592
13593             # Commands to make compiler produce verbose output that lists
13594             # what "hidden" libraries, object files and flags are used when
13595             # linking a shared library.
13596             #
13597             # There doesn't appear to be a way to prevent this compiler from
13598             # explicitly linking system object files so we need to strip them
13599             # from the output so that they don't get included in the library
13600             # dependencies.
13601             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13602             ;;
13603           xl* | mpixl* | bgxl*)
13604             # IBM XL 8.0 on PPC, with GNU ld
13605             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13606             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13607             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13608             if test "x$supports_anon_versioning" = xyes; then
13609               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13610                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13611                 echo "local: *; };" >> $output_objdir/$libname.ver~
13612                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13613             fi
13614             ;;
13615           *)
13616             case `$CC -V 2>&1 | sed 5q` in
13617             *Sun\ C*)
13618               # Sun C++ 5.9
13619               no_undefined_flag_CXX=' -zdefs'
13620               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13621               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'
13622               hardcode_libdir_flag_spec_CXX='-R$libdir'
13623               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13624               compiler_needs_object_CXX=yes
13625
13626               # Not sure whether something based on
13627               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13628               # would be better.
13629               output_verbose_link_cmd='func_echo_all'
13630
13631               # Archives containing C++ object files must be created using
13632               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13633               # necessary to make sure instantiated templates are included
13634               # in the archive.
13635               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13636               ;;
13637             esac
13638             ;;
13639         esac
13640         ;;
13641
13642       lynxos*)
13643         # FIXME: insert proper C++ library support
13644         ld_shlibs_CXX=no
13645         ;;
13646
13647       m88k*)
13648         # FIXME: insert proper C++ library support
13649         ld_shlibs_CXX=no
13650         ;;
13651
13652       mvs*)
13653         case $cc_basename in
13654           cxx*)
13655             # FIXME: insert proper C++ library support
13656             ld_shlibs_CXX=no
13657             ;;
13658           *)
13659             # FIXME: insert proper C++ library support
13660             ld_shlibs_CXX=no
13661             ;;
13662         esac
13663         ;;
13664
13665       netbsd*)
13666         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13667           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13668           wlarc=
13669           hardcode_libdir_flag_spec_CXX='-R$libdir'
13670           hardcode_direct_CXX=yes
13671           hardcode_shlibpath_var_CXX=no
13672         fi
13673         # Workaround some broken pre-1.5 toolchains
13674         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13675         ;;
13676
13677       *nto* | *qnx*)
13678         ld_shlibs_CXX=yes
13679         ;;
13680
13681       openbsd2*)
13682         # C++ shared libraries are fairly broken
13683         ld_shlibs_CXX=no
13684         ;;
13685
13686       openbsd*)
13687         if test -f /usr/libexec/ld.so; then
13688           hardcode_direct_CXX=yes
13689           hardcode_shlibpath_var_CXX=no
13690           hardcode_direct_absolute_CXX=yes
13691           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13692           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13693           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13694             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13695             export_dynamic_flag_spec_CXX='${wl}-E'
13696             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13697           fi
13698           output_verbose_link_cmd=func_echo_all
13699         else
13700           ld_shlibs_CXX=no
13701         fi
13702         ;;
13703
13704       osf3* | osf4* | osf5*)
13705         case $cc_basename in
13706           KCC*)
13707             # Kuck and Associates, Inc. (KAI) C++ Compiler
13708
13709             # KCC will only create a shared library if the output file
13710             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13711             # to its proper name (with version) after linking.
13712             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'
13713
13714             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13715             hardcode_libdir_separator_CXX=:
13716
13717             # Archives containing C++ object files must be created using
13718             # the KAI C++ compiler.
13719             case $host in
13720               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13721               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13722             esac
13723             ;;
13724           RCC*)
13725             # Rational C++ 2.4.1
13726             # FIXME: insert proper C++ library support
13727             ld_shlibs_CXX=no
13728             ;;
13729           cxx*)
13730             case $host in
13731               osf3*)
13732                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13733                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13734                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13735                 ;;
13736               *)
13737                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13738                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13739                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13740                   echo "-hidden">> $lib.exp~
13741                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13742                   $RM $lib.exp'
13743                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13744                 ;;
13745             esac
13746
13747             hardcode_libdir_separator_CXX=:
13748
13749             # Commands to make compiler produce verbose output that lists
13750             # what "hidden" libraries, object files and flags are used when
13751             # linking a shared library.
13752             #
13753             # There doesn't appear to be a way to prevent this compiler from
13754             # explicitly linking system object files so we need to strip them
13755             # from the output so that they don't get included in the library
13756             # dependencies.
13757             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13758             ;;
13759           *)
13760             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13761               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13762               case $host in
13763                 osf3*)
13764                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13765                   ;;
13766                 *)
13767                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13768                   ;;
13769               esac
13770
13771               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13772               hardcode_libdir_separator_CXX=:
13773
13774               # Commands to make compiler produce verbose output that lists
13775               # what "hidden" libraries, object files and flags are used when
13776               # linking a shared library.
13777               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13778
13779             else
13780               # FIXME: insert proper C++ library support
13781               ld_shlibs_CXX=no
13782             fi
13783             ;;
13784         esac
13785         ;;
13786
13787       psos*)
13788         # FIXME: insert proper C++ library support
13789         ld_shlibs_CXX=no
13790         ;;
13791
13792       sunos4*)
13793         case $cc_basename in
13794           CC*)
13795             # Sun C++ 4.x
13796             # FIXME: insert proper C++ library support
13797             ld_shlibs_CXX=no
13798             ;;
13799           lcc*)
13800             # Lucid
13801             # FIXME: insert proper C++ library support
13802             ld_shlibs_CXX=no
13803             ;;
13804           *)
13805             # FIXME: insert proper C++ library support
13806             ld_shlibs_CXX=no
13807             ;;
13808         esac
13809         ;;
13810
13811       solaris*)
13812         case $cc_basename in
13813           CC* | sunCC*)
13814             # Sun C++ 4.2, 5.x and Centerline C++
13815             archive_cmds_need_lc_CXX=yes
13816             no_undefined_flag_CXX=' -zdefs'
13817             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13818             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13819               $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'
13820
13821             hardcode_libdir_flag_spec_CXX='-R$libdir'
13822             hardcode_shlibpath_var_CXX=no
13823             case $host_os in
13824               solaris2.[0-5] | solaris2.[0-5].*) ;;
13825               *)
13826                 # The compiler driver will combine and reorder linker options,
13827                 # but understands `-z linker_flag'.
13828                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13829                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13830                 ;;
13831             esac
13832             link_all_deplibs_CXX=yes
13833
13834             output_verbose_link_cmd='func_echo_all'
13835
13836             # Archives containing C++ object files must be created using
13837             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13838             # necessary to make sure instantiated templates are included
13839             # in the archive.
13840             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13841             ;;
13842           gcx*)
13843             # Green Hills C++ Compiler
13844             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13845
13846             # The C++ compiler must be used to create the archive.
13847             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13848             ;;
13849           *)
13850             # GNU C++ compiler with Solaris linker
13851             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13852               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13853               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13854                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13855                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13856                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13857
13858                 # Commands to make compiler produce verbose output that lists
13859                 # what "hidden" libraries, object files and flags are used when
13860                 # linking a shared library.
13861                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13862               else
13863                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13864                 # platform.
13865                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13866                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13867                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13868
13869                 # Commands to make compiler produce verbose output that lists
13870                 # what "hidden" libraries, object files and flags are used when
13871                 # linking a shared library.
13872                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13873               fi
13874
13875               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13876               case $host_os in
13877                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13878                 *)
13879                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13880                   ;;
13881               esac
13882             fi
13883             ;;
13884         esac
13885         ;;
13886
13887     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13888       no_undefined_flag_CXX='${wl}-z,text'
13889       archive_cmds_need_lc_CXX=no
13890       hardcode_shlibpath_var_CXX=no
13891       runpath_var='LD_RUN_PATH'
13892
13893       case $cc_basename in
13894         CC*)
13895           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13896           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13897           ;;
13898         *)
13899           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13900           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13901           ;;
13902       esac
13903       ;;
13904
13905       sysv5* | sco3.2v5* | sco5v6*)
13906         # Note: We can NOT use -z defs as we might desire, because we do not
13907         # link with -lc, and that would cause any symbols used from libc to
13908         # always be unresolved, which means just about no library would
13909         # ever link correctly.  If we're not using GNU ld we use -z text
13910         # though, which does catch some bad symbols but isn't as heavy-handed
13911         # as -z defs.
13912         no_undefined_flag_CXX='${wl}-z,text'
13913         allow_undefined_flag_CXX='${wl}-z,nodefs'
13914         archive_cmds_need_lc_CXX=no
13915         hardcode_shlibpath_var_CXX=no
13916         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13917         hardcode_libdir_separator_CXX=':'
13918         link_all_deplibs_CXX=yes
13919         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13920         runpath_var='LD_RUN_PATH'
13921
13922         case $cc_basename in
13923           CC*)
13924             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13925             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13926             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13927               '"$old_archive_cmds_CXX"
13928             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13929               '"$reload_cmds_CXX"
13930             ;;
13931           *)
13932             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13933             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13934             ;;
13935         esac
13936       ;;
13937
13938       tandem*)
13939         case $cc_basename in
13940           NCC*)
13941             # NonStop-UX NCC 3.20
13942             # FIXME: insert proper C++ library support
13943             ld_shlibs_CXX=no
13944             ;;
13945           *)
13946             # FIXME: insert proper C++ library support
13947             ld_shlibs_CXX=no
13948             ;;
13949         esac
13950         ;;
13951
13952       vxworks*)
13953         # FIXME: insert proper C++ library support
13954         ld_shlibs_CXX=no
13955         ;;
13956
13957       *)
13958         # FIXME: insert proper C++ library support
13959         ld_shlibs_CXX=no
13960         ;;
13961     esac
13962
13963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13964 $as_echo "$ld_shlibs_CXX" >&6; }
13965     test "$ld_shlibs_CXX" = no && can_build_shared=no
13966
13967     GCC_CXX="$GXX"
13968     LD_CXX="$LD"
13969
13970     ## CAVEAT EMPTOR:
13971     ## There is no encapsulation within the following macros, do not change
13972     ## the running order or otherwise move them around unless you know exactly
13973     ## what you are doing...
13974     # Dependencies to place before and after the object being linked:
13975 predep_objects_CXX=
13976 postdep_objects_CXX=
13977 predeps_CXX=
13978 postdeps_CXX=
13979 compiler_lib_search_path_CXX=
13980
13981 cat > conftest.$ac_ext <<_LT_EOF
13982 class Foo
13983 {
13984 public:
13985   Foo (void) { a = 0; }
13986 private:
13987   int a;
13988 };
13989 _LT_EOF
13990
13991
13992 _lt_libdeps_save_CFLAGS=$CFLAGS
13993 case "$CC $CFLAGS " in #(
13994 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13995 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13996 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13997 esac
13998
13999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14000   (eval $ac_compile) 2>&5
14001   ac_status=$?
14002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14003   test $ac_status = 0; }; then
14004   # Parse the compiler output and extract the necessary
14005   # objects, libraries and library flags.
14006
14007   # Sentinel used to keep track of whether or not we are before
14008   # the conftest object file.
14009   pre_test_object_deps_done=no
14010
14011   for p in `eval "$output_verbose_link_cmd"`; do
14012     case ${prev}${p} in
14013
14014     -L* | -R* | -l*)
14015        # Some compilers place space between "-{L,R}" and the path.
14016        # Remove the space.
14017        if test $p = "-L" ||
14018           test $p = "-R"; then
14019          prev=$p
14020          continue
14021        fi
14022
14023        # Expand the sysroot to ease extracting the directories later.
14024        if test -z "$prev"; then
14025          case $p in
14026          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14027          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14028          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14029          esac
14030        fi
14031        case $p in
14032        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14033        esac
14034        if test "$pre_test_object_deps_done" = no; then
14035          case ${prev} in
14036          -L | -R)
14037            # Internal compiler library paths should come after those
14038            # provided the user.  The postdeps already come after the
14039            # user supplied libs so there is no need to process them.
14040            if test -z "$compiler_lib_search_path_CXX"; then
14041              compiler_lib_search_path_CXX="${prev}${p}"
14042            else
14043              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14044            fi
14045            ;;
14046          # The "-l" case would never come before the object being
14047          # linked, so don't bother handling this case.
14048          esac
14049        else
14050          if test -z "$postdeps_CXX"; then
14051            postdeps_CXX="${prev}${p}"
14052          else
14053            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14054          fi
14055        fi
14056        prev=
14057        ;;
14058
14059     *.lto.$objext) ;; # Ignore GCC LTO objects
14060     *.$objext)
14061        # This assumes that the test object file only shows up
14062        # once in the compiler output.
14063        if test "$p" = "conftest.$objext"; then
14064          pre_test_object_deps_done=yes
14065          continue
14066        fi
14067
14068        if test "$pre_test_object_deps_done" = no; then
14069          if test -z "$predep_objects_CXX"; then
14070            predep_objects_CXX="$p"
14071          else
14072            predep_objects_CXX="$predep_objects_CXX $p"
14073          fi
14074        else
14075          if test -z "$postdep_objects_CXX"; then
14076            postdep_objects_CXX="$p"
14077          else
14078            postdep_objects_CXX="$postdep_objects_CXX $p"
14079          fi
14080        fi
14081        ;;
14082
14083     *) ;; # Ignore the rest.
14084
14085     esac
14086   done
14087
14088   # Clean up.
14089   rm -f a.out a.exe
14090 else
14091   echo "libtool.m4: error: problem compiling CXX test program"
14092 fi
14093
14094 $RM -f confest.$objext
14095 CFLAGS=$_lt_libdeps_save_CFLAGS
14096
14097 # PORTME: override above test on systems where it is broken
14098 case $host_os in
14099 interix[3-9]*)
14100   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14101   # hack all around it, let's just trust "g++" to DTRT.
14102   predep_objects_CXX=
14103   postdep_objects_CXX=
14104   postdeps_CXX=
14105   ;;
14106
14107 linux*)
14108   case `$CC -V 2>&1 | sed 5q` in
14109   *Sun\ C*)
14110     # Sun C++ 5.9
14111
14112     # The more standards-conforming stlport4 library is
14113     # incompatible with the Cstd library. Avoid specifying
14114     # it if it's in CXXFLAGS. Ignore libCrun as
14115     # -library=stlport4 depends on it.
14116     case " $CXX $CXXFLAGS " in
14117     *" -library=stlport4 "*)
14118       solaris_use_stlport4=yes
14119       ;;
14120     esac
14121
14122     if test "$solaris_use_stlport4" != yes; then
14123       postdeps_CXX='-library=Cstd -library=Crun'
14124     fi
14125     ;;
14126   esac
14127   ;;
14128
14129 solaris*)
14130   case $cc_basename in
14131   CC* | sunCC*)
14132     # The more standards-conforming stlport4 library is
14133     # incompatible with the Cstd library. Avoid specifying
14134     # it if it's in CXXFLAGS. Ignore libCrun as
14135     # -library=stlport4 depends on it.
14136     case " $CXX $CXXFLAGS " in
14137     *" -library=stlport4 "*)
14138       solaris_use_stlport4=yes
14139       ;;
14140     esac
14141
14142     # Adding this requires a known-good setup of shared libraries for
14143     # Sun compiler versions before 5.6, else PIC objects from an old
14144     # archive will be linked into the output, leading to subtle bugs.
14145     if test "$solaris_use_stlport4" != yes; then
14146       postdeps_CXX='-library=Cstd -library=Crun'
14147     fi
14148     ;;
14149   esac
14150   ;;
14151 esac
14152
14153
14154 case " $postdeps_CXX " in
14155 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14156 esac
14157  compiler_lib_search_dirs_CXX=
14158 if test -n "${compiler_lib_search_path_CXX}"; then
14159  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14160 fi
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192     lt_prog_compiler_wl_CXX=
14193 lt_prog_compiler_pic_CXX=
14194 lt_prog_compiler_static_CXX=
14195
14196
14197   # C++ specific cases for pic, static, wl, etc.
14198   if test "$GXX" = yes; then
14199     lt_prog_compiler_wl_CXX='-Wl,'
14200     lt_prog_compiler_static_CXX='-static'
14201
14202     case $host_os in
14203     aix*)
14204       # All AIX code is PIC.
14205       if test "$host_cpu" = ia64; then
14206         # AIX 5 now supports IA64 processor
14207         lt_prog_compiler_static_CXX='-Bstatic'
14208       fi
14209       ;;
14210
14211     amigaos*)
14212       case $host_cpu in
14213       powerpc)
14214             # see comment about AmigaOS4 .so support
14215             lt_prog_compiler_pic_CXX='-fPIC'
14216         ;;
14217       m68k)
14218             # FIXME: we need at least 68020 code to build shared libraries, but
14219             # adding the `-m68020' flag to GCC prevents building anything better,
14220             # like `-m68040'.
14221             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14222         ;;
14223       esac
14224       ;;
14225
14226     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14227       # PIC is the default for these OSes.
14228       ;;
14229     mingw* | cygwin* | os2* | pw32* | cegcc*)
14230       # This hack is so that the source file can tell whether it is being
14231       # built for inclusion in a dll (and should export symbols for example).
14232       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14233       # (--disable-auto-import) libraries
14234       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14235       ;;
14236     darwin* | rhapsody*)
14237       # PIC is the default on this platform
14238       # Common symbols not allowed in MH_DYLIB files
14239       lt_prog_compiler_pic_CXX='-fno-common'
14240       ;;
14241     *djgpp*)
14242       # DJGPP does not support shared libraries at all
14243       lt_prog_compiler_pic_CXX=
14244       ;;
14245     haiku*)
14246       # PIC is the default for Haiku.
14247       # The "-static" flag exists, but is broken.
14248       lt_prog_compiler_static_CXX=
14249       ;;
14250     interix[3-9]*)
14251       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14252       # Instead, we relocate shared libraries at runtime.
14253       ;;
14254     sysv4*MP*)
14255       if test -d /usr/nec; then
14256         lt_prog_compiler_pic_CXX=-Kconform_pic
14257       fi
14258       ;;
14259     hpux*)
14260       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14261       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14262       # sets the default TLS model and affects inlining.
14263       case $host_cpu in
14264       hppa*64*)
14265         ;;
14266       *)
14267         lt_prog_compiler_pic_CXX='-fPIC'
14268         ;;
14269       esac
14270       ;;
14271     *qnx* | *nto*)
14272       # QNX uses GNU C++, but need to define -shared option too, otherwise
14273       # it will coredump.
14274       lt_prog_compiler_pic_CXX='-fPIC -shared'
14275       ;;
14276     *)
14277       lt_prog_compiler_pic_CXX='-fPIC'
14278       ;;
14279     esac
14280   else
14281     case $host_os in
14282       aix[4-9]*)
14283         # All AIX code is PIC.
14284         if test "$host_cpu" = ia64; then
14285           # AIX 5 now supports IA64 processor
14286           lt_prog_compiler_static_CXX='-Bstatic'
14287         else
14288           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14289         fi
14290         ;;
14291       chorus*)
14292         case $cc_basename in
14293         cxch68*)
14294           # Green Hills C++ Compiler
14295           # _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"
14296           ;;
14297         esac
14298         ;;
14299       mingw* | cygwin* | os2* | pw32* | cegcc*)
14300         # This hack is so that the source file can tell whether it is being
14301         # built for inclusion in a dll (and should export symbols for example).
14302         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14303         ;;
14304       dgux*)
14305         case $cc_basename in
14306           ec++*)
14307             lt_prog_compiler_pic_CXX='-KPIC'
14308             ;;
14309           ghcx*)
14310             # Green Hills C++ Compiler
14311             lt_prog_compiler_pic_CXX='-pic'
14312             ;;
14313           *)
14314             ;;
14315         esac
14316         ;;
14317       freebsd* | dragonfly*)
14318         # FreeBSD uses GNU C++
14319         ;;
14320       hpux9* | hpux10* | hpux11*)
14321         case $cc_basename in
14322           CC*)
14323             lt_prog_compiler_wl_CXX='-Wl,'
14324             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14325             if test "$host_cpu" != ia64; then
14326               lt_prog_compiler_pic_CXX='+Z'
14327             fi
14328             ;;
14329           aCC*)
14330             lt_prog_compiler_wl_CXX='-Wl,'
14331             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14332             case $host_cpu in
14333             hppa*64*|ia64*)
14334               # +Z the default
14335               ;;
14336             *)
14337               lt_prog_compiler_pic_CXX='+Z'
14338               ;;
14339             esac
14340             ;;
14341           *)
14342             ;;
14343         esac
14344         ;;
14345       interix*)
14346         # This is c89, which is MS Visual C++ (no shared libs)
14347         # Anyone wants to do a port?
14348         ;;
14349       irix5* | irix6* | nonstopux*)
14350         case $cc_basename in
14351           CC*)
14352             lt_prog_compiler_wl_CXX='-Wl,'
14353             lt_prog_compiler_static_CXX='-non_shared'
14354             # CC pic flag -KPIC is the default.
14355             ;;
14356           *)
14357             ;;
14358         esac
14359         ;;
14360       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14361         case $cc_basename in
14362           KCC*)
14363             # KAI C++ Compiler
14364             lt_prog_compiler_wl_CXX='--backend -Wl,'
14365             lt_prog_compiler_pic_CXX='-fPIC'
14366             ;;
14367           ecpc* )
14368             # old Intel C++ for x86_64 which still supported -KPIC.
14369             lt_prog_compiler_wl_CXX='-Wl,'
14370             lt_prog_compiler_pic_CXX='-KPIC'
14371             lt_prog_compiler_static_CXX='-static'
14372             ;;
14373           icpc* )
14374             # Intel C++, used to be incompatible with GCC.
14375             # ICC 10 doesn't accept -KPIC any more.
14376             lt_prog_compiler_wl_CXX='-Wl,'
14377             lt_prog_compiler_pic_CXX='-fPIC'
14378             lt_prog_compiler_static_CXX='-static'
14379             ;;
14380           pgCC* | pgcpp*)
14381             # Portland Group C++ compiler
14382             lt_prog_compiler_wl_CXX='-Wl,'
14383             lt_prog_compiler_pic_CXX='-fpic'
14384             lt_prog_compiler_static_CXX='-Bstatic'
14385             ;;
14386           cxx*)
14387             # Compaq C++
14388             # Make sure the PIC flag is empty.  It appears that all Alpha
14389             # Linux and Compaq Tru64 Unix objects are PIC.
14390             lt_prog_compiler_pic_CXX=
14391             lt_prog_compiler_static_CXX='-non_shared'
14392             ;;
14393           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14394             # IBM XL 8.0, 9.0 on PPC and BlueGene
14395             lt_prog_compiler_wl_CXX='-Wl,'
14396             lt_prog_compiler_pic_CXX='-qpic'
14397             lt_prog_compiler_static_CXX='-qstaticlink'
14398             ;;
14399           *)
14400             case `$CC -V 2>&1 | sed 5q` in
14401             *Sun\ C*)
14402               # Sun C++ 5.9
14403               lt_prog_compiler_pic_CXX='-KPIC'
14404               lt_prog_compiler_static_CXX='-Bstatic'
14405               lt_prog_compiler_wl_CXX='-Qoption ld '
14406               ;;
14407             esac
14408             ;;
14409         esac
14410         ;;
14411       lynxos*)
14412         ;;
14413       m88k*)
14414         ;;
14415       mvs*)
14416         case $cc_basename in
14417           cxx*)
14418             lt_prog_compiler_pic_CXX='-W c,exportall'
14419             ;;
14420           *)
14421             ;;
14422         esac
14423         ;;
14424       netbsd* | netbsdelf*-gnu)
14425         ;;
14426       *qnx* | *nto*)
14427         # QNX uses GNU C++, but need to define -shared option too, otherwise
14428         # it will coredump.
14429         lt_prog_compiler_pic_CXX='-fPIC -shared'
14430         ;;
14431       osf3* | osf4* | osf5*)
14432         case $cc_basename in
14433           KCC*)
14434             lt_prog_compiler_wl_CXX='--backend -Wl,'
14435             ;;
14436           RCC*)
14437             # Rational C++ 2.4.1
14438             lt_prog_compiler_pic_CXX='-pic'
14439             ;;
14440           cxx*)
14441             # Digital/Compaq C++
14442             lt_prog_compiler_wl_CXX='-Wl,'
14443             # Make sure the PIC flag is empty.  It appears that all Alpha
14444             # Linux and Compaq Tru64 Unix objects are PIC.
14445             lt_prog_compiler_pic_CXX=
14446             lt_prog_compiler_static_CXX='-non_shared'
14447             ;;
14448           *)
14449             ;;
14450         esac
14451         ;;
14452       psos*)
14453         ;;
14454       solaris*)
14455         case $cc_basename in
14456           CC* | sunCC*)
14457             # Sun C++ 4.2, 5.x and Centerline C++
14458             lt_prog_compiler_pic_CXX='-KPIC'
14459             lt_prog_compiler_static_CXX='-Bstatic'
14460             lt_prog_compiler_wl_CXX='-Qoption ld '
14461             ;;
14462           gcx*)
14463             # Green Hills C++ Compiler
14464             lt_prog_compiler_pic_CXX='-PIC'
14465             ;;
14466           *)
14467             ;;
14468         esac
14469         ;;
14470       sunos4*)
14471         case $cc_basename in
14472           CC*)
14473             # Sun C++ 4.x
14474             lt_prog_compiler_pic_CXX='-pic'
14475             lt_prog_compiler_static_CXX='-Bstatic'
14476             ;;
14477           lcc*)
14478             # Lucid
14479             lt_prog_compiler_pic_CXX='-pic'
14480             ;;
14481           *)
14482             ;;
14483         esac
14484         ;;
14485       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14486         case $cc_basename in
14487           CC*)
14488             lt_prog_compiler_wl_CXX='-Wl,'
14489             lt_prog_compiler_pic_CXX='-KPIC'
14490             lt_prog_compiler_static_CXX='-Bstatic'
14491             ;;
14492         esac
14493         ;;
14494       tandem*)
14495         case $cc_basename in
14496           NCC*)
14497             # NonStop-UX NCC 3.20
14498             lt_prog_compiler_pic_CXX='-KPIC'
14499             ;;
14500           *)
14501             ;;
14502         esac
14503         ;;
14504       vxworks*)
14505         ;;
14506       *)
14507         lt_prog_compiler_can_build_shared_CXX=no
14508         ;;
14509     esac
14510   fi
14511
14512 case $host_os in
14513   # For platforms which do not support PIC, -DPIC is meaningless:
14514   *djgpp*)
14515     lt_prog_compiler_pic_CXX=
14516     ;;
14517   *)
14518     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14519     ;;
14520 esac
14521
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14523 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14524 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14525   $as_echo_n "(cached) " >&6
14526 else
14527   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14528 fi
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14530 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14531 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14532
14533 #
14534 # Check to make sure the PIC flag actually works.
14535 #
14536 if test -n "$lt_prog_compiler_pic_CXX"; then
14537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14538 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14539 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14540   $as_echo_n "(cached) " >&6
14541 else
14542   lt_cv_prog_compiler_pic_works_CXX=no
14543    ac_outfile=conftest.$ac_objext
14544    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14545    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14546    # Insert the option either (1) after the last *FLAGS variable, or
14547    # (2) before a word containing "conftest.", or (3) at the end.
14548    # Note that $ac_compile itself does not contain backslashes and begins
14549    # with a dollar sign (not a hyphen), so the echo should work correctly.
14550    # The option is referenced via a variable to avoid confusing sed.
14551    lt_compile=`echo "$ac_compile" | $SED \
14552    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14553    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14554    -e 's:$: $lt_compiler_flag:'`
14555    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14556    (eval "$lt_compile" 2>conftest.err)
14557    ac_status=$?
14558    cat conftest.err >&5
14559    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560    if (exit $ac_status) && test -s "$ac_outfile"; then
14561      # The compiler can only warn and ignore the option if not recognized
14562      # So say no if there are warnings other than the usual output.
14563      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14564      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14565      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14566        lt_cv_prog_compiler_pic_works_CXX=yes
14567      fi
14568    fi
14569    $RM conftest*
14570
14571 fi
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14573 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14574
14575 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14576     case $lt_prog_compiler_pic_CXX in
14577      "" | " "*) ;;
14578      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14579      esac
14580 else
14581     lt_prog_compiler_pic_CXX=
14582      lt_prog_compiler_can_build_shared_CXX=no
14583 fi
14584
14585 fi
14586
14587
14588
14589
14590
14591 #
14592 # Check to make sure the static flag actually works.
14593 #
14594 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14596 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14597 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14598   $as_echo_n "(cached) " >&6
14599 else
14600   lt_cv_prog_compiler_static_works_CXX=no
14601    save_LDFLAGS="$LDFLAGS"
14602    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14603    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14604    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14605      # The linker can only warn and ignore the option if not recognized
14606      # So say no if there are warnings
14607      if test -s conftest.err; then
14608        # Append any errors to the config.log.
14609        cat conftest.err 1>&5
14610        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14611        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14612        if diff conftest.exp conftest.er2 >/dev/null; then
14613          lt_cv_prog_compiler_static_works_CXX=yes
14614        fi
14615      else
14616        lt_cv_prog_compiler_static_works_CXX=yes
14617      fi
14618    fi
14619    $RM -r conftest*
14620    LDFLAGS="$save_LDFLAGS"
14621
14622 fi
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14624 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14625
14626 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14627     :
14628 else
14629     lt_prog_compiler_static_CXX=
14630 fi
14631
14632
14633
14634
14635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14636 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14637 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14638   $as_echo_n "(cached) " >&6
14639 else
14640   lt_cv_prog_compiler_c_o_CXX=no
14641    $RM -r conftest 2>/dev/null
14642    mkdir conftest
14643    cd conftest
14644    mkdir out
14645    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14646
14647    lt_compiler_flag="-o out/conftest2.$ac_objext"
14648    # Insert the option either (1) after the last *FLAGS variable, or
14649    # (2) before a word containing "conftest.", or (3) at the end.
14650    # Note that $ac_compile itself does not contain backslashes and begins
14651    # with a dollar sign (not a hyphen), so the echo should work correctly.
14652    lt_compile=`echo "$ac_compile" | $SED \
14653    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14654    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14655    -e 's:$: $lt_compiler_flag:'`
14656    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14657    (eval "$lt_compile" 2>out/conftest.err)
14658    ac_status=$?
14659    cat out/conftest.err >&5
14660    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14662    then
14663      # The compiler can only warn and ignore the option if not recognized
14664      # So say no if there are warnings
14665      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14666      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14667      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14668        lt_cv_prog_compiler_c_o_CXX=yes
14669      fi
14670    fi
14671    chmod u+w . 2>&5
14672    $RM conftest*
14673    # SGI C++ compiler will create directory out/ii_files/ for
14674    # template instantiation
14675    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14676    $RM out/* && rmdir out
14677    cd ..
14678    $RM -r conftest
14679    $RM conftest*
14680
14681 fi
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14683 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14684
14685
14686
14687     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14688 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14689 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14690   $as_echo_n "(cached) " >&6
14691 else
14692   lt_cv_prog_compiler_c_o_CXX=no
14693    $RM -r conftest 2>/dev/null
14694    mkdir conftest
14695    cd conftest
14696    mkdir out
14697    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14698
14699    lt_compiler_flag="-o out/conftest2.$ac_objext"
14700    # Insert the option either (1) after the last *FLAGS variable, or
14701    # (2) before a word containing "conftest.", or (3) at the end.
14702    # Note that $ac_compile itself does not contain backslashes and begins
14703    # with a dollar sign (not a hyphen), so the echo should work correctly.
14704    lt_compile=`echo "$ac_compile" | $SED \
14705    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14706    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14707    -e 's:$: $lt_compiler_flag:'`
14708    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14709    (eval "$lt_compile" 2>out/conftest.err)
14710    ac_status=$?
14711    cat out/conftest.err >&5
14712    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14714    then
14715      # The compiler can only warn and ignore the option if not recognized
14716      # So say no if there are warnings
14717      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14718      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14719      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14720        lt_cv_prog_compiler_c_o_CXX=yes
14721      fi
14722    fi
14723    chmod u+w . 2>&5
14724    $RM conftest*
14725    # SGI C++ compiler will create directory out/ii_files/ for
14726    # template instantiation
14727    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14728    $RM out/* && rmdir out
14729    cd ..
14730    $RM -r conftest
14731    $RM conftest*
14732
14733 fi
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14735 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14736
14737
14738
14739
14740 hard_links="nottested"
14741 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14742   # do not overwrite the value of need_locks provided by the user
14743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14744 $as_echo_n "checking if we can lock with hard links... " >&6; }
14745   hard_links=yes
14746   $RM conftest*
14747   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14748   touch conftest.a
14749   ln conftest.a conftest.b 2>&5 || hard_links=no
14750   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14752 $as_echo "$hard_links" >&6; }
14753   if test "$hard_links" = no; then
14754     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14755 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14756     need_locks=warn
14757   fi
14758 else
14759   need_locks=no
14760 fi
14761
14762
14763
14764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14765 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14766
14767   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14768   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14769   case $host_os in
14770   aix[4-9]*)
14771     # If we're using GNU nm, then we don't want the "-C" option.
14772     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14773     # Also, AIX nm treats weak defined symbols like other global defined
14774     # symbols, whereas GNU nm marks them as "W".
14775     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14776       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14777     else
14778       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'
14779     fi
14780     ;;
14781   pw32*)
14782     export_symbols_cmds_CXX="$ltdll_cmds"
14783     ;;
14784   cygwin* | mingw* | cegcc*)
14785     case $cc_basename in
14786     cl*)
14787       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14788       ;;
14789     *)
14790       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14791       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14792       ;;
14793     esac
14794     ;;
14795   linux* | k*bsd*-gnu | gnu*)
14796     link_all_deplibs_CXX=no
14797     ;;
14798   *)
14799     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14800     ;;
14801   esac
14802
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14804 $as_echo "$ld_shlibs_CXX" >&6; }
14805 test "$ld_shlibs_CXX" = no && can_build_shared=no
14806
14807 with_gnu_ld_CXX=$with_gnu_ld
14808
14809
14810
14811
14812
14813
14814 #
14815 # Do we need to explicitly link libc?
14816 #
14817 case "x$archive_cmds_need_lc_CXX" in
14818 x|xyes)
14819   # Assume -lc should be added
14820   archive_cmds_need_lc_CXX=yes
14821
14822   if test "$enable_shared" = yes && test "$GCC" = yes; then
14823     case $archive_cmds_CXX in
14824     *'~'*)
14825       # FIXME: we may have to deal with multi-command sequences.
14826       ;;
14827     '$CC '*)
14828       # Test whether the compiler implicitly links with -lc since on some
14829       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14830       # to ld, don't add -lc before -lgcc.
14831       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14832 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14833 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14834   $as_echo_n "(cached) " >&6
14835 else
14836   $RM conftest*
14837         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14838
14839         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14840   (eval $ac_compile) 2>&5
14841   ac_status=$?
14842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14843   test $ac_status = 0; } 2>conftest.err; then
14844           soname=conftest
14845           lib=conftest
14846           libobjs=conftest.$ac_objext
14847           deplibs=
14848           wl=$lt_prog_compiler_wl_CXX
14849           pic_flag=$lt_prog_compiler_pic_CXX
14850           compiler_flags=-v
14851           linker_flags=-v
14852           verstring=
14853           output_objdir=.
14854           libname=conftest
14855           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14856           allow_undefined_flag_CXX=
14857           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14858   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14859   ac_status=$?
14860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14861   test $ac_status = 0; }
14862           then
14863             lt_cv_archive_cmds_need_lc_CXX=no
14864           else
14865             lt_cv_archive_cmds_need_lc_CXX=yes
14866           fi
14867           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14868         else
14869           cat conftest.err 1>&5
14870         fi
14871         $RM conftest*
14872
14873 fi
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14875 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14876       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14877       ;;
14878     esac
14879   fi
14880   ;;
14881 esac
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14945 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14946
14947 library_names_spec=
14948 libname_spec='lib$name'
14949 soname_spec=
14950 shrext_cmds=".so"
14951 postinstall_cmds=
14952 postuninstall_cmds=
14953 finish_cmds=
14954 finish_eval=
14955 shlibpath_var=
14956 shlibpath_overrides_runpath=unknown
14957 version_type=none
14958 dynamic_linker="$host_os ld.so"
14959 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14960 need_lib_prefix=unknown
14961 hardcode_into_libs=no
14962
14963 # when you set need_version to no, make sure it does not cause -set_version
14964 # flags to be left without arguments
14965 need_version=unknown
14966
14967 case $host_os in
14968 aix3*)
14969   version_type=linux # correct to gnu/linux during the next big refactor
14970   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14971   shlibpath_var=LIBPATH
14972
14973   # AIX 3 has no versioning support, so we append a major version to the name.
14974   soname_spec='${libname}${release}${shared_ext}$major'
14975   ;;
14976
14977 aix[4-9]*)
14978   version_type=linux # correct to gnu/linux during the next big refactor
14979   need_lib_prefix=no
14980   need_version=no
14981   hardcode_into_libs=yes
14982   if test "$host_cpu" = ia64; then
14983     # AIX 5 supports IA64
14984     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14985     shlibpath_var=LD_LIBRARY_PATH
14986   else
14987     # With GCC up to 2.95.x, collect2 would create an import file
14988     # for dependence libraries.  The import file would start with
14989     # the line `#! .'.  This would cause the generated library to
14990     # depend on `.', always an invalid library.  This was fixed in
14991     # development snapshots of GCC prior to 3.0.
14992     case $host_os in
14993       aix4 | aix4.[01] | aix4.[01].*)
14994       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14995            echo ' yes '
14996            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14997         :
14998       else
14999         can_build_shared=no
15000       fi
15001       ;;
15002     esac
15003     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15004     # soname into executable. Probably we can add versioning support to
15005     # collect2, so additional links can be useful in future.
15006     if test "$aix_use_runtimelinking" = yes; then
15007       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15008       # instead of lib<name>.a to let people know that these are not
15009       # typical AIX shared libraries.
15010       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011     else
15012       # We preserve .a as extension for shared libraries through AIX4.2
15013       # and later when we are not doing run time linking.
15014       library_names_spec='${libname}${release}.a $libname.a'
15015       soname_spec='${libname}${release}${shared_ext}$major'
15016     fi
15017     shlibpath_var=LIBPATH
15018   fi
15019   ;;
15020
15021 amigaos*)
15022   case $host_cpu in
15023   powerpc)
15024     # Since July 2007 AmigaOS4 officially supports .so libraries.
15025     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027     ;;
15028   m68k)
15029     library_names_spec='$libname.ixlibrary $libname.a'
15030     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15031     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15032     ;;
15033   esac
15034   ;;
15035
15036 beos*)
15037   library_names_spec='${libname}${shared_ext}'
15038   dynamic_linker="$host_os ld.so"
15039   shlibpath_var=LIBRARY_PATH
15040   ;;
15041
15042 bsdi[45]*)
15043   version_type=linux # correct to gnu/linux during the next big refactor
15044   need_version=no
15045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15046   soname_spec='${libname}${release}${shared_ext}$major'
15047   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15048   shlibpath_var=LD_LIBRARY_PATH
15049   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15050   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15051   # the default ld.so.conf also contains /usr/contrib/lib and
15052   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15053   # libtool to hard-code these into programs
15054   ;;
15055
15056 cygwin* | mingw* | pw32* | cegcc*)
15057   version_type=windows
15058   shrext_cmds=".dll"
15059   need_version=no
15060   need_lib_prefix=no
15061
15062   case $GCC,$cc_basename in
15063   yes,*)
15064     # gcc
15065     library_names_spec='$libname.dll.a'
15066     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15067     postinstall_cmds='base_file=`basename \${file}`~
15068       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15069       dldir=$destdir/`dirname \$dlpath`~
15070       test -d \$dldir || mkdir -p \$dldir~
15071       $install_prog $dir/$dlname \$dldir/$dlname~
15072       chmod a+x \$dldir/$dlname~
15073       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15074         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15075       fi'
15076     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15077       dlpath=$dir/\$dldll~
15078        $RM \$dlpath'
15079     shlibpath_overrides_runpath=yes
15080
15081     case $host_os in
15082     cygwin*)
15083       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15084       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15085
15086       ;;
15087     mingw* | cegcc*)
15088       # MinGW DLLs use traditional 'lib' prefix
15089       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15090       ;;
15091     pw32*)
15092       # pw32 DLLs use 'pw' prefix rather than 'lib'
15093       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15094       ;;
15095     esac
15096     dynamic_linker='Win32 ld.exe'
15097     ;;
15098
15099   *,cl*)
15100     # Native MSVC
15101     libname_spec='$name'
15102     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15103     library_names_spec='${libname}.dll.lib'
15104
15105     case $build_os in
15106     mingw*)
15107       sys_lib_search_path_spec=
15108       lt_save_ifs=$IFS
15109       IFS=';'
15110       for lt_path in $LIB
15111       do
15112         IFS=$lt_save_ifs
15113         # Let DOS variable expansion print the short 8.3 style file name.
15114         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15115         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15116       done
15117       IFS=$lt_save_ifs
15118       # Convert to MSYS style.
15119       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15120       ;;
15121     cygwin*)
15122       # Convert to unix form, then to dos form, then back to unix form
15123       # but this time dos style (no spaces!) so that the unix form looks
15124       # like /cygdrive/c/PROGRA~1:/cygdr...
15125       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15126       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15127       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15128       ;;
15129     *)
15130       sys_lib_search_path_spec="$LIB"
15131       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15132         # It is most probably a Windows format PATH.
15133         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15134       else
15135         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15136       fi
15137       # FIXME: find the short name or the path components, as spaces are
15138       # common. (e.g. "Program Files" -> "PROGRA~1")
15139       ;;
15140     esac
15141
15142     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15143     postinstall_cmds='base_file=`basename \${file}`~
15144       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15145       dldir=$destdir/`dirname \$dlpath`~
15146       test -d \$dldir || mkdir -p \$dldir~
15147       $install_prog $dir/$dlname \$dldir/$dlname'
15148     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15149       dlpath=$dir/\$dldll~
15150        $RM \$dlpath'
15151     shlibpath_overrides_runpath=yes
15152     dynamic_linker='Win32 link.exe'
15153     ;;
15154
15155   *)
15156     # Assume MSVC wrapper
15157     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15158     dynamic_linker='Win32 ld.exe'
15159     ;;
15160   esac
15161   # FIXME: first we should search . and the directory the executable is in
15162   shlibpath_var=PATH
15163   ;;
15164
15165 darwin* | rhapsody*)
15166   dynamic_linker="$host_os dyld"
15167   version_type=darwin
15168   need_lib_prefix=no
15169   need_version=no
15170   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15171   soname_spec='${libname}${release}${major}$shared_ext'
15172   shlibpath_overrides_runpath=yes
15173   shlibpath_var=DYLD_LIBRARY_PATH
15174   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15175
15176   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15177   ;;
15178
15179 dgux*)
15180   version_type=linux # correct to gnu/linux during the next big refactor
15181   need_lib_prefix=no
15182   need_version=no
15183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15184   soname_spec='${libname}${release}${shared_ext}$major'
15185   shlibpath_var=LD_LIBRARY_PATH
15186   ;;
15187
15188 freebsd* | dragonfly*)
15189   # DragonFly does not have aout.  When/if they implement a new
15190   # versioning mechanism, adjust this.
15191   if test -x /usr/bin/objformat; then
15192     objformat=`/usr/bin/objformat`
15193   else
15194     case $host_os in
15195     freebsd[23].*) objformat=aout ;;
15196     *) objformat=elf ;;
15197     esac
15198   fi
15199   version_type=freebsd-$objformat
15200   case $version_type in
15201     freebsd-elf*)
15202       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15203       need_version=no
15204       need_lib_prefix=no
15205       ;;
15206     freebsd-*)
15207       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15208       need_version=yes
15209       ;;
15210   esac
15211   shlibpath_var=LD_LIBRARY_PATH
15212   case $host_os in
15213   freebsd2.*)
15214     shlibpath_overrides_runpath=yes
15215     ;;
15216   freebsd3.[01]* | freebsdelf3.[01]*)
15217     shlibpath_overrides_runpath=yes
15218     hardcode_into_libs=yes
15219     ;;
15220   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15221   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15222     shlibpath_overrides_runpath=no
15223     hardcode_into_libs=yes
15224     ;;
15225   *) # from 4.6 on, and DragonFly
15226     shlibpath_overrides_runpath=yes
15227     hardcode_into_libs=yes
15228     ;;
15229   esac
15230   ;;
15231
15232 haiku*)
15233   version_type=linux # correct to gnu/linux during the next big refactor
15234   need_lib_prefix=no
15235   need_version=no
15236   dynamic_linker="$host_os runtime_loader"
15237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15238   soname_spec='${libname}${release}${shared_ext}$major'
15239   shlibpath_var=LIBRARY_PATH
15240   shlibpath_overrides_runpath=yes
15241   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15242   hardcode_into_libs=yes
15243   ;;
15244
15245 hpux9* | hpux10* | hpux11*)
15246   # Give a soname corresponding to the major version so that dld.sl refuses to
15247   # link against other versions.
15248   version_type=sunos
15249   need_lib_prefix=no
15250   need_version=no
15251   case $host_cpu in
15252   ia64*)
15253     shrext_cmds='.so'
15254     hardcode_into_libs=yes
15255     dynamic_linker="$host_os dld.so"
15256     shlibpath_var=LD_LIBRARY_PATH
15257     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259     soname_spec='${libname}${release}${shared_ext}$major'
15260     if test "X$HPUX_IA64_MODE" = X32; then
15261       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15262     else
15263       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15264     fi
15265     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15266     ;;
15267   hppa*64*)
15268     shrext_cmds='.sl'
15269     hardcode_into_libs=yes
15270     dynamic_linker="$host_os dld.sl"
15271     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15272     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15273     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274     soname_spec='${libname}${release}${shared_ext}$major'
15275     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15276     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15277     ;;
15278   *)
15279     shrext_cmds='.sl'
15280     dynamic_linker="$host_os dld.sl"
15281     shlibpath_var=SHLIB_PATH
15282     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284     soname_spec='${libname}${release}${shared_ext}$major'
15285     ;;
15286   esac
15287   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15288   postinstall_cmds='chmod 555 $lib'
15289   # or fails outright, so override atomically:
15290   install_override_mode=555
15291   ;;
15292
15293 interix[3-9]*)
15294   version_type=linux # correct to gnu/linux during the next big refactor
15295   need_lib_prefix=no
15296   need_version=no
15297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15298   soname_spec='${libname}${release}${shared_ext}$major'
15299   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15300   shlibpath_var=LD_LIBRARY_PATH
15301   shlibpath_overrides_runpath=no
15302   hardcode_into_libs=yes
15303   ;;
15304
15305 irix5* | irix6* | nonstopux*)
15306   case $host_os in
15307     nonstopux*) version_type=nonstopux ;;
15308     *)
15309         if test "$lt_cv_prog_gnu_ld" = yes; then
15310                 version_type=linux # correct to gnu/linux during the next big refactor
15311         else
15312                 version_type=irix
15313         fi ;;
15314   esac
15315   need_lib_prefix=no
15316   need_version=no
15317   soname_spec='${libname}${release}${shared_ext}$major'
15318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15319   case $host_os in
15320   irix5* | nonstopux*)
15321     libsuff= shlibsuff=
15322     ;;
15323   *)
15324     case $LD in # libtool.m4 will add one of these switches to LD
15325     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15326       libsuff= shlibsuff= libmagic=32-bit;;
15327     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15328       libsuff=32 shlibsuff=N32 libmagic=N32;;
15329     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15330       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15331     *) libsuff= shlibsuff= libmagic=never-match;;
15332     esac
15333     ;;
15334   esac
15335   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15336   shlibpath_overrides_runpath=no
15337   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15338   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15339   hardcode_into_libs=yes
15340   ;;
15341
15342 # No shared lib support for Linux oldld, aout, or coff.
15343 linux*oldld* | linux*aout* | linux*coff*)
15344   dynamic_linker=no
15345   ;;
15346
15347 # This must be glibc/ELF.
15348 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15349   version_type=linux # correct to gnu/linux during the next big refactor
15350   need_lib_prefix=no
15351   need_version=no
15352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15353   soname_spec='${libname}${release}${shared_ext}$major'
15354   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15355   shlibpath_var=LD_LIBRARY_PATH
15356   shlibpath_overrides_runpath=no
15357
15358   # Some binutils ld are patched to set DT_RUNPATH
15359   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15360   $as_echo_n "(cached) " >&6
15361 else
15362   lt_cv_shlibpath_overrides_runpath=no
15363     save_LDFLAGS=$LDFLAGS
15364     save_libdir=$libdir
15365     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15366          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15367     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h.  */
15369
15370 int
15371 main ()
15372 {
15373
15374   ;
15375   return 0;
15376 }
15377 _ACEOF
15378 if ac_fn_cxx_try_link "$LINENO"; then :
15379   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15380   lt_cv_shlibpath_overrides_runpath=yes
15381 fi
15382 fi
15383 rm -f core conftest.err conftest.$ac_objext \
15384     conftest$ac_exeext conftest.$ac_ext
15385     LDFLAGS=$save_LDFLAGS
15386     libdir=$save_libdir
15387
15388 fi
15389
15390   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15391
15392   # This implies no fast_install, which is unacceptable.
15393   # Some rework will be needed to allow for fast_install
15394   # before this can be enabled.
15395   hardcode_into_libs=yes
15396
15397   # Append ld.so.conf contents to the search path
15398   if test -f /etc/ld.so.conf; then
15399     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15400     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15401   fi
15402
15403   # We used to test for /lib/ld.so.1 and disable shared libraries on
15404   # powerpc, because MkLinux only supported shared libraries with the
15405   # GNU dynamic linker.  Since this was broken with cross compilers,
15406   # most powerpc-linux boxes support dynamic linking these days and
15407   # people can always --disable-shared, the test was removed, and we
15408   # assume the GNU/Linux dynamic linker is in use.
15409   dynamic_linker='GNU/Linux ld.so'
15410   ;;
15411
15412 netbsdelf*-gnu)
15413   version_type=linux
15414   need_lib_prefix=no
15415   need_version=no
15416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15417   soname_spec='${libname}${release}${shared_ext}$major'
15418   shlibpath_var=LD_LIBRARY_PATH
15419   shlibpath_overrides_runpath=no
15420   hardcode_into_libs=yes
15421   dynamic_linker='NetBSD ld.elf_so'
15422   ;;
15423
15424 netbsd*)
15425   version_type=sunos
15426   need_lib_prefix=no
15427   need_version=no
15428   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15430     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15431     dynamic_linker='NetBSD (a.out) ld.so'
15432   else
15433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15434     soname_spec='${libname}${release}${shared_ext}$major'
15435     dynamic_linker='NetBSD ld.elf_so'
15436   fi
15437   shlibpath_var=LD_LIBRARY_PATH
15438   shlibpath_overrides_runpath=yes
15439   hardcode_into_libs=yes
15440   ;;
15441
15442 newsos6)
15443   version_type=linux # correct to gnu/linux during the next big refactor
15444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445   shlibpath_var=LD_LIBRARY_PATH
15446   shlibpath_overrides_runpath=yes
15447   ;;
15448
15449 *nto* | *qnx*)
15450   version_type=qnx
15451   need_lib_prefix=no
15452   need_version=no
15453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454   soname_spec='${libname}${release}${shared_ext}$major'
15455   shlibpath_var=LD_LIBRARY_PATH
15456   shlibpath_overrides_runpath=no
15457   hardcode_into_libs=yes
15458   dynamic_linker='ldqnx.so'
15459   ;;
15460
15461 openbsd*)
15462   version_type=sunos
15463   sys_lib_dlsearch_path_spec="/usr/lib"
15464   need_lib_prefix=no
15465   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15466   case $host_os in
15467     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15468     *)                          need_version=no  ;;
15469   esac
15470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15471   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15472   shlibpath_var=LD_LIBRARY_PATH
15473   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15474     case $host_os in
15475       openbsd2.[89] | openbsd2.[89].*)
15476         shlibpath_overrides_runpath=no
15477         ;;
15478       *)
15479         shlibpath_overrides_runpath=yes
15480         ;;
15481       esac
15482   else
15483     shlibpath_overrides_runpath=yes
15484   fi
15485   ;;
15486
15487 os2*)
15488   libname_spec='$name'
15489   shrext_cmds=".dll"
15490   need_lib_prefix=no
15491   library_names_spec='$libname${shared_ext} $libname.a'
15492   dynamic_linker='OS/2 ld.exe'
15493   shlibpath_var=LIBPATH
15494   ;;
15495
15496 osf3* | osf4* | osf5*)
15497   version_type=osf
15498   need_lib_prefix=no
15499   need_version=no
15500   soname_spec='${libname}${release}${shared_ext}$major'
15501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15502   shlibpath_var=LD_LIBRARY_PATH
15503   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15504   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15505   ;;
15506
15507 rdos*)
15508   dynamic_linker=no
15509   ;;
15510
15511 solaris*)
15512   version_type=linux # correct to gnu/linux during the next big refactor
15513   need_lib_prefix=no
15514   need_version=no
15515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516   soname_spec='${libname}${release}${shared_ext}$major'
15517   shlibpath_var=LD_LIBRARY_PATH
15518   shlibpath_overrides_runpath=yes
15519   hardcode_into_libs=yes
15520   # ldd complains unless libraries are executable
15521   postinstall_cmds='chmod +x $lib'
15522   ;;
15523
15524 sunos4*)
15525   version_type=sunos
15526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15527   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15528   shlibpath_var=LD_LIBRARY_PATH
15529   shlibpath_overrides_runpath=yes
15530   if test "$with_gnu_ld" = yes; then
15531     need_lib_prefix=no
15532   fi
15533   need_version=yes
15534   ;;
15535
15536 sysv4 | sysv4.3*)
15537   version_type=linux # correct to gnu/linux during the next big refactor
15538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15539   soname_spec='${libname}${release}${shared_ext}$major'
15540   shlibpath_var=LD_LIBRARY_PATH
15541   case $host_vendor in
15542     sni)
15543       shlibpath_overrides_runpath=no
15544       need_lib_prefix=no
15545       runpath_var=LD_RUN_PATH
15546       ;;
15547     siemens)
15548       need_lib_prefix=no
15549       ;;
15550     motorola)
15551       need_lib_prefix=no
15552       need_version=no
15553       shlibpath_overrides_runpath=no
15554       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15555       ;;
15556   esac
15557   ;;
15558
15559 sysv4*MP*)
15560   if test -d /usr/nec ;then
15561     version_type=linux # correct to gnu/linux during the next big refactor
15562     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15563     soname_spec='$libname${shared_ext}.$major'
15564     shlibpath_var=LD_LIBRARY_PATH
15565   fi
15566   ;;
15567
15568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15569   version_type=freebsd-elf
15570   need_lib_prefix=no
15571   need_version=no
15572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15573   soname_spec='${libname}${release}${shared_ext}$major'
15574   shlibpath_var=LD_LIBRARY_PATH
15575   shlibpath_overrides_runpath=yes
15576   hardcode_into_libs=yes
15577   if test "$with_gnu_ld" = yes; then
15578     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15579   else
15580     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15581     case $host_os in
15582       sco3.2v5*)
15583         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15584         ;;
15585     esac
15586   fi
15587   sys_lib_dlsearch_path_spec='/usr/lib'
15588   ;;
15589
15590 tpf*)
15591   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15592   version_type=linux # correct to gnu/linux during the next big refactor
15593   need_lib_prefix=no
15594   need_version=no
15595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15596   shlibpath_var=LD_LIBRARY_PATH
15597   shlibpath_overrides_runpath=no
15598   hardcode_into_libs=yes
15599   ;;
15600
15601 uts4*)
15602   version_type=linux # correct to gnu/linux during the next big refactor
15603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604   soname_spec='${libname}${release}${shared_ext}$major'
15605   shlibpath_var=LD_LIBRARY_PATH
15606   ;;
15607
15608 *)
15609   dynamic_linker=no
15610   ;;
15611 esac
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15613 $as_echo "$dynamic_linker" >&6; }
15614 test "$dynamic_linker" = no && can_build_shared=no
15615
15616 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15617 if test "$GCC" = yes; then
15618   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15619 fi
15620
15621 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15622   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15623 fi
15624 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15625   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15626 fi
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15666 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15667 hardcode_action_CXX=
15668 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15669    test -n "$runpath_var_CXX" ||
15670    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15671
15672   # We can hardcode non-existent directories.
15673   if test "$hardcode_direct_CXX" != no &&
15674      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15675      # have to relink, otherwise we might link with an installed library
15676      # when we should be linking with a yet-to-be-installed one
15677      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15678      test "$hardcode_minus_L_CXX" != no; then
15679     # Linking always hardcodes the temporary library directory.
15680     hardcode_action_CXX=relink
15681   else
15682     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15683     hardcode_action_CXX=immediate
15684   fi
15685 else
15686   # We cannot hardcode anything, or else we can only hardcode existing
15687   # directories.
15688   hardcode_action_CXX=unsupported
15689 fi
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15691 $as_echo "$hardcode_action_CXX" >&6; }
15692
15693 if test "$hardcode_action_CXX" = relink ||
15694    test "$inherit_rpath_CXX" = yes; then
15695   # Fast installation is not supported
15696   enable_fast_install=no
15697 elif test "$shlibpath_overrides_runpath" = yes ||
15698      test "$enable_shared" = no; then
15699   # Fast installation is not necessary
15700   enable_fast_install=needless
15701 fi
15702
15703
15704
15705
15706
15707
15708
15709   fi # test -n "$compiler"
15710
15711   CC=$lt_save_CC
15712   CFLAGS=$lt_save_CFLAGS
15713   LDCXX=$LD
15714   LD=$lt_save_LD
15715   GCC=$lt_save_GCC
15716   with_gnu_ld=$lt_save_with_gnu_ld
15717   lt_cv_path_LDCXX=$lt_cv_path_LD
15718   lt_cv_path_LD=$lt_save_path_LD
15719   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15720   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15721 fi # test "$_lt_caught_CXX_error" != yes
15722
15723 ac_ext=c
15724 ac_cpp='$CPP $CPPFLAGS'
15725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15728
15729
15730 ac_config_headers="$ac_config_headers config.h"
15731
15732 for ac_header in stdarg.h stdio.h stdint.h sys/param.h
15733 do :
15734   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15735 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15736 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15737   cat >>confdefs.h <<_ACEOF
15738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15739 _ACEOF
15740
15741 fi
15742
15743 done
15744
15745 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
15746 if test "x$ac_cv_func_vasprintf" = xyes; then :
15747   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
15748
15749 else
15750   case " $LIBOBJS " in
15751   *" vasprintf.$ac_objext "* ) ;;
15752   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
15753  ;;
15754 esac
15755
15756 fi
15757
15758
15759
15760
15761 reauth=no
15762 # Check whether --enable-reauth was given.
15763 if test "${enable_reauth+set}" = set; then :
15764   enableval=$enable_reauth;  if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
15765       reauth=$enableval
15766     else
15767       echo "--enable-reauth argument must be yes or no"
15768       exit -1
15769     fi
15770
15771 fi
15772
15773
15774 if test "x$reauth" = "xyes" ; then
15775   echo "Fast reauthentication protocol enabled"
15776   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
15777 fi
15778  if test "x$reauth" != "xno"; then
15779   GSSEAP_ENABLE_REAUTH_TRUE=
15780   GSSEAP_ENABLE_REAUTH_FALSE='#'
15781 else
15782   GSSEAP_ENABLE_REAUTH_TRUE='#'
15783   GSSEAP_ENABLE_REAUTH_FALSE=
15784 fi
15785
15786
15787 acceptor=yes
15788 # Check whether --enable-acceptor was given.
15789 if test "${enable_acceptor+set}" = set; then :
15790   enableval=$enable_acceptor;  if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
15791       acceptor=$enableval
15792     else
15793       echo "--enable-acceptor argument must be yes or no"
15794       exit -1
15795     fi
15796
15797 fi
15798
15799
15800 if test "x$acceptor" = "xyes" ; then
15801   echo "acceptor enabled"
15802   TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR"
15803 fi
15804  if test "x$acceptor" != "xno"; then
15805   GSSEAP_ENABLE_ACCEPTOR_TRUE=
15806   GSSEAP_ENABLE_ACCEPTOR_FALSE='#'
15807 else
15808   GSSEAP_ENABLE_ACCEPTOR_TRUE='#'
15809   GSSEAP_ENABLE_ACCEPTOR_FALSE=
15810 fi
15811
15812
15813
15814
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows" >&5
15816 $as_echo_n "checking for windows... " >&6; }
15817 target_windows="no"
15818 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
15819 if test "x$ac_cv_header_windows_h" = xyes; then :
15820   target_windows="yes"
15821 else
15822   target_windows="no"
15823 fi
15824
15825
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_windows" >&5
15827 $as_echo "$target_windows" >&6; }
15828  if test "x$target_windows" = "xyes"; then
15829   TARGET_WINDOWS_TRUE=
15830   TARGET_WINDOWS_FALSE='#'
15831 else
15832   TARGET_WINDOWS_TRUE='#'
15833   TARGET_WINDOWS_FALSE=
15834 fi
15835
15836
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS-API and Kerberos implementation" >&5
15838 $as_echo_n "checking for GSS-API and Kerberos implementation... " >&6; }
15839 KRB5_DIR=
15840 found_krb5="no"
15841
15842 # Check whether --with-krb5 was given.
15843 if test "${with_krb5+set}" = set; then :
15844   withval=$with_krb5; check_krb5_dir="$withval"
15845 else
15846   check_krb5_dir=
15847 fi
15848
15849 for dir in $check_krb5_dir $prefix /usr/local /usr ; do
15850    krb5dir="$dir"
15851    if test -x "$dir/bin/krb5-config"; then
15852      found_krb5="yes";
15853      if test "x$target_windows" = "xyes"; then
15854         KRB5_CFLAGS=-I"$check_krb5_dir/include";
15855         KRB5_LDFLAGS="-L$check_krb5_dir/lib/";
15856         KRB5_LIBS="-lkrb5_32 -lgssapi32";
15857         COMPILE_ET="$check_krb5_dir/bin/compile_et";
15858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15859 $as_echo "yes" >&6; }
15860      else
15861         KRB5_CFLAGS=`$dir/bin/krb5-config gssapi --cflags`;
15862         KRB5_LDFLAGS="-L$dir/lib";
15863         KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15865 $as_echo "yes" >&6; }
15866         # Extract the first word of "compile_et", so it can be a program name with args.
15867 set dummy compile_et; ac_word=$2
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15869 $as_echo_n "checking for $ac_word... " >&6; }
15870 if ${ac_cv_path_COMPILE_ET+:} false; then :
15871   $as_echo_n "(cached) " >&6
15872 else
15873   case $COMPILE_ET in
15874   [\\/]* | ?:[\\/]*)
15875   ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
15876   ;;
15877   *)
15878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15879 for as_dir in $dir/bin$PATH_SEPARATOr
15880 do
15881   IFS=$as_save_IFS
15882   test -z "$as_dir" && as_dir=.
15883     for ac_exec_ext in '' $ac_executable_extensions; do
15884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15885     ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
15886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15887     break 2
15888   fi
15889 done
15890   done
15891 IFS=$as_save_IFS
15892
15893   test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="compile_et"
15894   ;;
15895 esac
15896 fi
15897 COMPILE_ET=$ac_cv_path_COMPILE_ET
15898 if test -n "$COMPILE_ET"; then
15899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
15900 $as_echo "$COMPILE_ET" >&6; }
15901 else
15902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15903 $as_echo "no" >&6; }
15904 fi
15905
15906
15907      fi
15908      break;
15909    fi
15910 done
15911 if test x_$found_krb5 != x_yes; then
15912    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_krb5" >&5
15913 $as_echo "$found_krb5" >&6; }
15914    as_fn_error $? "
15915 ----------------------------------------------------------------------
15916   Cannot find GSS-API/Kerberos libraries.
15917
15918   Please install MIT or Heimdal or specify installation directory with
15919   --with-krb5=(dir).
15920 ----------------------------------------------------------------------
15921 " "$LINENO" 5
15922 else
15923         printf "Kerberos found in $krb5dir\n";
15924
15925
15926
15927
15928         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5" >&5
15929 $as_echo_n "checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5... " >&6; }
15930 if ${ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT+:} false; then :
15931   $as_echo_n "(cached) " >&6
15932 else
15933   ac_check_lib_save_LIBS=$LIBS
15934 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h.  */
15937
15938 /* Override any GCC internal prototype to avoid an error.
15939    Use char because int might match the return type of a GCC
15940    builtin and then its argument prototype would still apply.  */
15941 #ifdef __cplusplus
15942 extern "C"
15943 #endif
15944 char GSS_C_NT_COMPOSITE_EXPORT ();
15945 int
15946 main ()
15947 {
15948 return GSS_C_NT_COMPOSITE_EXPORT ();
15949   ;
15950   return 0;
15951 }
15952 _ACEOF
15953 if ac_fn_c_try_link "$LINENO"; then :
15954   ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=yes
15955 else
15956   ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=no
15957 fi
15958 rm -f core conftest.err conftest.$ac_objext \
15959     conftest$ac_exeext conftest.$ac_ext
15960 LIBS=$ac_check_lib_save_LIBS
15961 fi
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&5
15963 $as_echo "$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&6; }
15964 if test "x$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" = xyes; then :
15965
15966 cat >>confdefs.h <<_ACEOF
15967 #define HAVE_GSS_C_NT_COMPOSITE_EXPORT 1
15968 _ACEOF
15969
15970 fi
15971
15972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_inquire_attrs_for_mech in -lkrb5" >&5
15973 $as_echo_n "checking for gss_inquire_attrs_for_mech in -lkrb5... " >&6; }
15974 if ${ac_cv_lib_krb5_gss_inquire_attrs_for_mech+:} false; then :
15975   $as_echo_n "(cached) " >&6
15976 else
15977   ac_check_lib_save_LIBS=$LIBS
15978 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h.  */
15981
15982 /* Override any GCC internal prototype to avoid an error.
15983    Use char because int might match the return type of a GCC
15984    builtin and then its argument prototype would still apply.  */
15985 #ifdef __cplusplus
15986 extern "C"
15987 #endif
15988 char gss_inquire_attrs_for_mech ();
15989 int
15990 main ()
15991 {
15992 return gss_inquire_attrs_for_mech ();
15993   ;
15994   return 0;
15995 }
15996 _ACEOF
15997 if ac_fn_c_try_link "$LINENO"; then :
15998   ac_cv_lib_krb5_gss_inquire_attrs_for_mech=yes
15999 else
16000   ac_cv_lib_krb5_gss_inquire_attrs_for_mech=no
16001 fi
16002 rm -f core conftest.err conftest.$ac_objext \
16003     conftest$ac_exeext conftest.$ac_ext
16004 LIBS=$ac_check_lib_save_LIBS
16005 fi
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&5
16007 $as_echo "$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&6; }
16008 if test "x$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" = xyes; then :
16009
16010 cat >>confdefs.h <<_ACEOF
16011 #define HAVE_GSS_INQUIRE_ATTRS_FOR_MECH 1
16012 _ACEOF
16013
16014 fi
16015
16016         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_import_cred in -lkrb5" >&5
16017 $as_echo_n "checking for gss_krb5_import_cred in -lkrb5... " >&6; }
16018 if ${ac_cv_lib_krb5_gss_krb5_import_cred+:} false; then :
16019   $as_echo_n "(cached) " >&6
16020 else
16021   ac_check_lib_save_LIBS=$LIBS
16022 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h.  */
16025
16026 /* Override any GCC internal prototype to avoid an error.
16027    Use char because int might match the return type of a GCC
16028    builtin and then its argument prototype would still apply.  */
16029 #ifdef __cplusplus
16030 extern "C"
16031 #endif
16032 char gss_krb5_import_cred ();
16033 int
16034 main ()
16035 {
16036 return gss_krb5_import_cred ();
16037   ;
16038   return 0;
16039 }
16040 _ACEOF
16041 if ac_fn_c_try_link "$LINENO"; then :
16042   ac_cv_lib_krb5_gss_krb5_import_cred=yes
16043 else
16044   ac_cv_lib_krb5_gss_krb5_import_cred=no
16045 fi
16046 rm -f core conftest.err conftest.$ac_objext \
16047     conftest$ac_exeext conftest.$ac_ext
16048 LIBS=$ac_check_lib_save_LIBS
16049 fi
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_krb5_import_cred" >&5
16051 $as_echo "$ac_cv_lib_krb5_gss_krb5_import_cred" >&6; }
16052 if test "x$ac_cv_lib_krb5_gss_krb5_import_cred" = xyes; then :
16053
16054 cat >>confdefs.h <<_ACEOF
16055 #define HAVE_GSS_KRB5_IMPORT_CRED 1
16056 _ACEOF
16057
16058 fi
16059
16060         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heimdal_version in -lkrb5" >&5
16061 $as_echo_n "checking for heimdal_version in -lkrb5... " >&6; }
16062 if ${ac_cv_lib_krb5_heimdal_version+:} false; then :
16063   $as_echo_n "(cached) " >&6
16064 else
16065   ac_check_lib_save_LIBS=$LIBS
16066 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
16067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068 /* end confdefs.h.  */
16069
16070 /* Override any GCC internal prototype to avoid an error.
16071    Use char because int might match the return type of a GCC
16072    builtin and then its argument prototype would still apply.  */
16073 #ifdef __cplusplus
16074 extern "C"
16075 #endif
16076 char heimdal_version ();
16077 int
16078 main ()
16079 {
16080 return heimdal_version ();
16081   ;
16082   return 0;
16083 }
16084 _ACEOF
16085 if ac_fn_c_try_link "$LINENO"; then :
16086   ac_cv_lib_krb5_heimdal_version=yes
16087 else
16088   ac_cv_lib_krb5_heimdal_version=no
16089 fi
16090 rm -f core conftest.err conftest.$ac_objext \
16091     conftest$ac_exeext conftest.$ac_ext
16092 LIBS=$ac_check_lib_save_LIBS
16093 fi
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_heimdal_version" >&5
16095 $as_echo "$ac_cv_lib_krb5_heimdal_version" >&6; }
16096 if test "x$ac_cv_lib_krb5_heimdal_version" = xyes; then :
16097
16098 cat >>confdefs.h <<_ACEOF
16099 #define HAVE_HEIMDAL_VERSION 1
16100 _ACEOF
16101 , heimdal=yes
16102 else
16103   heimdal=no
16104 fi
16105
16106          if test "x$heimdal" != "xno"; then
16107   HEIMDAL_TRUE=
16108   HEIMDAL_FALSE='#'
16109 else
16110   HEIMDAL_TRUE='#'
16111   HEIMDAL_FALSE=
16112 fi
16113
16114 fi
16115
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSAML implementation" >&5
16117 $as_echo_n "checking for OpenSAML implementation... " >&6; }
16118 OPENSAML_DIR=
16119 found_opensaml="no"
16120
16121 # Check whether --with-opensaml was given.
16122 if test "${with_opensaml+set}" = set; then :
16123   withval=$with_opensaml; check_opensaml_dir="$withval"
16124 else
16125   check_opensaml_dir=
16126 fi
16127
16128 if test x_$check_opensaml_dir != x_no; then
16129 for dir in $check_opensaml_dir $prefix /usr /usr/local ; do
16130    opensamldir="$dir"
16131    if test -f "$dir/include/saml/Assertion.h"; then
16132      found_opensaml="yes";
16133      OPENSAML_DIR="${opensamldir}"
16134      OPENSAML_CXXFLAGS="-I$opensamldir/include";
16135      break;
16136    fi
16137 done
16138 fi
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_opensaml" >&5
16140 $as_echo "$found_opensaml" >&6; }
16141 if test x_$check_opensaml_dir != x_no; then
16142 if test x_$found_opensaml != x_yes; then
16143    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16144 ----------------------------------------------------------------------
16145   Cannot find OpenSAML libraries, building without OpenSAML support.
16146
16147   Please install OpenSAML or specify installation directory with
16148   --with-opensaml=(dir).
16149 ----------------------------------------------------------------------
16150 " >&5
16151 $as_echo "$as_me: WARNING:
16152 ----------------------------------------------------------------------
16153   Cannot find OpenSAML libraries, building without OpenSAML support.
16154
16155   Please install OpenSAML or specify installation directory with
16156   --with-opensaml=(dir).
16157 ----------------------------------------------------------------------
16158 " >&2;}
16159 else
16160         printf "OpenSAML found in $opensamldir\n";
16161         OPENSAML_LIBS="-lsaml -lxml-security-c -lxmltooling -lxerces-c";
16162         OPENSAML_LDFLAGS="-L$opensamldir/lib";
16163
16164
16165
16166
16167 cat >>confdefs.h <<_ACEOF
16168 #define HAVE_OPENSAML 1
16169 _ACEOF
16170
16171 fi
16172 fi
16173
16174  if test "x_$check_opensaml_dir" != "x_no"; then
16175   OPENSAML_TRUE=
16176   OPENSAML_FALSE='#'
16177 else
16178   OPENSAML_TRUE='#'
16179   OPENSAML_FALSE=
16180 fi
16181
16182
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth resolver implementation" >&5
16184 $as_echo_n "checking for Shibboleth resolver implementation... " >&6; }
16185 SHIBRESOLVER_DIR=
16186 found_shibresolver="no"
16187
16188 # Check whether --with-shibresolver was given.
16189 if test "${with_shibresolver+set}" = set; then :
16190   withval=$with_shibresolver; check_shibresolver_dir="$withval"
16191 else
16192   check_shibresolver_dir=
16193 fi
16194
16195 if test x_$check_shibresolver_dir != x_no; then
16196 for dir in $check_shibresolver_dir $prefix /usr /usr/local ; do
16197    shibresolverdir="$dir"
16198    if test -f "$dir/include/shibresolver/resolver.h"; then
16199      found_shibresolver="yes";
16200      SHIBRESOLVER_DIR="${shibresolverdir}"
16201      SHIBRESOLVER_CXXFLAGS="-I$shibresolverdir/include";
16202      break;
16203    fi
16204 done
16205 fi
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibresolver" >&5
16207 $as_echo "$found_shibresolver" >&6; }
16208 if test x_$check_shibresolver_dir != x_no; then
16209 if test x_$found_shibresolver != x_yes; then
16210    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16211 ----------------------------------------------------------------------
16212   Cannot find Shibboleth resolver libraries, building without
16213   Shibboleth support.
16214
16215   Please install Shibboleth or specify installation directory with
16216   --with-shibresolver=(dir).
16217 ----------------------------------------------------------------------
16218 " >&5
16219 $as_echo "$as_me: WARNING:
16220 ----------------------------------------------------------------------
16221   Cannot find Shibboleth resolver libraries, building without
16222   Shibboleth support.
16223
16224   Please install Shibboleth or specify installation directory with
16225   --with-shibresolver=(dir).
16226 ----------------------------------------------------------------------
16227 " >&2;}
16228 else
16229         printf "Shibboleth resolver found in $shibresolverdir\n";
16230         SHIBRESOLVER_LIBS="-lshibresolver";
16231         SHIBRESOLVER_LDFLAGS="-L$shibresolverdir/lib";
16232
16233
16234
16235
16236 cat >>confdefs.h <<_ACEOF
16237 #define HAVE_SHIBRESOLVER 1
16238 _ACEOF
16239
16240 fi
16241 fi
16242
16243  if test "x_$check_shibresolver_dir" != "x_no"; then
16244   SHIBRESOLVER_TRUE=
16245   SHIBRESOLVER_FALSE='#'
16246 else
16247   SHIBRESOLVER_TRUE='#'
16248   SHIBRESOLVER_FALSE=
16249 fi
16250
16251 if test x_$found_shibresolver = x_yes; then
16252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth implementation" >&5
16253 $as_echo_n "checking for Shibboleth implementation... " >&6; }
16254 SHIBSP_DIR=
16255 found_shibsp="no"
16256
16257 # Check whether --with-shibsp was given.
16258 if test "${with_shibsp+set}" = set; then :
16259   withval=$with_shibsp; check_shibsp_dir="$withval"
16260 else
16261   check_shibsp_dir=
16262 fi
16263
16264 for dir in $check_shibsp_dir $prefix /usr /usr/local ; do
16265    shibspdir="$dir"
16266    if test -f "$dir/include/shibsp/SPConfig.h"; then
16267      found_shibsp="yes";
16268      SHIBSP_DIR="${shibspdir}"
16269      SHIBSP_CXXFLAGS="-I$shibspdir/include";
16270      break;
16271    fi
16272 done
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibsp" >&5
16274 $as_echo "$found_shibsp" >&6; }
16275 if test x_$found_shibsp != x_yes; then
16276    as_fn_error $? "
16277 ----------------------------------------------------------------------
16278   Cannot find Shibboleth libraries.
16279
16280   Please install Shibboleth or specify installation directory with
16281   --with-shibsp=(dir).
16282 ----------------------------------------------------------------------
16283 " "$LINENO" 5
16284 else
16285         printf "Shibboleth found in $shibspdir\n";
16286         SHIBSP_LIBS="-lshibsp -lsaml -lxml-security-c -lxmltooling -lxerces-c";
16287         SHIBSP_LDFLAGS="-L$shibspdir/lib";
16288
16289
16290
16291
16292 cat >>confdefs.h <<_ACEOF
16293 #define HAVE_SHIBSP 1
16294 _ACEOF
16295
16296 fi
16297
16298 fi
16299
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
16301 $as_echo_n "checking for OpenSSL... " >&6; }
16302 OPENSSL_DIR=
16303 found_openssl="no"
16304
16305 # Check whether --with-openssl was given.
16306 if test "${with_openssl+set}" = set; then :
16307   withval=$with_openssl; check_openssl_dir="$withval"
16308 else
16309   check_openssl_dir=
16310 fi
16311
16312 for dir in $check_openssl_dir $prefix /usr /usr/local ; do
16313    openssldir="$dir"
16314    if test -f "$dir/include/openssl/opensslv.h"; then
16315      found_openssl="yes";
16316      OPENSSL_DIR="${openssldir}"
16317      OPENSSL_CFLAGS="-I$openssldir/include";
16318      break;
16319    fi
16320 done
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_openssl" >&5
16322 $as_echo "$found_openssl" >&6; }
16323 if test x_$found_openssl != x_yes; then
16324    as_fn_error $? "
16325 ----------------------------------------------------------------------
16326   Cannot find OpenSSL libraries.
16327
16328   Please install libssl or specify installation directory with
16329   --with-openssl=(dir).
16330 ----------------------------------------------------------------------
16331 " "$LINENO" 5
16332 else
16333         printf "OpenSSL found in $openssldir\n";
16334         OPENSSL_LIBS="-lssl -lcrypto";
16335         OPENSSL_LDFLAGS="-L$openssldir/lib";
16336
16337
16338
16339 fi
16340
16341
16342 if test "x$acceptor" = "xyes" ; then
16343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for radsec" >&5
16344 $as_echo_n "checking for radsec... " >&6; }
16345 RADSEC_DIR=
16346 found_radsec="no"
16347
16348 # Check whether --with-radsec was given.
16349 if test "${with_radsec+set}" = set; then :
16350   withval=$with_radsec; check_radsec_dir="$withval"
16351 else
16352   check_radsec_dir=
16353 fi
16354
16355 for dir in $check_radsec_dir $prefix /usr /usr/local ; do
16356    radsecdir="$dir"
16357    if test -f "$dir/include/radsec/radsec.h"; then
16358      found_radsec="yes";
16359      RADSEC_DIR="${radsecdir}"
16360      RADSEC_CFLAGS="-I$radsecdir/include";
16361      break;
16362    fi
16363 done
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_radsec" >&5
16365 $as_echo "$found_radsec" >&6; }
16366 if test x_$found_radsec != x_yes; then
16367    as_fn_error $? "
16368 ----------------------------------------------------------------------
16369   Cannot find radsec libraries.
16370
16371   Please install libradsec or specify installation directory with
16372   --with-radsec=(dir).
16373 ----------------------------------------------------------------------
16374 " "$LINENO" 5
16375 else
16376         printf "radsec found in $radsecdir\n";
16377         RADSEC_LIBS="-lradsec";
16378         RADSEC_LDFLAGS="-L$radsecdir/lib";
16379
16380
16381
16382 fi
16383
16384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
16385 $as_echo_n "checking for jansson... " >&6; }
16386 JANSSON_DIR=
16387 found_jansson="no"
16388
16389 # Check whether --with-jansson was given.
16390 if test "${with_jansson+set}" = set; then :
16391   withval=$with_jansson; check_jansson_dir="$withval"
16392 else
16393   check_jansson_dir=
16394 fi
16395
16396 for dir in $check_jansson_dir $prefix /usr /usr/local ; do
16397    janssondir="$dir"
16398    if test -f "$dir/include/jansson.h"; then
16399      found_jansson="yes";
16400      JANSSON_DIR="${janssondir}"
16401      JANSSON_CFLAGS="-I$janssondir/include";
16402      break;
16403    fi
16404 done
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_jansson" >&5
16406 $as_echo "$found_jansson" >&6; }
16407 if test x_$found_jansson != x_yes; then
16408    as_fn_error $? "
16409 ----------------------------------------------------------------------
16410   Cannot find jansson libraries.
16411
16412   Please install libjansson or specify installation directory with
16413   --with-jansson=(dir).
16414 ----------------------------------------------------------------------
16415 " "$LINENO" 5
16416 else
16417         printf "jansson found in $janssondir\n";
16418         JANSSON_LIBS="-ljansson";
16419         JANSSON_LDFLAGS="-L$janssondir/lib";
16420
16421
16422
16423 fi
16424
16425 fi
16426
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Moonshot identity selector implementation" >&5
16428 $as_echo_n "checking for Moonshot identity selector implementation... " >&6; }
16429 LIBMOONSHOT_DIR=
16430 LIBMOONSHOT_CFLAGS=
16431 LIBMOONSHOT_LDFLAGS=
16432 LIBMOONSHOT_LIBS=
16433 found_libmoonshot="no"
16434
16435 # Check whether --with-libmoonshot was given.
16436 if test "${with_libmoonshot+set}" = set; then :
16437   withval=$with_libmoonshot; check_libmoonshot_dir="$withval"
16438 else
16439   check_libmoonshot_dir=
16440 fi
16441
16442 for dir in $check_libmoonshot_dir $prefix /usr /usr/local ; do
16443    libmoonshotdir="$dir"
16444    if test -f "$dir/include/libmoonshot.h"; then
16445      found_libmoonshot="yes";
16446      LIBMOONSHOT_DIR="${libmoonshotdir}"
16447      LIBMOONSHOT_CFLAGS="-I$libmoonshotdir/include";
16448      break;
16449    fi
16450 done
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_libmoonshot" >&5
16452 $as_echo "$found_libmoonshot" >&6; }
16453 if test x_$found_libmoonshot = x_yes; then
16454     printf "libmoonshot found in $libmoonshotdir\n";
16455     LIBMOONSHOT_LIBS="-lmoonshot";
16456     LIBMOONSHOT_LDFLAGS="-L$libmoonshot/lib";
16457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot_get_identity in -lmoonshot" >&5
16458 $as_echo_n "checking for moonshot_get_identity in -lmoonshot... " >&6; }
16459 if ${ac_cv_lib_moonshot_moonshot_get_identity+:} false; then :
16460   $as_echo_n "(cached) " >&6
16461 else
16462   ac_check_lib_save_LIBS=$LIBS
16463 LIBS="-lmoonshot "$LIBMOONSHOT_LIBS" $LIBS"
16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h.  */
16466
16467 /* Override any GCC internal prototype to avoid an error.
16468    Use char because int might match the return type of a GCC
16469    builtin and then its argument prototype would still apply.  */
16470 #ifdef __cplusplus
16471 extern "C"
16472 #endif
16473 char moonshot_get_identity ();
16474 int
16475 main ()
16476 {
16477 return moonshot_get_identity ();
16478   ;
16479   return 0;
16480 }
16481 _ACEOF
16482 if ac_fn_c_try_link "$LINENO"; then :
16483   ac_cv_lib_moonshot_moonshot_get_identity=yes
16484 else
16485   ac_cv_lib_moonshot_moonshot_get_identity=no
16486 fi
16487 rm -f core conftest.err conftest.$ac_objext \
16488     conftest$ac_exeext conftest.$ac_ext
16489 LIBS=$ac_check_lib_save_LIBS
16490 fi
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_moonshot_moonshot_get_identity" >&5
16492 $as_echo "$ac_cv_lib_moonshot_moonshot_get_identity" >&6; }
16493 if test "x$ac_cv_lib_moonshot_moonshot_get_identity" = xyes; then :
16494
16495 cat >>confdefs.h <<_ACEOF
16496 #define HAVE_MOONSHOT_GET_IDENTITY 1
16497 _ACEOF
16498
16499 fi
16500
16501 fi
16502
16503
16504
16505      if test "x$found_libmoonshot" != "xno"; then
16506   LIBMOONSHOT_TRUE=
16507   LIBMOONSHOT_FALSE='#'
16508 else
16509   LIBMOONSHOT_TRUE='#'
16510   LIBMOONSHOT_FALSE=
16511 fi
16512
16513
16514 ac_config_files="$ac_config_files Makefile libeap/Makefile mech_eap/Makefile mech_eap.spec"
16515
16516 cat >confcache <<\_ACEOF
16517 # This file is a shell script that caches the results of configure
16518 # tests run on this system so they can be shared between configure
16519 # scripts and configure runs, see configure's option --config-cache.
16520 # It is not useful on other systems.  If it contains results you don't
16521 # want to keep, you may remove or edit it.
16522 #
16523 # config.status only pays attention to the cache file if you give it
16524 # the --recheck option to rerun configure.
16525 #
16526 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16527 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16528 # following values.
16529
16530 _ACEOF
16531
16532 # The following way of writing the cache mishandles newlines in values,
16533 # but we know of no workaround that is simple, portable, and efficient.
16534 # So, we kill variables containing newlines.
16535 # Ultrix sh set writes to stderr and can't be redirected directly,
16536 # and sets the high bit in the cache file unless we assign to the vars.
16537 (
16538   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16539     eval ac_val=\$$ac_var
16540     case $ac_val in #(
16541     *${as_nl}*)
16542       case $ac_var in #(
16543       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16544 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16545       esac
16546       case $ac_var in #(
16547       _ | IFS | as_nl) ;; #(
16548       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16549       *) { eval $ac_var=; unset $ac_var;} ;;
16550       esac ;;
16551     esac
16552   done
16553
16554   (set) 2>&1 |
16555     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16556     *${as_nl}ac_space=\ *)
16557       # `set' does not quote correctly, so add quotes: double-quote
16558       # substitution turns \\\\ into \\, and sed turns \\ into \.
16559       sed -n \
16560         "s/'/'\\\\''/g;
16561           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16562       ;; #(
16563     *)
16564       # `set' quotes correctly as required by POSIX, so do not add quotes.
16565       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16566       ;;
16567     esac |
16568     sort
16569 ) |
16570   sed '
16571      /^ac_cv_env_/b end
16572      t clear
16573      :clear
16574      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16575      t end
16576      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16577      :end' >>confcache
16578 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16579   if test -w "$cache_file"; then
16580     if test "x$cache_file" != "x/dev/null"; then
16581       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16582 $as_echo "$as_me: updating cache $cache_file" >&6;}
16583       if test ! -f "$cache_file" || test -h "$cache_file"; then
16584         cat confcache >"$cache_file"
16585       else
16586         case $cache_file in #(
16587         */* | ?:*)
16588           mv -f confcache "$cache_file"$$ &&
16589           mv -f "$cache_file"$$ "$cache_file" ;; #(
16590         *)
16591           mv -f confcache "$cache_file" ;;
16592         esac
16593       fi
16594     fi
16595   else
16596     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16597 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16598   fi
16599 fi
16600 rm -f confcache
16601
16602 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16603 # Let make expand exec_prefix.
16604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16605
16606 DEFS=-DHAVE_CONFIG_H
16607
16608 ac_libobjs=
16609 ac_ltlibobjs=
16610 U=
16611 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16612   # 1. Remove the extension, and $U if already installed.
16613   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16614   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16615   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16616   #    will be set to the directory where LIBOBJS objects are built.
16617   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16618   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16619 done
16620 LIBOBJS=$ac_libobjs
16621
16622 LTLIBOBJS=$ac_ltlibobjs
16623
16624
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16626 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16627    if test -n "$am_sleep_pid"; then
16628      # Hide warnings about reused PIDs.
16629      wait $am_sleep_pid 2>/dev/null
16630    fi
16631    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16632 $as_echo "done" >&6; }
16633 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16634   as_fn_error $? "conditional \"AMDEP\" was never defined.
16635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16636 fi
16637 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16638   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16640 fi
16641  if test -n "$EXEEXT"; then
16642   am__EXEEXT_TRUE=
16643   am__EXEEXT_FALSE='#'
16644 else
16645   am__EXEEXT_TRUE='#'
16646   am__EXEEXT_FALSE=
16647 fi
16648
16649 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16650   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16652 fi
16653 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16654   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16656 fi
16657 if test -z "${GSSEAP_ENABLE_REAUTH_TRUE}" && test -z "${GSSEAP_ENABLE_REAUTH_FALSE}"; then
16658   as_fn_error $? "conditional \"GSSEAP_ENABLE_REAUTH\" was never defined.
16659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16660 fi
16661 if test -z "${GSSEAP_ENABLE_ACCEPTOR_TRUE}" && test -z "${GSSEAP_ENABLE_ACCEPTOR_FALSE}"; then
16662   as_fn_error $? "conditional \"GSSEAP_ENABLE_ACCEPTOR\" was never defined.
16663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16664 fi
16665 if test -z "${TARGET_WINDOWS_TRUE}" && test -z "${TARGET_WINDOWS_FALSE}"; then
16666   as_fn_error $? "conditional \"TARGET_WINDOWS\" was never defined.
16667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16668 fi
16669 if test -z "${HEIMDAL_TRUE}" && test -z "${HEIMDAL_FALSE}"; then
16670   as_fn_error $? "conditional \"HEIMDAL\" was never defined.
16671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16672 fi
16673 if test -z "${OPENSAML_TRUE}" && test -z "${OPENSAML_FALSE}"; then
16674   as_fn_error $? "conditional \"OPENSAML\" was never defined.
16675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16676 fi
16677 if test -z "${SHIBRESOLVER_TRUE}" && test -z "${SHIBRESOLVER_FALSE}"; then
16678   as_fn_error $? "conditional \"SHIBRESOLVER\" was never defined.
16679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16680 fi
16681 if test -z "${LIBMOONSHOT_TRUE}" && test -z "${LIBMOONSHOT_FALSE}"; then
16682   as_fn_error $? "conditional \"LIBMOONSHOT\" was never defined.
16683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16684 fi
16685
16686 : "${CONFIG_STATUS=./config.status}"
16687 ac_write_fail=0
16688 ac_clean_files_save=$ac_clean_files
16689 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16691 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16692 as_write_fail=0
16693 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16694 #! $SHELL
16695 # Generated by $as_me.
16696 # Run this file to recreate the current configuration.
16697 # Compiler output produced by configure, useful for debugging
16698 # configure, is in config.log if it exists.
16699
16700 debug=false
16701 ac_cs_recheck=false
16702 ac_cs_silent=false
16703
16704 SHELL=\${CONFIG_SHELL-$SHELL}
16705 export SHELL
16706 _ASEOF
16707 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16708 ## -------------------- ##
16709 ## M4sh Initialization. ##
16710 ## -------------------- ##
16711
16712 # Be more Bourne compatible
16713 DUALCASE=1; export DUALCASE # for MKS sh
16714 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16715   emulate sh
16716   NULLCMD=:
16717   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16718   # is contrary to our usage.  Disable this feature.
16719   alias -g '${1+"$@"}'='"$@"'
16720   setopt NO_GLOB_SUBST
16721 else
16722   case `(set -o) 2>/dev/null` in #(
16723   *posix*) :
16724     set -o posix ;; #(
16725   *) :
16726      ;;
16727 esac
16728 fi
16729
16730
16731 as_nl='
16732 '
16733 export as_nl
16734 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16735 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16736 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16737 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16738 # Prefer a ksh shell builtin over an external printf program on Solaris,
16739 # but without wasting forks for bash or zsh.
16740 if test -z "$BASH_VERSION$ZSH_VERSION" \
16741     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16742   as_echo='print -r --'
16743   as_echo_n='print -rn --'
16744 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16745   as_echo='printf %s\n'
16746   as_echo_n='printf %s'
16747 else
16748   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16749     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16750     as_echo_n='/usr/ucb/echo -n'
16751   else
16752     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16753     as_echo_n_body='eval
16754       arg=$1;
16755       case $arg in #(
16756       *"$as_nl"*)
16757         expr "X$arg" : "X\\(.*\\)$as_nl";
16758         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16759       esac;
16760       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16761     '
16762     export as_echo_n_body
16763     as_echo_n='sh -c $as_echo_n_body as_echo'
16764   fi
16765   export as_echo_body
16766   as_echo='sh -c $as_echo_body as_echo'
16767 fi
16768
16769 # The user is always right.
16770 if test "${PATH_SEPARATOR+set}" != set; then
16771   PATH_SEPARATOR=:
16772   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16773     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16774       PATH_SEPARATOR=';'
16775   }
16776 fi
16777
16778
16779 # IFS
16780 # We need space, tab and new line, in precisely that order.  Quoting is
16781 # there to prevent editors from complaining about space-tab.
16782 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16783 # splitting by setting IFS to empty value.)
16784 IFS=" ""        $as_nl"
16785
16786 # Find who we are.  Look in the path if we contain no directory separator.
16787 as_myself=
16788 case $0 in #((
16789   *[\\/]* ) as_myself=$0 ;;
16790   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16791 for as_dir in $PATH
16792 do
16793   IFS=$as_save_IFS
16794   test -z "$as_dir" && as_dir=.
16795     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16796   done
16797 IFS=$as_save_IFS
16798
16799      ;;
16800 esac
16801 # We did not find ourselves, most probably we were run as `sh COMMAND'
16802 # in which case we are not to be found in the path.
16803 if test "x$as_myself" = x; then
16804   as_myself=$0
16805 fi
16806 if test ! -f "$as_myself"; then
16807   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16808   exit 1
16809 fi
16810
16811 # Unset variables that we do not need and which cause bugs (e.g. in
16812 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16813 # suppresses any "Segmentation fault" message there.  '((' could
16814 # trigger a bug in pdksh 5.2.14.
16815 for as_var in BASH_ENV ENV MAIL MAILPATH
16816 do eval test x\${$as_var+set} = xset \
16817   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16818 done
16819 PS1='$ '
16820 PS2='> '
16821 PS4='+ '
16822
16823 # NLS nuisances.
16824 LC_ALL=C
16825 export LC_ALL
16826 LANGUAGE=C
16827 export LANGUAGE
16828
16829 # CDPATH.
16830 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16831
16832
16833 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16834 # ----------------------------------------
16835 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16836 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16837 # script with STATUS, using 1 if that was 0.
16838 as_fn_error ()
16839 {
16840   as_status=$1; test $as_status -eq 0 && as_status=1
16841   if test "$4"; then
16842     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16843     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16844   fi
16845   $as_echo "$as_me: error: $2" >&2
16846   as_fn_exit $as_status
16847 } # as_fn_error
16848
16849
16850 # as_fn_set_status STATUS
16851 # -----------------------
16852 # Set $? to STATUS, without forking.
16853 as_fn_set_status ()
16854 {
16855   return $1
16856 } # as_fn_set_status
16857
16858 # as_fn_exit STATUS
16859 # -----------------
16860 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16861 as_fn_exit ()
16862 {
16863   set +e
16864   as_fn_set_status $1
16865   exit $1
16866 } # as_fn_exit
16867
16868 # as_fn_unset VAR
16869 # ---------------
16870 # Portably unset VAR.
16871 as_fn_unset ()
16872 {
16873   { eval $1=; unset $1;}
16874 }
16875 as_unset=as_fn_unset
16876 # as_fn_append VAR VALUE
16877 # ----------------------
16878 # Append the text in VALUE to the end of the definition contained in VAR. Take
16879 # advantage of any shell optimizations that allow amortized linear growth over
16880 # repeated appends, instead of the typical quadratic growth present in naive
16881 # implementations.
16882 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16883   eval 'as_fn_append ()
16884   {
16885     eval $1+=\$2
16886   }'
16887 else
16888   as_fn_append ()
16889   {
16890     eval $1=\$$1\$2
16891   }
16892 fi # as_fn_append
16893
16894 # as_fn_arith ARG...
16895 # ------------------
16896 # Perform arithmetic evaluation on the ARGs, and store the result in the
16897 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16898 # must be portable across $(()) and expr.
16899 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16900   eval 'as_fn_arith ()
16901   {
16902     as_val=$(( $* ))
16903   }'
16904 else
16905   as_fn_arith ()
16906   {
16907     as_val=`expr "$@" || test $? -eq 1`
16908   }
16909 fi # as_fn_arith
16910
16911
16912 if expr a : '\(a\)' >/dev/null 2>&1 &&
16913    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16914   as_expr=expr
16915 else
16916   as_expr=false
16917 fi
16918
16919 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16920   as_basename=basename
16921 else
16922   as_basename=false
16923 fi
16924
16925 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16926   as_dirname=dirname
16927 else
16928   as_dirname=false
16929 fi
16930
16931 as_me=`$as_basename -- "$0" ||
16932 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16933          X"$0" : 'X\(//\)$' \| \
16934          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16935 $as_echo X/"$0" |
16936     sed '/^.*\/\([^/][^/]*\)\/*$/{
16937             s//\1/
16938             q
16939           }
16940           /^X\/\(\/\/\)$/{
16941             s//\1/
16942             q
16943           }
16944           /^X\/\(\/\).*/{
16945             s//\1/
16946             q
16947           }
16948           s/.*/./; q'`
16949
16950 # Avoid depending upon Character Ranges.
16951 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16952 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16953 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16954 as_cr_digits='0123456789'
16955 as_cr_alnum=$as_cr_Letters$as_cr_digits
16956
16957 ECHO_C= ECHO_N= ECHO_T=
16958 case `echo -n x` in #(((((
16959 -n*)
16960   case `echo 'xy\c'` in
16961   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16962   xy)  ECHO_C='\c';;
16963   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16964        ECHO_T=' ';;
16965   esac;;
16966 *)
16967   ECHO_N='-n';;
16968 esac
16969
16970 rm -f conf$$ conf$$.exe conf$$.file
16971 if test -d conf$$.dir; then
16972   rm -f conf$$.dir/conf$$.file
16973 else
16974   rm -f conf$$.dir
16975   mkdir conf$$.dir 2>/dev/null
16976 fi
16977 if (echo >conf$$.file) 2>/dev/null; then
16978   if ln -s conf$$.file conf$$ 2>/dev/null; then
16979     as_ln_s='ln -s'
16980     # ... but there are two gotchas:
16981     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16982     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16983     # In both cases, we have to default to `cp -pR'.
16984     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16985       as_ln_s='cp -pR'
16986   elif ln conf$$.file conf$$ 2>/dev/null; then
16987     as_ln_s=ln
16988   else
16989     as_ln_s='cp -pR'
16990   fi
16991 else
16992   as_ln_s='cp -pR'
16993 fi
16994 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16995 rmdir conf$$.dir 2>/dev/null
16996
16997
16998 # as_fn_mkdir_p
16999 # -------------
17000 # Create "$as_dir" as a directory, including parents if necessary.
17001 as_fn_mkdir_p ()
17002 {
17003
17004   case $as_dir in #(
17005   -*) as_dir=./$as_dir;;
17006   esac
17007   test -d "$as_dir" || eval $as_mkdir_p || {
17008     as_dirs=
17009     while :; do
17010       case $as_dir in #(
17011       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17012       *) as_qdir=$as_dir;;
17013       esac
17014       as_dirs="'$as_qdir' $as_dirs"
17015       as_dir=`$as_dirname -- "$as_dir" ||
17016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17017          X"$as_dir" : 'X\(//\)[^/]' \| \
17018          X"$as_dir" : 'X\(//\)$' \| \
17019          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17020 $as_echo X"$as_dir" |
17021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17022             s//\1/
17023             q
17024           }
17025           /^X\(\/\/\)[^/].*/{
17026             s//\1/
17027             q
17028           }
17029           /^X\(\/\/\)$/{
17030             s//\1/
17031             q
17032           }
17033           /^X\(\/\).*/{
17034             s//\1/
17035             q
17036           }
17037           s/.*/./; q'`
17038       test -d "$as_dir" && break
17039     done
17040     test -z "$as_dirs" || eval "mkdir $as_dirs"
17041   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17042
17043
17044 } # as_fn_mkdir_p
17045 if mkdir -p . 2>/dev/null; then
17046   as_mkdir_p='mkdir -p "$as_dir"'
17047 else
17048   test -d ./-p && rmdir ./-p
17049   as_mkdir_p=false
17050 fi
17051
17052
17053 # as_fn_executable_p FILE
17054 # -----------------------
17055 # Test if FILE is an executable regular file.
17056 as_fn_executable_p ()
17057 {
17058   test -f "$1" && test -x "$1"
17059 } # as_fn_executable_p
17060 as_test_x='test -x'
17061 as_executable_p=as_fn_executable_p
17062
17063 # Sed expression to map a string onto a valid CPP name.
17064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17065
17066 # Sed expression to map a string onto a valid variable name.
17067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17068
17069
17070 exec 6>&1
17071 ## ----------------------------------- ##
17072 ## Main body of $CONFIG_STATUS script. ##
17073 ## ----------------------------------- ##
17074 _ASEOF
17075 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17076
17077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17078 # Save the log message, to keep $0 and so on meaningful, and to
17079 # report actual input values of CONFIG_FILES etc. instead of their
17080 # values after options handling.
17081 ac_log="
17082 This file was extended by mech_eap $as_me 0.9.1, which was
17083 generated by GNU Autoconf 2.69.  Invocation command line was
17084
17085   CONFIG_FILES    = $CONFIG_FILES
17086   CONFIG_HEADERS  = $CONFIG_HEADERS
17087   CONFIG_LINKS    = $CONFIG_LINKS
17088   CONFIG_COMMANDS = $CONFIG_COMMANDS
17089   $ $0 $@
17090
17091 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17092 "
17093
17094 _ACEOF
17095
17096 case $ac_config_files in *"
17097 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17098 esac
17099
17100 case $ac_config_headers in *"
17101 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17102 esac
17103
17104
17105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17106 # Files that config.status was made for.
17107 config_files="$ac_config_files"
17108 config_headers="$ac_config_headers"
17109 config_commands="$ac_config_commands"
17110
17111 _ACEOF
17112
17113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17114 ac_cs_usage="\
17115 \`$as_me' instantiates files and other configuration actions
17116 from templates according to the current configuration.  Unless the files
17117 and actions are specified as TAGs, all are instantiated by default.
17118
17119 Usage: $0 [OPTION]... [TAG]...
17120
17121   -h, --help       print this help, then exit
17122   -V, --version    print version number and configuration settings, then exit
17123       --config     print configuration, then exit
17124   -q, --quiet, --silent
17125                    do not print progress messages
17126   -d, --debug      don't remove temporary files
17127       --recheck    update $as_me by reconfiguring in the same conditions
17128       --file=FILE[:TEMPLATE]
17129                    instantiate the configuration file FILE
17130       --header=FILE[:TEMPLATE]
17131                    instantiate the configuration header FILE
17132
17133 Configuration files:
17134 $config_files
17135
17136 Configuration headers:
17137 $config_headers
17138
17139 Configuration commands:
17140 $config_commands
17141
17142 Report bugs to <bugs@project-moonshot.org>."
17143
17144 _ACEOF
17145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17146 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17147 ac_cs_version="\\
17148 mech_eap config.status 0.9.1
17149 configured by $0, generated by GNU Autoconf 2.69,
17150   with options \\"\$ac_cs_config\\"
17151
17152 Copyright (C) 2012 Free Software Foundation, Inc.
17153 This config.status script is free software; the Free Software Foundation
17154 gives unlimited permission to copy, distribute and modify it."
17155
17156 ac_pwd='$ac_pwd'
17157 srcdir='$srcdir'
17158 INSTALL='$INSTALL'
17159 MKDIR_P='$MKDIR_P'
17160 AWK='$AWK'
17161 test -n "\$AWK" || AWK=awk
17162 _ACEOF
17163
17164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17165 # The default lists apply if the user does not specify any file.
17166 ac_need_defaults=:
17167 while test $# != 0
17168 do
17169   case $1 in
17170   --*=?*)
17171     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17172     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17173     ac_shift=:
17174     ;;
17175   --*=)
17176     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17177     ac_optarg=
17178     ac_shift=:
17179     ;;
17180   *)
17181     ac_option=$1
17182     ac_optarg=$2
17183     ac_shift=shift
17184     ;;
17185   esac
17186
17187   case $ac_option in
17188   # Handling of the options.
17189   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17190     ac_cs_recheck=: ;;
17191   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17192     $as_echo "$ac_cs_version"; exit ;;
17193   --config | --confi | --conf | --con | --co | --c )
17194     $as_echo "$ac_cs_config"; exit ;;
17195   --debug | --debu | --deb | --de | --d | -d )
17196     debug=: ;;
17197   --file | --fil | --fi | --f )
17198     $ac_shift
17199     case $ac_optarg in
17200     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17201     '') as_fn_error $? "missing file argument" ;;
17202     esac
17203     as_fn_append CONFIG_FILES " '$ac_optarg'"
17204     ac_need_defaults=false;;
17205   --header | --heade | --head | --hea )
17206     $ac_shift
17207     case $ac_optarg in
17208     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17209     esac
17210     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17211     ac_need_defaults=false;;
17212   --he | --h)
17213     # Conflict between --help and --header
17214     as_fn_error $? "ambiguous option: \`$1'
17215 Try \`$0 --help' for more information.";;
17216   --help | --hel | -h )
17217     $as_echo "$ac_cs_usage"; exit ;;
17218   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17219   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17220     ac_cs_silent=: ;;
17221
17222   # This is an error.
17223   -*) as_fn_error $? "unrecognized option: \`$1'
17224 Try \`$0 --help' for more information." ;;
17225
17226   *) as_fn_append ac_config_targets " $1"
17227      ac_need_defaults=false ;;
17228
17229   esac
17230   shift
17231 done
17232
17233 ac_configure_extra_args=
17234
17235 if $ac_cs_silent; then
17236   exec 6>/dev/null
17237   ac_configure_extra_args="$ac_configure_extra_args --silent"
17238 fi
17239
17240 _ACEOF
17241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17242 if \$ac_cs_recheck; then
17243   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17244   shift
17245   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17246   CONFIG_SHELL='$SHELL'
17247   export CONFIG_SHELL
17248   exec "\$@"
17249 fi
17250
17251 _ACEOF
17252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17253 exec 5>>config.log
17254 {
17255   echo
17256   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17257 ## Running $as_me. ##
17258 _ASBOX
17259   $as_echo "$ac_log"
17260 } >&5
17261
17262 _ACEOF
17263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17264 #
17265 # INIT-COMMANDS
17266 #
17267 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17268
17269
17270 # The HP-UX ksh and POSIX shell print the target directory to stdout
17271 # if CDPATH is set.
17272 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17273
17274 sed_quote_subst='$sed_quote_subst'
17275 double_quote_subst='$double_quote_subst'
17276 delay_variable_subst='$delay_variable_subst'
17277 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17278 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17279 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17280 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17281 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17282 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17283 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17284 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17285 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17286 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17287 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17288 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17289 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17290 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17291 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17292 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17293 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17294 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17295 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17296 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17297 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17298 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17299 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17300 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17301 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17302 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17303 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17304 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17305 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17306 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17307 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17308 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17309 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17310 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17311 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17312 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17313 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17314 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17315 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17316 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17317 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17318 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17319 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17320 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17321 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17322 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17323 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17324 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17325 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17326 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17327 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17328 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17329 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17330 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17331 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17332 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17333 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17334 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17335 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17336 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17337 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17338 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17339 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17340 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17341 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17342 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17343 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17344 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17345 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17346 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17347 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17348 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17349 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17350 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17351 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17352 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17353 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17354 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17355 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17356 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17357 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17358 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17359 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17360 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17361 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17362 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17363 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17364 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17365 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17366 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17367 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17368 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17369 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17370 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17371 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17372 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17373 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17374 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17375 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17376 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17377 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17378 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17379 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17380 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17381 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17382 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17383 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17384 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17385 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17386 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17387 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17388 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17389 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17390 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17391 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17392 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17393 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17394 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17395 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17396 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17397 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17398 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17399 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17400 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17401 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17402 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17403 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17404 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17405 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17406 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17407 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17408 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17409 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17410 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17411 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17412 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17413 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17414 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17415 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17416 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17417 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17418 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17419 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17420 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17421 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17422 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17423 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17424 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17425 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17426 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17427 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17428 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17429 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17430 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17431 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17432 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17433 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17434 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17435 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17436 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17437 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17438 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17439 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17440 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17441 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17442 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17443 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17444 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17445 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17446 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17447 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17448 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17449 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17450 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17451 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17452 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17453 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17454 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17455 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17456 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17457 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17458 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17459 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17460 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17461 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17462
17463 LTCC='$LTCC'
17464 LTCFLAGS='$LTCFLAGS'
17465 compiler='$compiler_DEFAULT'
17466
17467 # A function that is used when there is no print builtin or printf.
17468 func_fallback_echo ()
17469 {
17470   eval 'cat <<_LTECHO_EOF
17471 \$1
17472 _LTECHO_EOF'
17473 }
17474
17475 # Quote evaled strings.
17476 for var in AS \
17477 DLLTOOL \
17478 OBJDUMP \
17479 SHELL \
17480 ECHO \
17481 PATH_SEPARATOR \
17482 SED \
17483 GREP \
17484 EGREP \
17485 FGREP \
17486 LD \
17487 NM \
17488 LN_S \
17489 lt_SP2NL \
17490 lt_NL2SP \
17491 reload_flag \
17492 deplibs_check_method \
17493 file_magic_cmd \
17494 file_magic_glob \
17495 want_nocaseglob \
17496 sharedlib_from_linklib_cmd \
17497 AR \
17498 AR_FLAGS \
17499 archiver_list_spec \
17500 STRIP \
17501 RANLIB \
17502 CC \
17503 CFLAGS \
17504 compiler \
17505 lt_cv_sys_global_symbol_pipe \
17506 lt_cv_sys_global_symbol_to_cdecl \
17507 lt_cv_sys_global_symbol_to_c_name_address \
17508 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17509 nm_file_list_spec \
17510 lt_prog_compiler_no_builtin_flag \
17511 lt_prog_compiler_pic \
17512 lt_prog_compiler_wl \
17513 lt_prog_compiler_static \
17514 lt_cv_prog_compiler_c_o \
17515 need_locks \
17516 MANIFEST_TOOL \
17517 DSYMUTIL \
17518 NMEDIT \
17519 LIPO \
17520 OTOOL \
17521 OTOOL64 \
17522 shrext_cmds \
17523 export_dynamic_flag_spec \
17524 whole_archive_flag_spec \
17525 compiler_needs_object \
17526 with_gnu_ld \
17527 allow_undefined_flag \
17528 no_undefined_flag \
17529 hardcode_libdir_flag_spec \
17530 hardcode_libdir_separator \
17531 exclude_expsyms \
17532 include_expsyms \
17533 file_list_spec \
17534 variables_saved_for_relink \
17535 libname_spec \
17536 library_names_spec \
17537 soname_spec \
17538 install_override_mode \
17539 finish_eval \
17540 old_striplib \
17541 striplib \
17542 compiler_lib_search_dirs \
17543 predep_objects \
17544 postdep_objects \
17545 predeps \
17546 postdeps \
17547 compiler_lib_search_path \
17548 LD_CXX \
17549 reload_flag_CXX \
17550 compiler_CXX \
17551 lt_prog_compiler_no_builtin_flag_CXX \
17552 lt_prog_compiler_pic_CXX \
17553 lt_prog_compiler_wl_CXX \
17554 lt_prog_compiler_static_CXX \
17555 lt_cv_prog_compiler_c_o_CXX \
17556 export_dynamic_flag_spec_CXX \
17557 whole_archive_flag_spec_CXX \
17558 compiler_needs_object_CXX \
17559 with_gnu_ld_CXX \
17560 allow_undefined_flag_CXX \
17561 no_undefined_flag_CXX \
17562 hardcode_libdir_flag_spec_CXX \
17563 hardcode_libdir_separator_CXX \
17564 exclude_expsyms_CXX \
17565 include_expsyms_CXX \
17566 file_list_spec_CXX \
17567 compiler_lib_search_dirs_CXX \
17568 predep_objects_CXX \
17569 postdep_objects_CXX \
17570 predeps_CXX \
17571 postdeps_CXX \
17572 compiler_lib_search_path_CXX; do
17573     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17574     *[\\\\\\\`\\"\\\$]*)
17575       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17576       ;;
17577     *)
17578       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17579       ;;
17580     esac
17581 done
17582
17583 # Double-quote double-evaled strings.
17584 for var in reload_cmds \
17585 old_postinstall_cmds \
17586 old_postuninstall_cmds \
17587 old_archive_cmds \
17588 extract_expsyms_cmds \
17589 old_archive_from_new_cmds \
17590 old_archive_from_expsyms_cmds \
17591 archive_cmds \
17592 archive_expsym_cmds \
17593 module_cmds \
17594 module_expsym_cmds \
17595 export_symbols_cmds \
17596 prelink_cmds \
17597 postlink_cmds \
17598 postinstall_cmds \
17599 postuninstall_cmds \
17600 finish_cmds \
17601 sys_lib_search_path_spec \
17602 sys_lib_dlsearch_path_spec \
17603 reload_cmds_CXX \
17604 old_archive_cmds_CXX \
17605 old_archive_from_new_cmds_CXX \
17606 old_archive_from_expsyms_cmds_CXX \
17607 archive_cmds_CXX \
17608 archive_expsym_cmds_CXX \
17609 module_cmds_CXX \
17610 module_expsym_cmds_CXX \
17611 export_symbols_cmds_CXX \
17612 prelink_cmds_CXX \
17613 postlink_cmds_CXX; do
17614     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17615     *[\\\\\\\`\\"\\\$]*)
17616       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17617       ;;
17618     *)
17619       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17620       ;;
17621     esac
17622 done
17623
17624 ac_aux_dir='$ac_aux_dir'
17625 xsi_shell='$xsi_shell'
17626 lt_shell_append='$lt_shell_append'
17627
17628 # See if we are running on zsh, and set the options which allow our
17629 # commands through without removal of \ escapes INIT.
17630 if test -n "\${ZSH_VERSION+set}" ; then
17631    setopt NO_GLOB_SUBST
17632 fi
17633
17634
17635     PACKAGE='$PACKAGE'
17636     VERSION='$VERSION'
17637     TIMESTAMP='$TIMESTAMP'
17638     RM='$RM'
17639     ofile='$ofile'
17640
17641
17642
17643
17644
17645
17646 _ACEOF
17647
17648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17649
17650 # Handling of arguments.
17651 for ac_config_target in $ac_config_targets
17652 do
17653   case $ac_config_target in
17654     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17655     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17656     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17657     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17658     "libeap/Makefile") CONFIG_FILES="$CONFIG_FILES libeap/Makefile" ;;
17659     "mech_eap/Makefile") CONFIG_FILES="$CONFIG_FILES mech_eap/Makefile" ;;
17660     "mech_eap.spec") CONFIG_FILES="$CONFIG_FILES mech_eap.spec" ;;
17661
17662   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17663   esac
17664 done
17665
17666
17667 # If the user did not use the arguments to specify the items to instantiate,
17668 # then the envvar interface is used.  Set only those that are not.
17669 # We use the long form for the default assignment because of an extremely
17670 # bizarre bug on SunOS 4.1.3.
17671 if $ac_need_defaults; then
17672   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17673   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17674   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17675 fi
17676
17677 # Have a temporary directory for convenience.  Make it in the build tree
17678 # simply because there is no reason against having it here, and in addition,
17679 # creating and moving files from /tmp can sometimes cause problems.
17680 # Hook for its removal unless debugging.
17681 # Note that there is a small window in which the directory will not be cleaned:
17682 # after its creation but before its name has been assigned to `$tmp'.
17683 $debug ||
17684 {
17685   tmp= ac_tmp=
17686   trap 'exit_status=$?
17687   : "${ac_tmp:=$tmp}"
17688   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17689 ' 0
17690   trap 'as_fn_exit 1' 1 2 13 15
17691 }
17692 # Create a (secure) tmp directory for tmp files.
17693
17694 {
17695   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17696   test -d "$tmp"
17697 }  ||
17698 {
17699   tmp=./conf$$-$RANDOM
17700   (umask 077 && mkdir "$tmp")
17701 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17702 ac_tmp=$tmp
17703
17704 # Set up the scripts for CONFIG_FILES section.
17705 # No need to generate them if there are no CONFIG_FILES.
17706 # This happens for instance with `./config.status config.h'.
17707 if test -n "$CONFIG_FILES"; then
17708
17709
17710 ac_cr=`echo X | tr X '\015'`
17711 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17712 # But we know of no other shell where ac_cr would be empty at this
17713 # point, so we can use a bashism as a fallback.
17714 if test "x$ac_cr" = x; then
17715   eval ac_cr=\$\'\\r\'
17716 fi
17717 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17718 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17719   ac_cs_awk_cr='\\r'
17720 else
17721   ac_cs_awk_cr=$ac_cr
17722 fi
17723
17724 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17725 _ACEOF
17726
17727
17728 {
17729   echo "cat >conf$$subs.awk <<_ACEOF" &&
17730   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17731   echo "_ACEOF"
17732 } >conf$$subs.sh ||
17733   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17734 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17735 ac_delim='%!_!# '
17736 for ac_last_try in false false false false false :; do
17737   . ./conf$$subs.sh ||
17738     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17739
17740   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17741   if test $ac_delim_n = $ac_delim_num; then
17742     break
17743   elif $ac_last_try; then
17744     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17745   else
17746     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17747   fi
17748 done
17749 rm -f conf$$subs.sh
17750
17751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17752 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17753 _ACEOF
17754 sed -n '
17755 h
17756 s/^/S["/; s/!.*/"]=/
17757 p
17758 g
17759 s/^[^!]*!//
17760 :repl
17761 t repl
17762 s/'"$ac_delim"'$//
17763 t delim
17764 :nl
17765 h
17766 s/\(.\{148\}\)..*/\1/
17767 t more1
17768 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17769 p
17770 n
17771 b repl
17772 :more1
17773 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17774 p
17775 g
17776 s/.\{148\}//
17777 t nl
17778 :delim
17779 h
17780 s/\(.\{148\}\)..*/\1/
17781 t more2
17782 s/["\\]/\\&/g; s/^/"/; s/$/"/
17783 p
17784 b
17785 :more2
17786 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17787 p
17788 g
17789 s/.\{148\}//
17790 t delim
17791 ' <conf$$subs.awk | sed '
17792 /^[^""]/{
17793   N
17794   s/\n//
17795 }
17796 ' >>$CONFIG_STATUS || ac_write_fail=1
17797 rm -f conf$$subs.awk
17798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17799 _ACAWK
17800 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17801   for (key in S) S_is_set[key] = 1
17802   FS = "\a"
17803
17804 }
17805 {
17806   line = $ 0
17807   nfields = split(line, field, "@")
17808   substed = 0
17809   len = length(field[1])
17810   for (i = 2; i < nfields; i++) {
17811     key = field[i]
17812     keylen = length(key)
17813     if (S_is_set[key]) {
17814       value = S[key]
17815       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17816       len += length(value) + length(field[++i])
17817       substed = 1
17818     } else
17819       len += 1 + keylen
17820   }
17821
17822   print line
17823 }
17824
17825 _ACAWK
17826 _ACEOF
17827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17828 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17829   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17830 else
17831   cat
17832 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17833   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17834 _ACEOF
17835
17836 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17837 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17838 # trailing colons and then remove the whole line if VPATH becomes empty
17839 # (actually we leave an empty line to preserve line numbers).
17840 if test "x$srcdir" = x.; then
17841   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17842 h
17843 s///
17844 s/^/:/
17845 s/[      ]*$/:/
17846 s/:\$(srcdir):/:/g
17847 s/:\${srcdir}:/:/g
17848 s/:@srcdir@:/:/g
17849 s/^:*//
17850 s/:*$//
17851 x
17852 s/\(=[   ]*\).*/\1/
17853 G
17854 s/\n//
17855 s/^[^=]*=[       ]*$//
17856 }'
17857 fi
17858
17859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17860 fi # test -n "$CONFIG_FILES"
17861
17862 # Set up the scripts for CONFIG_HEADERS section.
17863 # No need to generate them if there are no CONFIG_HEADERS.
17864 # This happens for instance with `./config.status Makefile'.
17865 if test -n "$CONFIG_HEADERS"; then
17866 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17867 BEGIN {
17868 _ACEOF
17869
17870 # Transform confdefs.h into an awk script `defines.awk', embedded as
17871 # here-document in config.status, that substitutes the proper values into
17872 # config.h.in to produce config.h.
17873
17874 # Create a delimiter string that does not exist in confdefs.h, to ease
17875 # handling of long lines.
17876 ac_delim='%!_!# '
17877 for ac_last_try in false false :; do
17878   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17879   if test -z "$ac_tt"; then
17880     break
17881   elif $ac_last_try; then
17882     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17883   else
17884     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17885   fi
17886 done
17887
17888 # For the awk script, D is an array of macro values keyed by name,
17889 # likewise P contains macro parameters if any.  Preserve backslash
17890 # newline sequences.
17891
17892 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17893 sed -n '
17894 s/.\{148\}/&'"$ac_delim"'/g
17895 t rset
17896 :rset
17897 s/^[     ]*#[    ]*define[       ][      ]*/ /
17898 t def
17899 d
17900 :def
17901 s/\\$//
17902 t bsnl
17903 s/["\\]/\\&/g
17904 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17905 D["\1"]=" \3"/p
17906 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17907 d
17908 :bsnl
17909 s/["\\]/\\&/g
17910 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17911 D["\1"]=" \3\\\\\\n"\\/p
17912 t cont
17913 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17914 t cont
17915 d
17916 :cont
17917 n
17918 s/.\{148\}/&'"$ac_delim"'/g
17919 t clear
17920 :clear
17921 s/\\$//
17922 t bsnlc
17923 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17924 d
17925 :bsnlc
17926 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17927 b cont
17928 ' <confdefs.h | sed '
17929 s/'"$ac_delim"'/"\\\
17930 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17931
17932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17933   for (key in D) D_is_set[key] = 1
17934   FS = "\a"
17935 }
17936 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17937   line = \$ 0
17938   split(line, arg, " ")
17939   if (arg[1] == "#") {
17940     defundef = arg[2]
17941     mac1 = arg[3]
17942   } else {
17943     defundef = substr(arg[1], 2)
17944     mac1 = arg[2]
17945   }
17946   split(mac1, mac2, "(") #)
17947   macro = mac2[1]
17948   prefix = substr(line, 1, index(line, defundef) - 1)
17949   if (D_is_set[macro]) {
17950     # Preserve the white space surrounding the "#".
17951     print prefix "define", macro P[macro] D[macro]
17952     next
17953   } else {
17954     # Replace #undef with comments.  This is necessary, for example,
17955     # in the case of _POSIX_SOURCE, which is predefined and required
17956     # on some systems where configure will not decide to define it.
17957     if (defundef == "undef") {
17958       print "/*", prefix defundef, macro, "*/"
17959       next
17960     }
17961   }
17962 }
17963 { print }
17964 _ACAWK
17965 _ACEOF
17966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17967   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17968 fi # test -n "$CONFIG_HEADERS"
17969
17970
17971 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17972 shift
17973 for ac_tag
17974 do
17975   case $ac_tag in
17976   :[FHLC]) ac_mode=$ac_tag; continue;;
17977   esac
17978   case $ac_mode$ac_tag in
17979   :[FHL]*:*);;
17980   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17981   :[FH]-) ac_tag=-:-;;
17982   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17983   esac
17984   ac_save_IFS=$IFS
17985   IFS=:
17986   set x $ac_tag
17987   IFS=$ac_save_IFS
17988   shift
17989   ac_file=$1
17990   shift
17991
17992   case $ac_mode in
17993   :L) ac_source=$1;;
17994   :[FH])
17995     ac_file_inputs=
17996     for ac_f
17997     do
17998       case $ac_f in
17999       -) ac_f="$ac_tmp/stdin";;
18000       *) # Look for the file first in the build tree, then in the source tree
18001          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18002          # because $ac_f cannot contain `:'.
18003          test -f "$ac_f" ||
18004            case $ac_f in
18005            [\\/$]*) false;;
18006            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18007            esac ||
18008            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18009       esac
18010       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18011       as_fn_append ac_file_inputs " '$ac_f'"
18012     done
18013
18014     # Let's still pretend it is `configure' which instantiates (i.e., don't
18015     # use $as_me), people would be surprised to read:
18016     #    /* config.h.  Generated by config.status.  */
18017     configure_input='Generated from '`
18018           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18019         `' by configure.'
18020     if test x"$ac_file" != x-; then
18021       configure_input="$ac_file.  $configure_input"
18022       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18023 $as_echo "$as_me: creating $ac_file" >&6;}
18024     fi
18025     # Neutralize special characters interpreted by sed in replacement strings.
18026     case $configure_input in #(
18027     *\&* | *\|* | *\\* )
18028        ac_sed_conf_input=`$as_echo "$configure_input" |
18029        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18030     *) ac_sed_conf_input=$configure_input;;
18031     esac
18032
18033     case $ac_tag in
18034     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18035       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18036     esac
18037     ;;
18038   esac
18039
18040   ac_dir=`$as_dirname -- "$ac_file" ||
18041 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18042          X"$ac_file" : 'X\(//\)[^/]' \| \
18043          X"$ac_file" : 'X\(//\)$' \| \
18044          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18045 $as_echo X"$ac_file" |
18046     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18047             s//\1/
18048             q
18049           }
18050           /^X\(\/\/\)[^/].*/{
18051             s//\1/
18052             q
18053           }
18054           /^X\(\/\/\)$/{
18055             s//\1/
18056             q
18057           }
18058           /^X\(\/\).*/{
18059             s//\1/
18060             q
18061           }
18062           s/.*/./; q'`
18063   as_dir="$ac_dir"; as_fn_mkdir_p
18064   ac_builddir=.
18065
18066 case "$ac_dir" in
18067 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18068 *)
18069   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18070   # A ".." for each directory in $ac_dir_suffix.
18071   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18072   case $ac_top_builddir_sub in
18073   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18074   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18075   esac ;;
18076 esac
18077 ac_abs_top_builddir=$ac_pwd
18078 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18079 # for backward compatibility:
18080 ac_top_builddir=$ac_top_build_prefix
18081
18082 case $srcdir in
18083   .)  # We are building in place.
18084     ac_srcdir=.
18085     ac_top_srcdir=$ac_top_builddir_sub
18086     ac_abs_top_srcdir=$ac_pwd ;;
18087   [\\/]* | ?:[\\/]* )  # Absolute name.
18088     ac_srcdir=$srcdir$ac_dir_suffix;
18089     ac_top_srcdir=$srcdir
18090     ac_abs_top_srcdir=$srcdir ;;
18091   *) # Relative name.
18092     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18093     ac_top_srcdir=$ac_top_build_prefix$srcdir
18094     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18095 esac
18096 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18097
18098
18099   case $ac_mode in
18100   :F)
18101   #
18102   # CONFIG_FILE
18103   #
18104
18105   case $INSTALL in
18106   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18107   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18108   esac
18109   ac_MKDIR_P=$MKDIR_P
18110   case $MKDIR_P in
18111   [\\/$]* | ?:[\\/]* ) ;;
18112   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18113   esac
18114 _ACEOF
18115
18116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18117 # If the template does not know about datarootdir, expand it.
18118 # FIXME: This hack should be removed a few years after 2.60.
18119 ac_datarootdir_hack=; ac_datarootdir_seen=
18120 ac_sed_dataroot='
18121 /datarootdir/ {
18122   p
18123   q
18124 }
18125 /@datadir@/p
18126 /@docdir@/p
18127 /@infodir@/p
18128 /@localedir@/p
18129 /@mandir@/p'
18130 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18131 *datarootdir*) ac_datarootdir_seen=yes;;
18132 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18133   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18134 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18135 _ACEOF
18136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18137   ac_datarootdir_hack='
18138   s&@datadir@&$datadir&g
18139   s&@docdir@&$docdir&g
18140   s&@infodir@&$infodir&g
18141   s&@localedir@&$localedir&g
18142   s&@mandir@&$mandir&g
18143   s&\\\${datarootdir}&$datarootdir&g' ;;
18144 esac
18145 _ACEOF
18146
18147 # Neutralize VPATH when `$srcdir' = `.'.
18148 # Shell code in configure.ac might set extrasub.
18149 # FIXME: do we really want to maintain this feature?
18150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18151 ac_sed_extra="$ac_vpsub
18152 $extrasub
18153 _ACEOF
18154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18155 :t
18156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18157 s|@configure_input@|$ac_sed_conf_input|;t t
18158 s&@top_builddir@&$ac_top_builddir_sub&;t t
18159 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18160 s&@srcdir@&$ac_srcdir&;t t
18161 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18162 s&@top_srcdir@&$ac_top_srcdir&;t t
18163 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18164 s&@builddir@&$ac_builddir&;t t
18165 s&@abs_builddir@&$ac_abs_builddir&;t t
18166 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18167 s&@INSTALL@&$ac_INSTALL&;t t
18168 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18169 $ac_datarootdir_hack
18170 "
18171 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18172   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18173
18174 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18175   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18176   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18177       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18178   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18179 which seems to be undefined.  Please make sure it is defined" >&5
18180 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18181 which seems to be undefined.  Please make sure it is defined" >&2;}
18182
18183   rm -f "$ac_tmp/stdin"
18184   case $ac_file in
18185   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18186   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18187   esac \
18188   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18189  ;;
18190   :H)
18191   #
18192   # CONFIG_HEADER
18193   #
18194   if test x"$ac_file" != x-; then
18195     {
18196       $as_echo "/* $configure_input  */" \
18197       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18198     } >"$ac_tmp/config.h" \
18199       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18200     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18201       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18202 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18203     else
18204       rm -f "$ac_file"
18205       mv "$ac_tmp/config.h" "$ac_file" \
18206         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18207     fi
18208   else
18209     $as_echo "/* $configure_input  */" \
18210       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18211       || as_fn_error $? "could not create -" "$LINENO" 5
18212   fi
18213 # Compute "$ac_file"'s index in $config_headers.
18214 _am_arg="$ac_file"
18215 _am_stamp_count=1
18216 for _am_header in $config_headers :; do
18217   case $_am_header in
18218     $_am_arg | $_am_arg:* )
18219       break ;;
18220     * )
18221       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18222   esac
18223 done
18224 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18225 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18226          X"$_am_arg" : 'X\(//\)[^/]' \| \
18227          X"$_am_arg" : 'X\(//\)$' \| \
18228          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18229 $as_echo X"$_am_arg" |
18230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18231             s//\1/
18232             q
18233           }
18234           /^X\(\/\/\)[^/].*/{
18235             s//\1/
18236             q
18237           }
18238           /^X\(\/\/\)$/{
18239             s//\1/
18240             q
18241           }
18242           /^X\(\/\).*/{
18243             s//\1/
18244             q
18245           }
18246           s/.*/./; q'`/stamp-h$_am_stamp_count
18247  ;;
18248
18249   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18250 $as_echo "$as_me: executing $ac_file commands" >&6;}
18251  ;;
18252   esac
18253
18254
18255   case $ac_file$ac_mode in
18256     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18257   # Older Autoconf quotes --file arguments for eval, but not when files
18258   # are listed without --file.  Let's play safe and only enable the eval
18259   # if we detect the quoting.
18260   case $CONFIG_FILES in
18261   *\'*) eval set x "$CONFIG_FILES" ;;
18262   *)   set x $CONFIG_FILES ;;
18263   esac
18264   shift
18265   for mf
18266   do
18267     # Strip MF so we end up with the name of the file.
18268     mf=`echo "$mf" | sed -e 's/:.*$//'`
18269     # Check whether this is an Automake generated Makefile or not.
18270     # We used to match only the files named 'Makefile.in', but
18271     # some people rename them; so instead we look at the file content.
18272     # Grep'ing the first line is not enough: some people post-process
18273     # each Makefile.in and add a new line on top of each file to say so.
18274     # Grep'ing the whole file is not good either: AIX grep has a line
18275     # limit of 2048, but all sed's we know have understand at least 4000.
18276     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18277       dirpart=`$as_dirname -- "$mf" ||
18278 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18279          X"$mf" : 'X\(//\)[^/]' \| \
18280          X"$mf" : 'X\(//\)$' \| \
18281          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18282 $as_echo X"$mf" |
18283     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18284             s//\1/
18285             q
18286           }
18287           /^X\(\/\/\)[^/].*/{
18288             s//\1/
18289             q
18290           }
18291           /^X\(\/\/\)$/{
18292             s//\1/
18293             q
18294           }
18295           /^X\(\/\).*/{
18296             s//\1/
18297             q
18298           }
18299           s/.*/./; q'`
18300     else
18301       continue
18302     fi
18303     # Extract the definition of DEPDIR, am__include, and am__quote
18304     # from the Makefile without running 'make'.
18305     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18306     test -z "$DEPDIR" && continue
18307     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18308     test -z "$am__include" && continue
18309     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18310     # Find all dependency output files, they are included files with
18311     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18312     # simplest approach to changing $(DEPDIR) to its actual value in the
18313     # expansion.
18314     for file in `sed -n "
18315       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18316          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18317       # Make sure the directory exists.
18318       test -f "$dirpart/$file" && continue
18319       fdir=`$as_dirname -- "$file" ||
18320 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18321          X"$file" : 'X\(//\)[^/]' \| \
18322          X"$file" : 'X\(//\)$' \| \
18323          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18324 $as_echo X"$file" |
18325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18326             s//\1/
18327             q
18328           }
18329           /^X\(\/\/\)[^/].*/{
18330             s//\1/
18331             q
18332           }
18333           /^X\(\/\/\)$/{
18334             s//\1/
18335             q
18336           }
18337           /^X\(\/\).*/{
18338             s//\1/
18339             q
18340           }
18341           s/.*/./; q'`
18342       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18343       # echo "creating $dirpart/$file"
18344       echo '# dummy' > "$dirpart/$file"
18345     done
18346   done
18347 }
18348  ;;
18349     "libtool":C)
18350
18351     # See if we are running on zsh, and set the options which allow our
18352     # commands through without removal of \ escapes.
18353     if test -n "${ZSH_VERSION+set}" ; then
18354       setopt NO_GLOB_SUBST
18355     fi
18356
18357     cfgfile="${ofile}T"
18358     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18359     $RM "$cfgfile"
18360
18361     cat <<_LT_EOF >> "$cfgfile"
18362 #! $SHELL
18363
18364 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18365 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18366 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18367 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18368 #
18369 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18370 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18371 #                 Foundation, Inc.
18372 #   Written by Gordon Matzigkeit, 1996
18373 #
18374 #   This file is part of GNU Libtool.
18375 #
18376 # GNU Libtool is free software; you can redistribute it and/or
18377 # modify it under the terms of the GNU General Public License as
18378 # published by the Free Software Foundation; either version 2 of
18379 # the License, or (at your option) any later version.
18380 #
18381 # As a special exception to the GNU General Public License,
18382 # if you distribute this file as part of a program or library that
18383 # is built using GNU Libtool, you may include this file under the
18384 # same distribution terms that you use for the rest of that program.
18385 #
18386 # GNU Libtool is distributed in the hope that it will be useful,
18387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18389 # GNU General Public License for more details.
18390 #
18391 # You should have received a copy of the GNU General Public License
18392 # along with GNU Libtool; see the file COPYING.  If not, a copy
18393 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18394 # obtained by writing to the Free Software Foundation, Inc.,
18395 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18396
18397
18398 # The names of the tagged configurations supported by this script.
18399 available_tags="CXX "
18400
18401 # ### BEGIN LIBTOOL CONFIG
18402
18403 # Which release of libtool.m4 was used?
18404 macro_version=$macro_version
18405 macro_revision=$macro_revision
18406
18407 # Whether or not to build static libraries.
18408 build_old_libs=$enable_static
18409
18410 # Assembler program.
18411 AS=$lt_AS
18412
18413 # DLL creation program.
18414 DLLTOOL=$lt_DLLTOOL
18415
18416 # Object dumper program.
18417 OBJDUMP=$lt_OBJDUMP
18418
18419 # Whether or not to build shared libraries.
18420 build_libtool_libs=$enable_shared
18421
18422 # What type of objects to build.
18423 pic_mode=$pic_mode
18424
18425 # Whether or not to optimize for fast installation.
18426 fast_install=$enable_fast_install
18427
18428 # Shell to use when invoking shell scripts.
18429 SHELL=$lt_SHELL
18430
18431 # An echo program that protects backslashes.
18432 ECHO=$lt_ECHO
18433
18434 # The PATH separator for the build system.
18435 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18436
18437 # The host system.
18438 host_alias=$host_alias
18439 host=$host
18440 host_os=$host_os
18441
18442 # The build system.
18443 build_alias=$build_alias
18444 build=$build
18445 build_os=$build_os
18446
18447 # A sed program that does not truncate output.
18448 SED=$lt_SED
18449
18450 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18451 Xsed="\$SED -e 1s/^X//"
18452
18453 # A grep program that handles long lines.
18454 GREP=$lt_GREP
18455
18456 # An ERE matcher.
18457 EGREP=$lt_EGREP
18458
18459 # A literal string matcher.
18460 FGREP=$lt_FGREP
18461
18462 # A BSD- or MS-compatible name lister.
18463 NM=$lt_NM
18464
18465 # Whether we need soft or hard links.
18466 LN_S=$lt_LN_S
18467
18468 # What is the maximum length of a command?
18469 max_cmd_len=$max_cmd_len
18470
18471 # Object file suffix (normally "o").
18472 objext=$ac_objext
18473
18474 # Executable file suffix (normally "").
18475 exeext=$exeext
18476
18477 # whether the shell understands "unset".
18478 lt_unset=$lt_unset
18479
18480 # turn spaces into newlines.
18481 SP2NL=$lt_lt_SP2NL
18482
18483 # turn newlines into spaces.
18484 NL2SP=$lt_lt_NL2SP
18485
18486 # convert \$build file names to \$host format.
18487 to_host_file_cmd=$lt_cv_to_host_file_cmd
18488
18489 # convert \$build files to toolchain format.
18490 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18491
18492 # Method to check whether dependent libraries are shared objects.
18493 deplibs_check_method=$lt_deplibs_check_method
18494
18495 # Command to use when deplibs_check_method = "file_magic".
18496 file_magic_cmd=$lt_file_magic_cmd
18497
18498 # How to find potential files when deplibs_check_method = "file_magic".
18499 file_magic_glob=$lt_file_magic_glob
18500
18501 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18502 want_nocaseglob=$lt_want_nocaseglob
18503
18504 # Command to associate shared and link libraries.
18505 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18506
18507 # The archiver.
18508 AR=$lt_AR
18509
18510 # Flags to create an archive.
18511 AR_FLAGS=$lt_AR_FLAGS
18512
18513 # How to feed a file listing to the archiver.
18514 archiver_list_spec=$lt_archiver_list_spec
18515
18516 # A symbol stripping program.
18517 STRIP=$lt_STRIP
18518
18519 # Commands used to install an old-style archive.
18520 RANLIB=$lt_RANLIB
18521 old_postinstall_cmds=$lt_old_postinstall_cmds
18522 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18523
18524 # Whether to use a lock for old archive extraction.
18525 lock_old_archive_extraction=$lock_old_archive_extraction
18526
18527 # A C compiler.
18528 LTCC=$lt_CC
18529
18530 # LTCC compiler flags.
18531 LTCFLAGS=$lt_CFLAGS
18532
18533 # Take the output of nm and produce a listing of raw symbols and C names.
18534 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18535
18536 # Transform the output of nm in a proper C declaration.
18537 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18538
18539 # Transform the output of nm in a C name address pair.
18540 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18541
18542 # Transform the output of nm in a C name address pair when lib prefix is needed.
18543 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18544
18545 # Specify filename containing input files for \$NM.
18546 nm_file_list_spec=$lt_nm_file_list_spec
18547
18548 # The root where to search for dependent libraries,and in which our libraries should be installed.
18549 lt_sysroot=$lt_sysroot
18550
18551 # The name of the directory that contains temporary libtool files.
18552 objdir=$objdir
18553
18554 # Used to examine libraries when file_magic_cmd begins with "file".
18555 MAGIC_CMD=$MAGIC_CMD
18556
18557 # Must we lock files when doing compilation?
18558 need_locks=$lt_need_locks
18559
18560 # Manifest tool.
18561 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18562
18563 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18564 DSYMUTIL=$lt_DSYMUTIL
18565
18566 # Tool to change global to local symbols on Mac OS X.
18567 NMEDIT=$lt_NMEDIT
18568
18569 # Tool to manipulate fat objects and archives on Mac OS X.
18570 LIPO=$lt_LIPO
18571
18572 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18573 OTOOL=$lt_OTOOL
18574
18575 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18576 OTOOL64=$lt_OTOOL64
18577
18578 # Old archive suffix (normally "a").
18579 libext=$libext
18580
18581 # Shared library suffix (normally ".so").
18582 shrext_cmds=$lt_shrext_cmds
18583
18584 # The commands to extract the exported symbol list from a shared archive.
18585 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18586
18587 # Variables whose values should be saved in libtool wrapper scripts and
18588 # restored at link time.
18589 variables_saved_for_relink=$lt_variables_saved_for_relink
18590
18591 # Do we need the "lib" prefix for modules?
18592 need_lib_prefix=$need_lib_prefix
18593
18594 # Do we need a version for libraries?
18595 need_version=$need_version
18596
18597 # Library versioning type.
18598 version_type=$version_type
18599
18600 # Shared library runtime path variable.
18601 runpath_var=$runpath_var
18602
18603 # Shared library path variable.
18604 shlibpath_var=$shlibpath_var
18605
18606 # Is shlibpath searched before the hard-coded library search path?
18607 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18608
18609 # Format of library name prefix.
18610 libname_spec=$lt_libname_spec
18611
18612 # List of archive names.  First name is the real one, the rest are links.
18613 # The last name is the one that the linker finds with -lNAME
18614 library_names_spec=$lt_library_names_spec
18615
18616 # The coded name of the library, if different from the real name.
18617 soname_spec=$lt_soname_spec
18618
18619 # Permission mode override for installation of shared libraries.
18620 install_override_mode=$lt_install_override_mode
18621
18622 # Command to use after installation of a shared archive.
18623 postinstall_cmds=$lt_postinstall_cmds
18624
18625 # Command to use after uninstallation of a shared archive.
18626 postuninstall_cmds=$lt_postuninstall_cmds
18627
18628 # Commands used to finish a libtool library installation in a directory.
18629 finish_cmds=$lt_finish_cmds
18630
18631 # As "finish_cmds", except a single script fragment to be evaled but
18632 # not shown.
18633 finish_eval=$lt_finish_eval
18634
18635 # Whether we should hardcode library paths into libraries.
18636 hardcode_into_libs=$hardcode_into_libs
18637
18638 # Compile-time system search path for libraries.
18639 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18640
18641 # Run-time system search path for libraries.
18642 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18643
18644 # Whether dlopen is supported.
18645 dlopen_support=$enable_dlopen
18646
18647 # Whether dlopen of programs is supported.
18648 dlopen_self=$enable_dlopen_self
18649
18650 # Whether dlopen of statically linked programs is supported.
18651 dlopen_self_static=$enable_dlopen_self_static
18652
18653 # Commands to strip libraries.
18654 old_striplib=$lt_old_striplib
18655 striplib=$lt_striplib
18656
18657
18658 # The linker used to build libraries.
18659 LD=$lt_LD
18660
18661 # How to create reloadable object files.
18662 reload_flag=$lt_reload_flag
18663 reload_cmds=$lt_reload_cmds
18664
18665 # Commands used to build an old-style archive.
18666 old_archive_cmds=$lt_old_archive_cmds
18667
18668 # A language specific compiler.
18669 CC=$lt_compiler
18670
18671 # Is the compiler the GNU compiler?
18672 with_gcc=$GCC
18673
18674 # Compiler flag to turn off builtin functions.
18675 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18676
18677 # Additional compiler flags for building library objects.
18678 pic_flag=$lt_lt_prog_compiler_pic
18679
18680 # How to pass a linker flag through the compiler.
18681 wl=$lt_lt_prog_compiler_wl
18682
18683 # Compiler flag to prevent dynamic linking.
18684 link_static_flag=$lt_lt_prog_compiler_static
18685
18686 # Does compiler simultaneously support -c and -o options?
18687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18688
18689 # Whether or not to add -lc for building shared libraries.
18690 build_libtool_need_lc=$archive_cmds_need_lc
18691
18692 # Whether or not to disallow shared libs when runtime libs are static.
18693 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18694
18695 # Compiler flag to allow reflexive dlopens.
18696 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18697
18698 # Compiler flag to generate shared objects directly from archives.
18699 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18700
18701 # Whether the compiler copes with passing no objects directly.
18702 compiler_needs_object=$lt_compiler_needs_object
18703
18704 # Create an old-style archive from a shared archive.
18705 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18706
18707 # Create a temporary old-style archive to link instead of a shared archive.
18708 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18709
18710 # Commands used to build a shared archive.
18711 archive_cmds=$lt_archive_cmds
18712 archive_expsym_cmds=$lt_archive_expsym_cmds
18713
18714 # Commands used to build a loadable module if different from building
18715 # a shared archive.
18716 module_cmds=$lt_module_cmds
18717 module_expsym_cmds=$lt_module_expsym_cmds
18718
18719 # Whether we are building with GNU ld or not.
18720 with_gnu_ld=$lt_with_gnu_ld
18721
18722 # Flag that allows shared libraries with undefined symbols to be built.
18723 allow_undefined_flag=$lt_allow_undefined_flag
18724
18725 # Flag that enforces no undefined symbols.
18726 no_undefined_flag=$lt_no_undefined_flag
18727
18728 # Flag to hardcode \$libdir into a binary during linking.
18729 # This must work even if \$libdir does not exist
18730 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18731
18732 # Whether we need a single "-rpath" flag with a separated argument.
18733 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18734
18735 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18736 # DIR into the resulting binary.
18737 hardcode_direct=$hardcode_direct
18738
18739 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18740 # DIR into the resulting binary and the resulting library dependency is
18741 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18742 # library is relocated.
18743 hardcode_direct_absolute=$hardcode_direct_absolute
18744
18745 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18746 # into the resulting binary.
18747 hardcode_minus_L=$hardcode_minus_L
18748
18749 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18750 # into the resulting binary.
18751 hardcode_shlibpath_var=$hardcode_shlibpath_var
18752
18753 # Set to "yes" if building a shared library automatically hardcodes DIR
18754 # into the library and all subsequent libraries and executables linked
18755 # against it.
18756 hardcode_automatic=$hardcode_automatic
18757
18758 # Set to yes if linker adds runtime paths of dependent libraries
18759 # to runtime path list.
18760 inherit_rpath=$inherit_rpath
18761
18762 # Whether libtool must link a program against all its dependency libraries.
18763 link_all_deplibs=$link_all_deplibs
18764
18765 # Set to "yes" if exported symbols are required.
18766 always_export_symbols=$always_export_symbols
18767
18768 # The commands to list exported symbols.
18769 export_symbols_cmds=$lt_export_symbols_cmds
18770
18771 # Symbols that should not be listed in the preloaded symbols.
18772 exclude_expsyms=$lt_exclude_expsyms
18773
18774 # Symbols that must always be exported.
18775 include_expsyms=$lt_include_expsyms
18776
18777 # Commands necessary for linking programs (against libraries) with templates.
18778 prelink_cmds=$lt_prelink_cmds
18779
18780 # Commands necessary for finishing linking programs.
18781 postlink_cmds=$lt_postlink_cmds
18782
18783 # Specify filename containing input files.
18784 file_list_spec=$lt_file_list_spec
18785
18786 # How to hardcode a shared library path into an executable.
18787 hardcode_action=$hardcode_action
18788
18789 # The directories searched by this compiler when creating a shared library.
18790 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18791
18792 # Dependencies to place before and after the objects being linked to
18793 # create a shared library.
18794 predep_objects=$lt_predep_objects
18795 postdep_objects=$lt_postdep_objects
18796 predeps=$lt_predeps
18797 postdeps=$lt_postdeps
18798
18799 # The library search path used internally by the compiler when linking
18800 # a shared library.
18801 compiler_lib_search_path=$lt_compiler_lib_search_path
18802
18803 # ### END LIBTOOL CONFIG
18804
18805 _LT_EOF
18806
18807   case $host_os in
18808   aix3*)
18809     cat <<\_LT_EOF >> "$cfgfile"
18810 # AIX sometimes has problems with the GCC collect2 program.  For some
18811 # reason, if we set the COLLECT_NAMES environment variable, the problems
18812 # vanish in a puff of smoke.
18813 if test "X${COLLECT_NAMES+set}" != Xset; then
18814   COLLECT_NAMES=
18815   export COLLECT_NAMES
18816 fi
18817 _LT_EOF
18818     ;;
18819   esac
18820
18821
18822 ltmain="$ac_aux_dir/ltmain.sh"
18823
18824
18825   # We use sed instead of cat because bash on DJGPP gets confused if
18826   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18827   # text mode, it properly converts lines to CR/LF.  This bash problem
18828   # is reportedly fixed, but why not run on old versions too?
18829   sed '$q' "$ltmain" >> "$cfgfile" \
18830      || (rm -f "$cfgfile"; exit 1)
18831
18832   if test x"$xsi_shell" = xyes; then
18833   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18834 func_dirname ()\
18835 {\
18836 \    case ${1} in\
18837 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18838 \      *  ) func_dirname_result="${3}" ;;\
18839 \    esac\
18840 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18841   && mv -f "$cfgfile.tmp" "$cfgfile" \
18842     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18843 test 0 -eq $? || _lt_function_replace_fail=:
18844
18845
18846   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18847 func_basename ()\
18848 {\
18849 \    func_basename_result="${1##*/}"\
18850 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18851   && mv -f "$cfgfile.tmp" "$cfgfile" \
18852     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18853 test 0 -eq $? || _lt_function_replace_fail=:
18854
18855
18856   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18857 func_dirname_and_basename ()\
18858 {\
18859 \    case ${1} in\
18860 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18861 \      *  ) func_dirname_result="${3}" ;;\
18862 \    esac\
18863 \    func_basename_result="${1##*/}"\
18864 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18865   && mv -f "$cfgfile.tmp" "$cfgfile" \
18866     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18867 test 0 -eq $? || _lt_function_replace_fail=:
18868
18869
18870   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18871 func_stripname ()\
18872 {\
18873 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18874 \    # positional parameters, so assign one to ordinary parameter first.\
18875 \    func_stripname_result=${3}\
18876 \    func_stripname_result=${func_stripname_result#"${1}"}\
18877 \    func_stripname_result=${func_stripname_result%"${2}"}\
18878 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18879   && mv -f "$cfgfile.tmp" "$cfgfile" \
18880     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18881 test 0 -eq $? || _lt_function_replace_fail=:
18882
18883
18884   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18885 func_split_long_opt ()\
18886 {\
18887 \    func_split_long_opt_name=${1%%=*}\
18888 \    func_split_long_opt_arg=${1#*=}\
18889 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18890   && mv -f "$cfgfile.tmp" "$cfgfile" \
18891     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18892 test 0 -eq $? || _lt_function_replace_fail=:
18893
18894
18895   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18896 func_split_short_opt ()\
18897 {\
18898 \    func_split_short_opt_arg=${1#??}\
18899 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18900 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18901   && mv -f "$cfgfile.tmp" "$cfgfile" \
18902     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18903 test 0 -eq $? || _lt_function_replace_fail=:
18904
18905
18906   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18907 func_lo2o ()\
18908 {\
18909 \    case ${1} in\
18910 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18911 \      *)    func_lo2o_result=${1} ;;\
18912 \    esac\
18913 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18914   && mv -f "$cfgfile.tmp" "$cfgfile" \
18915     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18916 test 0 -eq $? || _lt_function_replace_fail=:
18917
18918
18919   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18920 func_xform ()\
18921 {\
18922     func_xform_result=${1%.*}.lo\
18923 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18924   && mv -f "$cfgfile.tmp" "$cfgfile" \
18925     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18926 test 0 -eq $? || _lt_function_replace_fail=:
18927
18928
18929   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18930 func_arith ()\
18931 {\
18932     func_arith_result=$(( $* ))\
18933 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18934   && mv -f "$cfgfile.tmp" "$cfgfile" \
18935     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18936 test 0 -eq $? || _lt_function_replace_fail=:
18937
18938
18939   sed -e '/^func_len ()$/,/^} # func_len /c\
18940 func_len ()\
18941 {\
18942     func_len_result=${#1}\
18943 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18944   && mv -f "$cfgfile.tmp" "$cfgfile" \
18945     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18946 test 0 -eq $? || _lt_function_replace_fail=:
18947
18948 fi
18949
18950 if test x"$lt_shell_append" = xyes; then
18951   sed -e '/^func_append ()$/,/^} # func_append /c\
18952 func_append ()\
18953 {\
18954     eval "${1}+=\\${2}"\
18955 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18956   && mv -f "$cfgfile.tmp" "$cfgfile" \
18957     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18958 test 0 -eq $? || _lt_function_replace_fail=:
18959
18960
18961   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18962 func_append_quoted ()\
18963 {\
18964 \    func_quote_for_eval "${2}"\
18965 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18966 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18967   && mv -f "$cfgfile.tmp" "$cfgfile" \
18968     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18969 test 0 -eq $? || _lt_function_replace_fail=:
18970
18971
18972   # Save a `func_append' function call where possible by direct use of '+='
18973   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18974     && mv -f "$cfgfile.tmp" "$cfgfile" \
18975       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18976   test 0 -eq $? || _lt_function_replace_fail=:
18977 else
18978   # Save a `func_append' function call even when '+=' is not available
18979   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18980     && mv -f "$cfgfile.tmp" "$cfgfile" \
18981       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18982   test 0 -eq $? || _lt_function_replace_fail=:
18983 fi
18984
18985 if test x"$_lt_function_replace_fail" = x":"; then
18986   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18987 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18988 fi
18989
18990
18991    mv -f "$cfgfile" "$ofile" ||
18992     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18993   chmod +x "$ofile"
18994
18995
18996     cat <<_LT_EOF >> "$ofile"
18997
18998 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18999
19000 # The linker used to build libraries.
19001 LD=$lt_LD_CXX
19002
19003 # How to create reloadable object files.
19004 reload_flag=$lt_reload_flag_CXX
19005 reload_cmds=$lt_reload_cmds_CXX
19006
19007 # Commands used to build an old-style archive.
19008 old_archive_cmds=$lt_old_archive_cmds_CXX
19009
19010 # A language specific compiler.
19011 CC=$lt_compiler_CXX
19012
19013 # Is the compiler the GNU compiler?
19014 with_gcc=$GCC_CXX
19015
19016 # Compiler flag to turn off builtin functions.
19017 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19018
19019 # Additional compiler flags for building library objects.
19020 pic_flag=$lt_lt_prog_compiler_pic_CXX
19021
19022 # How to pass a linker flag through the compiler.
19023 wl=$lt_lt_prog_compiler_wl_CXX
19024
19025 # Compiler flag to prevent dynamic linking.
19026 link_static_flag=$lt_lt_prog_compiler_static_CXX
19027
19028 # Does compiler simultaneously support -c and -o options?
19029 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19030
19031 # Whether or not to add -lc for building shared libraries.
19032 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19033
19034 # Whether or not to disallow shared libs when runtime libs are static.
19035 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19036
19037 # Compiler flag to allow reflexive dlopens.
19038 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19039
19040 # Compiler flag to generate shared objects directly from archives.
19041 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19042
19043 # Whether the compiler copes with passing no objects directly.
19044 compiler_needs_object=$lt_compiler_needs_object_CXX
19045
19046 # Create an old-style archive from a shared archive.
19047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19048
19049 # Create a temporary old-style archive to link instead of a shared archive.
19050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19051
19052 # Commands used to build a shared archive.
19053 archive_cmds=$lt_archive_cmds_CXX
19054 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19055
19056 # Commands used to build a loadable module if different from building
19057 # a shared archive.
19058 module_cmds=$lt_module_cmds_CXX
19059 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19060
19061 # Whether we are building with GNU ld or not.
19062 with_gnu_ld=$lt_with_gnu_ld_CXX
19063
19064 # Flag that allows shared libraries with undefined symbols to be built.
19065 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19066
19067 # Flag that enforces no undefined symbols.
19068 no_undefined_flag=$lt_no_undefined_flag_CXX
19069
19070 # Flag to hardcode \$libdir into a binary during linking.
19071 # This must work even if \$libdir does not exist
19072 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19073
19074 # Whether we need a single "-rpath" flag with a separated argument.
19075 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19076
19077 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19078 # DIR into the resulting binary.
19079 hardcode_direct=$hardcode_direct_CXX
19080
19081 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19082 # DIR into the resulting binary and the resulting library dependency is
19083 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19084 # library is relocated.
19085 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19086
19087 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19088 # into the resulting binary.
19089 hardcode_minus_L=$hardcode_minus_L_CXX
19090
19091 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19092 # into the resulting binary.
19093 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19094
19095 # Set to "yes" if building a shared library automatically hardcodes DIR
19096 # into the library and all subsequent libraries and executables linked
19097 # against it.
19098 hardcode_automatic=$hardcode_automatic_CXX
19099
19100 # Set to yes if linker adds runtime paths of dependent libraries
19101 # to runtime path list.
19102 inherit_rpath=$inherit_rpath_CXX
19103
19104 # Whether libtool must link a program against all its dependency libraries.
19105 link_all_deplibs=$link_all_deplibs_CXX
19106
19107 # Set to "yes" if exported symbols are required.
19108 always_export_symbols=$always_export_symbols_CXX
19109
19110 # The commands to list exported symbols.
19111 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19112
19113 # Symbols that should not be listed in the preloaded symbols.
19114 exclude_expsyms=$lt_exclude_expsyms_CXX
19115
19116 # Symbols that must always be exported.
19117 include_expsyms=$lt_include_expsyms_CXX
19118
19119 # Commands necessary for linking programs (against libraries) with templates.
19120 prelink_cmds=$lt_prelink_cmds_CXX
19121
19122 # Commands necessary for finishing linking programs.
19123 postlink_cmds=$lt_postlink_cmds_CXX
19124
19125 # Specify filename containing input files.
19126 file_list_spec=$lt_file_list_spec_CXX
19127
19128 # How to hardcode a shared library path into an executable.
19129 hardcode_action=$hardcode_action_CXX
19130
19131 # The directories searched by this compiler when creating a shared library.
19132 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19133
19134 # Dependencies to place before and after the objects being linked to
19135 # create a shared library.
19136 predep_objects=$lt_predep_objects_CXX
19137 postdep_objects=$lt_postdep_objects_CXX
19138 predeps=$lt_predeps_CXX
19139 postdeps=$lt_postdeps_CXX
19140
19141 # The library search path used internally by the compiler when linking
19142 # a shared library.
19143 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19144
19145 # ### END LIBTOOL TAG CONFIG: CXX
19146 _LT_EOF
19147
19148  ;;
19149
19150   esac
19151 done # for ac_tag
19152
19153
19154 as_fn_exit 0
19155 _ACEOF
19156 ac_clean_files=$ac_clean_files_save
19157
19158 test $ac_write_fail = 0 ||
19159   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19160
19161
19162 # configure is writing to config.log, and then calls config.status.
19163 # config.status does its own redirection, appending to config.log.
19164 # Unfortunately, on DOS this fails, as config.log is still kept open
19165 # by configure, so config.status won't be able to write to it; its
19166 # output is simply discarded.  So we exec the FD to /dev/null,
19167 # effectively closing config.log, so it can be properly (re)opened and
19168 # appended to by config.status.  When coming back to configure, we
19169 # need to make the FD available again.
19170 if test "$no_create" != yes; then
19171   ac_cs_success=:
19172   ac_config_status_args=
19173   test "$silent" = yes &&
19174     ac_config_status_args="$ac_config_status_args --quiet"
19175   exec 5>/dev/null
19176   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19177   exec 5>>config.log
19178   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19179   # would make configure fail if this is the last instruction.
19180   $ac_cs_success || as_fn_exit 1
19181 fi
19182 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19183   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19184 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19185 fi
19186